PDA

View Full Version : Code complaint about on air script



djaubs89
09-02-2017, 05:28 PM
hello i have a major complaint, no one is helping me out
with an air script that works on my site which shows what dj is on air at what times

so please could someone give me a decent script that works please

djaubs89
09-02-2017, 05:47 PM
this script dont even work


<?php
$h = date('G');
//set variable $h to the hour of the day
$d = date('w');
//set variable $d to the day of the week.
$year = date('Y');
//set variable $year to the current year
//G is the date key for hours in 24 format (not 12), with no leading 0s, like 02.
// Adjust 2 hour offset for MST below.
$h = $h-0;


// MONDAY SCHEDULE
if ($d == 1){
if($h >= 0 && $h < 8) $img = 'images/jukebox.gif';
else if ($h >= 8 && $h < 9) $img = 'images/clive.jpg';
else if ($h >= 9 && $h < 10) $img = 'images/jukebox.gif';
else if ($h >= 10 && $h < 11) $img = 'images/jukebox.gif';
else if ($h >= 11 && $h < 12) $img = 'images/jukebox.gif';
else if ($h >= 12 && $h < 13) $img = 'images/jukebox.gif';
else if ($h >= 13 && $h < 14) $img = 'images/jukebox.gif';
else if ($h >= 14 && $h < 15) $img = 'images/jukebox.gif';
else if ($h >= 15 && $h < 16) $img = 'images/jukebox.gif';
else if ($h >= 16 && $h < 17) $img = 'images/jukebox.gif';
else if ($h >= 17 && $h < 18) $img = 'images/jukebox.gif';
else if ($h >= 18 && $h < 19) $img = 'images/jukebox.gif';
else if ($h >= 19 && $h < 20) $img = 'images/jukebox.gif';
else if ($h >= 20 && $h < 21) $img = 'images/jukebox.gif';
else if ($h >= 21 && $h < 22) $img = 'images/jukebox.gif';
else if ($h >= 22 && $h < 23) $img = 'images/jukebox.gif';
else if ($h >= 23 && $h < 24) $img = 'images/jukebox.gif';
}


// TUESDAY SCHEDULE
if ($d == 2){
if($h >= 0 && $h < 8) $img = 'images/jukebox.gif';
else if ($h >= 8 && $h < 9) $img = 'images/jukebox.gif';
else if ($h >= 9 && $h < 10) $img = 'images/jukebox.gif';
else if ($h >= 10 && $h < 11) $img = 'images/jukebox.gif';
else if ($h >= 11 && $h < 12) $img = 'images/jukebox.gif';
else if ($h >= 12 && $h < 13) $img = 'images/jukebox.gif';
else if ($h >= 13 && $h < 14) $img = 'images/jukebox.gif';
else if ($h >= 14 && $h < 15) $img = 'images/jukebox.gif';
else if ($h >= 15 && $h < 16) $img = 'images/jukebox.gif';
else if ($h >= 16 && $h < 17) $img = 'images/jukebox.gif';
else if ($h >= 17 && $h < 18) $img = 'images/jukebox.gif';
else if ($h >= 18 && $h < 19) $img = 'images/jukebox.gif';
else if ($h >= 19 && $h < 20) $img = 'images/jukebox.gif';
else if ($h >= 20 && $h < 21) $img = 'images/jukebox.gif';
else if ($h >= 21 && $h < 22) $img = 'images/jukebox.gif';
else if ($h >= 22 && $h < 23) $img = 'images/jukebox.gif';
else if ($h >= 23 && $h < 24) $img = 'images/jukebox.gif';
}


