PageRenderTime 50ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/config.distrib.php

http://kwamoja.codeplex.com
PHP | 101 lines | 26 code | 27 blank | 48 comment | 6 complexity | 2b50a80d83f8f4180726d6ccbebaf2b9 MD5 | raw file
Possible License(s): LGPL-3.0, AGPL-1.0, GPL-2.0, LGPL-2.1
  1. <?php
  2. /* $Id$ */
  3. // User configurable variables
  4. //---------------------------------------------------
  5. //DefaultLanguage to use for the login screen and the setup of new users - the users language selection will override
  6. $DefaultLanguage ='en_GB.utf8';
  7. // Whether to display the demo login and password or not on the login screen
  8. $AllowDemoMode = True;
  9. // KwaMoja version
  10. // $Version = '3.13-rc0 UTF-8 capable';
  11. // The timezone of the business - this allows the possibility of having
  12. // the web-server on a overseas machine but record local time
  13. // this is not necessary if you have your own server locally
  14. //date_default_timezone_set('Europe/London');
  15. //date_default_timezone_set('America/Los_Angeles');
  16. date_default_timezone_set('Asia/Shanghai');
  17. //date_default_timezone_set('Australia/Melbourne');
  18. //date_default_timezone_set('Australia/Sydney');
  19. //date_default_timezone_set('Pacific/Auckland');
  20. // Connection information for the database
  21. // $host is the computer ip address or name where the database is located
  22. // assuming that the web server is also the sql server
  23. $host = 'localhost';
  24. $mysqlport=3306;
  25. //The type of db server being used - currently only postgres or mysql
  26. $DBType = 'mysqli';
  27. //$DBType = 'postgres' - DEPRECATED;
  28. //$DBType = 'mysql';
  29. //$DBType = 'mysqli'; for PHP 5 and mysql > 4.1
  30. // sql user & password
  31. $DBUser = 'kwamoja_db_user';
  32. $DBPassword = 'kwamoja_db_pwd';
  33. //It would probably be inappropraite to allow selection of the company in a hosted envionment so this option can be turned off with this parameter
  34. $AllowCompanySelectionBox = true;
  35. //If $AllowCompanySelectionBox = false above then the $DefaultCompany string is entered in the login screen as a default - otherwise the user is expected to know the name of the company to log into.
  36. $DefaultCompany = 'kwamojademo';
  37. //The maximum time that a login session can be idle before automatic logout
  38. //time is in seconds 3600 seconds in an hour
  39. $SessionLifeTime = 3600;
  40. //The maximum time that a script can execute for before the web-server should terminate it
  41. $MaximumExecutionTime =120;
  42. //The path to which session files should be stored in the server - useful for some multi-host web servers
  43. //this can be left commented out
  44. //$SessionSavePath = '/tmp';
  45. // which encryption function should be used
  46. //$CryptFunction = "md5"; // MD5 Hash
  47. $CryptFunction = "sha1"; // SHA1 Hash
  48. //$CryptFunction = ""; // Plain Text
  49. //Setting to 12 or 24 determines the format of the clock display at the end of all screens
  50. $DefaultClock = 12;
  51. //$DefaultClock = 24;
  52. // END OF USER CONFIGURABLE VARIABLES
  53. /*The $RootPath is used in most scripts to tell the script the installation details of the files.
  54. NOTE: In some windows installation this command doesn't work and the administrator must set this to the path of the installation manually:
  55. eg. if the files are under the webserver root directory then rootpath =''; if they are under kwamoja then kwamoja is the rootpath - notice no additional slashes are necessary.
  56. */
  57. $RootPath = dirname(htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'));
  58. if (isset($DirectoryLevelsDeep)){
  59. for ($i=0;$i<$DirectoryLevelsDeep;$i++){
  60. $RootPath = mb_substr($RootPath,0, strrpos($RootPath,'/'));
  61. }
  62. }
  63. if ($RootPath == "/" or $RootPath == "\\") {
  64. $RootPath = "";
  65. }
  66. /* Report all errors except E_NOTICE
  67. This is the default value set in php.ini for most installations but just to be sure it is forced here
  68. turning on NOTICES destroys things */
  69. error_reporting (E_ALL && ~E_NOTICE);
  70. /* For Development Use */
  71. //error_reporting (-1);
  72. /*Make sure there is nothing - not even spaces after this last ?> */
  73. ?>