$logging;
if(isset($_SESSION['logging'])){
$logging = $_SESSION['logging']; // logging checked
}else{
$logging = 0;
}
////logging
function _log($str) {
global $logging;
// log to the output
if(substr($str,1,5)=='-----'){
$log_str = "{$str}\r\n"; // no date if seperator
}else{
$log_str = date('m.d.Y').": {$str}\r\n";
}
// log to file if on in UI
if ($logging==1){
if (($fp = fopen('F62-Update.log', 'a+')) !== false) {
fputs($fp, $log_str);
fclose($fp);
}
}
}
?>ERROR: No id passed in URL