conn,$cfg_theme,$cfg_currency_symbol,$lang); if(!$sec->isLoggedIn()) { header ("location: ../login.php"); exit(); } $today = date("Y-m-d"); $result = mysql_query("SELECT * FROM books"); if(!mysql_num_rows(mysql_query("SELECT * FROM books WHERE date='$today' AND event='close'")) && mysql_num_rows(mysql_query("SELECT * FROM books WHERE date='$today' AND event='open'"))){ header("location: ../home.php"); exit(); } $body.=""; $tablename = $cfg_tableprefix.'users'; $userLoginName = $dbf->idToField($tablename,'username',$_SESSION['session_user_id']); $result = mysql_query("SELECT id,first_name,last_name FROM customers ORDER BY last_name ASC"); $error = (int)$_GET[error]; $errorMsg = ""; switch($error){ case 1: $errorMsg="ERROR: if you are not $userLoginName please switch to your own administrator account"; break; case 2: $errorMsg="ERROR: Not a valid ammount: [$_GET[count]]"; break; } if($errorMsg != ""){ $body.="
".$errorMsg."
"; } $body.="

Open The Shop...

Before any members are singed in or any transactions are processed please count all cash, cheques, and coupons in the coin box
     Opening Count: $
     Counted by $userLoginName 

"; if($cfg_mechAutoSignin != "no"){ if($cfg_mechAutoSignin == "option"){ $body .= "Sign in Mechanic:
"; }else{ $body .= ""; } $body .= "    Mechanic on duty "; } $body .= "


"; echo "$body"; $dbf->closeDBlink(); ?>