Copyright header error

Ask questions, request features, or just complement us about our software and services.
Post Reply
User avatar
Phlegethon SCR
Posts: 5
Joined: Fri Jun 28, 2002 6:38 pm
Location: Seattle
Contact:

Copyright header error

Post by Phlegethon SCR »

Hi -

I've been using radiotoolbox for a while now (great app!) and I've noticed that every so often RTB closes with the error "Copyright header missing from script!"...

I checked catcher.php and includes.php and they both have copyright headers (see below). So where else do I need one?

------------------------------------------------------------------
catcher.php:

Copyright RadioToolBox.com another great application from Jay Krivanek<br>
<?php
include("config.php");

if (!get_magic_quotes_gpc())
{
$i = 0;
$j = 0;
while($server[$i][$j])
{
while($server[$i][$j] || $server[$i][$j] != "")
{
$server[$i][$j] = ereg_replace("'", "\\'", $server[$i][$j]);
$j++;
}
$j = 0;
$i++;
}
$tit = ereg_replace("'", "\\'", $tit);
$l = ereg_replace("'", "\\'", $l);
$ml = ereg_replace("'", "\\'", $ml);
$ti = ereg_replace("'", "\\'", $ti);
}

if ($pass != $rtb_pass || $user != $rtb_user)
{
echo "BADPASSWORD";
exit;
}
@include($includes_path."includes.php");
$fp = fopen($includes_path."includes.php", "w");
fwrite($fp, "<!-- Song stats Generated by Radio ToolBox written by Jay Krivanek -->\r\n<?php");
$i = 0;
while($server[$i][0])
{
fwrite($fp, '
$server['.$i.'][\'ip\'] = \''.$server[$i][0].'\';
$server['.$i.'][\'desc\'] = \''.$server[$i][6].'\';
$server['.$i.'][\'listeners\'] = \''.$server[$i][2].'\';
$server['.$i.'][\'max_listeners\'] = \''.$server[$i][3].'\';
$server['.$i.'][\'bitrate\'] = \''.$server[$i][4].'\';
$server['.$i.'][\'type\'] = \''.$server[$i][1].'\';
$server['.$i.'][\'current_song\'] = \''.$server[$i][7].'\';
$server['.$i.'][\'status\'] = \''.$server[$i][5].'\';
');
$i++;
}
fwrite($fp, '
$current_song = \''.$tit.'\';
$listeners = \''.$l.'\';
$max_listeners = \''.$ml.'\';
$touch_interval = \''.$ti.'\';
');
$i = 0;
while ($i < $song_history && ($lastsong[$i-1] || $i == 0))
{
if ($current_song == $tit)
{
$song = $lastsong[$i];
}
else if ($i == 0)
{
$song = $current_song;
}
else
{
$song = $lastsong[$i-1];
}
if ($song != '')
{
fwrite ($fp, '$lastsong['.$i.'] = \''.$song.'\';
');
}
$i++;
}
fwrite($fp, "?>");
fclose($fp);
?>

-----------------------------------------------------------------------
includes.php:

<!-- Song stats Generated by Radio ToolBox written by Jay Krivanek -->
<?php
$server[0]['ip'] = 'corpseradio.merseine.nu:8000';
$server[0]['desc'] = 'Somnambulant Corpse Radio';
$server[0]['listeners'] = '3';
$server[0]['max_listeners'] = '5';
$server[0]['bitrate'] = '40';
$server[0]['type'] = 'SHOUTcast';
$server[0]['current_song'] = 'Robin Storey & Nigel Ayers - Praising Dead Chieftains - Oedipus Brain Foil - Perfidious Albion';
$server[0]['status'] = 'Online';

$current_song = 'Robin Storey & Nigel Ayers - Praising Dead Chieftains - Oedipus Brain Foil - Perfidious Albion';
$listeners = '3';
$max_listeners = '5';
$touch_interval = '30';
?>

---------------------------------------------------------------------

thanks --
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

get beta 2
- Jay
red98zq8
Posts: 9
Joined: Sat Jan 11, 2003 9:31 pm

Post by red98zq8 »

beta 2? i'm having the same problems... where's beta 2?!
Post Reply