Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/config-dist.php - 146 lines - 3038 bytes - Text - Print

Description: Database credentials and site configuration.

   1  <?php
   2  
   3  /*
   4   * Textpattern Content Management System
   5   * https://textpattern.com/
   6   *
   7   * Copyright (C) 2020 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 <https://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   * Must be equal to the table-charset, e.g. latin1 or utf8.
  84   *
  85   * @global string $txpcfg['dbcharset']
  86   */
  87  
  88  $txpcfg['dbcharset'] = 'utf8';
  89  
  90  /**
  91   * Database client flags.
  92   *
  93   * These are optional. Use the database client flags as needed.
  94   * Available flags include: MYSQL_CLIENT_SSL, MYSQL_CLIENT_COMPRESS,
  95   * MYSQL_CLIENT_IGNORE_SPACE, MYSQL_CLIENT_INTERACTIVE
  96   *
  97   * @global int $txpcfg['client_flags']
  98   * @link   https://www.php.net/manual/en/mysqli.real-connect.php
  99   */
 100  
 101  $txpcfg['client_flags'] = 0;
 102  
 103  /**
 104   * Optional, advanced: use a particular collation for tables.
 105   *
 106   * @global string $txpcfg['table_collation']
 107   */
 108  
 109  //$txpcfg['table_collation'] = 'utf8mb4_general_ci';
 110  
 111  /*
 112   * Optional, advanced: use a different database engine.
 113   */
 114  
 115  //$txpcfg['dbengine'] = 'InnoDB';
 116  
 117  /*
 118   * Optional, advanced: include an external PHP script if needed.
 119   */
 120  
 121  //$txpcfg['pre_publish_script'] = 'path/to/file.php';
 122  
 123  /*
 124   * Optional, advanced: http address of the site serving images.
 125   * see https://forum.textpattern.com/viewtopic.php?id=34493
 126   */
 127  
 128  // define('ihu', 'https://static.example.com/');
 129  
 130  /*
 131   * Optional, advanced: custom CSS rules for admin-side themes.
 132   */
 133  
 134  // define('admin_custom_css', 'your_custom_rules.css');
 135  
 136  /*
 137   * Optional, advanced: custom JavaScript rules for admin-side themes.
 138   */
 139  
 140  // define('admin_custom_js', 'your_custom_javascript.js');
 141  
 142  /*
 143   * Optional, advanced: use https in generated URLs.
 144   */
 145  
 146  // define('PROTOCOL', 'https://');

title

Description

title

Description

title

Description

title

title

Body