b2evolution PHP Cross Reference Blogging Systems

Source: /conf/_basic_config.template.php - 126 lines - 4800 bytes - Text - Print

Description: This is b2evolution's basic config file. You do NOT need to edit this file. In most situations, the installer will do it for you. If however you are doing a MANUAL install, make sure you do NOT edit _basic_config.template.php ! You should edit _basic_config.php instead. If _basic_config.php doesn't exist yet, then open _basic_config.template.php and SAVE it AS _basic_config.php.

   1  <?php
   2  /**
   3   * This is b2evolution's basic config file.
   4   *
   5   * You do NOT need to edit this file. In most situations, the installer will do it for you.
   6   * If however you are doing a MANUAL install, make sure you do NOT edit _basic_config.template.php !
   7   * You should edit _basic_config.php instead. If _basic_config.php doesn't exist yet, then
   8   * open _basic_config.template.php and SAVE it AS _basic_config.php.
   9   *
  10   * Reminder: every line starting with # or // is a comment, multiline comments are
  11   *           surrounded by '/*' and '* /' (without space).
  12   *
  13   * IMPORTANT: Take special care not to erase quotes (') around text parameters
  14   * and semicolums (;) at the end of the lines. Otherwise you'll get some
  15   * "unexpected T_STRING" parse errors!
  16   *
  17   * Contributors: you should override this file by creating a file named _config_TEST.php
  18   * (see end of this file).
  19   *
  20   * @package conf
  21   */
  22  if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
  23  
  24  
  25  // TODO: dh> this file was meant to be used for things where you only need the basic config..
  26  // fp> also:
  27  // - At least _admin.php should only be called when in the backoffice.
  28  // - Also we should probably start by moving as many conf options to the backoffice as possible and see how much stuff is left in conf files
  29  //    Note: some stuff does not make sense in the back-office (for example stuff that depends on the physical path where the files are installed)
  30  // - In view of reorganization, please list (all or examples) of situations where only a subset of the conf should be loaded.
  31  
  32  
  33  /**
  34   * Maintenance mode. Set this to 1 in order to temporarily disable access to the application.
  35   *
  36   * Note: it is still possible to access the install script during maintenance mode.
  37   */
  38  $maintenance_mode = 0;
  39  
  40  
  41  // Below is an alternative hardcore version of maintenance mode.
  42  // This one will block the install script too.
  43  // Remove /* and */ to activate.
  44  /*
  45  header('HTTP/1.0 503 Service Unavailable');
  46  echo '<h1>503 Service Unavailable</h1>';
  47  die( 'The site is temporarily down for maintenance. Please reload this page in a few minutes.' );
  48  */
  49  
  50  
  51  /**
  52   * MySQL DB settings.
  53   * Fill in your database details (check carefully or nothing will work!)
  54   */
  55  $db_config = array(
  56      'user'          => 'demouser',     // your MySQL username
  57      'password'      => 'demopass',     // ...and password
  58      'name'          => 'b2evolution',  // the name of the database
  59      'host'          => 'localhost',    // MySQL Server (typically 'localhost')
  60  );
  61  
  62  
  63  /**
  64   * the tables prefix (gets placed before each b2evo table name),
  65   * use this to have multiple installations in one DB.
  66   *
  67   * @global string $tableprefix
  68   */
  69  $tableprefix = 'evo_';
  70  
  71  
  72  /**
  73   * If you want to be able to reset your existing b2evolution tables and start anew
  74   * you must set $allow_evodb_reset to 1.
  75   *
  76   * NEVER LEAVE THIS SETTING ON ANYTHING ELSE THAN 0 (ZERO) ON A PRODUCTION SERVER.
  77   * IF THIS IS ON (1) AND YOU FORGET TO DELETE THE INSTALL FOLDER, ANYONE WOULD BE ABLE TO
  78   * ERASE YOUR B2EVOLUTION TABLES AND DATA BY A SINGLE CLICK!
  79   */
  80  $allow_evodb_reset = 0;    // Set to 1 to enable. Do not leave this on 1 on production servers
  81  
  82  
  83  /**
  84   * $baseurl is where your blogs reside by default. CHECK THIS CAREFULLY or nothing will work.
  85   * It should be set to the URL where you can find the blog templates and/or the blog stub files,
  86   * that means index.php, blog1.php, blog2.php, etc. as well as admin.php.
  87   * Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside
  88   * of there, or some tricky things may fail (including intempestive logouts)
  89   *
  90   * IMPORTANT: If you want to test b2evolution on your local machine, do NOT use that machine's
  91   * name in the $baseurl!
  92   * For example, if your machine is called HOMER, do not use http://homer/b2evolution/blogs/ !
  93   * Use http://localhost/b2evolution/blogs/ instead. And log in on localhost too, not homer!
  94   * If you don't, login cookies will not hold.
  95   *
  96   * @global string $baseurl
  97   */
  98  $baseurl = 'http://localhost/b2evolution/blogs/';
  99  // Use the following if you want to use the current domain:
 100  /*
 101  if( isset($_SERVER['HTTP_HOST']) )
 102  {    // This only works if HOSt provided by webserver (i-e DOES NOT WORK IN PHP CLI MODE)
 103      $baseurl = ( (isset($_SERVER['HTTPS']) && ( $_SERVER['HTTPS'] != 'off' ) ) ?'https://':'http://')
 104                              .$_SERVER['HTTP_HOST'].'/';
 105  }
 106  */
 107  
 108  /**
 109   * This is used only to create the Admin account.
 110   * @todo move to installer.
 111   */
 112  $admin_email = 'postmaster@localhost';
 113  
 114  
 115  /**
 116   * Once you have edited this file to your settings, set the following to 1 (one):
 117   */
 118  $config_is_done = 0;
 119  
 120  
 121  /*
 122   * IMPORTANT: you will find more parameters in the other files of the /conf folder.
 123   * IT IS RECOMMENDED YOU DO NOT TOUCH THOSE SETTINGS
 124   * UNTIL YOU ARE FAMILIAR WITH THE DEFAULT INSTALLATION.
 125   */
 126  ?>

title

Description

title

Description

title

Description

title

title

Body