0) { $count = sprintf('%0'.$min_digits.'s',$count); } /* Print out Javascript code and exit */ $len = strlen($count); for ($i=0;$i<$len;$i++) { echo 'document.write(\'\');'; } exit(); } else { die('ERROR: Invalid log file!('.$logfile.')' ); } /* This functin handles input parameters making sure nothing dangerous is passed in */ function input($in) { $out = htmlentities(stripslashes($in)); $out = str_replace(array('/','\\'), '', $out); return $out; } ?>