You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(35) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: <ope...@li...> - 2002-08-14 17:43:40
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv26501 Removed Files: config.php Log Message: File was removed because it's not supose to exist before install.php runs. So, it doesn't belong to the CVS tree. --- config.php DELETED --- |
From: <ope...@li...> - 2002-08-04 16:09:33
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv15204 Modified Files: config.php Log Message: Blanked file so that install routine could complete. Should be empty, but writeable. Index: config.php =================================================================== RCS file: /cvsroot/openposs/Server/config.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** config.php 25 Jun 2002 03:18:53 -0000 1.5 --- config.php 4 Aug 2002 16:09:30 -0000 1.6 *************** *** 1,34 **** - <? - # - # Filename: config.php - # Author : Brian A Cheeseman - # Date : April 6, 2002 - # Purpose : To provide initial configuration information prior to getting the - # database connection up and running. - # - ############################################################################### - # Last Update | Who | Changes Made # - #-------------+-----+---------------------------------------------------------# - # Apr 6, 2002 | BAC | Initial Creation # - ############################################################################### - # Who Key - # BAC - Brian A Cheeseman - # - - $DBConfig['Server']="localhost"; - $DBConfig['UserName']="root"; - $DBConfig['Password']=""; - $DBConfig['DBName']="openPOS"; - $DBConfig['DBType']="mysql"; - $DBConfig['CurrentVersion']="DEV 0.1"; - - $DBFields['desc'] = "Description"; - $DBFields['ordc'] = "OrderCode"; - $DBFields['scnc'] = "ScanCode"; - $DBFields['pric'] = "Price"; - $DBFields['stkl'] = "StockLevel"; - $DBFields['minl'] = "MinStockLevel"; - $DBFields['stor'] = "StorageCap"; - $DBFields['shel'] = "ShelfCap"; - - ?> --- 0 ---- |
From: <ope...@li...> - 2002-08-04 16:06:24
|
Update of /cvsroot/openposs/Server/includes In directory usw-pr-cvs1:/tmp/cvs-serv14567/includes Modified Files: database.php functions.php Added Files: install.php Log Message: Cleaned up logic. Compatable with Output_buffer=off and register_globals=Off. Added install routine. --- NEW FILE: install.php --- <?php $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".Configuration (`Parameter` varchar(255) NOT NULL default '',`Value` varchar(255) NOT NULL default '');"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".Stock_list (sku int(6) unsigned zerofill NOT NULL auto_increment,Product varchar(100) NOT NULL default '',Description text,catagory int(6) NOT NULL default '999999',OrderCode varchar(50) NOT NULL default '',ScanCode varchar(50) NOT NULL default '',Cost decimal(7,2) unsigned NOT NULL default '0.00',Price decimal(7,2) NOT NULL default '0.00',StockLevel int(11) NOT NULL default '0',MinStockLevel int(11) NOT NULL default '0',StorageCap int(11) NOT NULL default '0',ShelfCap int(11) NOT NULL default '0',PRIMARY KEY (sku));"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".SystemUsers (uid int auto_increment PRIMARY KEY,UserName varchar(255) NOT NULL default '',FullName varchar(255) NOT NULL default '',Password varchar(255) NOT NULL default '',Active tinyint NOT NULL default 0,SuperUser tinyint NOT NULL default 0);"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".SystemGroups (gid int auto_increment PRIMARY KEY,GroupName varchar(255) NOT NULL default '',Active tinyint NOT NULL default 1);"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".modules (name varchar(25) NOT NULL default '',desciption varchar(100) default NULL,version varchar(15) NOT NULL default '',status enum('A','I') NOT NULL default 'I',menu enum('Y','N') NOT NULL default 'N',UNIQUE KEY name (name)) TYPE=MyISAM;"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".UserToGroup (uid int NOT NULL PRIMARY KEY,gid int NOT NULL,KEY idx_gid (gid));"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".UserRights (uid int PRIMARY KEY,Access int);"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".GroupRights (gid int PRIMARY KEY,ACCESS int);"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".AuditLog (aid int auto_increment PRIMARY KEY,uid int,DT datetime, Action varchar(255),KEY idx_AuditLog_uid (uid));"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".Transactions (tid int auto_increment PRIMARY KEY,uid int,oid int,term_ip varchar(15),DT datetime,KEY idx_Transaction_uid (uid));"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".OrderItems (iid int PRIMARY KEY,sid int);"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".Orders (oid int auto_increment PRIMARY KEY,iid int,cid int);"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".Customers (cid int auto_increment PRIMARY KEY,Surname varchar(255),GivenNames varchar(255),PostalAddress varchar(255),PostalSuburb varchar(255),PostalState char(5),PostalZip char(10),PostalCountry varchar(255),BillingAddress varchar(255),BillingSuburb varchar(255),BillingState char(5),BillingZip char(10),BillingCountry varchar(255),HomePhone varchar(25) NULL,WorkPhone varchar(25) NULL,OtherPhone varchar(25) NULL,KEY idx_Customer_Surname (Surname(10)));"; $installDBtables[] = "CREATE TABLE ".$_POST["dbname"].".inv_catagories (id int(6) unsigned NOT NULL auto_increment,name varchar(50) NOT NULL default '',description varchar(150) default NULL,parent int(6) unsigned NOT NULL default '0',active enum('A','I') NOT NULL default 'A',PRIMARY KEY (id));"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".modules VALUES ('Transaction', 'The transaction module', '0.1.0', 'A', 'Y');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".modules VALUES ('Inventory', 'The inventory management module', '0.1.0', 'A', 'Y');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".modules VALUES ('Quote', NULL, '0.1.0', 'A', 'Y');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".modules VALUES ('Scheduling', NULL, '0.1.0', 'A', 'Y');"; //$installConfig[] = "INSERT INTO ".$_POST["dbname"].".SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ('Admin', 'openPOS Admin User', '7c524cbe562633af1c281279e048dc5b', 1, '127');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".Configuration (`Parameter`, `Value`) VALUES ('DBVersion', 'DEV 0.1');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".Configuration (`Parameter`, `Value`) VALUES ('modUserManage', 'On');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".Configuration (`Parameter`, `Value`) VALUES ('modUserLogin', 'On');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".Configuration (`Parameter`, `Value`) VALUES ('modUserSecurity', 'On');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".Configuration (`Parameter`, `Value`) VALUES ('modUserTypes', 'On');"; $installConfig[] = "INSERT INTO ".$_POST["dbname"].".Configuration (`Parameter`, `Value`) VALUES ('systemInstalled', 'No');"; /****************************************************************************** * Function: Install_Form_Screen() * * -------------------------------------------------------------------------- * * This function is used to produce a HTML web page that is used as the * * install page for the openPOS System. * * * * Returned Values * * HTML Webpage. * * * * Input Values * * None. * ******************************************************************************/ function Install_Form_Screen($title) { global $DBTypesADODB; $Output = Theme_Open_Page(_OPENPOSINSTALLTITLE,"NO")."<DIV ALIGN=\"CENTER\">"; $Output .= "<FORM ACTION=\"$PHP_SELF\" METHOD=\"POST\">"; $Output .= Theme_Menu_Open("500",_OPENPOSINSTALLFORM)."<CENTER>".Theme_Open_Table("100%"); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "Server Name:".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"server\">"; $Output .= Theme_Close_Data_Cell().Theme_Close_Row(); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "Username".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"username\">"; $Output .= Theme_Close_Data_Cell().Theme_Close_Row(); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "Password".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"PASSWORD\" NAME=\"password\">".Theme_Close_Data_Cell(); $Output .= Theme_Close_Row().Theme_Open_Row(); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "Database Name".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"dbname\">"; $Output .= Theme_Close_Data_Cell().Theme_Close_Row(); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "Database Type".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<SELECT NAME=\"dbtype\" SIZE=1>"; $Output .= $DBTypesADODB; $Output .= "</SELECT>\n"; $Output .= Theme_Close_Data_Cell().Theme_Close_Row().Theme_Close_Table(); $Output .= "<hr width=\"85%\">"; $Output .= Theme_Open_Table("100%"); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "System Admin Username:".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"adminUsername\">"; $Output .= Theme_Close_Data_Cell().Theme_Close_Row(); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "System Admin Password:".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"PASSWORD\" NAME=\"adminPassword\">"; $Output .= Theme_Close_Data_Cell().Theme_Close_Row(); $Output .= Theme_Open_Row().Theme_Open_Data_Cell("Right","35%"); $Output .= "Admin Full Name:".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"adminFullName\">"; $Output .= Theme_Close_Data_Cell().Theme_Close_Row(); $Output .= Theme_Open_Data_Cell("CENTER","","2"); $Output .= "<BUTTON NAME=\"submit\" VALUE=\"submit\" TYPE=\"submit\">Login</BUTTON> "; $Output .= "<BUTTON NAME=\"cancel\" TITLE=\"Cancel\" TYPE=\"submit\">Cancel</BUTTON>".Theme_Close_Data_Cell(); $Output .= Theme_Close_Row(); $Output .= Theme_Close_Table().Theme_Menu_Close()."</FORM></DIV>".Theme_Close_Page(); return $Output; } //****************Config File Template************************** $configTemplate = "<?php # # Filename: config.php # Date : $currentDate # Purpose : To provide initial configuration information prior to getting the # database connection up and running. # ############################################################################### # Last Update | Who | Changes Made # #-------------+-----+---------------------------------------------------------# # Apr 6, 2002 | BAC | Initial file design # ############################################################################### # Who Key # BAC - Brian A Cheeseman # \$DBConfig['Server']=\"".$_POST["server"]."\"; \$DBConfig['UserName']=\"".$_POST["username"]."\"; \$DBConfig['Password']=\"".$_POST["password"]."\"; \$DBConfig['DBName']=\"".$_POST["dbname"]."\"; \$DBConfig['DBType']=\"".$_POST["dbtype"]."\"; \$DBConfig['CurrentVersion']=\"DEV 0.1\"; \$DBFields['desc'] = \"Description\"; \$DBFields['ordc'] = \"OrderCode\"; \$DBFields['scnc'] = \"ScanCode\"; \$DBFields['pric'] = \"Price\"; \$DBFields['stkl'] = \"StockLevel\"; \$DBFields['minl'] = \"MinStockLevel\"; \$DBFields['stor'] = \"StorageCap\"; \$DBFields['shel'] = \"ShelfCap\"; ?>"; ?> Index: database.php =================================================================== RCS file: /cvsroot/openposs/Server/includes/database.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** database.php 14 Jul 2002 19:54:09 -0000 1.1 --- database.php 4 Aug 2002 16:06:21 -0000 1.2 *************** *** 14,19 **** # BAC - Brian A Cheeseman # ! ! include_once('config.php'); // Include the database connection information. define('ADODB_DIR', 'adodb'); // define the location of the adodb software. include_once('adodb/adodb.inc.php'); // Include the adodb database code. --- 14,33 ---- # BAC - Brian A Cheeseman # ! if(file_exists("./config.php")) ! { ! include_once('config.php'); // Include the database connection information. ! } ! else ! { ! //Most likley, the install routine has not been completed. ! if($PHP_SELF != "/Server/install.php") ! { ! session_unset(); ! session_destroy(); ! $_SESSION["action"] = NULL; ! die("<center><h3>You must complete the <a href=\"./install.php\">install</a> routine before you can use the OpenPOS System. ! Please see the install documentation.<p> </h3></center>"); ! } ! } define('ADODB_DIR', 'adodb'); // define the location of the adodb software. include_once('adodb/adodb.inc.php'); // Include the adodb database code. *************** *** 49,53 **** // Create a Handle to the database. $DBHandle = $DBConn->Connect($DBServer, $DBUserName, $DBPassword, $DBName); ! if (!$DBHandle) { die("Failed to connect to $DBType://$DBUserName:$DBPassword@$DBServer/$DBName\n".$DBConn->ErrorMsg()); } --- 63,68 ---- // Create a Handle to the database. $DBHandle = $DBConn->Connect($DBServer, $DBUserName, $DBPassword, $DBName); ! if (!$DBHandle) ! { die("Failed to connect to $DBType://$DBUserName:$DBPassword@$DBServer/$DBName\n".$DBConn->ErrorMsg()); } *************** *** 73,86 **** //Check to see if the install routine has been completed ! if($SystemConfig["systemInstalled"] == "No") ! { ! //The install routine has not been run. Direct them to it. ! die("<center><h3>You must complete the install.php routine before you can use the OpenPOS System. ! Please see the install documentation.<p> Note: Since the OpenPOS System is still in the ! early stages of development, you will need to go into the table <i>configuration</i> of the ! <i>openPOS</i> database and adjust the value of the field \"systemInstalled\" to \"Yes\". In ! the near future, we will have a working install script, but that may be the last item completed ! before release 0.1.0.</h3></center>"); ! } return true; } --- 88,92 ---- //Check to see if the install routine has been completed ! return true; } *************** *** 120,123 **** --- 126,130 ---- * $UserName, $Password * ******************************************************************************/ + //Perhaps this should be moved to an all purpose 'funcitons' file? cws function Validate_Password($UserName, $Password) *************** *** 128,131 **** --- 135,140 ---- $ADODB_FETCH_MODE = ADODB_FETCH_NUM; $result = $DBConn->Execute($sql); + //$rows = $result->NumRows(); + //echo "$rows <br>"; if ($result->NumRows() > 0) { *************** *** 155,159 **** { GLOBAL $DBConn; ! if ($result === false) die("failed"); while (!$result->EOF) { --- 164,171 ---- { GLOBAL $DBConn; ! if ($result === false) ! { ! return FALSE; ! } while (!$result->EOF) { *************** *** 163,167 **** return $data_array; } - - ?> --- 175,177 ---- Index: functions.php =================================================================== RCS file: /cvsroot/openposs/Server/includes/functions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions.php 14 Jul 2002 19:54:09 -0000 1.1 --- functions.php 4 Aug 2002 16:06:21 -0000 1.2 *************** *** 12,18 **** * None. * ******************************************************************************/ ! function DisplayMainMenu() { ! GLOBAL $HTTP_SESSION_VARS,$CONFIG_VARS; $Output = Theme_Menu_Open($CONFIG_VARS["MenuWidth"],_OPENPOSNAVTITLE); --- 12,19 ---- * None. * ******************************************************************************/ ! function DisplayMainMenu() ! { + GLOBAL $HTTP_SESSION_VARS,$CONFIG_VARS; $Output = Theme_Menu_Open($CONFIG_VARS["MenuWidth"],_OPENPOSNAVTITLE); *************** *** 127,131 **** function ProcessLoginRequest($UserName,$Password) { GLOBAL $HTTP_SESSION_VARS; ! $rights = Validate_Password($UserName, $Password); //echo "$rights"; if ($rights != FALSE) --- 128,132 ---- function ProcessLoginRequest($UserName,$Password) { GLOBAL $HTTP_SESSION_VARS; ! $rights = Validate_Password($UserName,$Password); //echo "$rights"; if ($rights != FALSE) *************** *** 141,145 **** //Not a valid login. figure out a way to pass an error message } - header("HTTP/1.0 303 See Other"); header("Location: ./"); --- 142,145 ---- *************** *** 167,177 **** header("HTTP/1.0 303 See Other"); header("Location: ./"); - } return; } /*End Functions *******************************************************************************/ - ?> --- 167,178 ---- header("HTTP/1.0 303 See Other"); header("Location: ./"); } return; } + + + /*End Functions *******************************************************************************/ ?> |
From: <ope...@li...> - 2002-08-04 16:06:23
|
Update of /cvsroot/openposs/Server/language/eng In directory usw-pr-cvs1:/tmp/cvs-serv14567/language/eng Modified Files: global.php Log Message: Cleaned up logic. Compatable with Output_buffer=off and register_globals=Off. Added install routine. Index: global.php =================================================================== RCS file: /cvsroot/openposs/Server/language/eng/global.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** global.php 9 Jul 2002 01:24:53 -0000 1.6 --- global.php 4 Aug 2002 16:06:21 -0000 1.7 *************** *** 19,27 **** define(_OPENPOSMAINTITLE,"openPOS System"); define(_OPENPOSERRORTITLE,"Error Notification"); ! define(_OPENPOSNAVTITLE, "Navigation Menu"); define(_OPENPOSLOGINTITLE, "Login"); define(_OPENPOSLOGINMESSAGE, "<center><h2>You must <A href=\"http://90.33.216.64/Server/?action=login\">login</a> to access this page!"); - define(_OPENPOSINSTALLDBCONNECT, "<h3><font color=\"#006400\">Connection to Database on host '".$DBConfig['Server']."' succesful.</font></h3>"); define(_OPENPOSNORIGHTS, "<center><h2>You have insufficent rights to access this page. Please see your system admin for more information</h2></center>"); ?> --- 19,52 ---- define(_OPENPOSMAINTITLE,"openPOS System"); define(_OPENPOSERRORTITLE,"Error Notification"); ! define(_OPENPOSNAVTITLE, "<b>Navigation Menu</b>"); define(_OPENPOSLOGINTITLE, "Login"); define(_OPENPOSLOGINMESSAGE, "<center><h2>You must <A href=\"http://90.33.216.64/Server/?action=login\">login</a> to access this page!"); define(_OPENPOSNORIGHTS, "<center><h2>You have insufficent rights to access this page. Please see your system admin for more information</h2></center>"); + + //Install page defines. + define(_OPENPOSINSTALLGOOD,"<font color=\"#006400\">succesful</font>"); + define(_OPENPOSINSTALLBAD,"<font color=\"#640000\">failed</font>"); + define(_OPENPOSINSTALLTITLE,"OpenPOS System Installation"); + define(_OPENPOSINSTALLFORM,"System Installation Information"); + define(_OPENPOSINSTALLDBCONNECT, "Connection to Database on host '".$_POST['server']."': "); + define(_OPENPOSINSTALLDBEXISTS, "Database '".$_POST['dbname']."' existance: "); + define(_OPENPOSINSTALLCREATEDB, "Database '".$_POST['dbname']."' creation: "); + define(_OPENPOSINSTALLADDTABLES, "Database table creation: "); + define(_OPENPOSINSTALLPRIMETABLES, "Setup initial system configuration: "); + define(_OPENPOSINSTALLCONFIGFILE, "Creating configuration file: "); + define(_OPENPOSINSTALLADMIN, "Adding administrator: "); + define(_OPENPOSINSTALLFLAGSET, "Finalizing system configuration: "); + define(_OPENPOSINSTALLWELCOME, "<br><h2>Congradulations!</h2> + You now have a fresh install the OpenPOS System. Thank you for using our software. + <p> + Your initial system login is:<br> + Username: ".$_POST['adminUsername']."<br> + Password: ".$_POST['adminPassword']."<p> + Using this login, you will be able to manage your Point of Sale system for your + company. But first, you must <a href=\"./index.php?action=login\">login</a>. + <p> + For more information on getting started, please view our extensive online <a href=\"./docs/index.php\">documentation</a> + <p> + Happy selling!"); ?> |
From: <ope...@li...> - 2002-08-04 16:06:23
|
Update of /cvsroot/openposs/Server/theme/Default In directory usw-pr-cvs1:/tmp/cvs-serv14567/theme/Default Modified Files: theme.css theme.php Log Message: Cleaned up logic. Compatable with Output_buffer=off and register_globals=Off. Added install routine. Index: theme.css =================================================================== RCS file: /cvsroot/openposs/Server/theme/Default/theme.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.css 9 Jul 2002 01:24:09 -0000 1.3 --- theme.css 4 Aug 2002 16:06:21 -0000 1.4 *************** *** 84,88 **** A:link{ background-color: transparent; ! color: #000000; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; --- 84,88 ---- A:link{ background-color: transparent; ! color: #B695B9; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; *************** *** 92,96 **** A:visited { background-color: transparent; ! color: #000000; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; --- 92,96 ---- A:visited { background-color: transparent; ! color: #B695B9; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; *************** *** 108,112 **** A:active { background-color: transparent; ! color: #000000; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; --- 108,112 ---- A:active { background-color: transparent; ! color: #B695B9; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; Index: theme.php =================================================================== RCS file: /cvsroot/openposs/Server/theme/Default/theme.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** theme.php 9 Jul 2002 01:24:09 -0000 1.4 --- theme.php 4 Aug 2002 16:06:21 -0000 1.5 *************** *** 16,22 **** GLOBAL $CONFIG_VARS, $HTTP_SESSION_VARS; ! $Output = "<HTML><HEAD><TITLE>".$Title." :: $Title</TITLE>\n"; ! $Output .= "<LINK href=\"theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.css\" rel=\"stylesheet\" type=\"text/css\"></head>\n ! <BODY><table width=\"100%\" border=0><tr><TD width=\"100%\" align=\"center\"><H1>openPOS $Title</H1></td></tr></table>\n"; if($menu != "NO") { --- 16,22 ---- GLOBAL $CONFIG_VARS, $HTTP_SESSION_VARS; ! $Output = "<HTML><HEAD><TITLE>".$Title."</TITLE>\n"; ! $Output .= "<LINK href=\"theme/".$_SESSION["OutputTheme"]."/theme.css\" rel=\"stylesheet\" type=\"text/css\"></head>\n ! <BODY><table width=\"100%\" border=0><tr><TD width=\"100%\" align=\"center\"><H1>$Title</H1></td></tr></table>\n"; if($menu != "NO") { *************** *** 316,320 **** $Output = Theme_Open_Page(_OPENPOSLOGINTITLE,"NO")."<DIV ALIGN=\"CENTER\">"; $Output .= "<FORM ACTION=\"./\" METHOD=\"GET\">"; ! $Output .= Theme_Menu_Open("300"," ")."<CENTER>".Theme_Open_Table().Theme_Open_Row().Theme_Open_Data_Cell("Right"); $Output .= "Username".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"username\">".Theme_Close_Data_Cell(); --- 316,320 ---- $Output = Theme_Open_Page(_OPENPOSLOGINTITLE,"NO")."<DIV ALIGN=\"CENTER\">"; $Output .= "<FORM ACTION=\"./\" METHOD=\"GET\">"; ! $Output .= Theme_Menu_Open("300","")."<CENTER>".Theme_Open_Table().Theme_Open_Row().Theme_Open_Data_Cell("Right"); $Output .= "Username".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"username\">".Theme_Close_Data_Cell(); |
From: <ope...@li...> - 2002-08-04 16:03:12
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv13681 Modified Files: install.php module.php index.php Log Message: Completed install routine. The server dir must be writable so that the routine can write the config.php file. After that is done, make the Server dir non writable. Index: install.php =================================================================== RCS file: /cvsroot/openposs/Server/install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** install.php 27 Jun 2002 05:30:23 -0000 1.1 --- install.php 4 Aug 2002 16:03:08 -0000 1.2 *************** *** 1,36 **** ! <?php ! /****************************************************************************** ! * * ! * File Name: /install.php * ! * * ! * Created : Jun, 25 2001 * ! * * ! * Purpose : Provide the installation interface to the openPOS Server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Jun 25, 2002 | Initial Coding. * ! ******************************************************************************/ ! ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! include_once("database.php"); ! ! ! if (!DBInit()) { ! die("Unable to connect to the database."); ! } ! $OutputLang=$HTTP_GET_VARS["lang"]; ! $Action=$HTTP_GET_VARS["action"]; ! if (!isset($Action)) { ! $Action="none"; ! } ! if (!isset($OutputLang)) { ! $OutputLang="eng"; ! } ! ?> --- 1,315 ---- ! <?php ! session_start(); ! /****************************************************************************** ! * * ! * File Name: /install.php * ! * * ! * Created : Jun, 25 2001 * ! * * ! * Purpose : Provide the installation interface to the openPOS Server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Jun 25, 2002 | Initial Coding. * ! ******************************************************************************/ ! $currentDate = date("F j, Y"); ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! ! include_once("./includes/database.php"); ! include_once("./includes/functions.php"); ! include_once("./includes/vars.inc"); ! include "./includes/install.php"; ! ! //Check to see if system has already been installed: ! if(file_exists("./config.php")) ! { ! $DBConn = ADONewConnection($DBConfig['DBType']); ! $DBHandle = $DBConn->Connect($DBConfig['Server'], $DBConfig['UserName'], $DBConfig['Password'],$DBConfig['DBName']); ! if ($DBHandle) ! { ! $query = "SELECT Value FROM Configuration WHERE Parameter='systemInstalled'"; ! $result = $DBConn->Execute("$query"); ! $data[] = $result->fields; ! if($data[0]["Value"] == "Yes") ! { ! die("I'm already installed?!?!?!"); ! } ! } ! } ! ! if (!isset($_SESSION["OutputLang"])) { ! $_SESSION["OutputLang"] = "eng"; ! } ! if (!isset($_SESSION["OutputTheme"])) { ! $_SESSION["OutputTheme"] = "Default"; ! } ! $themeFile = "theme/".$_SESSION["OutputTheme"]."/theme.php"; ! include_once ($themeFile); ! $langFile = "language/".$_SESSION["OutputLang"]."/global.php"; ! include_once ($langFile); ! ! if($_SESSION["action"]=="submitted") ! { ! //Process Data ! $HTMLOutput = Theme_Open_Page(_OPENPOSINSTALLTITLE,"NO"); ! $HTMLOutput .= "<table width=\"50%\" border=0>"; ! ! //DB Connection ! $DBConn = ADONewConnection($_POST["dbtype"]); ! $DBHandle = $DBConn->Connect($_POST["server"], $_POST["username"], $_POST["password"]); ! if (!$DBHandle) ! { ! $test_result = _OPENPOSINSTALLBAD; ! $stop = TRUE; ! } ! else ! { ! $test_result = _OPENPOSINSTALLGOOD; ! DBClose(); ! } ! ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLDBCONNECT."</td><td>$test_result</td></tr>"; ! ! if($stop == TRUE) ! { ! ! $HTMLOutput .= "</table> A fatal error has occured. Please correct the above indicted error, and proceed again."; ! $HTMLOutput .= Theme_Close_Page(); ! $_SESSION["action"] = "none"; ! die($HTMLOutput); ! } ! $results = NULL; ! //Now, check for the existince of the database ! //$DBConn = ADONewConnection($_POST["dbtype"]); ! $DBHandle = $DBConn->Connect($_POST["server"], $_POST["username"], $_POST["password"], $_POST["dbname"]); ! if (!$DBHandle) ! { ! //db does not exists ! $test_result = _OPENPOSINSTALLBAD; ! $noDB = TRUE; ! } ! else ! { ! $test_result = _OPENPOSINSTALLGOOD; ! } ! ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLDBEXISTS."</td><td>$test_result</td></tr>"; ! $results = NULL; ! //if db does not exist, create it! ! if($noDB) ! { ! $DBHandle = $DBConn->Connect($_POST["server"], $_POST["username"], $_POST["password"]); ! $query = "CREATE DATABASE ".$_POST["dbname"]; ! $results = $DBConn->Execute($query); ! if(!$results) ! { ! //could not create db ! $test_result = _OPENPOSINSTALLBAD; ! $stop = TRUE; ! } ! else ! { ! //created db ! $test_result = _OPENPOSINSTALLGOOD; ! DBClose(); ! } ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLCREATEDB."</td><td>$test_result</td></tr>"; ! ! if($stop == TRUE) ! { ! $HTMLOutput .= "</table> A fatal error has occured. Please correct the above indicted error, and proceed again. See the install documentation for more information on common failures"; ! $HTMLOutput .= Theme_Close_Page(); ! $_SESSION["action"] = "none"; ! die($HTMLOutput); ! } ! } ! ! $results = NULL; ! $failure = 0; ! $DBHandle = $DBConn->Connect($_POST["server"], $_POST["username"], $_POST["password"], $_POST["dbname"]); ! ! foreach($installDBtables as $temp) ! { ! $results = NULL; ! $results = $DBConn->Execute($temp); ! ! if(!$results) ! { ! //could not create TABLE ! $failure++; ! } ! ! } ! if($failure != 0) ! { ! //could not create TABLES ! $test_result = _OPENPOSINSTALLBAD; ! $stop = TRUE; ! } ! else ! { ! //created table ! $test_result = _OPENPOSINSTALLGOOD; ! } ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLADDTABLES."</td><td>$test_result</td></tr>"; ! if($stop == TRUE) ! { ! ! $HTMLOutput .= "</table><p>A fatal error has occured. Please correct the above indicted error, and proceed again."; ! $HTMLOutput .= Theme_Close_Page(); ! $_SESSION["action"] = "none"; ! die($HTMLOutput); ! } ! ! //Now set the inital system configuration. ! $results = NULL; ! $failure = 0; ! foreach($installConfig as $temp) ! { ! $results = NULL; ! $results = $DBConn->Execute($temp); ! if(!$results) ! { ! //could not create TABLE ! $failure++; ! } ! } ! if($failure != 0) ! { ! //could not prime TABLES ! $test_result = _OPENPOSINSTALLBAD; ! $stop = TRUE; ! } ! else ! { ! //primed talbes ! $test_result = _OPENPOSINSTALLGOOD; ! } ! ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLPRIMETABLES."</td><td>$test_result</td></tr>"; ! ! if($stop == TRUE) ! { ! ! $HTMLOutput .= "</table><p>A fatal error has occured. Please correct the above indicted error, and proceed again."; ! $HTMLOutput .= Theme_Close_Page(); ! $_SESSION["action"] = "none"; ! die($HTMLOutput); ! } ! ! //Now write the config file: ! ! $fp = fopen("./config.php","w"); ! $result = fwrite($fp,$configTemplate); ! if($result == -1) ! { ! //could not config file ! $test_result = _OPENPOSINSTALLBAD; ! $stop = TRUE; ! } ! else ! { ! //config file written successfully ! $test_result = _OPENPOSINSTALLGOOD; ! } ! ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLCONFIGFILE."</td><td>$test_result</td></tr>"; ! ! if($stop == TRUE) ! { ! ! $HTMLOutput .= "</table><p>A fatal error has occured. Please correct the above indicted error, and proceed again."; ! $HTMLOutput .= Theme_Close_Page(); ! $_SESSION["action"] = "none"; ! die($HTMLOutput); ! } ! ! //Now set the systemInstalled flag to Yes: ! $query = "UPDATE Configuration SET Value='Yes' WHERE Parameter='systemInstalled'"; ! $results = NULL; ! $results = $DBConn->Execute($query); ! if(!$results) ! { ! //could not set flag ! $test_result = _OPENPOSINSTALLBAD; ! $stop = TRUE; ! } ! else ! { ! //config flag set successfully ! $test_result = _OPENPOSINSTALLGOOD; ! } ! ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLFLAGSET."</td><td>$test_result</td></tr>"; ! ! if($stop == TRUE) ! { ! ! $HTMLOutput .= "</table><p>A fatal error has occured. Please correct the above indicted error, and proceed again."; ! $HTMLOutput .= Theme_Close_Page(); ! $_SESSION["action"] = "none"; ! die($HTMLOutput); ! } ! ! //Now create the Admin user in the db ! $query = "INSERT INTO SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ('".$_POST["adminUsername"]."', '".$_POST["adminFullName"]."', md5('".$_POST["adminPassword"]."'), 1, '127');"; ! $results = NULL; ! $results = $DBConn->Execute($query); ! if(!$results) ! { ! //could not set flag ! $test_result = _OPENPOSINSTALLBAD; ! $stop = TRUE; ! } ! else ! { ! //config flag set successfully ! $test_result = _OPENPOSINSTALLGOOD; ! } ! ! $HTMLOutput .= "<tr><TD>"._OPENPOSINSTALLADMIN."</td><td>$test_result</td></tr>"; ! ! if($stop == TRUE) ! { ! ! $HTMLOutput .= "</table><p>A fatal error has occured. Please correct the above indicted error, and proceed again."; ! $HTMLOutput .= Theme_Close_Page(); ! $_SESSION["action"] = "none"; ! die($HTMLOutput); ! } ! ! $HTMLOutput .= "</table>"; ! ! $HTMLOutput .= _OPENPOSINSTALLWELCOME; ! ! ! ! $HTMLOutput .= Theme_Close_Page(); ! ! echo $HTMLOutput; ! ! if (!DBClose()) ! { ! die("Unable to disconnect from the database."); ! } ! $_SESSION["action"] = "none"; ! } ! else ! { ! //display form for server, username, password, dbname, dbtype. ! //echo Theme_Open_Page(_OPENPOSINSTALLTITLE,"NO"); ! echo Install_Form_Screen("Database Configuration Information"); ! $action = "submitted"; ! session_register("action"); ! ! } ! ! ! ! ?> Index: module.php =================================================================== RCS file: /cvsroot/openposs/Server/module.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** module.php 9 Jul 2002 01:23:30 -0000 1.1 --- module.php 4 Aug 2002 16:03:09 -0000 1.2 *************** *** 92,101 **** } ! $HTMLOutput = Theme_Open_Page(_OPENPOSMAINTITLE); echo $HTMLOutput; ! include "./module/".$HTTP_GET_VARS["module"]."/module.php"; $HTMLOutput = Theme_Close_Page(); --- 92,102 ---- } ! $pageTitle = _OPENPOSMAINTITLE." :: ".$_GET["module"]; ! $HTMLOutput = Theme_Open_Page($pageTitle); echo $HTMLOutput; ! include "./module/".$_GET["module"]."/module.php"; $HTMLOutput = Theme_Close_Page(); Index: index.php =================================================================== RCS file: /cvsroot/openposs/Server/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 9 Jul 2002 01:25:32 -0000 1.8 --- index.php 4 Aug 2002 16:03:09 -0000 1.9 *************** *** 1,4 **** <?php ! /****************************************************************************** * * --- 1,4 ---- <?php ! session_start(); /****************************************************************************** * * *************** *** 22,27 **** * Begin Session * ******************************************************************************/ - session_start(); - if(isset($HTTP_GET_VARS["action"])) { --- 22,25 ---- *************** *** 36,43 **** include_once("./includes/functions.php"); - - global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; if (!DBInit()) { --- 34,39 ---- include_once("./includes/functions.php"); global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password,$notInstalled; if (!DBInit()) { *************** *** 70,74 **** } - $themeFile = "theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.php"; include_once ($themeFile); --- 66,69 ---- *************** *** 76,80 **** include_once ($langFile); - switch ($HTTP_SESSION_VARS["action"]) { --- 71,74 ---- *************** *** 87,91 **** $Password=$HTTP_GET_VARS["password"]; $HTTP_SESSION_VARS["action"] = "none"; ! ProcessLoginRequest($UserName,$Password); break; case "logout": --- 81,85 ---- $Password=$HTTP_GET_VARS["password"]; $HTTP_SESSION_VARS["action"] = "none"; ! ProcessLoginRequest($HTTP_GET_VARS["username"],$HTTP_GET_VARS["password"]); break; case "logout": *************** *** 96,104 **** $HTMLOutput = Theme_Open_Page(_OPENPOSMAINTITLE,"YES"); $HTMLOutput .= Theme_Close_Page(); - break; case "admin": echo Theme_Open_Page(_OPENPOSADMINTITLE); ! if($HTTP_SESSION_VARS["openPOSAuthRights"] != "User") { switch($HTTP_GET_VARS["admin"]) --- 90,97 ---- $HTMLOutput = Theme_Open_Page(_OPENPOSMAINTITLE,"YES"); $HTMLOutput .= Theme_Close_Page(); break; case "admin": echo Theme_Open_Page(_OPENPOSADMINTITLE); ! if($HTTP_SESSION_VARS["openPOSAuthRights"] == "127") { switch($HTTP_GET_VARS["admin"]) |
From: <ope...@li...> - 2002-08-01 18:38:18
|
Update of /cvsroot/openposs/Server/docs In directory usw-pr-cvs1:/tmp/cvs-serv29929 Added Files: faq.tex Log Message: Switched to generated HTML format; nothing new, just a new setup --- NEW FILE: faq.tex --- \documentclass{article} \usepackage{html} \begin{titlepage} Open Point Of Sale System (OpenPOSS) FAQ \end{titlepage} \begin{document} \section*{Preface} \addcontentsline{toc}{section}{Preface} This FAQ, like OpenPOSS, is a work in progress. It will be updated rather frequently and will (hopefully) represent the current state of OpenPOSS\@. The list of questions will be changed and your question may very well not be on the list. Do not, however, fret --- \htmladdnormallink{our site}{http://openposs.sourceforge.net} can point you to any number of helpful developers, mailing list archives, and gurus on mountains --- all of whom you may consult. \section[About]{About OpenPOSS} \subsection{What is a Point of Sale (POS) System?} Put simply, the Open POS System (OpenPOSS) is an Open Source, browser-based point of sale system for traditional small businesses. \subsection{How is OpenPOSS different?} OpenPOSS is an Open Source project, and in the spirit of the Open Source movement, we aim to provide up-to-the-minute solutions, free of cost and without the burden of unnecessary bells and whistles. \subsection{What are the features that OpenPOSS supports?} The first release, 0.1.0, will have the basic features that are expected of any point of sale (POS) system. We will be adding other features and fine-tuning the existing features for the final release. The first version will offer features related to user management, transactions management, inventory management and customer tracking among other features. Standard features like on-line administration and system management panels will also be available in the initial release. Currently, OpenPOSS is pre-alpha and is not yet usable. \subsection{What is OpenPOSS not about?} FIXME: What aren't we about? \subsection{Will I my employees need any training to use this new software?} The entire system has been made so that users can start using it as soon as it is installed. The user-interface has been made as intuitive as possible. The user can also change the look-and-feel to suit her preferences and convenience. You can visit \htmladdnormallink{our site}{http://openposs.sourceforge.net} where you will find documentation on getting the most out of this software. \section[Installation]{Installing OpenPOSS} \subsection{What are the hardware requirements?} Currently, the system will run on any machine that has a web browser. The POS itself uses the web browser to interface with a "back-end" server. Thus a 486 running, for instance, X, twm, and Netscape would be a fully capable client. The server has more hardware requirements: a 200mhz machine with 128MB of RAM will easily satisfy the processing requirements of a small to medium setup (1-10 points of sale). The primary requirement of the back-end server is storage space for the database. \subsection{Do I have to install PHP or Java on my machine?} The actual POS machine needs only a browser. For the back-end server, a standard mid-level PC with Linux (or any OS of your choice) will suffice. The software to drive the OpenPOSS will reside on this computer and you will have to install PHP and Java support on this machine. \subsection{What are the minimum software requirements?} At the minimum, you need Linux (or any OS of your choice) installed. You will have to install PHP x.x.x and Java Virtual Machine (JVM) 1.3.x. The server software will install on any system that is capable of running a web server and PHP. Also, some type of database is required. Since the OpenPOS System employs the ADODB database class library, your database choices include: MySQL, Oracle, Microsoft SQL Server, Sybase, Sybase SQL Anywhere, Informix, PostgreSQL, FrontBase, Interbase (Firebird and Borland variants), FoxPro, Access, ADO and ODBC. \subsection{Do I have to upgrade my hardware?} In most cases you will not need to upgrade your hardware. A list of supported hardware will be available on \htmladdnormallink{our site}{http://openposs.sourceforge.net}. The site will also have a mailing list where you can post any questions related to the product. Our developers are more than happy to answer your queries regarding the system. \subsection{I have certain hardware. Will OpenPOSS work on it?} Probably. FIXME: What kind of answer is that? \section[Availability]{Getting OpenPOSS} \subsection{Where do I get the binaries?} You can get our binaries from \htmladdnormallink{our site}{http://openposs.sourceforge.net}. Currently we are at a pre-alpha version; please check back later for a stable public release. \section[Develoment and Contributions]{Contributing to OpenPOSS} \subsection{Where do I get the source from?} If you are a developer and would like to contribute, you can get our source from \htmladdnormallink{our development site}{http://sourceforge.net/projects/openposs/}. \section*{Credits} \addcontentsline{toc}{section}{Credits} This FAQ was written by \htmladdnormallink{Madhavan Menon (menon\_ma...@ya...)}{mailto:menon\_ma...@ya...}; it was formatted and edited by \htmladdnormallink{Michael Greenberg (mi...@yo...)}{mailto:mi...@yo...}. \emph{Last modified \today.} \end{document} |
Update of /cvsroot/openposs/Server/docs/faq In directory usw-pr-cvs1:/tmp/cvs-serv29929/faq Added Files: faq.css faq.html node1.html node2.html node3.html node4.html node5.html node6.html node7.html Removed Files: index.html Log Message: Switched to generated HTML format; nothing new, just a new setup --- NEW FILE: faq.css --- /* Century Schoolbook font is very similar to Computer Modern Math: cmmi */ .MATH { font-family: "Century Schoolbook", serif; } .MATH I { font-family: "Century Schoolbook", serif; font-shape: italic } .BOLDMATH { font-family: "Century Schoolbook", serif; font-weight: bold } /* implement both fixed-size and relative sizes */ SMALL.XTINY { font-size : xx-small } SMALL.TINY { font-size : x-small } SMALL.SCRIPTSIZE { font-size : smaller } SMALL.FOOTNOTESIZE { font-size : small } SMALL.SMALL { } BIG.LARGE { } BIG.XLARGE { font-size : large } BIG.XXLARGE { font-size : x-large } BIG.HUGE { font-size : larger } BIG.XHUGE { font-size : xx-large } /* heading styles */ H1 { } H2 { } H3 { } H4 { } H5 { } /* mathematics styles */ DIV.displaymath { } /* math displays */ TD.eqno { } /* equation-number cells */ /* document-specific styles come next */ --- NEW FILE: faq.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>faq</TITLE> <META NAME="description" CONTENT="faq"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="next" HREF="node1.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html8" HREF="node1.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up_g.png"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev_g.png"> <BR> <B> Next:</B> <A NAME="tex2html9" HREF="node1.html">Preface</A> <BR> <BR> <!--End of Navigation Panel--> <P> <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"></A> <UL> <LI><A NAME="tex2html10" HREF="node1.html">Preface</A> <LI><A NAME="tex2html11" HREF="node2.html">About</A> <UL> <LI><A NAME="tex2html12" HREF="node2.html#SECTION00021000000000000000">What is a Point of Sale (POS) System?</A> <LI><A NAME="tex2html13" HREF="node2.html#SECTION00022000000000000000">How is OpenPOSS different?</A> <LI><A NAME="tex2html14" HREF="node2.html#SECTION00023000000000000000">What are the features that OpenPOSS supports?</A> <LI><A NAME="tex2html15" HREF="node2.html#SECTION00024000000000000000">What is OpenPOSS not about?</A> <LI><A NAME="tex2html16" HREF="node2.html#SECTION00025000000000000000">Will I my employees need any training to use this new software?</A> </UL> <BR> <LI><A NAME="tex2html17" HREF="node3.html">Installation</A> <UL> <LI><A NAME="tex2html18" HREF="node3.html#SECTION00031000000000000000">What are the hardware requirements?</A> <LI><A NAME="tex2html19" HREF="node3.html#SECTION00032000000000000000">Do I have to install PHP or Java on my machine?</A> <LI><A NAME="tex2html20" HREF="node3.html#SECTION00033000000000000000">What are the minimum software requirements?</A> <LI><A NAME="tex2html21" HREF="node3.html#SECTION00034000000000000000">Do I have to upgrade my hardware?</A> <LI><A NAME="tex2html22" HREF="node3.html#SECTION00035000000000000000">I have certain hardware. Will OpenPOSS work on it?</A> </UL> <BR> <LI><A NAME="tex2html23" HREF="node4.html">Availability</A> <UL> <LI><A NAME="tex2html24" HREF="node4.html#SECTION00041000000000000000">Where do I get the binaries?</A> </UL> <BR> <LI><A NAME="tex2html25" HREF="node5.html">Develoment and Contributions</A> <UL> <LI><A NAME="tex2html26" HREF="node5.html#SECTION00051000000000000000">Where do I get the source from?</A> </UL> <BR> <LI><A NAME="tex2html27" HREF="node6.html">Credits</A> <LI><A NAME="tex2html28" HREF="node7.html">About this document ...</A> </UL> <!--End of Table of Child-Links--> <BR><HR> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- NEW FILE: node1.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Preface</TITLE> <META NAME="description" CONTENT="Preface"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="next" HREF="node2.html"> <LINK REL="previous" HREF="faq.html"> <LINK REL="up" HREF="faq.html"> <LINK REL="next" HREF="node2.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html37" HREF="node2.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html35" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html29" HREF="faq.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html38" HREF="node2.html">About</A> <B> Up:</B> <A NAME="tex2html36" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html30" HREF="faq.html">faq</A> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION00010000000000000000"> Preface</A> </H1> <P> This FAQ, like OpenPOSS, is a work in progress. It will be updated rather frequently and will (hopefully) represent the current state of OpenPOSS. The list of questions will be changed and your question may very well not be on the list. Do not, however, fret -- <A NAME="tex2html1" HREF="http://openposs.sourceforge.net">our site</A> can point you to any number of helpful developers, mailing list archives, and gurus on mountains -- all of whom you may consult. <P> <BR><HR> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- NEW FILE: node2.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>About</TITLE> <META NAME="description" CONTENT="About"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="next" HREF="node3.html"> <LINK REL="previous" HREF="node1.html"> <LINK REL="up" HREF="faq.html"> <LINK REL="next" HREF="node3.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html47" HREF="node3.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html45" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html39" HREF="node1.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html48" HREF="node3.html">Installation</A> <B> Up:</B> <A NAME="tex2html46" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html40" HREF="node1.html">Preface</A> <BR> <BR> <!--End of Navigation Panel--> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html49" HREF="#SECTION00021000000000000000">What is a Point of Sale (POS) System?</A> <LI><A NAME="tex2html50" HREF="#SECTION00022000000000000000">How is OpenPOSS different?</A> <LI><A NAME="tex2html51" HREF="#SECTION00023000000000000000">What are the features that OpenPOSS supports?</A> <LI><A NAME="tex2html52" HREF="#SECTION00024000000000000000">What is OpenPOSS not about?</A> <LI><A NAME="tex2html53" HREF="#SECTION00025000000000000000">Will I my employees need any training to use this new software?</A> </UL> <!--End of Table of Child-Links--> <HR> <H1><A NAME="SECTION00020000000000000000"> About OpenPOSS</A> </H1> <P> <H2><A NAME="SECTION00021000000000000000"> What is a Point of Sale (POS) System?</A> </H2> <P> Put simply, the Open POS System (OpenPOSS) is an Open Source, browser-based point of sale system for traditional small businesses. <P> <H2><A NAME="SECTION00022000000000000000"> How is OpenPOSS different?</A> </H2> <P> OpenPOSS is an Open Source project, and in the spirit of the Open Source movement, we aim to provide up-to-the-minute solutions, free of cost and without the burden of unnecessary bells and whistles. <P> <H2><A NAME="SECTION00023000000000000000"> What are the features that OpenPOSS supports?</A> </H2> <P> The first release, 0.1.0, will have the basic features that are expected of any point of sale (POS) system. We will be adding other features and fine-tuning the existing features for the final release. The first version will offer features related to user management, transactions management, inventory management and customer tracking among other features. Standard features like on-line administration and system management panels will also be available in the initial release. Currently, OpenPOSS is pre-alpha and is not yet usable. <P> <H2><A NAME="SECTION00024000000000000000"> What is OpenPOSS not about?</A> </H2> <P> FIXME: What aren't we about? <P> <H2><A NAME="SECTION00025000000000000000"> Will I my employees need any training to use this new software?</A> </H2> <P> The entire system has been made so that users can start using it as soon as it is installed. The user-interface has been made as intuitive as possible. The user can also change the look-and-feel to suit her preferences and convenience. You can visit <A NAME="tex2html2" HREF="http://openposs.sourceforge.net">our site</A> where you will find documentation on getting the most out of this software. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html47" HREF="node3.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html45" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html39" HREF="node1.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html48" HREF="node3.html">Installation</A> <B> Up:</B> <A NAME="tex2html46" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html40" HREF="node1.html">Preface</A> <!--End of Navigation Panel--> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- NEW FILE: node3.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Installation</TITLE> <META NAME="description" CONTENT="Installation"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="next" HREF="node4.html"> <LINK REL="previous" HREF="node2.html"> <LINK REL="up" HREF="faq.html"> <LINK REL="next" HREF="node4.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html62" HREF="node4.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html60" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html54" HREF="node2.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html63" HREF="node4.html">Availability</A> <B> Up:</B> <A NAME="tex2html61" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html55" HREF="node2.html">About</A> <BR> <BR> <!--End of Navigation Panel--> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html64" HREF="#SECTION00031000000000000000">What are the hardware requirements?</A> <LI><A NAME="tex2html65" HREF="#SECTION00032000000000000000">Do I have to install PHP or Java on my machine?</A> <LI><A NAME="tex2html66" HREF="#SECTION00033000000000000000">What are the minimum software requirements?</A> <LI><A NAME="tex2html67" HREF="#SECTION00034000000000000000">Do I have to upgrade my hardware?</A> <LI><A NAME="tex2html68" HREF="#SECTION00035000000000000000">I have certain hardware. Will OpenPOSS work on it?</A> </UL> <!--End of Table of Child-Links--> <HR> <H1><A NAME="SECTION00030000000000000000"> Installing OpenPOSS</A> </H1> <P> <H2><A NAME="SECTION00031000000000000000"> What are the hardware requirements?</A> </H2> <P> Currently, the system will run on any machine that has a web browser. The POS itself uses the web browser to interface with a "back-end" server. Thus a 486 running, for instance, X, twm, and Netscape would be a fully capable client. The server has more hardware requirements: a 200mhz machine with 128MB of RAM will easily satisfy the processing requirements of a small to medium setup (1-10 points of sale). The primary requirement of the back-end server is storage space for the database. <P> <H2><A NAME="SECTION00032000000000000000"> Do I have to install PHP or Java on my machine?</A> </H2> <P> The actual POS machine needs only a browser. For the back-end server, a standard mid-level PC with Linux (or any OS of your choice) will suffice. The software to drive the OpenPOSS will reside on this computer and you will have to install PHP and Java support on this machine. <P> <H2><A NAME="SECTION00033000000000000000"> What are the minimum software requirements?</A> </H2> <P> At the minimum, you need Linux (or any OS of your choice) installed. You will have to install PHP x.x.x and Java Virtual Machine (JVM) 1.3.x. The server software will install on any system that is capable of running a web server and PHP. Also, some type of database is required. Since the OpenPOS System employs the ADODB database class library, your database choices include: MySQL, Oracle, Microsoft SQL Server, Sybase, Sybase SQL Anywhere, Informix, PostgreSQL, FrontBase, Interbase (Firebird and Borland variants), FoxPro, Access, ADO and ODBC. <P> <H2><A NAME="SECTION00034000000000000000"> Do I have to upgrade my hardware?</A> </H2> <P> In most cases you will not need to upgrade your hardware. A list of supported hardware will be available on <A NAME="tex2html3" HREF="http://openposs.sourceforge.net">our site</A>. The site will also have a mailing list where you can post any questions related to the product. Our developers are more than happy to answer your queries regarding the system. <P> <H2><A NAME="SECTION00035000000000000000"> I have certain hardware. Will OpenPOSS work on it?</A> </H2> <P> Probably. FIXME: What kind of answer is that? <P> <HR> <!--Navigation Panel--> <A NAME="tex2html62" HREF="node4.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html60" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html54" HREF="node2.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html63" HREF="node4.html">Availability</A> <B> Up:</B> <A NAME="tex2html61" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html55" HREF="node2.html">About</A> <!--End of Navigation Panel--> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- NEW FILE: node4.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Availability</TITLE> <META NAME="description" CONTENT="Availability"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="next" HREF="node5.html"> <LINK REL="previous" HREF="node3.html"> <LINK REL="up" HREF="faq.html"> <LINK REL="next" HREF="node5.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html77" HREF="node5.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html75" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html69" HREF="node3.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html78" HREF="node5.html">Develoment and Contributions</A> <B> Up:</B> <A NAME="tex2html76" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html70" HREF="node3.html">Installation</A> <BR> <BR> <!--End of Navigation Panel--> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html79" HREF="#SECTION00041000000000000000">Where do I get the binaries?</A> </UL> <!--End of Table of Child-Links--> <HR> <H1><A NAME="SECTION00040000000000000000"> Getting OpenPOSS</A> </H1> <P> <H2><A NAME="SECTION00041000000000000000"> Where do I get the binaries?</A> </H2> <P> You can get our binaries from <A NAME="tex2html4" HREF="http://openposs.sourceforge.net">our site</A>. Currently we are at a pre-alpha version; please check back later for a stable public release. <P> <BR><HR> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- NEW FILE: node5.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Develoment and Contributions</TITLE> <META NAME="description" CONTENT="Develoment and Contributions"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="next" HREF="node6.html"> <LINK REL="previous" HREF="node4.html"> <LINK REL="up" HREF="faq.html"> <LINK REL="next" HREF="node6.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html88" HREF="node6.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html86" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html80" HREF="node4.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html89" HREF="node6.html">Credits</A> <B> Up:</B> <A NAME="tex2html87" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html81" HREF="node4.html">Availability</A> <BR> <BR> <!--End of Navigation Panel--> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html90" HREF="#SECTION00051000000000000000">Where do I get the source from?</A> </UL> <!--End of Table of Child-Links--> <HR> <H1><A NAME="SECTION00050000000000000000"> Contributing to OpenPOSS</A> </H1> <P> <H2><A NAME="SECTION00051000000000000000"> Where do I get the source from?</A> </H2> <P> If you are a developer and would like to contribute, you can get our source from <A NAME="tex2html5" HREF="http://sourceforge.net/projects/openposs/">our development site</A>. <P> <BR><HR> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- NEW FILE: node6.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Credits</TITLE> <META NAME="description" CONTENT="Credits"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="next" HREF="node7.html"> <LINK REL="previous" HREF="node5.html"> <LINK REL="up" HREF="faq.html"> <LINK REL="next" HREF="node7.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html99" HREF="node7.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html97" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html91" HREF="node5.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Next:</B> <A NAME="tex2html100" HREF="node7.html">About this document ...</A> <B> Up:</B> <A NAME="tex2html98" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html92" HREF="node5.html">Develoment and Contributions</A> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION00060000000000000000"> Credits</A> </H1> <P> This FAQ was written by <A NAME="tex2html6" HREF="mailto:men...@ya...">Madhavan Menon (men...@ya...)</A>; it was formatted and edited by <A NAME="tex2html7" HREF="mailto:mi...@yo...">Michael Greenberg (mi...@yo...)</A>. <P> <I>Last modified August 1, 2002.</I> <P> <BR><HR> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- NEW FILE: node7.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2K.1beta (1.48) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>About this document ...</TITLE> <META NAME="description" CONTENT="About this document ..."> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> <LINK REL="previous" HREF="node6.html"> <LINK REL="up" HREF="faq.html"> </HEAD> <BODY > <!--Navigation Panel--> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next_g.png"> <A NAME="tex2html105" HREF="faq.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html101" HREF="node6.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <BR> <B> Up:</B> <A NAME="tex2html106" HREF="faq.html">faq</A> <B> Previous:</B> <A NAME="tex2html102" HREF="node6.html">Credits</A> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION00070000000000000000"> About this document ...</A> </H1> <P> This document was generated using the <A HREF="http://www-texdev.mpce.mq.edu.au/l2h/docs/manual/"><STRONG>LaTeX</STRONG>2<tt>HTML</tt></A> translator Version 2K.1beta (1.48) <P> Copyright © 1993, 1994, 1995, 1996, <A HREF="http://cbl.leeds.ac.uk/nikos/personal.html">Nikos Drakos</A>, Computer Based Learning Unit, University of Leeds. <BR> Copyright © 1997, 1998, 1999, <A HREF="http://www.maths.mq.edu.au/~ross/">Ross Moore</A>, Mathematics Department, Macquarie University, Sydney. <P> The command line arguments were: <BR> <STRONG>latex2html</STRONG> <TT>-split +1 faq.tex</TT> <P> The translation was initiated by Michael Greenberg on 2002-08-01 <BR><HR> <ADDRESS> Michael Greenberg 2002-08-01 </ADDRESS> </BODY> </HTML> --- index.html DELETED --- |
From: <ope...@li...> - 2002-07-23 19:42:29
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv8390 Modified Files: OPRFC005.txt Log Message: Added description of FAQ directory Index: OPRFC005.txt =================================================================== RCS file: /cvsroot/openposs/Documents/OPRFC005.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** OPRFC005.txt 19 Jul 2002 20:36:09 -0000 1.5 --- OPRFC005.txt 23 Jul 2002 19:42:24 -0000 1.6 *************** *** 185,188 **** --- 185,191 ---- finalized and should change considerably between now and the version 0.1 release. + /Server/docs/faq + This directory contains answers to questions that are frequently asked about OpenPOSS. It will serve as a skimmable, abbreviated version of the manual. + /Server/docs/install This directory contains all documents relative to preparing a system for |
From: <ope...@li...> - 2002-07-19 20:36:12
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv7804 Modified Files: OPRFC005.txt Log Message: Added reference to FAQ in directory structure Index: OPRFC005.txt =================================================================== RCS file: /cvsroot/openposs/Documents/OPRFC005.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** OPRFC005.txt 9 Jul 2002 00:56:48 -0000 1.4 --- OPRFC005.txt 19 Jul 2002 20:36:09 -0000 1.5 *************** *** 55,58 **** --- 55,63 ---- | +- docs/ + | | + | +- faq/ + | | | + | | +- index.html + | | : | | | +- install/ |
From: <ope...@li...> - 2002-07-17 06:15:05
|
Update of /cvsroot/openposs/Server/docs/faq In directory usw-pr-cvs1:/tmp/cvs-serv22824 Modified Files: index.html Log Message: Added a last modified date tag to the end of the document Index: index.html =================================================================== RCS file: /cvsroot/openposs/Server/docs/faq/index.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.html 17 Jul 2002 06:05:31 -0000 1.1 --- index.html 17 Jul 2002 06:15:02 -0000 1.2 *************** *** 107,111 **** --> <p>This FAQ was written by <a href="mailto:men...@ya...">Madhavan Menon (men...@ya...)</a>; it was HTML-ized and edited by <a href="mailto:mi...@yo...">Michael Greenberg (mi...@yo...)</a>.</p> </body> </html> - --- 107,111 ---- --> <p>This FAQ was written by <a href="mailto:men...@ya...">Madhavan Menon (men...@ya...)</a>; it was HTML-ized and edited by <a href="mailto:mi...@yo...">Michael Greenberg (mi...@yo...)</a>.</p> + <p><address>Last modified: Wednesday, July 17th, 02:13EDT 2002</address></p> </body> </html> |
From: <ope...@li...> - 2002-07-17 06:05:33
|
Update of /cvsroot/openposs/Server/docs/faq In directory usw-pr-cvs1:/tmp/cvs-serv21085 Added Files: index.html Log Message: HTML-ized and edited Madhavan's FAQ --- NEW FILE: index.html --- <html> <head> <title>OpenPOSS FAQ</title> </head> <body> <h1>Open Point Of Sale System (OpenPOSS) FAQ</h1> <hr> <!-- BEGIN TOC --> <h2>Table of Contents</h2> <h3><a href="#0">Preface</a></h3> <h3><a href="#1">About OpenPOSS</a></h3> <ol> <li><a href="#1-1">What is a point of sale system?</a></li> <li><a href="#1-2">How is OpenPOSS different?</a></li> <li><a href="#1-3">What are the features that OpenPOSS supports?</a></li> <li><a href="#1-4">What is OpenPOSS not about?</a></li> </ol> <h3><a href="#2">Installing OpenPOSS</a></h3> <ol> <li><a href="#2-1">What are the hardware requirements?</a></li> <li><a href="#2-2">Do I have to install PHP/Java on my machine?</a></li> <li><a href="#2-3">What are the minimum software requirements?</a></li> <li><a href="#2-4">Do I have to upgrade my hardware?</a></li> <li><a href="#2-5">I have _____ hardware. Will OpenPOSS work on it?</a></li> </ol> <h3><a href="#3">Getting OpenPOSS</a></h3> <ol> <li><a href="#3-1">Where do I get the binaries?</a></li> </ol> <h3><a href="#4">Contributing to OpenPOSS</a></h3> <ol> <li><a href="#4-1">Where do I get the source from?</a></li> </ol> <!-- END TOC --> <hr> <!-- BEGIN PREFACE --> <h3><a name="0">Preface</a></h3> <p>This FAQ, like OpenPOSS, is a work in progress. It will be updated rather frequently and will (hopefully) represent the current state of OpenPOSS. The list of questions will be changed and your question may very well not be on the list. Do not, however, fret -- <a href="http://openposs.sourceforge.net">our site (http://openposs.sourceforge.net)</a> can point you to any number of helpful developers, mailing list archives, and gurus on mountains -- all of whom you may consult. <!-- END PREFACE --> <hr> <!-- BEGIN SECTION 1 --> <h3><a name="1">1. About OpenPOSS</a></h3> <h4><a name="1-1">1.1 What is a Point of Sale (POS) System?</a></h4> <p>Put simply, the Open POS System (OpenPOSS) is an Open Source, browser-based point of sale system for traditional small businesses.</p> <h4><a name="1-2">1.2 How is OpenPOSS different?</a></h4> <p>OpenPOSS is an Open Source project, and in the spirit of the Open Source movement, we aim to provide up-to-the-minute solutions, free of cost and without the burden of unnecessary bells and whistles.</p> <h4><a name="1-3">1.3 What are the features that OpenPOSS supports?</a></h4> <p>The first release, 0.1.0, will have the basic features that are expected of any point of sale (POS) system. We will be adding other features and fine-tuning the existing features for the final release. The first version will offer features related to user management, transactions management, inventory management and customer tracking among other features. Standard features like on-line administration and system management panels will also be available in the initial release. Currently, OpenPOSS is pre-alpha and is not yet usable.</p> <h4><a name="1-4">1.4 What is OpenPOSS not about?</a></h4> <p>Todo.</p> <h4><a name="1-5">1.5 Will I my employees need any training to use this new software?</a></h4> <p>The entire system has been made so that users can start using it as soon as it is installed. The user-interface has been made as intuitive as possible. The user can also change the look-and-feel to suit her preferences and convenience. You can visit <a href="http://openposs.sourceforge.net">our site (http://openposs.sourceforge.net)</a> where you will find documentation on getting the most out of this software.</p> <!-- END SECTION 1 --> <hr> <!-- BEGIN SECTION 2 --> <h3><a name="2">2. Installing OpenPOSS</a></h3> <h4><a name="2-1">2.1 What are the hardware requirements?</a></h4> <p>Currently, the system will run on any machine that has a web browser. The POS itself uses the web browser to interface with a "back-end" server. Thus a 486 running, for instance, X, twm, and Netscape would be a fully capable client. The server has more hardware requirements: a 200mhz machine with 128MB of RAM will easily satisfy the processing requirements of a small to medium setup (1-10 points of sale). The primary requirement of the back-end server is storage space for the database.</p> <h4><a name="2-2">2.2 Do I have to install PHP/Java on my machine?</a></h4> <p>The actual POS machine needs only a browser. For the back-end server, a standard mid-level PC with Linux (or any OS of your choice) will suffice. The software to drive the OpenPOSS will reside on this computer and you will have to install PHP and Java support on this machine.</p> <h4><a name="2-3">2.3 What are the minimum software requirements?</a></h4> <p>At the minimum, you need Linux (or any OS of your choice) installed. You will have to install PHP x.x.x and Java Virtual Machine (JVM) 1.3.x. The server software will install on any system that is capable of running a web server and PHP. Also, some type of database is required. Since the OpenPOS System employs the ADODB database class library, your database choices include: MySQL, Oracle, Microsoft SQL Server, Sybase, Sybase SQL Anywhere, Informix, PostgreSQL, FrontBase, Interbase (Firebird and Borland variants), FoxPro, Access, ADO and ODBC.</p> <h4><a name="2-4">2.4 Do I have to upgrade my hardware?</a></h4> <p>In most cases you will not need to upgrade your hardware. A list of supported hardware will be available on <a href="http://openposs.sourceforge.net">our site (http://openposs.sourceforge.net)</a>. The site will also have a mailing list where you can post any questions related to the product. Our developers are more than happy to answer your queries regarding the system.</p> <h4><a name="2-5">2.5 I have _____ hardware. Will OpenPOSS work on it?</a></h4> <p>Probably. Todo.</p> <!-- END SECTION 2 --> <hr> <!-- BEGIN SECTION 3 --> <h3><a name="3">3. Getting OpenPOSS</a></h3> <h4><a name="3-1">3.1 Where do I get the binaries?</a></h4> <p>You can get our binaries from <a href="http://openposs.sourceforge.net">our site (http://openposs.sourceforge.net)</a>. Currently we are at a pre-alpha version; please check back later for a stable public release.</p> <!-- END SECTION 3 --> <hr> <!-- BEGIN SECTION 4 --> <h3><a name="4">4. Contributing to OpenPOSS</a></h4> <h4><a name="4-1">4.1 Where do I get the source from?</a></h4> <p>If you are a developer and would like to contribute, you can get our source from <a href="http://sourceforge.net/projects/openposs/">our development site (http://sourceforge.net/projects/openposs/)</a>.</p> <!-- END SECTION 4 --> <hr> <!-- BEGIN CREDITS --> <p>This FAQ was written by <a href="mailto:men...@ya...">Madhavan Menon (men...@ya...)</a>; it was HTML-ized and edited by <a href="mailto:mi...@yo...">Michael Greenberg (mi...@yo...)</a>.</p> </body> </html> |
From: <ope...@li...> - 2002-07-17 06:03:26
|
Update of /cvsroot/openposs/Server/docs/faq In directory usw-pr-cvs1:/tmp/cvs-serv20588/faq Log Message: Directory /cvsroot/openposs/Server/docs/faq added to the repository |
From: <ope...@li...> - 2002-07-14 23:25:57
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv4059 Modified Files: MySQL_Creation_Script Log Message: Took away Create openPOS statemnt. Will now rely on users to have there database created before executing the shell script. In future, have web-based install. Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** MySQL_Creation_Script 14 Jul 2002 19:52:13 -0000 1.13 --- MySQL_Creation_Script 14 Jul 2002 23:25:54 -0000 1.14 *************** *** 11,29 **** # RDBMS : MySQL # ! ################################################################################ ! # Last Update # Who # Changes Made # ! #------------------------------------------------------------------------------# ! # Apr 5, 2002 # BAC # Initial Creation # ! # # # # ! # Jun 24, 2002 # CWS # Added Setup Instructions section. Added field 'term_ip' # ! # # # to table 'openPOS.Transactions'. The purpose of this # ! # # # is to provide a tracking methond for which terminal the # ! # # # transaction originated from. Also added 'HomePhone', # ! # # # 'WorkPhone', and 'OtherPhone' to table # ! # # # 'openPOS.Customer'. # ! # Jun 27,2002 # CWS # Added modules table. # ! # Jun 28,2002 # CWS # Primed modules table with generic values. once 'real' # ! # # # modules are avaiable, these need to be removed # ! ################################################################################ # # Who Key --- 11,29 ---- # RDBMS : MySQL # ! #******************************************************************************* ! # Last Update * Who * Changes Made * ! #------------------------------------------------------------------------------* ! # Apr 5, 2002 * BAC * Initial Creation * ! # * * * ! # Jun 24, 2002 * CWS * Added Setup Instructions section. Added field 'term_ip' * ! # * * to table 'Transactions'. The purpose of this * ! # * * is to provide a tracking methond for which terminal the * ! # * * transaction originated from. Also added 'HomePhone', * ! # * * 'WorkPhone', and 'OtherPhone' to table * ! # * * 'Customer'. * ! # Jun 27,2002 * CWS * Added modules table. * ! # Jun 28,2002 * CWS * Primed modules table with generic values. once 'real' * ! # * * modules are avaiable, these need to be removed * ! #******************************************************************************* # # Who Key *************** *** 39,46 **** # command: # ! # %> mysql -uUSER -p /path/to/MySQL_Creation_Script.txt # # where '%>' is your prompt (don't type that!) and USER is your database ! # username. You will be prompted for your database password, enter it, and # if no error messages were generated, you have a freshly installed copy of # the OpenPOS database and all the required tables. Now, to confirm that --- 39,50 ---- # command: # ! # %> mysqladmin openPOS ! # %> mysql -uUSER -p /path/to/MySQL_Creation_Script # # where '%>' is your prompt (don't type that!) and USER is your database ! # username. The first line creates that database. If you wish to use ! # another name besides 'openPOS', then you should change that in the command ! # you issue, as well as the first line after the instructions in this file. ! # You will be prompted for your database password, enter it, and # if no error messages were generated, you have a freshly installed copy of # the OpenPOS database and all the required tables. Now, to confirm that *************** *** 85,102 **** # # ! ######################################################################## - # - # Create the database - # - CREATE DATABASE openPOS; USE openPOS; # # Create the Configuration Table # # This table is used to hold System Wide configurational information. ! CREATE TABLE openPOS.Configuration (`Parameter` varchar(255) NOT NULL default "", `Value` varchar(255) NOT NULL default ""); --- 89,105 ---- # # ! # + #Change the line below to what you named your database USE openPOS; + #**********Do not edit below this line********************* + # # Create the Configuration Table # # This table is used to hold System Wide configurational information. ! CREATE TABLE Configuration (`Parameter` varchar(255) NOT NULL default "", `Value` varchar(255) NOT NULL default ""); *************** *** 104,113 **** # Insert the default configuration into the configuration table # ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("DBVersion", "DEV 0.1"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserManage", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserLogin", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserSecurity", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserTypes", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("systemInstalled", "No"); # --- 107,116 ---- # Insert the default configuration into the configuration table # ! INSERT INTO Configuration (`Parameter`, `Value`) VALUES ("DBVersion", "DEV 0.1"); ! INSERT INTO Configuration (`Parameter`, `Value`) VALUES ("modUserManage", "On"); ! INSERT INTO Configuration (`Parameter`, `Value`) VALUES ("modUserLogin", "On"); ! INSERT INTO Configuration (`Parameter`, `Value`) VALUES ("modUserSecurity", "On"); ! INSERT INTO Configuration (`Parameter`, `Value`) VALUES ("modUserTypes", "On"); ! INSERT INTO Configuration (`Parameter`, `Value`) VALUES ("systemInstalled", "No"); # *************** *** 115,119 **** # # This table contains all the information describing the products available. ! CREATE TABLE openPOS.stock_list ( sku int(6) unsigned zerofill NOT NULL auto_increment, Product varchar(100) NOT NULL default '', --- 118,122 ---- # # This table contains all the information describing the products available. ! CREATE TABLE stock_list ( sku int(6) unsigned zerofill NOT NULL auto_increment, Product varchar(100) NOT NULL default '', *************** *** 137,141 **** # # This table holds a list of users permitted to access the system. ! CREATE TABLE openPOS.SystemUsers (uid int auto_increment PRIMARY KEY, UserName varchar(255) NOT NULL default "", FullName varchar(255) NOT NULL default "", --- 140,144 ---- # # This table holds a list of users permitted to access the system. ! CREATE TABLE SystemUsers (uid int auto_increment PRIMARY KEY, UserName varchar(255) NOT NULL default "", FullName varchar(255) NOT NULL default "", *************** *** 147,151 **** # Password field correlates to "openPOS". The password of this user should be changed # immediately on a production server, as this account can change anything within the system. ! INSERT INTO openPOS.SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ("Admin", "openPOS Admin User", "7c524cbe562633af1c281279e048dc5b", 1, 127); # --- 150,154 ---- # Password field correlates to "openPOS". The password of this user should be changed # immediately on a production server, as this account can change anything within the system. ! INSERT INTO SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ("Admin", "openPOS Admin User", "7c524cbe562633af1c281279e048dc5b", 1, 127); # *************** *** 153,157 **** # # This table holds a list of Groups which should be user definable. ! CREATE TABLE openPOS.SystemGroups (gid int auto_increment PRIMARY KEY, GroupName varchar(255) NOT NULL default "", Active tinyint NOT NULL default 1); --- 156,160 ---- # # This table holds a list of Groups which should be user definable. ! CREATE TABLE SystemGroups (gid int auto_increment PRIMARY KEY, GroupName varchar(255) NOT NULL default "", Active tinyint NOT NULL default 1); *************** *** 161,165 **** # ! CREATE TABLE openPOS.modules ( name varchar(25) NOT NULL default '', desciption varchar(100) default NULL, --- 164,168 ---- # ! CREATE TABLE modules ( name varchar(25) NOT NULL default '', desciption varchar(100) default NULL, *************** *** 185,189 **** # # This table is used to link users to the groups which they belong. ! CREATE TABLE openPOS.UserToGroup (uid int NOT NULL PRIMARY KEY, gid int NOT NULL, KEY idx_gid (gid)); --- 188,192 ---- # # This table is used to link users to the groups which they belong. ! CREATE TABLE UserToGroup (uid int NOT NULL PRIMARY KEY, gid int NOT NULL, KEY idx_gid (gid)); *************** *** 193,197 **** # # This table allows for giving specific users specific rights. ! CREATE TABLE openPOS.UserRights (uid int PRIMARY KEY, Access int); --- 196,200 ---- # # This table allows for giving specific users specific rights. ! CREATE TABLE UserRights (uid int PRIMARY KEY, Access int); *************** *** 200,204 **** # # This table allows for setting rights for a group of users. ! CREATE TABLE openPOS.GroupRights (gid int PRIMARY KEY, ACCESS int); --- 203,207 ---- # # This table allows for setting rights for a group of users. ! CREATE TABLE GroupRights (gid int PRIMARY KEY, ACCESS int); *************** *** 207,211 **** # # This table is used to log all actions performed by the users. ! CREATE TABLE openPOS.AuditLog (aid int auto_increment PRIMARY KEY, uid int, DT datetime, --- 210,214 ---- # # This table is used to log all actions performed by the users. ! CREATE TABLE AuditLog (aid int auto_increment PRIMARY KEY, uid int, DT datetime, *************** *** 217,221 **** # # This table is used to track transactions performed by users. ! CREATE TABLE openPOS.Transactions (tid int auto_increment PRIMARY KEY, uid int, oid int, --- 220,224 ---- # # This table is used to track transactions performed by users. ! CREATE TABLE Transactions (tid int auto_increment PRIMARY KEY, uid int, oid int, *************** *** 229,233 **** # This table is used to link an Order/Transaction Number to # the items involved in the Order/Transaction. ! CREATE TABLE openPOS.OrderItems (iid int PRIMARY KEY, sid int); --- 232,236 ---- # This table is used to link an Order/Transaction Number to # the items involved in the Order/Transaction. ! CREATE TABLE OrderItems (iid int PRIMARY KEY, sid int); *************** *** 238,242 **** # system. This allows for auto-notification to users that an order # is able to be completed for a given customer. ! CREATE TABLE openPOS.Orders (oid int auto_increment PRIMARY KEY, iid int, cid int); --- 241,245 ---- # system. This allows for auto-notification to users that an order # is able to be completed for a given customer. ! CREATE TABLE Orders (oid int auto_increment PRIMARY KEY, iid int, cid int); *************** *** 248,252 **** # information will be used for orders which are placed through # the retail outlet. ! CREATE TABLE openPOS.Customers (cid int auto_increment PRIMARY KEY, Surname varchar(255), GivenNames varchar(255), --- 251,255 ---- # information will be used for orders which are placed through # the retail outlet. ! CREATE TABLE Customers (cid int auto_increment PRIMARY KEY, Surname varchar(255), GivenNames varchar(255), |
From: <ope...@li...> - 2002-07-14 19:55:54
|
Update of /cvsroot/openposs/Server/admin In directory usw-pr-cvs1:/tmp/cvs-serv24870 Added Files: index.php Log Message: Initial creation. Setup menu for install modules --- NEW FILE: index.php --- <?php echo "<h2>Administration. </h2>"; echo "<ul> <li><a href=\"./index.php?action=admin&admin=module\">Module</a> <li><a href=\"./index.php?action=admin&admin=user\">User</a> <li><a href=\"./index.php?action=admin&admin=system\">System</a> </ul>"; ?> |
From: <ope...@li...> - 2002-07-14 19:54:12
|
Update of /cvsroot/openposs/Server/includes In directory usw-pr-cvs1:/tmp/cvs-serv24419 Added Files: database.php functions.php vars.inc Log Message: Relocated files from ./Server --- NEW FILE: database.php --- <?php # # Filename: database.php # Author : Brian A Cheeseman # Date : April 6, 2002 # Purpose : To provide the database interface. # ############################################################################### # Last Update # Who # Changes Made # #-------------#-----#---------------------------------------------------------# # Apr 6, 2002 # BAC # Initial Creation # ############################################################################### # Who Key # BAC - Brian A Cheeseman # include_once('config.php'); // Include the database connection information. define('ADODB_DIR', 'adodb'); // define the location of the adodb software. include_once('adodb/adodb.inc.php'); // Include the adodb database code. /****************************************************************************** * Function: DBInit() * * -------------------------------------------------------------------------- * * This function is used to open a database connection using the ADODB, * * and then select a default database. Upon error, function will die, and * * return an error message. * * * * Returned Values * * None. * * * * Input Values * * None. * ******************************************************************************/ function DBInit() { global $DBConfig, $SystemConfig; // Assign the database connection information to variables. $DBServer=$DBConfig['Server']; $DBUserName=$DBConfig['UserName']; $DBPassword=$DBConfig['Password']; $DBName=$DBConfig['DBName']; $DBType=$DBConfig['DBType']; $DBCurVers=$DBConfig['CurrentVersion']; // Create a database connection. global $DBConn; $DBConn = ADONewConnection($DBType); // Create a Handle to the database. $DBHandle = $DBConn->Connect($DBServer, $DBUserName, $DBPassword, $DBName); if (!$DBHandle) { die("Failed to connect to $DBType://$DBUserName:$DBPassword@$DBServer/$DBName\n".$DBConn->ErrorMsg()); } // We have a connection and handle on the database. global $ADODB_FETCH_MODE; $ADODB_FETCH_MODE = ADODB_FETCH_NUM; $sql = "SELECT Value FROM Configuration WHERE Parameter='DBVersion'"; $results = $DBConn->Execute($sql); list($DBVersion) = $results->fields; if (strncmp($DBVersion, $DBCurVers, strlen($DBCurVers)) != 0) { switch ($DBVersion) { // Database Updating Code will be inserted here when a change is made to the schema. // This code will only be placed into the production code, as only testing will be done // by the dev team. } } // OK, Lets load the system config. $sql = "SELECT Parameter, Value FROM Configuration WHERE Parameter <> 'DBVersion'"; $results = $DBConn->Execute($sql); while(list($Param, $Value) = $results->FetchRow()) { $SystemConfig[$Param] = $Value; } //Check to see if the install routine has been completed if($SystemConfig["systemInstalled"] == "No") { //The install routine has not been run. Direct them to it. die("<center><h3>You must complete the install.php routine before you can use the OpenPOS System. Please see the install documentation.<p> Note: Since the OpenPOS System is still in the early stages of development, you will need to go into the table <i>configuration</i> of the <i>openPOS</i> database and adjust the value of the field \"systemInstalled\" to \"Yes\". In the near future, we will have a working install script, but that may be the last item completed before release 0.1.0.</h3></center>"); } return true; } /****************************************************************************** * Function: DBClose() * * -------------------------------------------------------------------------- * * This function is used to close the database connection. * * * * Returned Values * * None. * * * * Input Values * * None. * ******************************************************************************/ function DBClose() { global $DBConn; $DBConn->Close(); return true; } /****************************************************************************** * Function: Validate_Password() * * -------------------------------------------------------------------------- * * This function is used to verify that a UserName/Password combo exists in * * the SystemUsers table. * * If the password/username combo exists in db, return users rights level, * * if not in db, return false. * * * * Returned Values * * $ret_val * * * * Input Values * * $UserName, $Password * ******************************************************************************/ function Validate_Password($UserName, $Password) { GLOBAL $DBConn; $ret_val = 0; $sql = "SELECT Password, SuperUser FROM SystemUsers WHERE UserName=\"$UserName\""; $ADODB_FETCH_MODE = ADODB_FETCH_NUM; $result = $DBConn->Execute($sql); if ($result->NumRows() > 0) { list($pw,$rights) = $result->fields; $pword = md5($Password); if (strcmp($pw, $pword) == 0) { //Password validated! $ret_val = $rights; } else { $ret_val = FALSE; } } return $ret_val; } function DB_Query($query) { GLOBAL $DBConn; $result = $DBConn->Execute("$query"); return $result; } function DB_Fetch_Data_Array($result) { GLOBAL $DBConn; if ($result === false) die("failed"); while (!$result->EOF) { $data_array[] = $result->fields; $result->MoveNext(); } return $data_array; } ?> --- NEW FILE: functions.php --- <? /****************************************************************************** * Function: DisplayMainMenu() * * -------------------------------------------------------------------------- * * This function will display the main menu when the user is accessing the * * system via a web browser. * * * * Returned Values * * HTML Page text to return to the client. * * * * Input Values * * None. * ******************************************************************************/ function DisplayMainMenu() { GLOBAL $HTTP_SESSION_VARS,$CONFIG_VARS; $Output = Theme_Menu_Open($CONFIG_VARS["MenuWidth"],_OPENPOSNAVTITLE); if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) { $Output .= $HTTP_SESSION_VARS["openPOSAuthTok"]." Logged In<p>"; } else { $Output .= "Not Logged In<p>"; } $menuArray = GetMenuEntries(); $Output .= "\n"; foreach($menuArray as $tmp) { $Output .= "<a class=\"menu\" href=\"./module.php?module=$tmp[0]\">$tmp[0]</a><br>\n"; } if($HTTP_SESSION_VARS["openPOSAuthRights"] == "127") { $Output .= Theme_Add_Menu_Link("./?action=admin", _OPENPOSADMINTITLE) . "<BR>"; } if ( strcmp($SystemConfig['modUserLogin'], "On")) { if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) { $Output .= Theme_Add_Menu_Link("./?action=logout", "Logout") . "<br>"; } else { $Output .= Theme_Add_Menu_Link("./?action=login", "Login") . "<br>"; } } $Output .= "\n<BR>"; $Output .= Theme_Menu_Close(); return $Output; } /****************************************************************************** * Function: GetMenuEntries() * * -------------------------------------------------------------------------- * * This function will access the db, and get all activem, showable menu * * menu entries. * * * * Returned Values * * $menuEntries of type Array * * * * Input Values * * None. * ******************************************************************************/ function GetMenuEntries() { $query = "SELECT name FROM modules WHERE status='A' AND menu='Y'"; $result = DB_Query($query); $menuEntires = DB_Fetch_Data_Array($result); return $menuEntires; } /****************************************************************************** * Function: DisplayAdminMenu() * * -------------------------------------------------------------------------- * * This function will display the administration menu when the user is * * accessing the system via a web browser. * * * * Returned Values * * HTML Page text to return to the client. * * * * Input Values * * None. * ******************************************************************************/ function DisplayAdminMenu() { $Output = Theme_Open_Page(_OPENPOSADMINTITLE); $Output .= Theme_Close_Page(); return $Output; } /****************************************************************************** * Function: DisplayError() * * -------------------------------------------------------------------------- * * This function will display the error messages to the user. * * * * Returned Values * * HTML Page text to return to the client. * * * * Input Values * * None. * ******************************************************************************/ function DisplayError() { $Output = Theme_Open_Page( _OPENPOSERRORTITLE ); $Output .= "<DIV ALIGN=\"CENTER\"><H3>ERROR: Incorrect Parameters sent to the server. Please contact your support section.</H3></DIV>"; $Output .= Theme_Close_Page(); return $Output; } /****************************************************************************** * Function: ProcessLoginRequest() * * -------------------------------------------------------------------------- * * This function will validate user, and then set cookie if user is valid. * * * * Returned Values * * None. * * * * Input Values * * None. * ******************************************************************************/ function ProcessLoginRequest($UserName,$Password) { GLOBAL $HTTP_SESSION_VARS; $rights = Validate_Password($UserName, $Password); //echo "$rights"; if ($rights != FALSE) { $HTTP_SESSION_VARS["openPOSAuthTok"] = $UserName; $HTTP_SESSION_VARS["openPOSAuthRights"] = $rights; $HTTP_SESSION_VARS["action"] = "none"; $HTTP_SESSION_VARS["OutputLang"] = NULL; $HTTP_SESSION_VARS["OutputTheme"] = "Default"; } else { //Not a valid login. figure out a way to pass an error message } header("HTTP/1.0 303 See Other"); header("Location: ./"); return; } /****************************************************************************** * Function: ProcessLogoutRequest() * * -------------------------------------------------------------------------- * * This function will destroy the users session, logging them out * * * * Returned Values * * None. * * * * Input Values * * None. * ******************************************************************************/ function ProcessLogoutRequest() { GLOBAL $Action, $UserName; if (isset($UserName)) { session_unset(); session_destroy(); header("HTTP/1.0 303 See Other"); header("Location: ./"); } return; } /*End Functions *******************************************************************************/ ?> --- NEW FILE: vars.inc --- <? # # Filename: vars.inc # Author : Chris W Shaffer # Date : June 27, 2002 # Purpose : To provide a holding file for system wide variables # # ############################################################################### # Last Update | Who | Changes Made # #-------------+-----+---------------------------------------------------------# # Jun 26,2002 | CWS | Initial Creation # ############################################################################### # Who Key # CWS - Chris W Shaffer # //System Wide variables, control the look? $CONFIG_VARS["MenuWidth"] = "175"; |
From: <ope...@li...> - 2002-07-14 19:52:34
|
Update of /cvsroot/openposs/Server/includes In directory usw-pr-cvs1:/tmp/cvs-serv24042/includes Log Message: Directory /cvsroot/openposs/Server/includes added to the repository |
From: <ope...@li...> - 2002-07-14 19:52:18
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv23835 Modified Files: MySQL_Creation_Script Log Message: Added SuperUser permission to user Admin Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** MySQL_Creation_Script 9 Jul 2002 01:14:52 -0000 1.12 --- MySQL_Creation_Script 14 Jul 2002 19:52:13 -0000 1.13 *************** *** 115,131 **** # # This table contains all the information describing the products available. ! CREATE TABLE openPOS.Stock_List (sku int(6) unsigned zerofill NOT NULL auto_increment, ! Product varchar(100) NOT NULL default '', ! Description text, ! catagory int(6) NOT NULL default '999999', ! OrderCode varchar(50) NOT NULL default "", ! ScanCode varchar(50) NOT NULL default "", ! Cost decimal(7,2) unsigned NOT NULL default '0.00', ! Price decimal(7,2) unsigned NOT NULL default 0.00, ! StockLevel int NOT NULL default 0, ! MinStockLevel int NOT NULL default 0, ! StorageCap int NOT NULL default 0, ! ShelfCap int NOT NULL default 0, ! KEY idx_ScanCode (ScanCode(10)) ); # --- 115,135 ---- # # This table contains all the information describing the products available. ! CREATE TABLE openPOS.stock_list ( ! sku int(6) unsigned zerofill NOT NULL auto_increment, ! Product varchar(100) NOT NULL default '', ! Description text, ! catagory int(6) NOT NULL default '999999', ! OrderCode varchar(50) NOT NULL default '', ! ScanCode varchar(50) NOT NULL default '', ! Cost decimal(7,2) unsigned NOT NULL default '0.00', ! Price decimal(7,2) NOT NULL default '0.00', ! StockLevel int(11) NOT NULL default '0', ! MinStockLevel int(11) NOT NULL default '0', ! StorageCap int(11) NOT NULL default '0', ! ShelfCap int(11) NOT NULL default '0', ! PRIMARY KEY (sku), ! KEY idx_ScanCode (ScanCode(10)) ! ) TYPE=MyISAM; ! # *************** *** 143,147 **** # Password field correlates to "openPOS". The password of this user should be changed # immediately on a production server, as this account can change anything within the system. ! INSERT INTO openPOS.SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ("Admin", "openPOS Admin User", "7c524cbe562633af1c281279e048dc5b", 1, 1); # --- 147,151 ---- # Password field correlates to "openPOS". The password of this user should be changed # immediately on a production server, as this account can change anything within the system. ! INSERT INTO openPOS.SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ("Admin", "openPOS Admin User", "7c524cbe562633af1c281279e048dc5b", 1, 127); # *************** *** 167,174 **** #--------REMOVE ME ONCE REAL MODULES ARE AVAILBE!!!------- ! INSERT INTO modules VALUES ('Transaction', 'The transaction module', 'A', 'Y'); ! INSERT INTO modules VALUES ('Inventory', 'The inventory management module', 'A', 'Y'); ! INSERT INTO modules VALUES ('Quote', NULL, 'A', 'Y'); ! INSERT INTO modules VALUES ('Scheduling', NULL, 'I', 'Y'); #********************************************************** --- 171,178 ---- #--------REMOVE ME ONCE REAL MODULES ARE AVAILBE!!!------- ! INSERT INTO modules VALUES ('Transaction', 'The transaction module','0.1.0','A', 'Y'); ! INSERT INTO modules VALUES ('Inventory', 'The inventory management module','0.1.0','A', 'Y'); ! INSERT INTO modules VALUES ('Quote', NULL,'0.1.0', 'A', 'Y'); ! INSERT INTO modules VALUES ('Scheduling', NULL,'0.1.0', 'I', 'Y'); #********************************************************** |
From: <ope...@li...> - 2002-07-14 02:38:58
|
Update of /cvsroot/openposs/Server/language/por In directory usw-pr-cvs1:/tmp/cvs-serv27443 Added Files: global.php Log Message: Initial creation & translation for the Portuguese language. --- NEW FILE: global.php --- <? # # Filename: /language/por/global.php # Author : Nuno Gomes # Date : July 12, 2002 # Purpose : To provide Portuguese language strings for the openPOS project. # ################################################################################ # Last Update # Who # Changes Made # #--------------#-----#---------------------------------------------------------# # Jul 12, 2002 # NG # Initial Creation & Translations # ################################################################################ # Who Key # NG - Nuno Gomes # define(_OPENPOSTITLE,"Sistema openPOS"); define(_OPENPOSADMINTITLE,"Administração"); // duplicate var?... same content as above, fix in other languages? define(_OPENPOSMAINTITLE,"Sistema openPOS"); define(_OPENPOSERRORTITLE,"Notificação de Erro"); define(_OPENPOSNAVTITLE, "Menu de Navegação"); define(_OPENPOSLOGINTITLE, "Entrar"); ?> |
From: <ope...@li...> - 2002-07-14 01:10:48
|
Update of /cvsroot/openposs/Server/language/por In directory usw-pr-cvs1:/tmp/cvs-serv4654/por Log Message: Directory /cvsroot/openposs/Server/language/por added to the repository |
From: <ope...@li...> - 2002-07-09 01:25:35
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv27433 Modified Files: index.php Log Message: Added module logic. Index: index.php =================================================================== RCS file: /cvsroot/openposs/Server/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 28 Jun 2002 02:11:44 -0000 1.7 --- index.php 9 Jul 2002 01:25:32 -0000 1.8 *************** *** 32,228 **** * System Includes * ******************************************************************************/ ! include_once("database.php"); ! include_once("./vars.inc"); ! ! /****************************************************************************** ! * Function: DisplayMainMenu() * ! * -------------------------------------------------------------------------- * ! * This function will display the main menu when the user is accessing the * ! * system via a web browser. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayMainMenu() { ! GLOBAL $HTTP_SESSION_VARS,$CONFIG_VARS; ! ! ! $Output = Theme_Menu_Open($CONFIG_VARS["MenuWidth"],_OPENPOSNAVTITLE); ! ! if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) ! { ! $Output .= $HTTP_SESSION_VARS["openPOSAuthTok"]." Logged In<p>"; ! } ! else ! { ! $Output .= "Not Logged In<p>"; ! } ! ! $menuArray = GetMenuEntries(); ! ! $Output .= "\n"; ! ! foreach($menuArray as $tmp) ! { ! $Output .= "<a class=\"menu\" href=\"/module/$tmp/module.php\">$tmp</a><br>\n"; ! } ! ! if($HTTP_SESSION_VARS["openPOSAuthRights"] == "SuperUser") ! { ! $Output .= Theme_Add_Menu_Link("./?action=admin", _OPENPOSADMINTITLE) . "<BR>"; ! } ! ! if ( strcmp($SystemConfig['modUserLogin'], "On")) ! { ! if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) ! { ! $Output .= Theme_Add_Menu_Link("./?action=logout", "Logout") . "<br>"; ! } ! else ! { ! $Output .= Theme_Add_Menu_Link("./?action=login", "Login") . "<br>"; ! } ! } ! $Output .= "\n<BR>"; ! $Output .= Theme_Menu_Close(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: GetMenuEntries() * ! * -------------------------------------------------------------------------- * ! * This function will access the db, and get all activem, showable menu * ! * menu entries. * ! * * ! * Returned Values * ! * $menuEntries of type Array * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function GetMenuEntries() ! { ! $query = "SELECT * FROM modules WHERE status='A' AND menu='Y'"; ! $result = DB_Query($query); ! $menuEntires = DB_Fetch_Data_Array($result); ! return $menuEntires; ! } ! ! /****************************************************************************** ! * Function: DisplayAdminMenu() * ! * -------------------------------------------------------------------------- * ! * This function will display the administration menu when the user is * ! * accessing the system via a web browser. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayAdminMenu() { ! $Output = Theme_Open_Page(_OPENPOSADMINTITLE); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: DisplayError() * ! * -------------------------------------------------------------------------- * ! * This function will display the error messages to the user. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayError() ! { ! $Output = Theme_Open_Page( _OPENPOSERRORTITLE ); ! $Output .= "<DIV ALIGN=\"CENTER\"><H3>ERROR: Incorrect Parameters sent to the server. Please contact your support section.</H3></DIV>"; ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: ProcessLoginRequest() * ! * -------------------------------------------------------------------------- * ! * This function will validate user, and then set cookie if user is valid. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLoginRequest($UserName,$Password) { ! GLOBAL $HTTP_SESSION_VARS; ! $rights = Validate_Password($UserName, $Password); ! //echo "$rights"; ! if ($rights != FALSE) ! { ! $HTTP_SESSION_VARS["openPOSAuthTok"] = $UserName; ! //session_register("openPOSAuthTok"); ! ! //echo "<BR>$UserName = ".$HTTP_SESSION_VARS["openPOSAuthTok"]."<BR>"; ! ! $HTTP_SESSION_VARS["openPOSAuthRights"] = $rights; ! //session_register("openPOSAuthRights"); ! ! $HTTP_SESSION_VARS["action"] = "none"; ! //session_register("action"); ! ! $HTTP_SESSION_VARS["OutputLang"] = NULL; ! //session_register("OutputLang"); ! ! $HTTP_SESSION_VARS["OutputTheme"] = "Default"; ! //session_register("OutputTheme"); ! ! } ! else ! { ! //Not a valid login. figure out a way to pass an error message ! } ! ! header("HTTP/1.0 303 See Other"); ! header("Location: ./"); ! return; ! } ! ! /****************************************************************************** ! * Function: ProcessLogoutRequest() * ! * -------------------------------------------------------------------------- * ! * This function will destroy the users session, logging them out * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLogoutRequest() ! { ! GLOBAL $Action, $UserName; ! if (isset($UserName)) ! { ! session_unset(); ! session_destroy(); ! header("HTTP/1.0 303 See Other"); ! header("Location: ./"); - } - return; - } - /*End Functions - *******************************************************************************/ global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; global $UserName, $Password; ! if (!DBInit()) { die("Unable to connect to the database."); } --- 32,45 ---- * System Includes * ******************************************************************************/ ! include_once("./includes/database.php"); ! include_once("./includes/vars.inc"); ! include_once("./includes/functions.php"); global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; global $UserName, $Password; ! if (!DBInit()) ! { die("Unable to connect to the database."); } *************** *** 233,250 **** */ ! if (!isset($HTTP_SESSION_VARS["action"])) { $HTTP_SESSION_VARS["action"] = "none"; } ! if (!isset($HTTP_SESSION_VARS["OutputLang"])) { $HTTP_SESSION_VARS["OutputLang"] = "eng"; } ! if (!isset($HTTP_SESSION_VARS["OutputTheme"])) { $HTTP_SESSION_VARS["OutputTheme"] = "Default"; } ! //echo $HTTP_SESSION_VARS["openPOSAuthTok"]."<BR>"; ! if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) { $UserName = $HTTP_SESSION_VARS["openPOSAuthTok"]; } ! //echo $HTTP_SESSION_VARS["openPOSAuthTok"]."<BR>"; $themeFile = "theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.php"; --- 50,73 ---- */ ! if (!isset($HTTP_SESSION_VARS["action"])) ! { $HTTP_SESSION_VARS["action"] = "none"; } ! ! if (!isset($HTTP_SESSION_VARS["OutputLang"])) ! { $HTTP_SESSION_VARS["OutputLang"] = "eng"; } ! ! if (!isset($HTTP_SESSION_VARS["OutputTheme"])) ! { $HTTP_SESSION_VARS["OutputTheme"] = "Default"; } ! ! if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) ! { $UserName = $HTTP_SESSION_VARS["openPOSAuthTok"]; } ! $themeFile = "theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.php"; *************** *** 271,281 **** break; case "none": ! $HTMLOutput = Theme_Open_Page(_OPENPOSMAINTITLE); ! $HTMLOutput .= DisplayMainMenu(); $HTMLOutput .= Theme_Close_Page(); break; case "admin": ! $HTMLOutput = DisplayAdminMenu(); break; default: --- 94,136 ---- break; case "none": ! $HTMLOutput = Theme_Open_Page(_OPENPOSMAINTITLE,"YES"); $HTMLOutput .= Theme_Close_Page(); break; case "admin": ! echo Theme_Open_Page(_OPENPOSADMINTITLE); ! if($HTTP_SESSION_VARS["openPOSAuthRights"] != "User") ! { ! switch($HTTP_GET_VARS["admin"]) ! { ! case "module": ! //module adminsration ! echo "Module admin"; ! $HTTP_GET_VARS["admin"] = NULL; ! break; ! ! case "user": ! //user administration ! echo "user admin"; ! $HTTP_GET_VARS["admin"] = NULL; ! break; ! ! case "system": ! //system administration ! echo "system admin"; ! $HTTP_GET_VARS["admin"] = NULL; ! break; ! ! default: ! include "./admin/index.php"; ! $HTTP_GET_VARS["admin"] = NULL; ! } ! } ! else ! { ! //display some nice message that you must be an admin ! echo _OPENPOSNORIGHTS; ! } ! echo Theme_Close_Page(); break; default: |
From: <ope...@li...> - 2002-07-09 01:24:56
|
Update of /cvsroot/openposs/Server/language/eng In directory usw-pr-cvs1:/tmp/cvs-serv27230/language/eng Modified Files: global.php Log Message: Added lines. Index: global.php =================================================================== RCS file: /cvsroot/openposs/Server/language/eng/global.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** global.php 30 Jun 2002 16:05:16 -0000 1.5 --- global.php 9 Jul 2002 01:24:53 -0000 1.6 *************** *** 1,24 **** ! <? ! # ! # Filename: /language/eng/global.php ! # Author : Brian A Cheeseman ! # Date : April 6, 2002 ! # Purpose : To provide language based strings for the openPOS project. ! # ! ################################################################################ ! # Last Update # Who # Changes Made # ! #--------------#-----#---------------------------------------------------------# ! # Jun 25, 2002 # BAC # Modified the text to allow for the themes support # ! # Apr 6, 2002 # BAC # Initial Creation # ! ################################################################################ ! # Who Key ! # BAC - Brian A Cheeseman ! # ! define(_OPENPOSTITLE,"openPOS"); ! define(_OPENPOSADMINTITLE,"Administration"); ! define(_OPENPOSMAINTITLE,"Main Menu"); ! define(_OPENPOSERRORTITLE,"Error Notification"); ! define(_OPENPOSNAVTITLE, "Navigation Menu"); ! define(_OPENPOSLOGINTITLE, "Login"); ! ! ?> --- 1,27 ---- ! <? ! # ! # Filename: /language/eng/global.php ! # Author : Brian A Cheeseman ! # Date : April 6, 2002 ! # Purpose : To provide language based strings for the openPOS project. ! # ! ################################################################################ ! # Last Update # Who # Changes Made # ! #--------------#-----#---------------------------------------------------------# ! # Jun 25, 2002 # BAC # Modified the text to allow for the themes support # ! # Apr 6, 2002 # BAC # Initial Creation # ! ################################################################################ ! # Who Key ! # BAC - Brian A Cheeseman ! # ! define(_OPENPOSTITLE,"openPOS System"); ! define(_OPENPOSADMINTITLE,"Administration"); ! define(_OPENPOSMAINTITLE,"openPOS System"); ! define(_OPENPOSERRORTITLE,"Error Notification"); ! define(_OPENPOSNAVTITLE, "Navigation Menu"); ! define(_OPENPOSLOGINTITLE, "Login"); ! define(_OPENPOSLOGINMESSAGE, "<center><h2>You must <A href=\"http://90.33.216.64/Server/?action=login\">login</a> to access this page!"); ! define(_OPENPOSINSTALLDBCONNECT, "<h3><font color=\"#006400\">Connection to Database on host '".$DBConfig['Server']."' succesful.</font></h3>"); ! define(_OPENPOSNORIGHTS, "<center><h2>You have insufficent rights to access this page. Please see your system admin for more information</h2></center>"); ! ! ?> |
From: <ope...@li...> - 2002-07-09 01:24:11
|
Update of /cvsroot/openposs/Server/theme/Default In directory usw-pr-cvs1:/tmp/cvs-serv27071 Modified Files: theme.css theme.php Log Message: Made minor theme changes. Index: theme.css =================================================================== RCS file: /cvsroot/openposs/Server/theme/Default/theme.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** theme.css 28 Jun 2002 02:10:22 -0000 1.2 --- theme.css 9 Jul 2002 01:24:09 -0000 1.3 *************** *** 6,12 **** font-weight: normal; margin-bottom: 0; ! margin-left: 0; ! margin-right: 0; ! margin-top: 0; text-decoration: none; } --- 6,12 ---- font-weight: normal; margin-bottom: 0; ! margin-left: 5px; ! margin-right: 5px; ! margin-top: 2px; text-decoration: none; } *************** *** 21,24 **** --- 21,45 ---- font-family: Tahoma, Verdana, sans-serif; font-size: 15px; + } + + H1 { + color: #000000; + font-family: Tahoma, Verdana, sans-serif; + font-size: 26px; + font-weight: bold; + } + + H2 { + color: #000000; + font-family: Tahoma, Verdana, sans-serif; + font-size: 22px; + font-weight: bold; + } + + H2 { + color: #000000; + font-family: Tahoma, Verdana, sans-serif; + font-size: 18px; + font-weight: bold; } Index: theme.php =================================================================== RCS file: /cvsroot/openposs/Server/theme/Default/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.php 28 Jun 2002 02:10:22 -0000 1.3 --- theme.php 9 Jul 2002 01:24:09 -0000 1.4 *************** *** 13,20 **** * $Title: This is a string of text to be used in the page title. * ******************************************************************************/ ! function Theme_Open_Page($Title) { ! $Output = "<HTML><HEAD><TITLE>".$Title." :: $Title</TITLE>"; ! $Output .= "<LINK href=\"theme/Default/theme.css\" rel=\"stylesheet\" type=\"text/css\"><BODY><DIV ALIGN=\"CENTER\"><H1>openPOS $Title</H1></DIV>"; return $Output; } --- 13,28 ---- * $Title: This is a string of text to be used in the page title. * ******************************************************************************/ ! function Theme_Open_Page($Title,$menu="YES") { ! GLOBAL $CONFIG_VARS, $HTTP_SESSION_VARS; ! $Output = "<HTML><HEAD><TITLE>".$Title." :: $Title</TITLE>\n"; ! $Output .= "<LINK href=\"theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.css\" rel=\"stylesheet\" type=\"text/css\"></head>\n ! <BODY><table width=\"100%\" border=0><tr><TD width=\"100%\" align=\"center\"><H1>openPOS $Title</H1></td></tr></table>\n"; ! if($menu != "NO") ! { ! $Output .= "<table border=0 width =\"100%\"><tr><td width=\"".$CONFIG_VARS["MenuWidth"]."\">"; ! $Output .= DisplayMainMenu(); ! } ! $Output .= "</td><TD valign=\"top\"> "; return $Output; } *************** *** 33,38 **** * None. * ******************************************************************************/ ! function Theme_Close_Page() { ! $Output = "</BODY></HTML>"; return $Output; } --- 41,51 ---- * None. * ******************************************************************************/ ! function Theme_Close_Page($menu="YES") { ! ! if($menu != "NO") ! { ! $Output = "</td></tr></table>"; ! } ! $Output .= "</BODY></HTML>"; return $Output; } *************** *** 157,165 **** * $Width: (OPTIONAL) width of the cell relative to the width of the table. * ******************************************************************************/ ! function Theme_Open_Data_Cell($Align = "LEFT", $Width = "") { $Output = "<TD ALIGN=\"$Align\""; if (isset($Width)) { $Output .= " WIDTH=\"$Width\""; } $Output .= ">"; return $Output; --- 170,184 ---- * $Width: (OPTIONAL) width of the cell relative to the width of the table. * ******************************************************************************/ ! function Theme_Open_Data_Cell($Align = "LEFT", $Width = "", $colSpan = "", $rowSpan = "") { $Output = "<TD ALIGN=\"$Align\""; if (isset($Width)) { $Output .= " WIDTH=\"$Width\""; } + if (isset($colSpan)) { + $Output .= " COLSPAN=\"$colSpan\""; + } + if (isset($rowSpan)) { + $Output .= " ROWSPAN=\"$rowSpan\""; + } $Output .= ">"; return $Output; *************** *** 211,215 **** $Width2 = $Width -8; $Width2 = $Width -12; ! $Output = "<table width=\"$Width\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td width=8 height=22><img src=\"theme/Default/images/menutopleft.png\" width=\"8\" height=\"22\" alt=\"\" border=\"0\"></td> --- 230,234 ---- $Width2 = $Width -8; $Width2 = $Width -12; ! $Output = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td width=8 height=22><img src=\"theme/Default/images/menutopleft.png\" width=\"8\" height=\"22\" alt=\"\" border=\"0\"></td> *************** *** 295,299 **** ******************************************************************************/ function Theme_Login_Screen() { ! $Output = Theme_Open_Page(_OPENPOSLOGINTITLE)."<DIV ALIGN=\"CENTER\">"; $Output .= "<FORM ACTION=\"./\" METHOD=\"GET\">"; $Output .= Theme_Menu_Open("300"," ")."<CENTER>".Theme_Open_Table().Theme_Open_Row().Theme_Open_Data_Cell("Right"); --- 314,318 ---- ******************************************************************************/ function Theme_Login_Screen() { ! $Output = Theme_Open_Page(_OPENPOSLOGINTITLE,"NO")."<DIV ALIGN=\"CENTER\">"; $Output .= "<FORM ACTION=\"./\" METHOD=\"GET\">"; $Output .= Theme_Menu_Open("300"," ")."<CENTER>".Theme_Open_Table().Theme_Open_Row().Theme_Open_Data_Cell("Right"); *************** *** 303,312 **** $Output .= "Password".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"PASSWORD\" NAME=\"password\">".Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row().Theme_Open_Row().Theme_Open_Data_Cell("Right"); ! $Output .= "<BUTTON NAME=\"submit\" VALUE=\"submit\" TYPE=\"submit\">Login</BUTTON>"; ! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<BUTTON NAME=\"cancel\" TITLE=\"Cancel\" TYPE=\"submit\">Cancel</BUTTON>".Theme_Close_Data_Cell(); $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table()."<CENTER>".Theme_Menu_Close()."</FORM></DIV>".Theme_Close_Page(); return $Output; --- 322,330 ---- $Output .= "Password".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); $Output .= "<INPUT TYPE=\"PASSWORD\" NAME=\"password\">".Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row().Theme_Open_Row().Theme_Open_Data_Cell("CENTER","","2"); ! $Output .= "<BUTTON NAME=\"submit\" VALUE=\"submit\" TYPE=\"submit\">Login</BUTTON> "; $Output .= "<BUTTON NAME=\"cancel\" TITLE=\"Cancel\" TYPE=\"submit\">Cancel</BUTTON>".Theme_Close_Data_Cell(); $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table("NO")."<CENTER>".Theme_Menu_Close()."</FORM></DIV>".Theme_Close_Page(); return $Output; |
From: <ope...@li...> - 2002-07-09 01:23:32
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv26972 Added Files: module.php Log Message: Initial creation --- NEW FILE: module.php --- <?php /****************************************************************************** * * * File Name: module.php * * * * Created : Jun 30, 2002 * * * * Purpose : Entry point for all modules in the openPOS system. * * * *----------------------------------------------------------------------------* * Change Log * *----------------------------------------------------------------------------* * Date | Description * * -------------+------------------------------------------------------------ * * Jun 30, 2002 | Initial Coding. * ******************************************************************************/ /****************************************************************************** * Function: * * -------------------------------------------------------------------------- * * Place function description here, including any API info. * * * * Returned Values * * None. * * * * Input Values * * None. * ******************************************************************************/ /****************************************************************************** * Begin Session * ******************************************************************************/ session_start(); if(isset($HTTP_GET_VARS["action"])) { $HTTP_SESSION_VARS["action"] = $HTTP_GET_VARS["action"]; } /****************************************************************************** * System Includes * ******************************************************************************/ include_once("./includes/database.php"); include_once("./includes/vars.inc"); include_once("./includes/functions.php"); //Refuse User if they are not logged in! if (!(isset($HTTP_SESSION_VARS["openPOSAuthTok"]))) { $HTTP_SESSION_VARS["OutputLang"] = "eng"; $themeFile = "theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.php"; include_once ($themeFile); $langFile = "language/".$HTTP_SESSION_VARS["OutputLang"]."/global.php"; include_once ($langFile); $HTTP_SESSION_VARS["OutputTheme"] = "Default"; die(_OPENPOSLOGINMESSAGE); } $themeFile = "theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.php"; include_once ($themeFile); $langFile = "language/".$HTTP_SESSION_VARS["OutputLang"]."/global.php"; include_once ($langFile); global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; global $UserName, $Password; //Make DB Connection if (!DBInit()) { die("Unable to connect to the database."); } $query = "SELECT * FROM modules WHERE status='A'"; $result = DB_Query($query); //of type Array $activeModules = DB_Fetch_Data_Array($result); foreach($activeModules as $tmp) { if($tmp[0] == $HTTP_GET_VARS["module"]) { $isActive = TRUE; } } if(!($isActive)) { die("There has been an error. The module you requested is unavailbe at this time"); } $HTMLOutput = Theme_Open_Page(_OPENPOSMAINTITLE); echo $HTMLOutput; include "./module/".$HTTP_GET_VARS["module"]."/module.php"; $HTMLOutput = Theme_Close_Page(); echo "</TD></TR></table>".$HTMLOutput; ?> |
From: <ope...@li...> - 2002-07-09 01:22:18
|
Update of /cvsroot/openposs/Server/module/Transaction In directory usw-pr-cvs1:/tmp/cvs-serv26533/Transaction Added Files: admin.php module.php Log Message: Initial creation --- NEW FILE: admin.php --- <?php echo "<center><h2>I am the admin portion of the Transaction Module.</h2></center>"; ?> --- NEW FILE: module.php --- <?php echo "<center><h2>I am the Transaction Module.</h2></center>"; ?> |