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-06-28 02:07:42
|
Update of /cvsroot/openposs/Server/theme/Default/images In directory usw-pr-cvs1:/tmp/cvs-serv5445 Added Files: menubottom.png Log Message: --- NEW FILE: menubottom.png --- PNG |
From: <ope...@li...> - 2002-06-28 02:06:19
|
Update of /cvsroot/openposs/Server/theme/Default/images In directory usw-pr-cvs1:/tmp/cvs-serv5177/images Log Message: Directory /cvsroot/openposs/Server/theme/Default/images added to the repository |
From: <ope...@li...> - 2002-06-28 02:05:31
|
Update of /cvsroot/openposs/Server/docs In directory usw-pr-cvs1:/tmp/cvs-serv4976/docs Log Message: Directory /cvsroot/openposs/Server/docs added to the repository |
From: <ope...@li...> - 2002-06-28 02:04:55
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv4640 Added Files: vars.inc Log Message: Initial creation. Holder for system wide variables --- 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-06-28 02:03:46
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv4319 Modified Files: OPRFC005.txt Log Message: Added directory structure for documentation Index: OPRFC005.txt =================================================================== RCS file: /cvsroot/openposs/Documents/OPRFC005.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OPRFC005.txt 27 Jun 2002 05:28:41 -0000 1.2 --- OPRFC005.txt 28 Jun 2002 02:03:40 -0000 1.3 *************** *** 1,172 **** ! Filename: OPRFC005.txt ! Author : Brian A Cheeseman <bc...@bc...> ! Date : June 27, 2002 ! Purpose : This document will describe the API's and directory structures ! utilized as part of the openPOS System. ! Status : Open for discussion. ! ! Contents ! ~~~~~~~~ ! ! i - Prelude ! 1 - Server Directory Structure ! 1.1 - Directory Purpose Descriptions ! 2 - API Reference ! 2.1 - Database API ! 3 - Module Interface API ! ! ! i - Prelude ! ~~~~~~~~~~~ ! This document will describe the directory structure of the Server and API ! for the openPOS System. It will be a work inprogress throughout the development ! cycle of the project, however will be made into a standard each time a new ! release is made available to the public. ! ! ! 1 - Server Directory Structure ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! ! - Server/ ! | ! +- admin/ ! | | ! | +- Admin/ ! | | | ! | | +- module.php ! | | : ! | | ! | +- UserAdmin/ ! | | | ! | | +- module.php ! | | : ! | | ! | +- ModuleAdmin/ ! | | | ! | | +- module.php ! | | : ! | : ! | +- index.php ! | : ! | ! +- adodb/ ! | | ! | : ! | ! +- java/ ! | | ! | : ! | ! +- language/ ! | | ! | +- eng/ ! | | | ! | | +- global.php ! | | : ! | | ! | +- deu/ ! | | | ! | | +- global.php ! | | : ! | : ! | ! +- module/ ! | | ! | +- Transaction/ ! | | | ! | | +- module.php ! | | +- admin.php ! | | : ! | | ! | +- Quote/ ! | | | ! | | +- module.php ! | | +- admin.php ! | | : ! | | ! | +- Customer/ ! | | | ! | | +- module.php ! | | +- admin.php ! | | : ! | : ! | ! +- reports/ ! | | ! | +- Low_Stock/ ! | | | ! | | +- report.php ! | | : ! | : ! | ! +- theme/ ! | ! +- Default/ ! | | ! | +- theme.php ! | +- theme.css ! | : ! : ! ! ! 1.1 - Directory Purpose Descriptions ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! ! /Server/ ! This directory is the root of the directory structure for the openPOS ! System server. It contains the API's for the server, and also holds the initial ! configuration to get the server connected to the database containing all data ! for the system as well as the configuration data. ! ! /Server/admin/ ! This directory holds the directories containing the administration and ! configuration modules. ! ! /Server/admin/Admin/ ! This directory contains the php files for the top level of the administration ! capabilities within the openPOS system. Once coded, the end-user will have no ! need to change anything within these files. The files in this directory will ! basically provide a menu to the other admin modules within the /Server/admin/ ! directory structure. ! ! /Server/admin/UserAdmin/ ! This directory provides the User Administration module for the openPOS ! System. This will be all of the user management and will also provide links ! back to the main administration module listed above. ! ! /Server/admin/ModuleAdmin/ ! This directory provides the module administration capabilities for the ! openPOS System. This will include the installation/de-installation, enabling ! and disabling of modules. ! ! /Server/adodb/ ! This directory contains the adodb library as found at ! http://php.weblogs.com/ADODB. This is our access methof to the database, and ! it also will allow us to connect to multiple different database backends. ! ! /Server/java/ ! This directory will hold any java programs utilised by the web-based front ! end of the project. However for java programs that are module specific, they ! will be stored in the appropriate directory for the module in question. ! ! /Server/language/ ! This directory holds a directory for each language that the system has been ! configured to use. ! ! /Server/language/enu/ ! This directory holds the files which contain the language specific strings ! that are used in the display of information within the openPOS System. ! ! /Server/module/ ! This directory holds a directory for each user module installed in the ! openPOS System. ! ! /Server/module/ModuleName/ ! This directory will contain all the files relating to the module ModuleName. ! ! /Server/reports/ ! This directory holds a directory for each report installed in the openPOS ! System. ! ! /Server/reports/ReportName/ ! This directory will contain all the files relating to the report ReportName. --- 1,219 ---- ! Filename: OPRFC005.txt ! Author : Brian A Cheeseman <bc...@bc...> ! Date : June 27, 2002 ! Purpose : This document will describe the API's and directory structures ! utilized as part of the openPOS System. ! Status : Open for discussion. ! ! Contents ! ~~~~~~~~ ! ! i - Prelude ! 1 - Server Directory Structure ! 1.1 - Directory Purpose Descriptions ! 2 - API Reference ! 2.1 - Database API ! 3 - Module Interface API ! ! ! i - Prelude ! ~~~~~~~~~~~ ! This document will describe the directory structure of the Server and API ! for the openPOS System. It will be a work inprogress throughout the development ! cycle of the project, however will be made into a standard each time a new ! release is made available to the public. ! ! ! 1 - Server Directory Structure ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! ! - Server/ ! | ! +- admin/ ! | | | ! | | +- Admin/ ! | | | | ! | | | +- module.php ! | | | : ! | | | ! | | +- UserAdmin/ ! | | | | ! | | | +- module.php ! | | | : ! | | | ! | | +- ModuleAdmin/ ! | | | | ! | | | +- module.php ! | | | : ! | | : ! | | +- index.php ! | | : ! | : ! | ! +- adodb/ ! | | ! | : ! | ! +- docs/ ! | | ! | +- install/ ! | | | ! | | +- apache.html ! | | +- index.html ! | | +- mysql.html ! | | +- openposs.html ! | | +- oracle.html ! | | +- php.html ! | | +- postgresql.html ! | | : ! | | ! | +- manual/ ! | | | ! | | +- index.html ! | | : ! | | ! | +- upgrade/ ! | | | ! | | +- index.html ! | | : ! | : ! | ! +- java/ ! | | ! | : ! | ! +- language/ ! | | ! | +- eng/ ! | | | ! | | +- global.php ! | | : ! | | ! | +- deu/ ! | | | ! | | +- global.php ! | | : ! | : ! | ! +- module/ ! | | ! | +- Transaction/ ! | | | ! | | +- module.php ! | | +- admin.php ! | | : ! | | ! | +- Quote/ ! | | | ! | | +- module.php ! | | +- admin.php ! | | : ! | | ! | +- Customer/ ! | | | ! | | +- module.php ! | | +- admin.php ! | | : ! | : ! | ! +- reports/ ! | | ! | +- Low_Stock/ ! | | | ! | | +- report.php ! | | : ! | : ! | ! +- theme/ ! | | ! | +- Default/ ! | | | ! | | +- theme.php ! | | +- theme.css ! | | : ! | : ! | ! : ! ! 1.1 - Directory Purpose Descriptions ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! ! /Server/ ! This directory is the root of the directory structure for the openPOS ! System server. It contains the API's for the server, and also holds the initial ! configuration to get the server connected to the database containing all data ! for the system as well as the configuration data. ! ! /Server/admin/ ! This directory holds the directories containing the administration and ! configuration modules. ! ! /Server/admin/Admin/ ! This directory contains the php files for the top level of the administration ! capabilities within the openPOS system. Once coded, the end-user will have no ! need to change anything within these files. The files in this directory will ! basically provide a menu to the other admin modules within the /Server/admin/ ! directory structure. ! ! /Server/admin/UserAdmin/ ! This directory provides the User Administration module for the openPOS ! System. This will be all of the user management and will also provide links ! back to the main administration module listed above. ! ! /Server/admin/ModuleAdmin/ ! This directory provides the module administration capabilities for the ! openPOS System. This will include the installation/de-installation, enabling ! and disabling of modules. ! ! /Server/adodb/ ! This directory contains the adodb library as found at ! http://php.weblogs.com/ADODB. This is our access methof to the database, and ! it also will allow us to connect to multiple different database backends. ! ! /Server/docs/ ! This directory holds the directoris containing the documentation for the ! OpenPOS System. It is noted that the exact form of this directory is not yet ! finalized and should change considerably between now and the version 0.1 release. ! ! /Server/docs/install ! This directory contains all documents relative to preparing a system for ! the installation of the OpenPOS System as well as installation itself. Due to ! the nature of our system, we shall provide documentation to help guide the user ! through setup of key components, such as PHP, a web server, and a database server. ! The most common combonations will be covered. ! ! /Server/docs/manual ! This directory contains the extensive online documenation to be used by ! the user while using the OpenPOS System. Think "Windows Help Pages" that actually ! help. ! ! /Server/docs/upgrade ! This directory contains documentation on upgrading the OpenPOS system from \ ! a previous release. ! ! /Server/java/ ! This directory will hold any java programs utilised by the web-based front ! end of the project. However for java programs that are module specific, they ! will be stored in the appropriate directory for the module in question. ! ! /Server/language/ ! This directory holds a directory for each language that the system has been ! configured to use. ! ! /Server/language/enu/ ! This directory holds the files which contain the language specific strings ! that are used in the display of information within the openPOS System. ! ! /Server/module/ ! This directory holds a directory for each user module installed in the ! openPOS System. ! ! /Server/module/ModuleName/ ! This directory will contain all the files relating to the module ModuleName. ! ! /Server/reports/ ! This directory holds a directory for each report installed in the openPOS ! System. ! ! /Server/reports/ReportName/ ! This directory will contain all the files relating to the report ReportName. |
From: <ope...@li...> - 2002-06-27 05:30:26
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv13396 Added Files: install.php Log Message: Added the beginnings of the installation script. --- NEW FILE: install.php --- <?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"; } ?> |
From: <ope...@li...> - 2002-06-27 05:29:09
|
Update of /cvsroot/openposs/Server/java In directory usw-pr-cvs1:/tmp/cvs-serv13062/java Log Message: Directory /cvsroot/openposs/Server/java added to the repository |
From: <ope...@li...> - 2002-06-27 05:28:44
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv12942 Modified Files: OPRFC005.txt Log Message: Completed the directory structure description. Index: OPRFC005.txt =================================================================== RCS file: /cvsroot/openposs/Documents/OPRFC005.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OPRFC005.txt 27 Jun 2002 03:53:54 -0000 1.1 --- OPRFC005.txt 27 Jun 2002 05:28:41 -0000 1.2 *************** *** 9,15 **** ~~~~~~~~ ! i - Prelude ! 1 - Server Directory Structure ! 2 - Directory Purpose Descriptions --- 9,18 ---- ~~~~~~~~ ! i - Prelude ! 1 - Server Directory Structure ! 1.1 - Directory Purpose Descriptions ! 2 - API Reference ! 2.1 - Database API ! 3 - Module Interface API *************** *** 107,112 **** ! 2 - Directory Purpose Descriptions ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Server/ --- 110,115 ---- ! 1.1 - Directory Purpose Descriptions ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Server/ *************** *** 136,138 **** openPOS System. This will include the installation/de-installation, enabling and disabling of modules. ! \ No newline at end of file --- 139,172 ---- openPOS System. This will include the installation/de-installation, enabling and disabling of modules. ! ! /Server/adodb/ ! This directory contains the adodb library as found at ! http://php.weblogs.com/ADODB. This is our access methof to the database, and ! it also will allow us to connect to multiple different database backends. ! ! /Server/java/ ! This directory will hold any java programs utilised by the web-based front ! end of the project. However for java programs that are module specific, they ! will be stored in the appropriate directory for the module in question. ! ! /Server/language/ ! This directory holds a directory for each language that the system has been ! configured to use. ! ! /Server/language/enu/ ! This directory holds the files which contain the language specific strings ! that are used in the display of information within the openPOS System. ! ! /Server/module/ ! This directory holds a directory for each user module installed in the ! openPOS System. ! ! /Server/module/ModuleName/ ! This directory will contain all the files relating to the module ModuleName. ! ! /Server/reports/ ! This directory holds a directory for each report installed in the openPOS ! System. ! ! /Server/reports/ReportName/ ! This directory will contain all the files relating to the report ReportName. |
From: <ope...@li...> - 2002-06-27 03:53:57
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv28855 Added Files: OPRFC005.txt Log Message: Initial Addition. --- NEW FILE: OPRFC005.txt --- Filename: OPRFC005.txt Author : Brian A Cheeseman <bc...@bc...> Date : June 27, 2002 Purpose : This document will describe the API's and directory structures utilized as part of the openPOS System. Status : Open for discussion. Contents ~~~~~~~~ i - Prelude 1 - Server Directory Structure 2 - Directory Purpose Descriptions i - Prelude ~~~~~~~~~~~ This document will describe the directory structure of the Server and API for the openPOS System. It will be a work inprogress throughout the development cycle of the project, however will be made into a standard each time a new release is made available to the public. 1 - Server Directory Structure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Server/ | +- admin/ | | | +- Admin/ | | | | | +- module.php | | : | | | +- UserAdmin/ | | | | | +- module.php | | : | | | +- ModuleAdmin/ | | | | | +- module.php | | : | : | +- index.php | : | +- adodb/ | | | : | +- java/ | | | : | +- language/ | | | +- eng/ | | | | | +- global.php | | : | | | +- deu/ | | | | | +- global.php | | : | : | +- module/ | | | +- Transaction/ | | | | | +- module.php | | +- admin.php | | : | | | +- Quote/ | | | | | +- module.php | | +- admin.php | | : | | | +- Customer/ | | | | | +- module.php | | +- admin.php | | : | : | +- reports/ | | | +- Low_Stock/ | | | | | +- report.php | | : | : | +- theme/ | +- Default/ | | | +- theme.php | +- theme.css | : : 2 - Directory Purpose Descriptions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Server/ This directory is the root of the directory structure for the openPOS System server. It contains the API's for the server, and also holds the initial configuration to get the server connected to the database containing all data for the system as well as the configuration data. /Server/admin/ This directory holds the directories containing the administration and configuration modules. /Server/admin/Admin/ This directory contains the php files for the top level of the administration capabilities within the openPOS system. Once coded, the end-user will have no need to change anything within these files. The files in this directory will basically provide a menu to the other admin modules within the /Server/admin/ directory structure. /Server/admin/UserAdmin/ This directory provides the User Administration module for the openPOS System. This will be all of the user management and will also provide links back to the main administration module listed above. /Server/admin/ModuleAdmin/ This directory provides the module administration capabilities for the openPOS System. This will include the installation/de-installation, enabling and disabling of modules. |
From: <ope...@li...> - 2002-06-27 03:49:48
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv27953 Modified Files: DocumentList.txt Log Message: Added OPRFC005.txt, which contains the Server API and directory structure. Index: DocumentList.txt =================================================================== RCS file: /cvsroot/openposs/Documents/DocumentList.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DocumentList.txt 26 Jun 2002 00:46:08 -0000 1.3 --- DocumentList.txt 27 Jun 2002 03:49:45 -0000 1.4 *************** *** 1,11 **** ! This document maintains a list of the documents in this module, and provides a ! brief description of the contents. ! ! +--------------+--------------------------------------------------------------+ ! | Document | Description | ! +--------------+--------------------------------------------------------------+ ! | OPRFC001.txt | Outline of project proposal and concepts of construction. | ! | OPRFC002.txt | Client/Server communication protocol description | ! | OPRFC003.txt | Outline of reports available in openPOS | ! | OPRFC004.txt | Outline of features for version 0.1.0 roadmap | ! +--------------+--------------------------------------------------------------+ --- 1,12 ---- ! This document maintains a list of the documents in this module, and provides a ! brief description of the contents. ! ! +--------------+--------------------------------------------------------------+ ! | Document | Description | ! +--------------+--------------------------------------------------------------+ ! | OPRFC001.txt | Outline of project proposal and concepts of construction. | ! | OPRFC002.txt | Client/Server communication protocol description | ! | OPRFC003.txt | Outline of reports available in openPOS | ! | OPRFC004.txt | Outline of features for version 0.1.0 roadmap | ! | OPRFC005.txt | openPOS System API, and directory structure. | ! +--------------+--------------------------------------------------------------+ |
From: <ope...@li...> - 2002-06-27 01:12:42
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv29048 Modified Files: index.php Log Message: Fixed eol characters in the file. Index: index.php =================================================================== RCS file: /cvsroot/openposs/Server/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 26 Jun 2002 00:43:20 -0000 1.5 --- index.php 27 Jun 2002 01:12:39 -0000 1.6 *************** *** 1,218 **** ! <?php ! /****************************************************************************** ! * * ! * File Name: index.php * ! * * ! * Created : Apr, 21 2001 * ! * * ! * Purpose : Provide the initial point of contact to the openPOS server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Moved the database code into database.php * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Initial Coding. * ! ******************************************************************************/ ! ! ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! include_once("database.php"); ! ! /****************************************************************************** ! * Function: ReadConfigFromDatabase() * ! * -------------------------------------------------------------------------- * ! * This function is used to read the configuration from the database table * ! * openPOS.Configuration. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ReadConfigFromDatabase() { ! ! } ! ! /****************************************************************************** ! * 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 $UserName; ! $Output = Theme_Open_Page(_OPENPOSMAINTITLE); ! $Output .= Theme_Open_Table("99%"); ! $Output .= Theme_Open_Row(); ! $Output .= Theme_Open_Data_Cell("Right", "15%"); ! if (isset($UserName)) { ! $Output .= $UserName." Logged In<br>"; ! } else { ! $Output .= "Not Logged In<br>"; ! } ! $Output .= "<br><br><B>" . _OPENPOSNAVTITLE . "</B><br>"; ! if ( strcmp($SystemConfig['modUserLogin'], "On")) { ! if (isset($UserName)) { ! $Output .= Theme_Add_Link("/Server/?action=logout", "Logout") . "<br>"; ! } else { ! $Output .= Theme_Add_Link("/Server/?action=login", "Login") . "<br>"; ! } ! } ! $Output .= Theme_Add_Link("/Server/?action=admin", _OPENPOSADMINTITLE ); ! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table(); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * 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() { ! GLOBAL $Action, $UserName, $Password; ! // Validate the password against the database, and if all is well ! // we will create a cookie, and return to the main menu. ! if (Validate_Password($UserName, $Password) == 1) { ! setcookie("openPOSAuthTok", $UserName, time()+3600); ! } ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! 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)) { ! setcookie("openPOSAuthTok", $UserName, time()-3600); ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! unset($UserName); ! } ! return; ! } ! ! /*End Functions ! *******************************************************************************/ ! ! global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; ! if (!DBInit()) { ! die("Unable to connect to the database."); ! } ! $OutputLang=$HTTP_GET_VARS["lang"]; ! $Action=$HTTP_GET_VARS["action"]; ! $OutputTheme=$HTTP_GET_VARS["theme"]; ! if (!isset($Action)) { ! $Action="none"; ! } ! if (!isset($OutputLang)) { ! $OutputLang="eng"; ! } ! if (!isset($OutputTheme)) { ! $OutputTheme="Default"; ! } ! if (isset($openPOSAuthTok)) { ! $UserName = $openPOSAuthTok; ! } ! include_once ("theme/$OutputTheme/theme.php"); ! include_once ("language/$OutputLang/global.php"); ! switch ($Action) { ! case "login": ! $HTMLOutput = Theme_Login_Screen(); ! break; ! case "submitlogin": ! $UserName=$HTTP_GET_VARS["username"]; ! $Password=$HTTP_GET_VARS["password"]; ! ProcessLoginRequest(); ! break; ! case "logout": ! ProcessLogoutRequest(); ! break; ! case "none": ! $HTMLOutput = DisplayMainMenu(); ! break; ! case "admin": ! $HTMLOutput = DisplayAdminMenu(); ! break; ! default: ! $HTMLOutput = DisplayError(); ! break; ! } ! if (!DBClose()) { ! die("Unable to disconnect from the database."); ! } ! if (isset($HTMLOutput)) { ! echo $HTMLOutput; ! } ! ?> --- 1,204 ---- ! <?php ! ! /****************************************************************************** ! * * ! * File Name: index.php * ! * * ! * Created : Apr, 21 2001 * ! * * ! * Purpose : Provide the initial point of contact to the openPOS server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Moved the database code into database.php * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Initial Coding. * ! ******************************************************************************/ ! ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! include_once("database.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 $UserName; ! $Output = Theme_Open_Page(_OPENPOSMAINTITLE); ! $Output .= Theme_Open_Table("99%"); ! $Output .= Theme_Open_Row(); ! $Output .= Theme_Open_Data_Cell("Right", "15%"); ! if (isset($UserName)) { ! $Output .= $UserName." Logged In<br>"; ! } else { ! $Output .= "Not Logged In<br>"; ! } ! $Output .= "<br><br><B>" . _OPENPOSNAVTITLE . "</B><br>"; ! if ( strcmp($SystemConfig['modUserLogin'], "On")) { ! if (isset($UserName)) { ! $Output .= Theme_Add_Link("/Server/?action=logout", "Logout") . "<br>"; ! } else { ! $Output .= Theme_Add_Link("/Server/?action=login", "Login") . "<br>"; ! } ! } ! $Output .= Theme_Add_Link("/Server/?action=admin", _OPENPOSADMINTITLE ); ! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table(); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * 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() { ! GLOBAL $Action, $UserName, $Password; ! // Validate the password against the database, and if all is well ! // we will create a cookie, and return to the main menu. ! if (Validate_Password($UserName, $Password) == 1) { ! setcookie("openPOSAuthTok", $UserName, time()+3600); ! } ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! 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)) { ! setcookie("openPOSAuthTok", $UserName, time()-3600); ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! unset($UserName); ! } ! return; ! } ! ! /*End Functions ! *******************************************************************************/ ! ! global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; ! if (!DBInit()) { ! die("Unable to connect to the database."); ! } ! $OutputLang=$HTTP_GET_VARS["lang"]; ! $Action=$HTTP_GET_VARS["action"]; ! $OutputTheme=$HTTP_GET_VARS["theme"]; ! if (!isset($Action)) { ! $Action="none"; ! } ! if (!isset($OutputLang)) { ! $OutputLang="eng"; ! } ! if (!isset($OutputTheme)) { ! $OutputTheme="Default"; ! } ! if (isset($openPOSAuthTok)) { ! $UserName = $openPOSAuthTok; ! } ! include_once ("theme/$OutputTheme/theme.php"); ! include_once ("language/$OutputLang/global.php"); ! switch ($Action) { ! case "login": ! $HTMLOutput = Theme_Login_Screen(); ! break; ! case "submitlogin": ! $UserName=$HTTP_GET_VARS["username"]; ! $Password=$HTTP_GET_VARS["password"]; ! ProcessLoginRequest(); ! break; ! case "logout": ! ProcessLogoutRequest(); ! break; ! case "none": ! $HTMLOutput = DisplayMainMenu(); ! break; ! case "admin": ! $HTMLOutput = DisplayAdminMenu(); ! break; ! default: ! $HTMLOutput = DisplayError(); ! break; ! } ! ! if (!DBClose()) { ! die("Unable to disconnect from the database."); ! } ! ! if (isset($HTMLOutput)) { ! echo $HTMLOutput; ! } ! ! ?> |
From: <ope...@li...> - 2002-06-27 00:58:39
|
Update of /cvsroot/openposs/Server/module In directory usw-pr-cvs1:/tmp/cvs-serv25024/module Log Message: Directory /cvsroot/openposs/Server/module added to the repository |
From: <ope...@li...> - 2002-06-27 00:58:21
|
Update of /cvsroot/openposs/Server/admin In directory usw-pr-cvs1:/tmp/cvs-serv24974/admin Log Message: Directory /cvsroot/openposs/Server/admin added to the repository |
From: <ope...@li...> - 2002-06-26 01:22:29
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv13177 Modified Files: MySQL_Creation_Script Log Message: Added Phone number fields, added install instructions Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MySQL_Creation_Script 25 Jun 2002 02:53:00 -0000 1.7 --- MySQL_Creation_Script 26 Jun 2002 01:22:26 -0000 1.8 *************** *** 11,22 **** # RDBMS : MySQL # ! ############################################################################### ! # Last Update # Who # Changes Made # ! #-----------------------------------------------------------------------------# ! # Apr 5, 2002 # BAC # Initial Creation # ! ############################################################################### # Who Key # BAC - Brian A Cheeseman # # --- 11,89 ---- # 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'. # ! # # # # ! ################################################################################ ! # # Who Key # BAC - Brian A Cheeseman + # CWS - Chris W Shaffer + + # + # Setup Instructions + # + # There are a few different ways to create teh database and insert the + # necessary records. The most straight-forward way is through the + # command line. At your terminal prompt (DOS window), enter the following + # 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 + # the database exists: + # + # %> mysql -uUSER -p + # + # Once again, you will be prompted for your password. After you enter you + # password, you will be greeted with the following prompt: + # + # mysql> + # + # Execute the following commands: + # + # mysql> USE openPOS; + # + # mysql> SHOW tables; + # + # If all went well with your installation, you will be greeted with + # the following output: + # + # +-------------------+ + # | Tables_in_openPOS | + # +-------------------+ + # | auditlog | + # | configuration | + # | customers | + # | grouprights | + # | orderitems | + # | orders | + # | stock_list | + # | systemgroups | + # | systemusers | + # | transactions | + # | userrights | + # | usertogroup | + # +-------------------+ + # 12 rows in set (0.00 sec) + # + # Congratulations, you are now ready to procede with the rest of the + # OpenPOSS setup. + # + # + ######################################################################## + # *************** *** 119,122 **** --- 186,190 ---- uid int, oid int, + term_ip varchar(15), DT datetime, KEY idx_Transaction_uid (uid)); *************** *** 159,161 **** --- 227,232 ---- BillingZip char(10), BillingCountry varchar(255), + HomePhone varchar(25) NULL, + WorkPhone varchar(25) NULL, + OtherPhone varchar(25) NULL, KEY idx_Customer_Surname (Surname(10))); |
From: <ope...@li...> - 2002-06-26 00:47:32
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv4762 Added Files: OPRFC004.txt Log Message: Initial creation. Plenty of changes to come --- NEW FILE: OPRFC004.txt --- Filename: OPRFC004.txt Author : Chris W. Shaffer <chr...@be...> Date : June 24, 2002 Purpose : This document will serve as a roadmap for our release path to version 1.0 Status : Open for Discussion. CONTENTS ~~~~~~~~ i - Prelude 1 - Version 0.1 Feature List i. Prelude ~~~~~~~~~~ The purpose of this document is to provide a "roadmap" for the development team of the OpenPOS Sytem all versions pre-1.0. This document will be altered frequently, as new features are added or removed. Also, new versions will be added to completely "map-out" our development to version 1.0. 1. Version 0.1 Feature List ~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Users - Creation of users - Login & security - Defining new user types - variable user permissions * Inventory - SKU generation - Product cost & price - Various inventory reports - User defined inventory reports - Catagory/heiarchical inventory system - Add/remove/change inventory items - Service items (labor) * Transactions - Suspend & recall transactions at terminal - Handles multiple tenders & currency - Sale of service - End of day reconciliation - Mulitple Tax Rates - Tax Free line items or total sale - Credit card number validation - Return processing - Customer purchace tracking - Qutoe generation - Recipt/invoice generation * Customer Tracking - Completly optional customer tracking (user decision) - Generation of customer id number - Various datafields. + Name, first, middle, and last + Address + City + State + Country + Phone numbers + DOB + User defined fields - Customer based reports * System Managment - System back-up - Extensive, searchable online documentation * Administration Panel - Add/Change/Remove User - Add/Change/Remove Inventory - Toggle features on and/or off - Set user permissions - Back-up system - Set system-wide variables + Store Name + Store owner + Database variables + Currency + Tax rate(s) + Recipt styles + Valid client ip addresses |
From: <ope...@li...> - 2002-06-26 00:46:10
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv4429 Modified Files: DocumentList.txt Log Message: Added new file: OPRFC004.txt Index: DocumentList.txt =================================================================== RCS file: /cvsroot/openposs/Documents/DocumentList.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DocumentList.txt 9 Apr 2002 13:15:17 -0000 1.2 --- DocumentList.txt 26 Jun 2002 00:46:08 -0000 1.3 *************** *** 1,10 **** ! This document maintains a list of the documents in this module, and provides a ! brief description of the contents. ! ! +--------------+--------------------------------------------------------------+ ! | Document | Description | ! +--------------+--------------------------------------------------------------+ ! | OPRFC001.txt | Outline of project proposal and concepts of construction. | ! | OPRFC002.txt | Client/Server communication protocol description | ! | OPRFC003.txt | Outline of reports available in openPOS | ! +--------------+--------------------------------------------------------------+ --- 1,11 ---- ! This document maintains a list of the documents in this module, and provides a ! brief description of the contents. ! ! +--------------+--------------------------------------------------------------+ ! | Document | Description | ! +--------------+--------------------------------------------------------------+ ! | OPRFC001.txt | Outline of project proposal and concepts of construction. | ! | OPRFC002.txt | Client/Server communication protocol description | ! | OPRFC003.txt | Outline of reports available in openPOS | ! | OPRFC004.txt | Outline of features for version 0.1.0 roadmap | ! +--------------+--------------------------------------------------------------+ |
From: <ope...@li...> - 2002-06-26 00:43:24
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv3787 Modified Files: index.php Log Message: Made documentation and style changes Index: index.php =================================================================== RCS file: /cvsroot/openposs/Server/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 25 Jun 2002 03:18:53 -0000 1.4 --- index.php 26 Jun 2002 00:43:20 -0000 1.5 *************** *** 1,229 **** ! <?php ! /****************************************************************************** ! * * ! * File Name: /lang/eng/something.php * ! * * ! * Created : Apr, 21 2001 * ! * * ! * Purpose : Provide the initial point of contact to the openPOS server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Moved the database code into database.php * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Initial Coding. * ! ******************************************************************************/ ! ! ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! include_once("database.php"); ! ! /****************************************************************************** ! * Function: ReadConfigFromDatabase() * ! * -------------------------------------------------------------------------- * ! * This function is used to read the configuration from the database table * ! * openPOS.Configuration. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ReadConfigFromDatabase() { ! ! } ! ! /****************************************************************************** ! * 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 $UserName; ! $Output = Theme_Open_Page(_OPENPOSMAINTITLE); ! $Output .= Theme_Open_Table("99%"); ! $Output .= Theme_Open_Row(); ! $Output .= Theme_Open_Data_Cell("Right", "15%"); ! if (isset($UserName)) { ! $Output .= $UserName." Logged In<br>"; ! } else { ! $Output .= "Not Logged In<br>"; ! } ! $Output .= "<br><br><B>" . _OPENPOSNAVTITLE . "</B><br>"; ! if ( strcmp($SystemConfig['modUserLogin'], "On")) { ! if (isset($UserName)) { ! $Output .= Theme_Add_Link("/Server/?action=logout", "Logout") . "<br>"; ! } else { ! $Output .= Theme_Add_Link("/Server/?action=login", "Login") . "<br>"; ! } ! } ! $Output .= Theme_Add_Link("/Server/?action=admin", _OPENPOSADMINTITLE ); ! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table(); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * 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 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 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 display the administration menu when the user is * ! * accessing the system via a web browser. * ! * * ! * Returned Values * ! * HTML Code to log the user in. This code is generated from the theme.php * ! * file. This way the login screen can be customised. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLoginRequest() { ! GLOBAL $Action, $UserName, $Password; ! // Validate the password against the database, and if all is well ! // we will create a cookie, and return to the main menu. ! if (Validate_Password($UserName, $Password) == 1) { ! setcookie("openPOSAuthTok", $UserName, time()+3600); ! } ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! return; ! } ! ! /****************************************************************************** ! * Function: ProcessLogoutRequest() * ! * -------------------------------------------------------------------------- * ! * This function will display the administration menu when the user is * ! * accessing the system via a web browser. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLogoutRequest() { ! GLOBAL $Action, $UserName; ! if (isset($UserName)) { ! setcookie("openPOSAuthTok", $UserName, time()-3600); ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! unset($UserName); ! } ! return; ! } ! ! /****************************************************************************** ! * Function: DisplayAdminMenu() * ! * -------------------------------------------------------------------------- * ! * This function will display the administration menu when the user is * ! * accessing the system via a web browser. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; ! if (!DBInit()) { ! die("Unable to connect to the database."); ! } ! $OutputLang=$HTTP_GET_VARS["lang"]; ! $Action=$HTTP_GET_VARS["action"]; ! $OutputTheme=$HTTP_GET_VARS["theme"]; ! if (!isset($Action)) { ! $Action="none"; ! } ! if (!isset($OutputLang)) { ! $OutputLang="eng"; ! } ! if (!isset($OutputTheme)) { ! $OutputTheme="Default"; ! } ! if (isset($openPOSAuthTok)) { ! $UserName = $openPOSAuthTok; ! } ! include_once ("theme/$OutputTheme/theme.php"); ! include_once ("language/$OutputLang/global.php"); ! switch ($Action) { ! case "login": ! $HTMLOutput = Theme_Login_Screen(); ! break; ! case "submitlogin": ! $UserName=$HTTP_GET_VARS["username"]; ! $Password=$HTTP_GET_VARS["password"]; ! ProcessLoginRequest(); ! break; ! case "logout": ! ProcessLogoutRequest(); ! break; ! case "none": ! $HTMLOutput = DisplayMainMenu(); ! break; ! case "admin": ! $HTMLOutput = DisplayAdminMenu(); ! break; ! default: ! $HTMLOutput = DisplayError(); ! break; ! } ! if (!DBClose()) { ! die("Unable to disconnect from the database."); ! } ! if (isset($HTMLOutput)) { ! echo $HTMLOutput; ! } ! ?> --- 1,218 ---- ! <?php ! /****************************************************************************** ! * * ! * File Name: index.php * ! * * ! * Created : Apr, 21 2001 * ! * * ! * Purpose : Provide the initial point of contact to the openPOS server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Moved the database code into database.php * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Initial Coding. * ! ******************************************************************************/ ! ! ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! include_once("database.php"); ! ! /****************************************************************************** ! * Function: ReadConfigFromDatabase() * ! * -------------------------------------------------------------------------- * ! * This function is used to read the configuration from the database table * ! * openPOS.Configuration. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ReadConfigFromDatabase() { ! ! } ! ! /****************************************************************************** ! * 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 $UserName; ! $Output = Theme_Open_Page(_OPENPOSMAINTITLE); ! $Output .= Theme_Open_Table("99%"); ! $Output .= Theme_Open_Row(); ! $Output .= Theme_Open_Data_Cell("Right", "15%"); ! if (isset($UserName)) { ! $Output .= $UserName." Logged In<br>"; ! } else { ! $Output .= "Not Logged In<br>"; ! } ! $Output .= "<br><br><B>" . _OPENPOSNAVTITLE . "</B><br>"; ! if ( strcmp($SystemConfig['modUserLogin'], "On")) { ! if (isset($UserName)) { ! $Output .= Theme_Add_Link("/Server/?action=logout", "Logout") . "<br>"; ! } else { ! $Output .= Theme_Add_Link("/Server/?action=login", "Login") . "<br>"; ! } ! } ! $Output .= Theme_Add_Link("/Server/?action=admin", _OPENPOSADMINTITLE ); ! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table(); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * 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() { ! GLOBAL $Action, $UserName, $Password; ! // Validate the password against the database, and if all is well ! // we will create a cookie, and return to the main menu. ! if (Validate_Password($UserName, $Password) == 1) { ! setcookie("openPOSAuthTok", $UserName, time()+3600); ! } ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! 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)) { ! setcookie("openPOSAuthTok", $UserName, time()-3600); ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! unset($UserName); ! } ! return; ! } ! ! /*End Functions ! *******************************************************************************/ ! ! global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; ! if (!DBInit()) { ! die("Unable to connect to the database."); ! } ! $OutputLang=$HTTP_GET_VARS["lang"]; ! $Action=$HTTP_GET_VARS["action"]; ! $OutputTheme=$HTTP_GET_VARS["theme"]; ! if (!isset($Action)) { ! $Action="none"; ! } ! if (!isset($OutputLang)) { ! $OutputLang="eng"; ! } ! if (!isset($OutputTheme)) { ! $OutputTheme="Default"; ! } ! if (isset($openPOSAuthTok)) { ! $UserName = $openPOSAuthTok; ! } ! include_once ("theme/$OutputTheme/theme.php"); ! include_once ("language/$OutputLang/global.php"); ! switch ($Action) { ! case "login": ! $HTMLOutput = Theme_Login_Screen(); ! break; ! case "submitlogin": ! $UserName=$HTTP_GET_VARS["username"]; ! $Password=$HTTP_GET_VARS["password"]; ! ProcessLoginRequest(); ! break; ! case "logout": ! ProcessLogoutRequest(); ! break; ! case "none": ! $HTMLOutput = DisplayMainMenu(); ! break; ! case "admin": ! $HTMLOutput = DisplayAdminMenu(); ! break; ! default: ! $HTMLOutput = DisplayError(); ! break; ! } ! if (!DBClose()) { ! die("Unable to disconnect from the database."); ! } ! if (isset($HTMLOutput)) { ! echo $HTMLOutput; ! } ! ?> |
From: <ope...@li...> - 2002-06-25 05:45:46
|
Update of /cvsroot/openposs/Server/theme/Default In directory usw-pr-cvs1:/tmp/cvs-serv32455 Modified Files: theme.php Log Message: Added documentation Index: theme.php =================================================================== RCS file: /cvsroot/openposs/Server/theme/Default/theme.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** theme.php 25 Jun 2002 03:18:00 -0000 1.1 --- theme.php 25 Jun 2002 05:45:43 -0000 1.2 *************** *** 1,4 **** --- 1,16 ---- <? + /****************************************************************************** + * Function: Theme_Open_Page() * + * -------------------------------------------------------------------------- * + * This function is used to generate the HTML code for the start of a webpage * + * and should be called before any of the functions below. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * $Title: This is a string of text to be used in the page title. * + ******************************************************************************/ function Theme_Open_Page($Title) { $Output = "<HTML><HEAD><TITLE>"._OPENPOSTITLE." :: $Title</TITLE>"; *************** *** 7,10 **** --- 19,35 ---- } + /****************************************************************************** + * Function: Theme_Close_Page() * + * -------------------------------------------------------------------------- * + * This function is used to generate the HTML code to finish off the webpage * + * and should be called after all other function calls within this module * + * have been completed. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * None. * + ******************************************************************************/ function Theme_Close_Page() { $Output = "</BODY></HTML>"; *************** *** 12,15 **** --- 37,53 ---- } + /****************************************************************************** + * Function: Theme_Open_Table() * + * -------------------------------------------------------------------------- * + * This function is used to generate the <TABLE> HTML tags for the beginning * + * of a HTML table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * $Width: (OPTIONAL) the value of the table width which can be either a * + * fixed number of pixels, or a percentage. * + ******************************************************************************/ function Theme_Open_Table($Width = "") { $Output = "<TABLE BORDER=\"0\" CELLPADDING=\"2\" CELLSPACING=\"2\""; *************** *** 21,24 **** --- 59,73 ---- } + /****************************************************************************** + * Function: Theme_Close_Table() * + * -------------------------------------------------------------------------- * + * This function is used to generate the closing tag for a HTML table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * None. * + ******************************************************************************/ function Theme_Close_Table() { $Output = "</TABLE>"; *************** *** 26,29 **** --- 75,90 ---- } + /****************************************************************************** + * Function: Theme_Open_Row() * + * -------------------------------------------------------------------------- * + * This function is used to generate the HTML snippet for starting a row in a * + * HTML webpage table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * None. * + ******************************************************************************/ function Theme_Open_Row() { $Output = "<TR>"; *************** *** 31,34 **** --- 92,107 ---- } + /****************************************************************************** + * Function: Theme_Close_Row() * + * -------------------------------------------------------------------------- * + * This function is used to generate the HTML snippet for finishing a row in * + * a HTML webpage table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * None. * + ******************************************************************************/ function Theme_Close_Row() { $Output = "</TR>"; *************** *** 36,39 **** --- 109,124 ---- } + /****************************************************************************** + * Function: Theme_Open_Header_Cell() * + * -------------------------------------------------------------------------- * + * This function is used to generate the HTML snippet used to create a header * + * cell in a HTML table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * $Align: (OPTIONAL) alignment of the contents of the cell. * + ******************************************************************************/ function Theme_Open_Header_Cell($Align = "LEFT") { $Output = "<TH ALIGN=\"$Align\">"; *************** *** 41,44 **** --- 126,141 ---- } + /****************************************************************************** + * Function: Theme_Close_Header_Cell() * + * -------------------------------------------------------------------------- * + * This function is used to generate the HTML snippet used to end a header * + * cell in a HTML table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * None. * + ******************************************************************************/ function Theme_Close_Header_Cell() { $Output = "</TH>"; *************** *** 46,49 **** --- 143,159 ---- } + /****************************************************************************** + * Function: Theme_Open_Data_Cell() * + * -------------------------------------------------------------------------- * + * This function is used to generate a HTML snippet to create a normal data * + * cell within a HTML table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * $Align: (OPTIONAL) alignment of the contents of the cell. * + * $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\""; *************** *** 55,58 **** --- 165,180 ---- } + /****************************************************************************** + * Function: Theme_Close_Data_Cell() * + * -------------------------------------------------------------------------- * + * This function is used to generate a HTML snippet to close off a normal * + * data cell within a HTML table. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * None. * + ******************************************************************************/ function Theme_Close_Data_Cell() { $Output = "</TD>"; *************** *** 60,63 **** --- 182,197 ---- } + /****************************************************************************** + * Function: ReadConfigFromDatabase() * + * -------------------------------------------------------------------------- * + * This function is used to create a HTML link snippet. * + * * + * Returned Values * + * HTML code snippet. * + * * + * Input Values * + * $URI: URI of the location the link points to. * + * $Label: The text of the link. * + ******************************************************************************/ function Theme_Add_Link($URI, $Label) { $Output = "<A HREF=\"$URI\">$Label</A>"; *************** *** 65,68 **** --- 199,214 ---- } + /****************************************************************************** + * Function: Theme_Login_Screen() * + * -------------------------------------------------------------------------- * + * This function is used to produce a HTML web page that is used as the login * + * page for the openPOS System. * + * * + * Returned Values * + * HTML Webpage. * + * * + * Input Values * + * None. * + ******************************************************************************/ function Theme_Login_Screen() { $Output = Theme_Open_Page(_OPENPOSLOGINTITLE)."<DIV ALIGN=\"CENTER\">"; |
From: <ope...@li...> - 2002-06-25 03:21:09
|
Update of /cvsroot/openposs/Server/language/eng In directory usw-pr-cvs1:/tmp/cvs-serv6429 Modified Files: global.php Log Message: Added additional text constants for the basic user authentication. Index: global.php =================================================================== RCS file: /cvsroot/openposs/Server/language/eng/global.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** global.php 6 Apr 2002 13:35:50 -0000 1.3 --- global.php 25 Jun 2002 03:21:06 -0000 1.4 *************** *** 6,20 **** # Purpose : To provide language based strings for the openPOS project. # ! ############################################################################### ! # Last Update # Who # Changes Made # ! #-------------#-----#---------------------------------------------------------# ! # Apr 6, 2002 # BAC # Initial Creation # ! ############################################################################### # Who Key # BAC - Brian A Cheeseman # define(_OPENPOSTITLE,"openPOS"); ! define(_OPENPOSADMINTITLE,"openPOS Administration"); ! define(_OPENPOSMAINTITLE,"openPOS Main Menu"); ?> --- 6,24 ---- # 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<br>Menu"); ! define(_OPENPOSLOGINTITLE, "Login"); ?> |
From: <ope...@li...> - 2002-06-25 03:18:56
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv5997 Modified Files: config.php database.php index.php Log Message: Added basic user authentication. Index: config.php =================================================================== RCS file: /cvsroot/openposs/Server/config.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** config.php 12 Apr 2002 11:44:30 -0000 1.4 --- config.php 25 Jun 2002 03:18:53 -0000 1.5 *************** *** 18,22 **** $DBConfig['Server']="localhost"; $DBConfig['UserName']="root"; ! $DBConfig['Password']="openPOS"; $DBConfig['DBName']="openPOS"; $DBConfig['DBType']="mysql"; --- 18,22 ---- $DBConfig['Server']="localhost"; $DBConfig['UserName']="root"; ! $DBConfig['Password']=""; $DBConfig['DBName']="openPOS"; $DBConfig['DBType']="mysql"; Index: database.php =================================================================== RCS file: /cvsroot/openposs/Server/database.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** database.php 12 Apr 2002 11:44:30 -0000 1.2 --- database.php 25 Jun 2002 03:18:53 -0000 1.3 *************** *** 20,24 **** function DBInit() { ! global $DBConfig; // Assign the database connection information to variables. --- 20,24 ---- function DBInit() { ! global $DBConfig, $SystemConfig; // Assign the database connection information to variables. *************** *** 39,47 **** 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); --- 39,45 ---- *************** *** 54,58 **** } } ! return true; } --- 52,61 ---- } } ! // 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; ! } return true; } *************** *** 63,66 **** --- 66,84 ---- return true; + } + + function Validate_Password($UserName, $Password) { + GLOBAL $DBConn; + $ret_val = 0; + $sql = "SELECT Password FROM SystemUsers WHERE UserName=\"$UserName\""; + $result = $DBConn->Execute($sql); + if ($result->NumRows() > 0) { + list($pw) = $result->fields; + $pword = md5($Password); + if (strcmp($pw, $pword) == 0) { + $ret_val = 1; + } + } + return $ret_val; } Index: index.php =================================================================== RCS file: /cvsroot/openposs/Server/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 17 Apr 2002 11:55:18 -0000 1.3 --- index.php 25 Jun 2002 03:18:53 -0000 1.4 *************** *** 24,27 **** --- 24,42 ---- include_once("database.php"); + /****************************************************************************** + * Function: ReadConfigFromDatabase() * + * -------------------------------------------------------------------------- * + * This function is used to read the configuration from the database table * + * openPOS.Configuration. * + * * + * Returned Values * + * None. * + * * + * Input Values * + * None. * + ******************************************************************************/ + function ReadConfigFromDatabase() { + + } /****************************************************************************** *************** *** 32,36 **** * * * Returned Values * ! * None. * * * * Input Values * --- 47,51 ---- * * * Returned Values * ! * HTML Page text to return to the client. * * * * Input Values * *************** *** 38,45 **** ******************************************************************************/ function DisplayMainMenu() { ! global $HTMLOutput; ! $HTMLOutput = "<HTML><HEAD><TITLE>"; ! $HTMLOutput .= _OPENPOSTITLE."</TITLE></HEAD><BODY><DIV ALIGN=\"center\"><H1>"._OPENPOSMAINTITLE."</H1></DIV>"; ! $HTMLOutput .= "</BODY></HTML>"; } --- 53,81 ---- ******************************************************************************/ function DisplayMainMenu() { ! GLOBAL $UserName; ! $Output = Theme_Open_Page(_OPENPOSMAINTITLE); ! $Output .= Theme_Open_Table("99%"); ! $Output .= Theme_Open_Row(); ! $Output .= Theme_Open_Data_Cell("Right", "15%"); ! if (isset($UserName)) { ! $Output .= $UserName." Logged In<br>"; ! } else { ! $Output .= "Not Logged In<br>"; ! } ! $Output .= "<br><br><B>" . _OPENPOSNAVTITLE . "</B><br>"; ! if ( strcmp($SystemConfig['modUserLogin'], "On")) { ! if (isset($UserName)) { ! $Output .= Theme_Add_Link("/Server/?action=logout", "Logout") . "<br>"; ! } else { ! $Output .= Theme_Add_Link("/Server/?action=login", "Login") . "<br>"; ! } ! } ! $Output .= Theme_Add_Link("/Server/?action=admin", _OPENPOSADMINTITLE ); ! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table(); ! $Output .= Theme_Close_Page(); ! return $Output; } *************** *** 51,55 **** * * * Returned Values * ! * None. * * * * Input Values * --- 87,91 ---- * * * Returned Values * ! * HTML Page text to return to the client. * * * * Input Values * *************** *** 57,66 **** ******************************************************************************/ function DisplayAdminMenu() { ! global $HTMLOutput; ! $HTMLOutput = "<HTML><HEAD><TITLE>"; ! $HTMLOutput .= _OPENPOSTITLE."</TITLE></HEAD><BODY><DIV ALIGN=\"center\"><H1>"._OPENPOSADMINTITLE."</H1></DIV>"; ! $HTMLOutput .= "</BODY></HTML>"; } /****************************************************************************** --- 93,167 ---- ******************************************************************************/ function DisplayAdminMenu() { ! $Output = Theme_Open_Page(_OPENPOSADMINTITLE); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: DisplayError() * ! * -------------------------------------------------------------------------- * ! * 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 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 display the administration menu when the user is * ! * accessing the system via a web browser. * ! * * ! * Returned Values * ! * HTML Code to log the user in. This code is generated from the theme.php * ! * file. This way the login screen can be customised. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLoginRequest() { ! GLOBAL $Action, $UserName, $Password; ! // Validate the password against the database, and if all is well ! // we will create a cookie, and return to the main menu. ! if (Validate_Password($UserName, $Password) == 1) { ! setcookie("openPOSAuthTok", $UserName, time()+3600); ! } ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! return; } + /****************************************************************************** + * Function: ProcessLogoutRequest() * + * -------------------------------------------------------------------------- * + * This function will display the administration menu when the user is * + * accessing the system via a web browser. * + * * + * Returned Values * + * None. * + * * + * Input Values * + * None. * + ******************************************************************************/ + function ProcessLogoutRequest() { + GLOBAL $Action, $UserName; + if (isset($UserName)) { + setcookie("openPOSAuthTok", $UserName, time()-3600); + header("HTTP/1.0 303 See Other"); + header("Location: /Server/"); + unset($UserName); + } + return; + } /****************************************************************************** *************** *** 76,80 **** * None. * ******************************************************************************/ ! global $HTMLOutput, $OutputLang, $Action; if (!DBInit()) { die("Unable to connect to the database."); --- 177,182 ---- * None. * ******************************************************************************/ ! global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; if (!DBInit()) { die("Unable to connect to the database."); *************** *** 82,85 **** --- 184,188 ---- $OutputLang=$HTTP_GET_VARS["lang"]; $Action=$HTTP_GET_VARS["action"]; + $OutputTheme=$HTTP_GET_VARS["theme"]; if (!isset($Action)) { $Action="none"; *************** *** 88,103 **** $OutputLang="eng"; } include_once ("language/$OutputLang/global.php"); switch ($Action) { ! case "none": ! DisplayMainMenu(); ! break; case "admin": ! DisplayAdminMenu(); ! break; } if (!DBClose()) { die("Unable to disconnect from the database."); } ! echo $HTMLOutput; ?> --- 191,229 ---- $OutputLang="eng"; } + if (!isset($OutputTheme)) { + $OutputTheme="Default"; + } + if (isset($openPOSAuthTok)) { + $UserName = $openPOSAuthTok; + } + include_once ("theme/$OutputTheme/theme.php"); include_once ("language/$OutputLang/global.php"); switch ($Action) { ! case "login": ! $HTMLOutput = Theme_Login_Screen(); ! break; ! case "submitlogin": ! $UserName=$HTTP_GET_VARS["username"]; ! $Password=$HTTP_GET_VARS["password"]; ! ProcessLoginRequest(); ! break; ! case "logout": ! ProcessLogoutRequest(); ! break; ! case "none": ! $HTMLOutput = DisplayMainMenu(); ! break; case "admin": ! $HTMLOutput = DisplayAdminMenu(); ! break; ! default: ! $HTMLOutput = DisplayError(); ! break; } if (!DBClose()) { die("Unable to disconnect from the database."); } ! if (isset($HTMLOutput)) { ! echo $HTMLOutput; ! } ?> |
From: <ope...@li...> - 2002-06-25 03:18:03
|
Update of /cvsroot/openposs/Server/theme/Default In directory usw-pr-cvs1:/tmp/cvs-serv5816 Added Files: theme.css theme.php Log Message: Added initial themes support. Code yet to be documented. --- NEW FILE: theme.css --- BODY { background: #00003F; color: #FFFFFF; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; font-weight: normal; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-decoration: none; } TD { color: #FFFFFF font-family: Tahoma, Verdana, sans-serif; font-size: 13px; } TH { font-family: Tahoma, Verdana, sans-serif; font-size: 15px; } TEXTAREA { border-bottom-width: 1px; border-color: #00007F; border-left-width: 1px; border-right-width: 1px; border-style: solid; border-top-width: 1px; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; font-weight: bold; text-indent: 2px; } INPUT { background-color: transparent; border-bottom-width: 1px; border-color: #366FFF; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; color: #366FFF; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; font-weight: normal; text-indent: 2px; } INPUT.r-button { background-color: transparent; font-family: Tahoma, Verdana, sans-serif; } SELECT { font-family: Tahoma, Verdana, sans-serif; font-size: 13px; font-weight: bold; } A:link { background-color: transparent; color: #7F7FFF; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; text-decoration: none; } A:visited { background-color: transparent; color: #7F7FFF; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; text-decoration: none; } A:hover { background-color: transparent; color: #7F7FFF; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; text-decoration: underline; } A:active { background-color: transparent; color: #7F7FFF; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; text-decoration: none; } --- NEW FILE: theme.php --- <? function Theme_Open_Page($Title) { $Output = "<HTML><HEAD><TITLE>"._OPENPOSTITLE." :: $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; } function Theme_Close_Page() { $Output = "</BODY></HTML>"; return $Output; } function Theme_Open_Table($Width = "") { $Output = "<TABLE BORDER=\"0\" CELLPADDING=\"2\" CELLSPACING=\"2\""; if (isset($Width)) { $Output .= " WIDTH=\"$Width\""; } $Output .= ">"; return $Output; } function Theme_Close_Table() { $Output = "</TABLE>"; return $Output; } function Theme_Open_Row() { $Output = "<TR>"; return $Output; } function Theme_Close_Row() { $Output = "</TR>"; return $Output; } function Theme_Open_Header_Cell($Align = "LEFT") { $Output = "<TH ALIGN=\"$Align\">"; return $Output; } function Theme_Close_Header_Cell() { $Output = "</TH>"; return $Output; } function Theme_Open_Data_Cell($Align = "LEFT", $Width = "") { $Output = "<TD ALIGN=\"$Align\""; if (isset($Width)) { $Output .= " WIDTH=\"$Width\""; } $Output .= ">"; return $Output; } function Theme_Close_Data_Cell() { $Output = "</TD>"; return $Output; } function Theme_Add_Link($URI, $Label) { $Output = "<A HREF=\"$URI\">$Label</A>"; return $Output; } function Theme_Login_Screen() { $Output = Theme_Open_Page(_OPENPOSLOGINTITLE)."<DIV ALIGN=\"CENTER\">"; $Output .= "<FORM ACTION=\"/Server/\" METHOD=\"GET\">"; $Output .= 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(); $Output .= Theme_Close_Row().Theme_Open_Row().Theme_Open_Data_Cell("Right"); $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 .= "<INPUT TYPE=\"HIDDEN\" NAME=\"action\" VALUE=\"submitlogin\">"; $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()."</FORM></DIV>".Theme_Close_Page(); return $Output; } ?> |
From: <ope...@li...> - 2002-06-25 02:53:03
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv29561 Modified Files: MySQL_Creation_Script Log Message: Added the Super User entry to the SystemUsers table Username: Admin Password: openPOS Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MySQL_Creation_Script 25 Jun 2002 02:26:18 -0000 1.6 --- MySQL_Creation_Script 25 Jun 2002 02:53:00 -0000 1.7 *************** *** 66,69 **** --- 66,74 ---- Active tinyint NOT NULL default 0, SuperUser tinyint NOT NULL default 0); + + # Insert the initial SuperUser into the Users Table. + # 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); # |
From: <ope...@li...> - 2002-06-25 02:26:24
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv18210 Modified Files: MySQL_Creation_Script Log Message: Added some basic default values for "module" status (On or Off) Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MySQL_Creation_Script 7 Apr 2002 08:48:45 -0000 1.5 --- MySQL_Creation_Script 25 Jun 2002 02:26:18 -0000 1.6 *************** *** 33,39 **** # ! # Insert the database version into the configuration table # INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("DBVersion", "DEV 0.1"); # --- 33,43 ---- # ! # 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"); # *************** *** 43,47 **** CREATE TABLE openPOS.Stock_List (sid int auto_increment PRIMARY KEY, Description varchar(255) NOT NULL default "", ! OrderCode varchar(50) NOT NULL default "", ScanCode varchar(50) NOT NULL default "", Price decimal(7,2) NOT NULL default 0.00, --- 47,51 ---- CREATE TABLE openPOS.Stock_List (sid int auto_increment PRIMARY KEY, Description varchar(255) NOT NULL default "", ! OrderCode varchar(50) NOT NULL default "", ScanCode varchar(50) NOT NULL default "", Price decimal(7,2) NOT NULL default 0.00, *************** *** 60,64 **** FullName varchar(255) NOT NULL default "", Password varchar(255) NOT NULL default "", ! Active tinyint NOT NULL default 1); # --- 64,69 ---- FullName varchar(255) NOT NULL default "", Password varchar(255) NOT NULL default "", ! Active tinyint NOT NULL default 0, ! SuperUser tinyint NOT NULL default 0); # *************** *** 138,151 **** CREATE TABLE openPOS.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), ! KEY idx_Customer_Surname (Surname(10))); --- 143,156 ---- CREATE TABLE openPOS.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), ! KEY idx_Customer_Surname (Surname(10))); |
From: <ope...@li...> - 2002-06-23 19:43:43
|
Update of /cvsroot/openposs/Server/theme/Default In directory usw-pr-cvs1:/tmp/cvs-serv14751/Default Log Message: Directory /cvsroot/openposs/Server/theme/Default added to the repository |
From: <ope...@li...> - 2002-06-23 16:56:52
|
Hello, Test Brian. |