ok pero como haria una funcion de esto?:
Código PHP:
Ver original//UserCake check debug mode and maintenance is true or false
if ($debug_mode === false) {
$myFile = $logfiles_dir."usercake-$today.log";
$fh = fopen($myFile, "a"); $configa = "config";
$pageuser = takeURL();
$ipuser = $_SERVER["REMOTE_ADDR"];
$datelog = date("D M j G:i:s T Y"); $stringData = "userCake Notice: [ $ipuser ] --> [ Anonymous ] --> [$datelog] --> [ $pageuser ] \n";
}