// WEDNESDAY SCHEDULE
if ($d == 3){
if($h >= 0 && $h < 8) $img = 'images/jukebox.gif';
else if ($h >= 8 && $h < 9) $img = 'images/jukebox.gif';
else if ($h >= 9 && $h < 10) $img = 'images/jukebox.gif';
else if ($h >= 10 && $h < 11) $img = 'images/jukebox.gif';
else if ($h >= 11 && $h < 12) $img = 'images/jukebox.gif';
else if ($h >= 12 && $h < 13) $img = 'images/jukebox.gif';
else if ($h >= 13 && $h < 14) $img = 'images/jukebox.gif';
else if ($h >= 14 && $h < 15) $img = 'images/jukebox.gif';
else if ($h >= 15 && $h < 16) $img = 'images/jukebox.gif';
else if ($h >= 16 && $h < 17) $img = 'images/jukebox.gif';
else if ($h >= 17 && $h < 18) $img = 'images/jukebox.gif';
else if ($h >= 18 && $h < 19) $img = 'images/jukebox.gif';
else if ($h >= 19 && $h < 20) $img = 'images/jukebox.gif';
else if ($h >= 20 && $h < 21) $img = 'images/jukebox.gif';
else if ($h >= 21 && $h < 22) $img = 'images/jukebox.gif';
else if ($h >= 22 && $h < 23) $img = 'images/jukebox.gif';
else if ($h >= 23 && $h < 24) $img = 'images/jukebox.gif';
}




// THURSDAY SCHEDULE
if ($d == 4){
if($h >= 0 && $h < 8) $img = 'images/jukebox.gif';
else if ($h >= 8 && $h < 9) $img = 'images/jukebox.gif';
else if ($h >= 9 && $h < 10) $img = 'images/jukebox.gif';
else if ($h >= 10 && $h < 11) $img = 'images/jukebox.gif';
else if ($h >= 11 && $h < 12) $img = 'images/jukebox.gif';
else if ($h >= 12 && $h < 13) $img = 'images/jukebox.gif';
else if ($h >= 13 && $h < 14) $img = 'images/jukebox.gif';
else if ($h >= 14 && $h < 15) $img = 'images/jukebox.gif';
else if ($h >= 15 && $h < 16) $img = 'images/jukebox.gif';
else if ($h >= 16 && $h < 17) $img = 'images/jukebox.gif';
else if ($h >= 17 && $h < 18) $img = 'images/jukebox.gif';
else if ($h >= 18 && $h < 19) $img = 'images/jukebox.gif';
else if ($h >= 19 && $h < 20) $img = 'images/jukebox.gif';
else if ($h >= 20 && $h < 21) $img = 'images/jukebox.gif';
else if ($h >= 21 && $h < 22) $img = 'images/jukebox.gif';
else if ($h >= 22 && $h < 23) $img = 'images/jukebox.gif';
else if ($h >= 23 && $h < 24) $img = 'images/jukebox.gif';
}




// FRIDAY SCHEDULE
if ($d == 5){
if($h >= 0 && $h < 8) $img = 'images/jukebox.gif';
else if ($h >= 8 && $h < 9) $img = 'images/jukebox.gif';
else if ($h >= 9 && $h < 10) $img = 'images/jukebox.gif';
else if ($h >= 10 && $h < 11) $img = 'images/jukebox.gif';
else if ($h >= 11 && $h < 12) $img = 'images/jukebox.gif';
else if ($h >= 12 && $h < 13) $img = 'images/jukebox.gif';
else if ($h >= 13 && $h < 14) $img = 'images/jukebox.gif';
else if ($h >= 14 && $h < 15) $img = 'images/jukebox.gif';
else if ($h >= 15 && $h < 16) $img = 'images/jukebox.gif';
else if ($h >= 16 && $h < 17) $img = 'images/jukebox.gif';
else if ($h >= 17 && $h < 18) $img = 'images/jukebox.gif';
else if ($h >= 18 && $h < 19) $img = 'images/strawbs.jpg';
else if ($h >= 19 && $h < 20) $img = 'images/strawbs.jpg';
else if ($h >= 20 && $h < 21) $img = 'images/jukebox.gif';
else if ($h >= 21 && $h < 22) $img = 'images/jukebox.gif';
else if ($h >= 22 && $h < 23) $img = 'images/jukebox.gif';
else if ($h >= 23 && $h < 24) $img = 'images/jukebox.gif';
}


