[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/conf/ -> _basic_config.php (source)

   1  <?php
   2  /**

   3   * This is b2evolution's basic 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 1.6

   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   * @package conf

  20   */
  21  if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
  22  
  23  
  24  // TODO: dh> this file was meant to be used for things where you only need the basic config..

  25  // fp> also:

  26  // - At least _admin.php should only be called when in the backoffice.

  27  // - 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

  28  //    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)

  29  // - In view of reorganization, please list (all or examples) of situations where only a subset of the conf should be loaded.

  30  
  31  
  32  /**

  33   * Maintenance mode. Set this to 1 in order to temporarily disable access to the application.

  34   *

  35   * Note: it is still possible to access the install script during maintenance mode.

  36   */
  37  $maintenance_mode = 0;
  38  
  39  
  40  // Below is an alternative hardcore version of maintenance mode.

  41  // This one will bloc the install script too.

  42  // Remove /* and */ to activate.

  43  /*

  44  header('HTTP/1.0 503 Service Unavailable');

  45  echo '<h1>503 Service Unavailable</h1>';

  46  die( 'The site is temporarily down for maintenance.' );

  47  */
  48  
  49  
  50  /**

  51   * MySQL DB settings.

  52   * Fill in your database details (check carefully or nothing will work!)

  53   */
  54  $db_config = array(
  55      'user'          => 'demouser',     // your MySQL username
  56      'password'      => 'demopass',     // ...and password
  57      'name'          => 'b2evolution',  // the name of the database
  58      'host'          => 'localhost',    // MySQL Server (typically 'localhost')
  59  );
  60  
  61  
  62  /**

  63   * the tables prefix (gets placed before each b2evo table name),

  64   * use this to have multiple installations in one DB.

  65   *

  66   * @global string $tableprefix

  67   */
  68  $tableprefix = 'evo_';
  69  
  70  
  71  /**

  72   * If you want to be able to reset your existing b2evolution tables and start anew

  73   * you must set $allow_evodb_reset to 1.

  74   *

  75   * NEVER LEAVE THIS SETTING ON ANYTHING ELSE THAN 0 (ZERO) ON A PRODUCTION SERVER.

  76   * IF THIS IS ON (1) AND YOU FORGET TO DELETE THE INSTALL FOLDER, ANYONE WOULD BE ABLE TO

  77   * ERASE YOUR B2EVOLUTION TABLES AND DATA BY A SINGLE CLICK!

  78   */
  79  $allow_evodb_reset = 0;    // Set to 1 to enable. Do not leave this on 1 on production servers

  80  
  81  
  82  /**

  83   * $baseurl is where your blogs reside by default. CHECK THIS CAREFULLY or nothing will work.

  84   * It should be set to the URL where you can find the blog templates and/or the blog stub files,

  85   * that means index.php, blog_b.php, etc.

  86   * Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside

  87   * of there, or some tricky things may fail (e-g: pingback)

  88   *

  89   * IMPORTANT: If you want to test b2evolution on your local machine, do NOT use that machine's

  90   * name in the $baseurl!

  91   * For example, if your machine is called HOMER, do not use http://homer/b2evolution/blogs/ !

  92   * Use http://localhost/b2evolution/blogs/ instead. And log in on localhost too, not homer!

  93   * If you don't, login cookies will not hold.

  94   *

  95   * @global string $baseurl

  96   */
  97  $baseurl = 'http://localhost/b2evolution/blogs/';
  98  // Use the following if you want to use the current domain:

  99  /*

 100  if( isset($_SERVER['HTTP_HOST']) )

 101  {    // This only works if HOSt provided by webserver (i-e DOES NOT WORK IN PHP CLI MODE)

 102      $baseurl = ( (isset($_SERVER['HTTPS']) && ( $_SERVER['HTTPS'] != 'off' ) ) ?'https://':'http://')

 103                              .$_SERVER['HTTP_HOST'].'/';

 104  }

 105  */
 106  
 107  /**

 108   * This is used only to create the Admin account.

 109   * @todo move to installer.

 110   */
 111  $admin_email = 'postmaster@localhost';
 112  
 113  
 114  /**

 115   * Once you have edited this file to your settings, set the following to 1 (one):

 116   */
 117  $config_is_done = 0;
 118  
 119  
 120  # IMPORTANT: you will find more parameters in the other files of the /conf folder.

 121  # IT IS RECOMMENDED YOU DO NOT TOUCH THOSE SETTINGS

 122  # UNTIL YOU ARE FAMILIAR WITH THE DEFAULT INSTALLATION.

 123  #

 124  # It is however strongly recommended you browse through these files as soon as you've

 125  # got your basic installation working. They'll let you customize a lot of things!

 126  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics