Beispiel #1
0
function BuildContentPage()
{
    global $groupmode, $phpvars, $page, $logpage, $postlogpage, $GroupModeRefreshInterval, $FileModeRefreshInterval, $FileModeLog, $historymode, $hasusermenu;
    if ($groupmode) {
        currently_downloading($phpvars);
        queued_downloading($phpvars, $page);
        currently_processing($phpvars, $postlogpage);
        queued_processing($phpvars);
        historymain($phpvars);
        logging($phpvars, $logpage);
    } elseif ($historymode) {
        history($phpvars, $page);
    } else {
        filelist($phpvars, $page);
        if ($FileModeLog) {
            echo '<br>';
            logging($phpvars, $logpage);
        }
    }
    serverinfobox($phpvars);
    servercommandbox($phpvars);
    if ($hasusermenu) {
        usermenu($phpvars);
    }
    echo '<div style="display: none" id="updateinterval">' . ($groupmode ? $GroupModeRefreshInterval : $FileModeRefreshInterval) . '</div>';
    echo '<div style="display: none" id="downloadlimit">' . $phpvars['status']['DownloadLimit'] / 1024 . '</div>';
    if (isset($_COOKIE['upload_status'])) {
        echo '<div style="display: none" id="uploadstatushidden">' . $_COOKIE['upload_status'] . '</div>';
    }
    if (isset($_COOKIE['newzbin_status'])) {
        echo '<div style="display: none" id="newzbinstatushidden">' . $_COOKIE['newzbin_status'] . '</div>';
    }
}
Beispiel #2
0
<BODY >

<?php 
if ($wantstop) {
    stop_server();
    serverinfobox($phpvars);
    servercommandbox($phpvars);
} else {
    if ($connected) {
        serverinfobox($phpvars);
        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 {