Visa ett inlägg
Oläst 2016-02-03, 15:11 #4
yakuzaemmes avatar
yakuzaemme yakuzaemme är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Jun 2012
Inlägg: 773
yakuzaemme yakuzaemme är inte uppkopplad
Mycket flitig postare
yakuzaemmes avatar
 
Reg.datum: Jun 2012
Inlägg: 773
Kod:
<?php
$now = time();
$editLog = '';
$dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('.'));
foreach($dir as $file => $obj)
{
	if(!is_file($file)) continue;
	if ($now - filemtime($file) >= 3600 * 24) $editLog .= $file.'\n';
}
if(strlen($editLog))
{
	mail("[email protected]", "Hacked lol", $editLog, 'From: [email protected]\r\nReply-To: [email protected]\r\nX-Mailer: PHP/'.phpversion());
}
?>
yakuzaemme är inte uppkopplad   Svara med citatSvara med citat