Exemplo n.º 1
0
function delete_log($msg = "", $error_msg = "")
{
    global $SERVER_PATH, $SignIN;
    $R = DIN_ALL($_REQUEST);
    if (($_SESSION['UserID'] <= 0 || $_SESSION['UserID'] == "") && $_SESSION['http_agent'] != $_SERVER['HTTP_USER_AGENT']) {
        header("Location:" . $SignIN);
        die;
    } else {
        if (intval($R['LogID']) > 0) {
            $sqlQuery = "DELETE FROM vcc_notes WHERE `NoteID`={$R['LogID']};";
            $LogID = eqi($sqlQuery, $rs);
            if ((int) $LogID > 0) {
                view_logs();
            }
        }
    }
}
Exemplo n.º 2
0
 switch ($action) {
     // In case we want to log out
     case 'logout':
         user_logout();
         break;
         // The only case when we could possibly arrive here with a session created
         // and a "login" action is when the user refreshed the page. In that case,
         // we redraw the page with the last information saved in the session variables.
     // The only case when we could possibly arrive here with a session created
     // and a "login" action is when the user refreshed the page. In that case,
     // we redraw the page with the last information saved in the session variables.
     case 'login':
         redraw_page();
         break;
     case 'view_logs':
         view_logs();
         break;
     case 'edit_config':
         edit_config();
         break;
     case 'edit_admins':
         edit_admins();
         break;
     case 'add_admin':
         add_admin();
         break;
     case 'remove_admin':
         remove_admin();
         break;
     case 'push_changes':
         push_changes();