First commit of biketree to github!

This commit is contained in:
Jonathan Rosenbaum
2017-09-05 03:39:54 +00:00
commit 8ca61d45eb
175 changed files with 24173 additions and 0 deletions
+74
View File
@@ -0,0 +1,74 @@
<?php session_start(); ob_start(); ?>
<html>
<head>
</head>
<body>
<?php
include ("../settings.php");
include ("../language/$cfg_language");
include ("../classes/db_functions.php");
include ("../classes/security_functions.php");
$lang=new language();
$dbf=new db_functions($cfg_server,$cfg_username,$cfg_password,$cfg_database,$cfg_tableprefix,$cfg_theme,$lang);
$sec=new security_functions($dbf,'Sales Clerk',$lang);
if(!$sec->isLoggedIn())
{
header ("location: ../login.php");
exit();
}
if(isset($_GET['action']))
{
$action=$_GET['action'];
switch($action)
{
case $action=='all':
$sec->closeSale();
break;
case $action=='item':
$pos=$_GET['pos'];
for($k=0;$k<count($_SESSION['items_in_sale']);$k++)
{
if($k==$pos)
{
unset($_SESSION['items_in_sale'][$k]);
$_SESSION['items_in_sale']=array_values($_SESSION['items_in_sale']);
if(count($_SESSION['items_in_sale'])==0)
{
$sec->closeSale();
}
break;
}
}
break;
case $action=='item_search':
unset($_SESSION['current_item_search']);
break;
case $action=='customer_search':
unset($_SESSION['current_customer_search']);
break;
}
}
header ("location: sale_ui.php");
$dbf->closeDBlink();
ob_end_flush();
?>
</body>
</html>