[Top level directory]     [Classes]     [Functions]     [Constants]     [Variables]

XMB Open Source Forum Software - PHP Cross Reference

title

Body

[close]

/ -> config.php (source)

   1  <?php
   2  /**
   3   * eXtreme Message Board
   4   * XMB 1.9.11
   5   *
   6   * Developed And Maintained By The XMB Group
   7   * Copyright (c) 2001-2010, The XMB Group
   8   * http://www.xmbforum.com
   9   *
  10   * Sponsored By iEntry, Inc.
  11   * http://www.ientry.com
  12   *
  13   * This program is free software; you can redistribute it and/or
  14   * modify it under the terms of the GNU General Public License
  15   * as published by the Free Software Foundation; either version 2
  16   * of the License, or (at your option) any later version.
  17   *
  18   * This program is distributed in the hope that it will be useful,
  19   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21   * GNU General Public License for more details.
  22   *
  23   * You should have received a copy of the GNU General Public License
  24   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  25   *
  26   **/
  27  
  28  if (!defined('IN_CODE')) {
  29      header('HTTP/1.0 403 Forbidden');
  30      exit("Not allowed to run this file directly.");
  31  }
  32  
  33  // Database connection settings
  34      $dbname         = 'DB/NAME';   // Name of your database
  35      $dbuser         = 'DB/USER';   // Username used to access it
  36      $dbpw           = 'DB/PW';     // Password used to access it
  37      $dbhost         = 'localhost'; // Database host, usually 'localhost'
  38      $database       = 'mysql';     // Database type, currently only mysql is supported.
  39      $pconnect       = 0;           // Persistent connection, 1 = on, 0 = off, use if 'too many connections'-errors appear
  40  
  41  // Table Settings
  42      $tablepre       = 'TABLE/PRE'; // XMB will prefix each table name with the string you specify here.  'xmb_' is a common choice.
  43  
  44  // Address settings
  45      // In full_url, put the full URL you see when you go to your boards, WITHOUT the filename though!!
  46      // And please, remember to add the / at the end...
  47      $full_url       = 'FULLURL';
  48  
  49  // Other settings
  50      // There are situations where you don't want to see the <!-- template start: index -->...<!-- template end: index -->
  51      // tags around each template. In those cases, change the following to false, or true to turn it back on.
  52      // Default value: false;
  53      $comment_output = FALSE;
  54  
  55      // Alternative mailer
  56      // some hosts prevent the direct use of sendmail, which php uses to send out emails by default.
  57      // To get around this, we have included code which will contact a separate SMTP server of your
  58      // choice, and will send the mail trough that. The following mailer-options are available:
  59      // 'default'        => php's internal mail() function. No additional values need to be set:
  60      //                     (does not require a username/password/host/port)
  61      // 'socket_SMTP'    => a connection to the SMTP server trough sockets. Requires the username,
  62      //                     password, host and port values to be entered correctly to work.
  63      $mailer['type']     = 'default';
  64  
  65      // mailer-options (for socket_SMTP only, currently)
  66      $mailer['username'] = 'MAILER_USER';
  67      $mailer['password'] = 'MAILER_PASS';
  68      $mailer['host']     = 'MAILER_HOST';
  69      $mailer['port']     = 'MAILER_PORT';
  70  
  71  // Plugin Settings
  72      $i = 1;
  73      // Plugins are the links in the navigation part of the Header. Plugins built-in by default include Search, FAQ, Member List, Today's Posts, Stats and Board Rules.
  74      // To add extra plugins (links of your own), just edit the code between Start Plugin Code and End Plugin Code. If you with to add more than one, simply copy that block, paste it and add the second one.
  75  
  76      // Start Plugin code
  77      $plugname[$i]    = '';    // This is the name of your plugin. eg. Avatar Gallery, TeddyBear, etc.
  78      $plugurl[$i]     = '';    // This is the location, link, or URL to the plugin
  79      $plugadmin[$i]   = false; // Is this plugin only for admins? Set to true if the plugin can only be seen/used by (super-)admins, false when it's can be used by anyone
  80      $plugimg[$i]     = '';    // This is the path (full URL) to the image to show in front of the text.
  81      $i++;
  82      // End plugin code.
  83  
  84      // Start Plugin code for plugin #2
  85      $plugname[$i]    = '';    // This is the name of your plugin. eg. Avatar Gallery, TeddyBear, etc.
  86      $plugurl[$i]     = '';    // This is the location, link, or URL to the plugin
  87      $plugadmin[$i]   = false; // Is this plugin only for admins? Set to true if the plugin can only be seen/used by (super-)admins, false when it's can be used by anyone
  88      $plugimg[$i]     = '';    // This is the path (full URL) to the image to show in front of the text.
  89      $i++;
  90      // End plugin code for plugin #2
  91  
  92      // To make multiple plugins, copy and paste this plugin-code, so you have multiple entries.
  93  
  94  // Registration settings
  95      /***************
  96       * The ipcheck, checks if your server is reading a valid IPv4 format. If not, it will kill the script.
  97       * This is a legacy "feature" of XMB that should be turned off by changing the $ipcheck variable to 'off'
  98       ****************
  99       * The allow_spec_q variable specifies if Special queries (eg. USE database and SHOW DATABASES) are allowed.
 100       * By default, they are not, meaning $allow_spec_q = FALSE;
 101       * To allow them, change $allow_spec_q to true ($allow_spec_q = true;)
 102       ****************
 103       * The show_full_info variable lets you decide wether to show the Build and Alpha/Beta/SP markings in the HTML or not.
 104       * Change the value to true to show them, or false to turn them off.
 105       * Default = TRUE;
 106       ****************/
 107  
 108      $ipcheck        = 'off';
 109      $allow_spec_q   = FALSE;
 110      $show_full_info = TRUE;
 111  
 112  // Debug-mode
 113      /*
 114      / To turn on DEBUG mode (you can then see ALL queries done at the bottom of each screen (except buddy-list & u2u)
 115      / just uncomment this variable. These queries are ONLY visible to the user currently loading that page
 116      / and ONLY visible to Super Administrators
 117      */
 118      define('DEBUG', FALSE);
 119      // define('DEBUG', TRUE);
 120      //
 121      /*
 122      / Comment first line and uncomment second line to use debug mode (1.9+ only). Only one define can be
 123      / active as define is immutable once set.
 124      */
 125      //
 126      /*
 127      / To enable logging of all MySQL errors (necessary in the case of registration, login, or captcha errors), comment first
 128      / line and uncomment second line.  Note the log file will be visible to the public unless it is protected
 129      / by your web server configuration.  The file name will be 'error_log' unless you change the PHP configuration.
 130      / If the chmod settings of this directory prevent file Write then the log will not be created.
 131      */
 132      define('LOG_MYSQL_ERRORS', FALSE);
 133      // define('LOG_MYSQL_ERRORS', TRUE);
 134  ?>


Generated: Tue Jan 26 20:11:23 2010 Home | Forum | Download | SVN | Bug Tracker | Documentation Cross-referenced by PHPXref 0.7