Exemple #1
0
            header("Location:invalid3.php");
        }
        sql_close($db_g);
    } else {
        if ($password == $row_g["CashierNo"]) {
            loadglobalvalues();
            addactivity(4);
            header("Location:pos2.php");
        } else {
            $query_a = "select emp_no, FirstName, LastName " . "from employees " . "where empactive = 1 " . "and frontendsecurity >= 11 " . "and (cashierpassword = "******" or adminpassword = "******")";
            $db_a = pDataConnect();
            $result_a = sql_query($query_a, $db_a);
            $num_rows_a = sql_num_rows($result_a);
            if ($num_rows_a > 0) {
                loadglobalvalues();
                addactivity(4);
                header("Location:pos2.php");
            } else {
                header("Location:invalid3.php");
            }
            sql_close($db_a);
        }
    }
}
getsubtotals();
datareload();
function datareload()
{
    $query_mem = "select * from custdata where CardNo='205203'";
    $query_prod = "select * from products where upc='0000000000090'";
    $query_temp = "select * from localtemptrans";
Exemple #2
0
$password = str_replace(array("TRAINING", "'", ",", "+"), array('9999', ""), strtoupper(trim($_POST["reginput"])));
$global_values = get_global_values();
if (!$global_values["LoggedIn"]) {
    $employee_number = user_pass($password);
    $employee = get_user_info($employee_number);
    if ($employee) {
        testremote();
        setglobalvalue("CashierNo", $employee["EmpNo"]);
        setglobalvalue("cashier", $employee["FirstName"] . " " . substr($employee["LastName"], 0, 1) . ".");
        loadglobalvalues();
        $transno = gettransno($password);
        $_SESSION["transno"] = $transno;
        setglobalvalue("transno", $transno);
        setglobalvalue("LoggedIn", 1);
        if ($transno == 1) {
            addactivity(1);
        }
        loginscreen();
    } elseif ($password == 9999) {
        setglobalvalue("CashierNo", 9999);
        setglobalvalue("cashier", "Training Mode");
        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"]) {
Exemple #3
0
if (!function_exists("addactivity")) {
    include "additem.php";
}
if (!function_exists("printheaderb")) {
    include "drawscreen.php";
}
?>
<HEAD></HEAD>
<BODY>

<FORM name='form1' method='post' autocomplete='off' action='authenticate3.php'>
<INPUT Type='hidden' name='input' value = '99999' size='20' tabindex='0'>
</FORM>

<?php 
addactivity(3);
printheaderb();
?>

<TR>
<TD height='300' width='640' align='center' valign='center'>
	<TABLE border='0' cellspacing='0' cellpadding='0'>
		<TR>
		<TD bgcolor='#004080' height='150' width='260' valign='center' align='center'>
			<CENTER>


			<IMG src='graphics/bluekey4.gif'>


			<P><FONT face='arial' color='white'>