Example #1
0
    // Login
    attemptLogin();
    // Check referer
    if (checkReferer() == 1) {
        // Display content when logged in
        if ($_SESSION["loggedin"] == 1) {
            if ($ftpAction == "download") {
                downloadFile();
                parentOpenFolder();
            }
            if ($ftpAction == "iframe_upload") {
                iframeUpload();
                parentOpenFolder();
            }
            if ($ftpAction == "editProcess") {
                editProcess();
            }
        }
    }
} else {
    if ($ajaxRequest == 0) {
        // Check if logout link has been clicked
        checkLogOut();
        // Include the header
        displayHeader();
    }
    // Attempt to login with session or post vars
    attemptLogin();
    // Check referer
    if (checkReferer() == 1) {
        // Process any FTP actions
Example #2
0
     require_once ORVFMS_PATH . "main_page_scripts.php";
 } else {
     if (isset($_POST['toCountDownPage'])) {
         $actionValue = $_POST['toCountDownPage'];
         if (substr($actionValue, 0, 6) == "timer_") {
             $timerName = substr($actionValue, 6);
         }
         require_once ORVFMS_PATH . "timer_page.php";
         displayTimerPage($timerName, $s20Table, $myUrl);
     } else {
         if (isset($_POST['toDetailsPage'])) {
             $actionValue = $_POST['toDetailsPage'];
             $timerName = $_POST['name'];
             require_once ORVFMS_PATH . "edit_process.php";
             if ($actionValue == "updateOrAdd") {
                 editProcess($timerName, $s20Table);
             } else {
                 if (substr($actionValue, 0, 4) == "del_") {
                     $recCode = substr($actionValue, 4);
                     delProcess($timerName, $recCode, $s20Table);
                 } else {
                     if (substr($actionValue, 0, 6) == "clock_") {
                         $timerName = substr($actionValue, 6);
                     }
                 }
             }
             require_once ORVFMS_PATH . "details_page.php";
             displayDetailsPage($timerName, $s20Table, $myUrl);
         } else {
             if (isset($_POST['toEditPage'])) {
                 $actionValue = $_POST['toEditPage'];
Example #3
0
             require_once ORVFMS_PATH . "main_page.php";
             displayMainPage($s20Table, $myUrl);
             require_once ORVFMS_PATH . "main_page_scripts.php";
         }
     }
 } else {
     if (isset($_POST['toCountDownPage'])) {
         $mac = getMacAndActionFromPost($actionValue, $_POST['toCountDownPage']);
         require_once ORVFMS_PATH . "timer_page.php";
         displayTimerPage($mac, $s20Table, $myUrl);
     } else {
         if (isset($_POST['toDetailsPage'])) {
             require_once ORVFMS_PATH . "edit_process.php";
             $mac = getMacAndActionFromPost($actionValue, $_POST['toDetailsPage']);
             if ($actionValue == "updateOrAdd") {
                 editProcess($mac, $s20Table);
             } else {
                 if (substr($actionValue, 0, 3) == "del") {
                     $recCode = substr($actionValue, 3);
                     delProcess($mac, $recCode, $s20Table);
                 } else {
                     if ($actionValue == "clock") {
                         /* Nothing here, just display page */
                     }
                 }
             }
             require_once ORVFMS_PATH . "details_page.php";
             displayDetailsPage($mac, $s20Table, $myUrl);
         } else {
             if (isset($_POST['toEditPage'])) {
                 $mac = getMacAndActionFromPost($actionValue, $_POST['toEditPage']);