Source for file config.php

Documentation is available at config.php

  1. <?php
  2. /**
  3. * Load system-wide configuration settings
  4. *
  5. * Set up a config object that parses the { @link bumblebee.ini } file.
  6. *
  7. @author    Stuart Prescott
  8. @copyright  Copyright Stuart Prescott
  9. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  10. @version    $Id$
  11. @package    Bumblebee
  12. @subpackage Misc
  13. */
  14.  
  15. /** Load ancillary functions */
  16. require_once 'inc/typeinfo.php';
  17.  
  18. require_once 'inc/bb/configreader.php';
  19.  
  20. $REBASE_INSTALL = isset($REBASE_INSTALL$REBASE_INSTALL '';
  21. $NON_FATAL_CONFIG = isset($NON_FATAL_CONFIG$NON_FATAL_CONFIG false;
  22.  
  23. /*
  24. * Set the location of config files
  25. *
  26. * By default, config/ in the Bumblebee installation directory, but
  27. * can be moved into /etc, /usr/share/bumblebee ...
  28. */
  29. $configLocation $REBASE_INSTALL.'config/';
  30.  
  31. new ConfigReader();
  32. $conf ConfigReader::getInstance();
  33. $conf->SetFileLocation($configLocation);
  34. $conf->LoadFile('bumblebee.ini');
  35. $conf->ParseConfig();
  36.  
  37. ini_set("session.use_only_cookies",1)#don't permit ?PHPSESSID= stuff
  38. #ini_set("session.cookie_lifetime",60*60*1); #login expires after x seconds
  39.  
  40.  
  41. if ($conf->value('main''ExtraIncludePath'false)) {
  42.   set_include_path($REBASE_INSTALL.($conf->value('main','ExtraIncludePath')).PATH_SEPARATOR.get_include_path());
  43. }
  44.  
  45. /**
  46. * $BUMBLEBEEVERSION is the installed version of the software
  47. @global string $BUMBLEBEEVERSION 
  48. */
  49. global $BUMBLEBEEVERSION;
  50. $BUMBLEBEEVERSION '1.1.5';
  51.  
  52. ?>

Documentation generated on Tue, 06 Mar 2007 10:01:05 +0000 by phpDocumentor 1.3.0