Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/config-dist.php - 121 lines - 2570 bytes - Text - Print

Description: Database credentials and site configuration.

   1  <?php
   2  
   3  /*
   4   * Textpattern Content Management System
   5   * http://textpattern.com
   6   *
   7   * Copyright (C) 2016 The Textpattern Development Team
   8   *
   9   * This file is part of Textpattern.
  10   *
  11   * Textpattern is free software; you can redistribute it and/or
  12   * modify it under the terms of the GNU General Public License
  13   * as published by the Free Software Foundation, version 2.
  14   *
  15   * Textpattern is distributed in the hope that it will be useful,
  16   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18   * GNU General Public License for more details.
  19   *
  20   * You should have received a copy of the GNU General Public License
  21   * along with Textpattern. If not, see <http://www.gnu.org/licenses/>.
  22   */
  23  
  24  /**
  25   * Database credentials and site configuration.
  26   *
  27   * @package DB
  28   */
  29  
  30  /**
  31   * MySQL database.
  32   *
  33   * @global string $txpcfg['db']
  34   */
  35  
  36  $txpcfg['db'] = 'databasename';
  37  
  38  /**
  39   * Database login name.
  40   *
  41   * @global string $txpcfg['user']
  42   */
  43  
  44  $txpcfg['user'] = 'root';
  45  
  46  /**
  47   * Database password.
  48   *
  49   * @global string $txpcfg['pass']
  50   */
  51  
  52  $txpcfg['pass'] = '';
  53  
  54  /**
  55   * Database hostname.
  56   *
  57   * @global string $txpcfg['host']
  58   */
  59  
  60  $txpcfg['host'] = 'localhost';
  61  
  62  /**
  63   * Table prefix.
  64   *
  65   * Use only if you require multiple installs in one database.
  66   *
  67   * @global string $txpcfg['table_prefix']
  68   */
  69  
  70  $txpcfg['table_prefix'] = '';
  71  
  72  /**
  73   * Full server path to textpattern directory, no slash at the end.
  74   *
  75   * @global string $txpcfg['txpath']
  76   */
  77  
  78  $txpcfg['txpath'] = '/home/path/to/textpattern';
  79  
  80  /**
  81   * Database connection charset.
  82   *
  83   * Only for MySQL 4.1 and up. Must be equal to the table-charset, e.g. latin1
  84   * or utf8.
  85   *
  86   * @global string $txpcfg['dbcharset']
  87   */
  88  
  89  $txpcfg['dbcharset'] = 'utf8';
  90  
  91  /**
  92   * Database client flags.
  93   *
  94   * These are optional. Use the database client flags as needed.
  95   * Available flags include: MYSQL_CLIENT_SSL, MYSQL_CLIENT_COMPRESS,
  96   * MYSQL_CLIENT_IGNORE_SPACE, MYSQL_CLIENT_INTERACTIVE
  97   *
  98   * @global int $txpcfg['client_flags']
  99   * @link   https://secure.php.net/manual/en/mysqli.real-connect.php
 100   */
 101  
 102  $txpcfg['client_flags'] = 0;
 103  
 104  /*
 105   * Optional, advanced: http address of the site serving images.
 106   * see http://forum.textpattern.com/viewtopic.php?id=34493
 107   */
 108  
 109  // define('ihu', 'http://static.example.com/');
 110  
 111  /*
 112   * Optional, advanced: custom CSS rules for admin-side themes.
 113   */
 114  
 115  // define('admin_custom_css', 'your_custom_rules.css');
 116  
 117  /*
 118   * Optional, advanced: custom JavaScript rules for admin-side themes.
 119   */
 120  
 121  // define('admin_custom_js', 'your_custom_javascript.js');

title

Description

title

Description

title

Description

title

title

Body