Your IP : 3.140.185.250


Current Path : /var/www/www-root/data/webdav/webdav/webdav/www/monolith-realty.ru/
Upload File :
Current File : /var/www/www-root/data/webdav/webdav/webdav/www/monolith-realty.ru/scan.php

<?
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);



$dir=$_SERVER['DOCUMENT_ROOT'];
$path=$dir;


$mas=array();
$dat=mktime(0, 0, 0, 9, 1, 2024);
function get($dir){
	global $mas,$dat,$path;
	$file = scandir($dir);
	foreach ($file as $fil){
		if ($fil=='.' or $fil=='..') continue;
		//echo $dir.$fil."<br>";//exit;
		if (is_dir($dir.$fil)){			
			//echo $dir.$fil." - folder<br>";
			get($dir.$fil.'/');
		}
		else {
			if ($fil=='header.php'){
				//$e=filemtime($dir.$fil);
				//echo date('d-m-Y H:i',$e).": ".$dir.$fil."<br>\n";
				
				
				//echo $dir.$fil."<br>";//exit;
				//unlink($dir.$fil);
				//$rep=array('.','/');
				//$name=str_replace($rep,'_',$dir.'-'.$fil);
				//copy($dir.$fil,$_SERVER['DOCUMENT_ROOT'].'/backup/'.$name);
				
			}
			
			$e=filemtime($dir.$fil);
			if ($e>$dat) {
				if (strstr($dir.$fil,'cache')) continue;
				//file_put_contents($path.'/include/log.txt',date('d-m-Y H:i',$e).": ".$dir.$fil."\n", FILE_APPEND | LOCK_EX);
				echo date('d-m-Y H:i',$e).": ".$dir.$fil."<br>\n";
				//$mas[date('d-m-Y H:i',$e)][]=$dir.$fil;
			}
			/**/
		}
	}
}

get($dir.'/');
exit;
echo "<pre>";print_r($mas);exit;



$r=file_get_contents('AI-BOLIT-QUEUE-52fc17b68cce5eeeae5a807eff2b03f1-7049.txt');
$er=explode("\n",$r);




//echo exit;
$dat=mktime(0, 0, 0, 3, 4, 2023);
echo "<pre>";print_r($er);exit;
foreach ($er as $file){
	//echo $file;exit;
	$e=filemtime($file);
	
	echo $e." - ".$dat."<br>";//exit;
	if ($e>$dat){
		echo $file."<br>"; 
	}
	
	//echo "<pre>";print_r($e);exit;
}

exit;

?>