Facebook
From dwadfgse, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 206
  1. <?php
  2. /**
  3.  * Database configuration
  4.  *
  5.  * Please see the MyBB Docs for advanced
  6.  * database configuration for larger installations
  7.  * https://docs.mybb.com/
  8.  */
  9.  
  10. $config['database']['type'] = '';
  11. $config['database']['database'] = '';
  12. $config['database']['table_prefix'] = '';
  13.  
  14. $config['database']['hostname'] = 'localhost';
  15. $config['database']['username'] = '';
  16. $config['database']['password'] = 'J';
  17.  
  18. /**
  19.  * Admin CP directory
  20.  *  For security reasons, it is recommended you
  21.  *  rename your Admin CP directory. You then need
  22.  *  to adjust the value below to point to the
  23.  *  new directory.
  24.  */
  25.  
  26. $config['admin_dir'] = 'admin';
  27.  
  28. /**
  29.  * Hide all Admin CP links
  30.  *  If you wish to hide all Admin CP links
  31.  *  on the front end of the board after
  32.  *  renaming your Admin CP directory, set this
  33.  *  to 1.
  34.  */
  35.  
  36. $config['hide_admin_links'] = 1;
  37.  
  38. /**
  39.  * Data-cache configuration
  40.  *  The data cache is a temporary cache
  41.  *  of the most commonly accessed data in MyBB.
  42.  *  By default, the database is used to store this data.
  43.  *
  44.  *  If you wish to use the file system (cache/ directory), MemCache (or MemCached), xcache, APC, or eAccelerator
  45.  *  you can change the value below to 'files', 'memcache', 'memcached', 'xcache', 'apc' or 'eaccelerator' from 'db'.
  46.  */
  47.  
  48. $config['cache_store'] = 'db';
  49.  
  50. /**
  51.  * Memcache configuration
  52.  *  If you are using memcache or memcached as your
  53.  *  data-cache, you need to configure the hostname
  54.  *  and port of your memcache server below.
  55.  *
  56.  * If not using memcache, ignore this section.
  57.  */
  58.  
  59. $config['memcache']['host'] = 'localhost';
  60. $config['memcache']['port'] = 11211;
  61.  
  62. /**
  63.  * Super Administrators
  64.  *  A comma separated list of user IDs who cannot
  65.  *  be edited, deleted or banned in the Admin CP.
  66.  *  The administrator permissions for these users
  67.  *  cannot be altered either.
  68.  */
  69.  
  70. $config['super_admins'] = '1';
  71.  
  72. /**
  73.  * Database Encoding
  74.  *  If you wish to set an encoding for MyBB uncomment
  75.  *  the line below (if it isn't already) and change
  76.  *  the current value to the mysql charset:
  77.  *  http://dev.mysql.com/doc/refman/5.1/en/charset-mysql.html
  78.  */
  79.  
  80. $config['database']['encoding'] = 'utf8';
  81.  
  82. /**
  83.  * Automatic Log Pruning
  84.  *  The MyBB task system can automatically prune
  85.  *  various log files created by MyBB.
  86.  *  To enable this functionality for the logs below, set the
  87.  *  the number of days before each log should be pruned.
  88.  *  If you set the value to 0, the logs will not be pruned.
  89.  */
  90.  
  91. $config['log_pruning'] = array(
  92.         'admin_logs' => 365, // Administrator logs
  93.         'mod_logs' => 365, // Moderator logs
  94.         'task_logs' => 30, // Scheduled task logs
  95.         'mail_logs' => 180, // Mail error logs
  96.         'user_mail_logs' => 180, // User mail logs
  97.         'promotion_logs' => 180 // Promotion logs
  98. );
  99.  
  100. /**
  101.  * Disallowed Remote Hosts
  102.  *  List of hosts the fetch_remote_file() function will not
  103.  *  perform requests to.
  104.  *  It is recommended that you enter hosts resolving to the
  105.  *  forum server here to prevent Server Side Request
  106.  *  Forgery attacks.
  107.  */
  108.  
  109. $config['disallowed_remote_hosts'] = array(
  110.         'localhost',
  111. );
  112.  
  113. /**
  114.  * Disallowed Remote Addresses
  115.  *  List of IPv4 addresses the fetch_remote_file() function
  116.  *  will not perform requests to.
  117.  *  It is recommended that you enter addresses resolving to
  118.  *  the forum server here to prevent Server Side Request
  119.  *  Forgery attacks.
  120.  *  Removing all values disables resolving hosts in that
  121.  *  function.
  122.  */
  123.  
  124. $config['disallowed_remote_addresses'] = array(
  125.         '127.0.0.1',
  126.         '10.0.0.0/8',
  127.         '172.16.0.0/12',
  128.         '192.168.0.0/16',
  129. );
  130.  
  131. /**
  132.  * Admin CP Secret PIN
  133.  *  If you wish to request a PIN
  134.  *  when someone tries to login
  135.  *  on your Admin CP, enter it below.
  136.  */
  137.  
  138. $config['secret_pin'] = ' ';