b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: conf ] [ index: conf ] [ all elements ]

Source for file _config.php

Documentation is available at _config.php

  1. <?php
  2. /**
  3.  * This is b2evolution's main config file
  4.  *
  5.  * You need to edit this file to your settings before attempting to install the database!
  6.  * Last significant changes to this file: version 0.9.0.2
  7.  *
  8.  *
  9.  * Reminder: every line starting with # or // is a comment, multiline comments are
  10.  *           surrounded by '/*' and '* /' (without space).
  11.  *
  12.  * IMPORTANT: Take special care not to erase quotes (') around text parameters
  13.  * and semicolums (;) at the end of the lines. Otherwise you'll get some
  14.  * "unexpected T_STRING" parse errors!
  15.  *
  16.  * Contributors: you should override this file by creating a file named _config_TEST.php
  17.  * (see end of this file)
  18.  *
  19.  * b2evolution - {@link http://b2evolution.net/}
  20.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  21.  * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  22.  *
  23.  * @package conf
  24.  */
  25.  
  26. /*
  27. header('HTTP/1.0 503 Service Unavailable');
  28. echo '<h1>503 Service Unavailable</h1>';
  29. die( 'The site is temporarily down for maintenance.' );
  30. */
  31.  
  32. /**#@+
  33.  * MySQL settings. Fill in your database details (check carefully or nothing will work!)
  34.  */
  35. define'DB_USER''demouser' );      // your MySQL username
  36. define'DB_PASSWORD''demopass' );  // ...and password
  37. define'DB_NAME''b2evolution' );   // the name of the database
  38. define'DB_HOST''localhost' );     // mySQL Server (typically 'localhost')
  39. /**#@-*/
  40.  
  41.  
  42. /**
  43.  * If you want to be able to reset your existing b2evolution tables and start anew
  44.  * you must set $allow_evodb_reset to 1.
  45.  *
  46.  * NEVER LEAVE THIS SETTING ON ANYTHING ELSE THAN 0 (ZERO) ON A PRODUCTION SERVER.
  47.  * IF THIS IS ON (1) AND YOU FORGET TO DELETE THE INSTALL FOLDER, ANYONE WOULD BE ABLE TO
  48.  * ERASE YOUR B2EVOLUTION TABLES AND DATA BY A SINGLE CLICK!
  49.  */
  50. $allow_evodb_reset 0;    // Set to 1 to enable. Do not leave this on 1 on production servers
  51.  
  52.  
  53. /**
  54.  * $baseurl is where your blogs reside by default. CHECK THIS CAREFULLY or nothing will work.
  55.  * It should be set to the URL where you can find the blog templates and/or the blog stub files,
  56.  * that means index.php, blog_b.php, etc.
  57.  * Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside
  58.  * of there, or some tricky things may fail (e-g: pingback)
  59.  *
  60.  * IMPORTANT: If you want to test b2evolution on your local machine, do NOT use that machine's
  61.  * name in the $baseurl!
  62.  * For example, if you machine is called HOMER, do not use http://homer/b2evolution/blogs !
  63.  * Use http://localhost/b2evolution/blogs instead. And log in on localhost too, not homer!
  64.  * If you don't, login cookies will not hold.
  65.  *
  66.  * @global string $baseurl 
  67.  */
  68. $baseurl 'http://localhost/b2evolution/blogs';        // IMPORTANT: NO ENDING SLASH !!!
  69.  
  70.  
  71. /**
  72.  * Your email. Will be used in severe error messages so that users can contact you.
  73.  * You will also receive notifications for new user registrations there.
  74.  */
  75. $admin_email 'postmaster@localhost';
  76.  
  77.  
  78. /**
  79.  * Once you have edited this file to your settings, set the following to 1 (one):
  80.  */
  81. $config_is_done 0;
  82.  
  83.  
  84. # IMPORTANT: you will find more parameters in the other files of the /conf folder.
  85. # IT IS RECOMMENDED YOU DO NOT TOUCH THOSE SETTINGS
  86. # UNTIL YOU ARE FAMILIAR WITH THE DEFAULT INSTALLATION.
  87. #
  88. # It is however strongly recommended you browse through these files as soon as you've
  89. # got your basic installation working. They'll let you customize a lot of things!
  90.  
  91. # DO NOT EDIT THE FOLLOWING!
  92. @include_once dirname(__FILE__).'/_config_TEST.php';    // Put testing conf in there (For testing, you can also set $install_password here)
  93. require_once  dirname(__FILE__).'/_advanced.php';       // advanced settings
  94. require_once  dirname(__FILE__).'/_locales.php';        // locale settings
  95. require_once  dirname(__FILE__).'/_formatting.php';     // formatting settings
  96. require_once  dirname(__FILE__).'/_admin.php';          // admin settings
  97. require_once  dirname(__FILE__).'/_stats.php';          // stats/hitlogging settings
  98. @include_once dirname(__FILE__).'/_overrides_TEST.php'// Override for testing in there
  99. ?>

Documentation generated on Tue, 20 May 2008 01:53:41 +0200 by phpDocumentor 1.4.2