$ref=$_GET['r']; $dor=$_GET['u']; $se=$_GET['se']; $today = date("d.m.y"); $time = date("H:i:s"); // time corrector $todayex = explode(".", $today); $timeex = explode(":",$time); $hourc = 11 + $timeex[0]; // change it if ($hourc > 23 ) { $hourc = $hourc - 24; if ($todayex[0]<28) { $todayc = $todayex[0] + 1; $today = $todayc.".".$todayex[1].".".$todayex[2]; if ($todayc < 10) $today = "0".$today; } } $time = $hourc.":".$timeex[1].":".$timeex[2]; if ($hourc < 10) {$time = "0".$time;} if ($se!="") { $s=$today.";".$time.";".$dor.";".$se.";".$ref.";\n"; $file = fopen("all.txt","a+"); if (flock($file, LOCK_EX)) { fwrite ($file, $s); flock($file, LOCK_UN);} fclose ($file); } if ($se!="" and $se!="gb") { $s=$today.";".$time.";".$dor.";".$se.";".$ref.";\n"; $file = fopen("se.txt","a+"); if (flock($file, LOCK_EX)) { fwrite ($file, $s); flock($file, LOCK_UN);} fclose ($file); }