$path = "./common/data/"; $lpath = "./common/logs/"; ?>
|
|||||||||||||||||||||||||
$filename = $path . "lev0menu.tpl"; if ( !$fp = fopen($filename, "r") ) { echo "File Open Error"; } else { fpassthru($fp); } // Get Enviroment require_once "common/env.inc"; $lf = $lpath . "top.log"; if ( !is_file($lf) ) { touch($lf); } // log update $fp = fopen($lf, "a"); flock($fp, LOCK_EX); fputs($fp, $env_record); flock($fp, LOCK_UN); fclose($fp); ?> |
|
||||||||||||||||||||||||