Пример #1
0
} elseif ('/coffee' == substr($uri, 0, 7) && isset($_GET['uid'])) {
    coffee_order_action($_GET['uid']);
} elseif ('/soda' == substr($uri, 0, 5) && isset($_GET['uid'])) {
    soda_order_action($_GET['uid']);
} elseif ('/help' == $uri) {
    help_action();
} elseif ('/kfet' == $uri) {
    kfet_action();
} elseif ('/about' == $uri) {
    about_action();
} elseif ('/dashboards' == $uri) {
    dashboards_action();
} elseif ('/dashboard.json' == $uri) {
    dashboard_json_action();
} elseif ('/stats.json' == substr($uri, 0, 11) && isset($_GET['uid'])) {
    stats_json_action($_GET['uid']);
} elseif ('/stats.tsv' == substr($uri, 0, 10) && isset($_GET['uid'])) {
    stats_tsv_action($_GET['uid']);
} elseif ('/coffees.tsv' == substr($uri, 0, 12) && isset($_GET['months'])) {
    coffees_tsv_action($_GET['months']);
} elseif ('/dashboard' == substr($uri, 0, 10)) {
    dashboard_action();
} elseif ('/energy.json' == substr($uri, 0, 12) && isset($_GET['power']) && isset($_GET['energy'])) {
    energy_json_action($_GET['power'], $_GET['energy']);
} elseif ('/grid.json' == $uri) {
    grid_json_action();
} elseif ('/grid' == $uri) {
    grid_action();
} else {
    login_action();
}
Пример #2
0
$sAction = get_param("FormAction");
$sForm = get_param("FormName");
//===============================
// login Show begin
//===============================
// Perform the form's action
//-------------------------------
// Initialize error variables
//-------------------------------
$sloginErr = "";
//-------------------------------
// Select the FormAction
//-------------------------------
switch ($sForm) {
    case "login":
        login_action($sAction);
        break;
}
//===============================
//===============================
// Display page
//===============================
// HTML Page layout
//-------------------------------
?>
<html>
<head>
<title>Archivo - Manejo de prestamos y devoluciones</title>
<meta name="GENERATOR" content="YesSoftware CodeCharge v.2.0.5 build 11/30/2001">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">