Example #1
0
	</tr>
</table>
<?php 
$stats_menu[$GLOBALS['language']['menu']['statistics']] = $_SERVER['PHP_SELF'] . '?section=statistics';
$stats_menu[$GLOBALS['language']['menu']['toplists']] = $_SERVER['PHP_SELF'] . '?section=toplist';
$stats_menu[$GLOBALS['language']['menu']['section']] = $_SERVER['PHP_SELF'] . '?section=section';
$stats_menu["<spacer_1>"] = '';
$stats_menu[$GLOBALS['language']['menu']['transfer_log']] = $_SERVER['PHP_SELF'] . '?section=logs';
$stats_menu[$GLOBALS['language']['menu']['log_files']] = $_SERVER['PHP_SELF'] . '?section=on_file';
$stats_menu["<spacer_2>"] = '';
$stats_menu[$GLOBALS['language']['transfers']['write_logs']] = $_SERVER['PHP_SELF'] . '?section=write_logs';
$stats_menu[$GLOBALS['language']['transfers']['delete_logs']] = $_SERVER['PHP_SELF'] . '?section=delete_logs';
doMenu($stats_menu);
echo '<br><br>';
if (isset($_GET["section"]) and $_GET["section"] == "statistics") {
    make_traffic_time($GLOBALS['language']['transfers']['traffic_stats'], "total");
}
if (isset($_GET["section"]) and $_GET["section"] == "toplist") {
    make_toplist_bycommand($GLOBALS['language']['transfers']['downloaders'], "RETR");
    echo '<br><br>';
    make_toplist_bycommand($GLOBALS['language']['transfers']['uploaders'], "STOR");
}
if (isset($_GET["section"]) and $_GET["section"] == "section") {
    make_traffic_section($GLOBALS['language']['transfers']['down_sections'], "total", "RETR");
    echo '<br><br>';
    make_traffic_section($GLOBALS['language']['transfers']['up_sections'], "total", "STOR");
}
if (isset($_GET["section"]) and $_GET["section"] == "logs") {
    $logskip = 0;
    if (isset($_GET["logskip"]) && $_GET["logskip"] != 0) {
        $logskip = $_GET["logskip"];
Example #2
0
if ($config_ext['quota']['enabled'] == 1) {
    $user_menu[$GLOBALS['language']['userv']['quota']] = $_SERVER['PHP_SELF'] . '?viewID=' . $_GET["viewID"] . '&amp;section=quota';
}
if ($config_ext['vhosts']['enabled'] == 1) {
    $user_menu[$GLOBALS['language']['userv']['vhuser']] = $_SERVER['PHP_SELF'] . '?viewID=' . $_GET["viewID"] . '&amp;section=vhuser';
}
$user_menu["<spacer>"] = '';
$user_menu[$GLOBALS['language']['userv']['deleteuser']] = $_SERVER['PHP_SELF'] . '?viewID=' . $_GET["viewID"] . '&amp;section=delete';
doMenu($user_menu);
unset($user_menu);
echo '<br><br>';
if (isset($_GET["section"]) and $_GET["section"] == "alter") {
    include 'user_view_alter.php';
}
if (isset($_GET["section"]) and $_GET["section"] == "traffic") {
    make_traffic_time($GLOBALS['language']['userv']['generated_traffic'], $res_data["userid"]);
}
if (isset($_GET["section"]) and $_GET["section"] == "section") {
    make_traffic_section($GLOBALS['language']['userv']['down_sections'], $res_data["userid"], "RETR");
    echo '<br><br>';
    make_traffic_section($GLOBALS['language']['userv']['up_sections'], $res_data["userid"], "STOR");
}
if (isset($_GET["section"]) and $_GET["section"] == "transferlog") {
    $logskip = 0;
    if (isset($_GET["logskip"]) && $_GET["logskip"] != 0) {
        $logskip = $_GET["logskip"];
    }
    make_logviewer($logskip, $_SERVER['PHP_SELF'] . '?viewID=' . $_GET["viewID"] . '&amp;section=transferlog&amp;', $res_data["userid"]);
}
if (isset($_GET["section"]) and $_GET["section"] == "password") {
    include 'user_view_password.php';