Пример #1
0
        servercommandbox($phpvars);
        if ($groupmode) {
            currently_downloading($phpvars);
            queued_downloading($phpvars, $page);
            currently_processing($phpvars, $postlogpage);
            queued_processing($phpvars);
            logging($phpvars, $logpage);
        } elseif ($historymode) {
            history($phpvars, $page);
        } else {
            filelist($phpvars, $page);
            if ($FileModeLog) {
                logging($phpvars, $logpage);
            }
        }
        download_rate($phpvars);
        upload_box($phpvars);
    } else {
        if ($wantstart) {
            start_server();
        } else {
            connect_error($phpvars);
        }
        servercommandbox($phpvars);
    }
}
?>

</BODY>
</HTML>
Пример #2
0
function listing_page ($message = null) {
	global $self, $directory, $sort, $reverse;
	html_header();
	$list = getlist($directory);
	if (array_key_exists('sort', $_GET)) $sort = $_GET['sort']; else $sort = 'filename';
	if (array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') $reverse = true; else $reverse = false;
	sortlist($list, $sort, $reverse);
	echo '
<form enctype="multipart/form-data" action="' . $self . '?tool=Files" method="post">
<table id="main">
';
	directory_choice();
	if (!empty($message)) {
		spacer();
		echo $message;
	}
	if (@is_writable($directory)) {
		upload_box();
		create_box();
	} else {
		spacer();
	}
	if ($list) {
		listing($list);
	} else {
		echo error('not_readable', $directory);
	}
	echo '</table>
</form>
';
	html_footer();
}
Пример #3
0
function listing_page($message = null)
{
    global $self, $directory, $sort, $reverse;
    html_header();
    $list = getlist($directory);
    if (array_key_exists('sort', $_GET)) {
        $sort = $_GET['sort'];
    } else {
        $sort = 'filename';
    }
    if (array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') {
        $reverse = true;
    } else {
        $reverse = false;
    }
    $list = sortlist($list, $sort, $reverse);
    echo '<h1 style="margin-bottom: 0">Web File Browser (webadmin.php)</h1>

<form enctype="multipart/form-data" action="' . $self . '" method="post">

<table id="main">
';
    directory_choice();
    if (!empty($message)) {
        spacer();
        echo $message;
    }
    if (@is_writable($directory)) {
        upload_box();
        create_box();
    } else {
        spacer();
    }
    if ($list) {
        listing($list);
    } else {
        echo error('not_readable', $directory);
    }
    echo '</table>

</form>

';
    html_footer();
}