Hi All,
Im having problem with a i rater script i have im trying to install "cjstats" the traffic script into it but just keep coming up blank 🙁
The following section is called by irater to load my referers (wich are static at the moment) what i need to do is get the cjstats include (top20.html) statement worked ito it somehow.
Would be really grateful for any help suggestions and please ask if ive left something out?
heres the code:
<?php
global $HTTP_POST_VARS,$HTTP_GET_VARS,$HTTP_SESSION_VARS;
global $_SESSION;
if ($HTTP_POST_VARS!="")
$_POST=$HTTP_POST_VARS;
if ($HTTP_GET_VARS!="")
$_GET=$HTTP_GET_VARS;
if ($HTTP_SESSION_VARS!="")
$_SESSION=$HTTP_SESSION_VARS;
$file = $cache_path . "/right.htm";
// if(@filemtime($file) < mktime(date("H")-1, abs(date("i")), abs(date("s")), date("m"), date("d"), date("Y"))){
$output = <<<FO
<br><table cellpadding="4" cellspacing="0" border="0" width="100%" align="center" height="630">
<tr valign="top"><td align="center" bgcolor="#CCFF99">
Referers
blah blah blah
</td></tr>
</table>
FO;
$output = eregi_replace("\n", "", $output);
$output = eregi_replace("\t", "", $output);
if($fp = fopen($file, 'w')) fwrite($fp, $output);
fclose($fp);
// } else {
/ if($fp = fopen($file, 'r')){
$output = fread($fp, filesize ($file));
fclose ($fp);
}
/
// }
$final_output .= final_output($output);
?>
The above code (you probably know this) once called from irater displays the table section in a set place on the browser so as i said i just need to work the include("traffic/top20.html"); form cjstats into it somehow.
once again thanks
Bounce