Ejemplo n.º 1
0
            echo "</form>\n";
        }
    }
    page_footer("db");
}
if (isset($_GET["status"])) {
    $_GET["variables"] = $_GET["status"];
}
if (isset($_GET["import"])) {
    $_GET["sql"] = $_GET["import"];
}
if (!(DB != "" ? $connection->select_db(DB) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]) || isset($_GET["privileges"]) || isset($_GET["user"]) || isset($_GET["variables"]) || $_GET["script"] == "connect" || $_GET["script"] == "kill")) {
    if (DB != "" || $_GET["refresh"]) {
        restart_session();
        set_session("dbs", null);
    }
    connect_error();
    // separate function to catch SQLite error
    exit;
}
if (support("scheme") && DB != "" && $_GET["ns"] !== "") {
    if (!isset($_GET["ns"])) {
        redirect(preg_replace('~ns=[^&]*&~', '', ME) . "ns=" . get_schema());
    }
    if (!set_schema($_GET["ns"])) {
        header("HTTP/1.1 404 Not Found");
        page_header(lang('Schema') . ": " . h($_GET["ns"]), lang('Invalid schema.'), true);
        page_footer("ns");
        exit;
    }
}
Ejemplo n.º 2
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>
Ejemplo n.º 3
0
function BuildErrorPage()
{
    global $wantstart, $phpvars, $hasusermenu;
    if ($wantstart) {
        start_server();
    } else {
        connect_error($phpvars);
    }
    servercommandbox($phpvars);
    if ($hasusermenu) {
        usermenu($phpvars);
    }
    echo '<div style="display: none" id="serverinfohidden"><center>Server information</center><br></div>';
    echo '<div style="display: none" id="downloadlimit">0</div>';
    echo '<div style="display: none" id="updateinterval">0</div>';
}
Ejemplo n.º 4
0
<?php

$con = new mysqli('localhost', 'arduinotest', 'arduino', 'testfyp');
if ($con->connect_errno) {
    echo connect_error();
}