phpDocumentor pond
[ class tree: pond ] [ index: pond ] [ all elements ]

Source for file _config.php

Documentation is available at _config.php

  1. <?php
  2. /**
  3.  * This is Quam Plures' main config file, which just includes all the other
  4.  * config files.
  5.  *
  6.  * This file should not be edited. You should edit the sub files instead.
  7.  *
  8.  * See {@link _main_config.php} for the basic settings.
  9.  *
  10.  * @package pond
  11.  */
  12.  
  13. ifdefined('QP_CONFIG_LOADED') )
  14. {
  15.     return;
  16. }
  17.  
  18. /**
  19.  * This makes sure the config does not get loaded twice in Windows
  20.  * (when the /conf file is in a path containing uppercase letters as in /Blog/conf).
  21.  */
  22. define'QP_CONFIG_LOADED'true );
  23.  
  24. // basic settings
  25. iffile_exists(dirname(__FILE__).'/_main_config.php') )
  26. {    // Use configured base config:
  27.     require_once  dirname(__FILE__).'/_main_config.php';
  28. }
  29. else
  30. {    // Use default template:
  31.     require_once  dirname(__FILE__).'/_main_config.template.php';
  32. }
  33.  
  34. // DEPRECATED -- You can now have a _main_config.php file that will not be overwritten by new releases
  35. iffile_exists(dirname(__FILE__).'/_config_TEST.php') )
  36. // Put testing conf in there (For testing, you can also set $install_password here):
  37.     include_once dirname(__FILE__).'/_config_TEST.php';       // FOR TESTING / DEVELOPMENT OVERRIDES
  38. }
  39.  
  40. require_once  dirname(__FILE__).'/_advanced.php';           // advanced settings
  41. require_once  $conf_path.'_locales.php';            // locale settings
  42. require_once  $conf_path.'_formatting.php';         // formatting settings
  43. require_once  $conf_path.'_admin.php';              // admin settings
  44. require_once  $conf_path.'_stats.php';              // stats/hitlogging settings
  45. require_once  $inc_path.'_application.php';        // application settings
  46. iffile_exists($conf_path.'_overrides_TEST.php') )
  47. // Override for testing in there:
  48.     include_once $conf_path.'_overrides_TEST.php';    // FOR TESTING / DEVELOPMENT OVERRIDES
  49. }
  50.  
  51. // Load modules:
  52. foreach$modules as $module )
  53. {
  54.     require_once $inc_path.$module.'/_'.$module.'.init.php';
  55. }
  56.  
  57. ?>