Example #1
0
function cleartemptrans()
{
    $db = tDataConnect();
    if ($_SESSION["msg"] == 2) {
        $_SESSION["msg"] = 99;
        sql_query("update localtemptrans set trans_status = 'X'", $db);
    }
    if ($_SESSION["DBMS"] == "mssql") {
        sql_query("exec clearTempTables", $db);
    } else {
        moveTempData();
        truncateTempTables();
    }
    sql_close($db);
    testremote();
    loadglobalvalues();
    $_SESSION["transno"] = $_SESSION["transno"] + 1;
    setglobalvalue("TransNo", $_SESSION["transno"]);
    if ($_SESSION["TaxExempt"] != 0) {
        $_SESSION["TaxExempt"] = 0;
        setglobalvalue("TaxExempt", 0);
    }
    memberReset();
    transReset();
    printReset();
    getsubtotals();
    delete_file(remote_oux());
    delete_file(local_inx());
    return 1;
}
Example #2
0
function initiate_session()
{
    system_init();
    memberReset();
    transReset();
    printReset();
    getsubtotals();
    loadglobalvalues();
    loaddata();
}
Example #3
0
        setglobalvalue("LoggedIn", 1);
        loadglobalvalues();
        $_SESSION["training"] = 1;
        loginscreen();
    } else {
        $_SESSION["auth_fail"] = 1;
        header("Location:/login.php");
    }
} else {
    if (get_user_info(user_pass($password)) == $global_values["CashierNo"]) {
        loadglobalvalues();
        testremote();
        loginscreen();
    } else {
        if (user_pass_priv($password)) {
            loadglobalvalues();
            testremote();
            loginscreen();
        } else {
            $_SESSION["auth_fail"] = 1;
            header("Location:/login.php");
        }
        sql_close($db_a);
    }
}
getsubtotals();
$_SESSION["datetimestamp"] = strftime("%Y-%m-%m/%d/%y %T", time());
if ($_SESSION["LastID"] != 0 && $_SESSION["memberID"] != "0" and $_SESSION["memberID"]) {
    $_SESSION["unlock"] = 1;
    memberID($_SESSION["memberID"]);
}