[ Index ]

PHP Cross Reference of Nuke-Evolution v2.0.5

title

Body

[close]

/ -> config.php (source)

   1  <?php
   2  
   3  /*=======================================================================
   4   Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
   5   =======================================================================*/
   6  
   7  /************************************************************************/
   8  /* PHP-NUKE: Advanced Content Management System                         */
   9  /* ============================================                         */
  10  /*                                                                      */
  11  /* Copyright (c) 2002 by Francisco Burzi                                */
  12  /* http://phpnuke.org                                                   */
  13  /*                                                                      */
  14  /* This program is free software. You can redistribute it and/or modify */
  15  /* it under the terms of the GNU General Public License as published by */
  16  /* the Free Software Foundation; either version 2 of the License.       */
  17  /************************************************************************/
  18  
  19  if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {
  20      exit('Access Denied');
  21  }
  22  
  23  /*----[ Welcome! ] ---------------------------------------
  24  | Welcome to Nuke-Evolution, an advanced content          |
  25  | management system based on PHP-Nuke                     |
  26  ---------------------------------------------------------*/
  27  
  28  /*----[ $dbhost ] ----------------------------------------
  29  | Your database host, normally 'localhost'                |
  30  |                                                         |
  31  | Default: localhost                                      |
  32  ---------------------------------------------------------*/
  33  $dbhost = 'localhost';
  34  /*----[ $dbname ] ----------------------------------------
  35  | The name of your database that will hold Evo's tables   |
  36  |                                                         |
  37  | Default: xxx_evo                                        |
  38  ---------------------------------------------------------*/
  39  $dbname = 'xxx_evo';
  40  
  41  /*----[ $dbuname ] ---------------------------------------
  42  | The username linked to your database, must have correct |
  43  | permissions                                             |
  44  |                                                         |
  45  | Default: xxx_evo                                        |
  46  ---------------------------------------------------------*/
  47  $dbuname = 'xxx_evo';
  48  
  49  /*----[ $dbpass ] ----------------------------------------
  50  | The password associated with your db usersname          |
  51  |                                                         |
  52  | Default: null                                           |
  53  ---------------------------------------------------------*/
  54  $dbpass = '';
  55  
  56  /*----[ $dbtype ] ----------------------------------------
  57  | The type of SQL server you prefer to use                |
  58  |                                                         |
  59  | Choose from the following (case-sensitive):             |
  60  |    - mysql (4.x or later)                               |
  61  |    - mysqli (PHP must be compiled with "System Mysql")  |
  62  |                                                         |
  63  | Default: mysql                                          |
  64  ---------------------------------------------------------*/
  65  $dbtype = 'mysql';
  66  
  67  /*----[ $prefix ] ----------------------------------------
  68  | The prefix for your Nuke-Evolution tables               |
  69  |                                                         |
  70  | Default: nuke                                           |
  71  ---------------------------------------------------------*/
  72  $prefix = 'nuke';
  73  
  74  /*----[ $user_prefix ] -----------------------------------
  75  | The prefix for your Nuke-Evolution user-related tables  |
  76  | Do not change this unless it is really needed           |
  77  |                                                         |
  78  | Default: nuke                                           |
  79  ---------------------------------------------------------*/
  80  $user_prefix = 'nuke';
  81  
  82  /*----[ $admin_file ] ------------------------------------
  83  | The filename of your Admin File                         |
  84  |                                                         |
  85  | If you change this to something other than it's default |
  86  | value, you must also rename the file called 'admin.php' |
  87  | to the new value you assigned to this variable          |
  88  |                                                         |
  89  | Default: admin                                          |
  90  ---------------------------------------------------------*/
  91  $admin_file = 'admin';
  92  
  93  /*----[ $directory_mode ] ------------------------------------------
  94  | permissions - by default, Evo will create new folders with the    |
  95  | permissions set with the following settings.  NOTE: do NOT use    |
  96  | quotes around this value or it will not work.                     |
  97  | Examples:                                                         |
  98  | Server API = Apache = 0777                                        |
  99  | Server API = CGI = 0755                                           |
 100  -------------------------------------------------------------------*/
 101  $directory_mode = 0777;
 102  
 103  /*----[ $file_mode ] -------------------------------------------------- 
 104  | file permissions mode - by default, Evo will create all new files    |
 105  | with the permissions that are provided here.  NOTE: do NOT use any   |
 106  | quotes (single or double) around this value or it will not work.     |
 107  | Examples:                                                            |
 108  | Server API = Apache = 0666                                           |
 109  | Server API = CGI = 0644                                              |
 110  ----------------------------------------------------------------------*/
 111  $file_mode = 0666;
 112  
 113  
 114  /*----[ $debug ] -----------------------------------------
 115  | Debugging Status of your website                        |
 116  |                                                         |
 117  | If you want errors being shown, set this to true.       |
 118  | It will also display evo notices at the footer,         |
 119  | but that's visible for admins only.                     |
 120  | If you dont want any errors being shown,                |
 121  | set this to false.                                      |
 122  |                                                         |
 123  | Default: true                                           |
 124  ---------------------------------------------------------*/
 125  $debug = true;
 126  
 127  /*----[ $use_cache ] -----=-------------------------------
 128  | Use caching of database fetched data                    |
 129  |                                                         |
 130  | You can choose between these options:                   |
 131  |   0: Cache Off                                          |
 132  |   1: File Cache                                         |
 133  |       - Faster load, more server usage                  |
 134  |         We recommend you use SQL cache if you have      |
 135  |         problems with the File Cache                    |
 136  |   2: SQL Cache                                          |
 137  |       - One more query per page, less server usage      |
 138  |                                                         |
 139  | Default: 1 (File Cache)                                 |
 140  ---------------------------------------------------------*/
 141  $use_cache = 1;
 142  
 143  /*----[ $persistency ] -----------------------------------
 144  | Allow persistent database connections                   |
 145  | true = On                                               |
 146  | false = Off                                             |
 147  ---------------------------------------------------------*/
 148  $persistency = false;
 149  
 150  /*********************************************************************/
 151  /* You have finished configuration of your site. Now you can change  */
 152  /* all you want in the Administration Section. To enter just launch  */
 153  /* your web browser pointing to http://yourdomain.com/admin.php      */
 154  /* (or whatever you have setup in $admin_file)                       */
 155  /*                                                                   */
 156  /* Remember to go to the Settings section where you can configure    */
 157  /* your new site.                                                    */
 158  /*                                                                   */
 159  /* Congratulations! Now you have the webs best portal installed!     */
 160  /* Thanks for choosing Nuke- Evolution: The Future of the Web!       */
 161  /*********************************************************************/
 162  
 163  ?>


Generated: Wed Jun 6 11:38:01 2007 Cross-referenced by PHPXref 0.7