You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SMFSettings.php 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /******************************************************************************
  3. * Settings.php *
  4. *******************************************************************************
  5. * SMF: Simple Machines Forum *
  6. * Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com) *
  7. * =========================================================================== *
  8. * Software Version: SMF 1.1 RC2 *
  9. * Software by: Simple Machines (http://www.simplemachines.org) *
  10. * Copyright 2001-2005 by: Lewis Media (http://www.lewismedia.com) *
  11. * Support, News, Updates at: http://www.simplemachines.org *
  12. *******************************************************************************
  13. * This program is free software; you may redistribute it and/or modify it *
  14. * under the terms of the provided license as published by Lewis Media. *
  15. * *
  16. * This program is distributed in the hope that it is and will be useful, *
  17. * but WITHOUT ANY WARRANTIES; without even any implied warranty of *
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
  19. * *
  20. * See the "license.txt" file for details of the Simple Machines license. *
  21. * The latest version can always be found at http://www.simplemachines.org. *
  22. ******************************************************************************/
  23. ########## Maintenance ##########
  24. # Note: If $maintenance is set to 2, the forum will be unusable! Change it to 0 to fix it.
  25. $mtitle = 'Maintenance Mode'; # Title for the Maintenance Mode message.
  26. $mmessage = 'We are moving to a new location.'; # Description of why the forum is in maintenance mode.
  27. ########## Forum Info ##########
  28. $mbname = 'Glitch City Laboratories Forums'; # The name of your forum.
  29. $language = 'english'; # The default language file set for the forum.
  30. //$_SERVER['REMOTE_ADDR'] = "128.0.0.1";
  31. $webmaster_email = 'abwayax@glitchcity.info'; # Email address to send emails from. (like noreply@yourdomain.com.)
  32. $cookiename = 'SMFCookie944'; # Name of the cookie to set for authentication.
  33. ########## Database Info ##########
  34. $db_server = getenv('GCL_DB_HOST') ?: 'localhost';
  35. $db_name = getenv('GCL_DB_NAME') ?: 'glitchcity';
  36. $db_user = getenv('GCL_DB_USER') ?: 'glitchcity';
  37. $db_passwd = getenv('GCL_DB_PASSWORD');
  38. $db_prefix = getenv('GCL_DB_SMF_PREFIX') ?: 'smf_';
  39. $db_persist = 0;
  40. $db_error_send = 0;
  41. ########## Directories/Files ##########
  42. # Note: These directories do not have to be changed unless you move things.
  43. $boarddir = '/application/forums'; # The absolute path to the forum's folder. (not just '.'!)
  44. $sourcedir = '/application/forums/Sources'; # Path to the Sources directory.
  45. ########## Error-Catching ##########
  46. # Note: You shouldn't touch these settings.
  47. $db_last_error = 1217286919;
  48. # Make sure the paths are correct... at least try to fix them.
  49. if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
  50. $boarddir = dirname(__FILE__);
  51. if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
  52. $sourcedir = $boarddir . '/Sources';
  53. //$boardurl = 'http://localhost/glitchcity.info/forums';
  54. $boardurl = getenv('GCL_FORUMS_URL') ?: 'http://forums.glitchcity.info';
  55. $scripturl = "$boardurl/index.php";
  56. $cachedir = '/application/forums/cache';
  57. $maintenance = 0;
  58. ?>