// SATURDAY SCHEDULE
if ($d == 6){
if($h >= 20 && $h < 18) $img = 'http://urban-radio.co.uk/images/strawbs.jpg';
else if ($h >= 8 && $h < 9) $img = 'images/jukebox.gif';
else if ($h >= 9 && $h < 10) $img = 'images/jukebox.gif';
else if ($h >= 10 && $h < 11) $img = 'images/jukebox.gif';
else if ($h >= 11 && $h < 12) $img = 'images/jukebox.gif';
else if ($h >= 12 && $h < 13) $img = 'images/jukebox.gif';
else if ($h >= 13 && $h < 14) $img = 'images/jukebox.gif';
else if ($h >= 14 && $h < 15) $img = 'images/jukebox.gif';
else if ($h >= 15 && $h < 16) $img = 'images/jukebox.gif';
else if ($h >= 16 && $h < 17) $img = 'images/jukebox.gif';
else if ($h >= 17 && $h < 18) $img = 'images/jukebox.gif';
else if ($h >= 18 && $h < 19) $img = 'images/strawbs.jpg';
else if ($h >= 18 && $h < 20) $img = 'http://urban-radio.co.uk/images/strawbs.jpg';
else if ($h >= 20 && $h < 21) $img = 'images/jukebox.gif';
else if ($h >= 21 && $h < 22) $img = 'images/jukebox.gif';
else if ($h >= 22 && $h < 23) $img = 'images/jukebox.gif';
else if ($h >= 23 && $h < 24) $img = 'images/jukebox.gif';
}


// SUNDAY SCHEDULE
if ($d == 0){
if($h >= 0 && $h < 8) $img = 'images/jukebox.gif';
else if ($h >= 8 && $h < 9) $img = 'images/jukebox.gif';
else if ($h >= 9 && $h < 10) $img = 'images/jukebox.gif';
else if ($h >= 10 && $h < 11) $img = 'images/jukebox.gif';
else if ($h >= 11 && $h < 12) $img = 'images/jukebox.gif';
else if ($h >= 12 && $h < 13) $img = 'images/jukebox.gif';
else if ($h >= 13 && $h < 14) $img = 'images/jukebox.gif';
else if ($h >= 14 && $h < 15) $img = 'images/jukebox.gif';
else if ($h >= 15 && $h < 16) $img = 'images/jukebox.gif';
else if ($h >= 16 && $h < 17) $img = 'images/jukebox.gif';
else if ($h >= 17 && $h < 18) $img = 'images/jukebox.gif';
else if ($h >= 18 && $h < 19) $img = 'images/strawbs.jpg';
else if ($h >= 19 && $h < 20) $img = 'images/strawbs.jpg';
else if ($h >= 20 && $h < 21) $img = 'images/jukebox.gif';
else if ($h >= 21 && $h < 22) $img = 'images/jukebox.gif';
else if ($h >= 22 && $h < 23) $img = 'images/jukebox.gif';
else if ($h >= 23 && $h < 24) $img = 'images/jukebox.gif';
}
?>


<html>
<meta http-equiv="Content-Language" content="en-us">
<body bgcolor="#000000">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="170" height="134" id="AutoNumber1" align="right">
<tr>
<td width="171" height="60" bordercolordark="#FF0000" background="#000000">
<p align="center">
<img src="<?php echo $img; ?>"height="100" width="100">
<p align="right">
</td>
</tr>
</table>
</div>
</body>
</html>

shoutcaststreaming
09-03-2017, 12:23 AM
hello i have a major complaint, no one is helping me out
with an air script that works on my site which shows what dj is on air at what times

so please could someone give me a decent script that works pleaseInstead of bitchin' and moanin' about people not helping you out, why don't you offer someone to help you for a small fee.

You catch more flies with honey than vinegar.

James
09-03-2017, 01:08 AM
I have offered three days of free help to you. I work as an IT consultant and developer as my day job, typically that would be charged at $800+ worth of dev/consulting time. You should be grateful that I have helped you this far.

I helped you last night up until midnight, after that I had to sleep (as I am in the Australian timezone, which differs from your timezone). I wake up this morning to this thread and three replies in other threads. This is very infuriating because you are requesting my help at nearly 4am. You need to learn to be patient mate.

In order to help you, I need you to help ME too.

1. "this script dont even work"
Why? What is it not doing? What results are you expecting? Are you seeing any error messages?
Unfortunately I cannot see whatever on your computer screen, so I need you to be as specific as possible.

2. You are using a different script as to what I was helping you with in a previous thread
Since I did not write this script, I cannot support it.

If you wish to donate to Broadcasting World for the hours of help we have given you, you can do so via PayPal: payment@broadcastingworld.com

I'll lock this thread. Please cease complaining for a free service.