123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <?php
- $maintenance = 0;
- $mtitle = 'Maintenance Mode';
- $mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';
- $mbname = 'My Community';
- $language = 'english';
- $boardurl = 'http://127.0.0.1/smf';
- $webmaster_email = 'noreply@myserver.com';
- $cookiename = 'SMFCookie11';
- $db_type = 'mysql';
- $db_server = 'localhost';
- $db_name = 'smf';
- $db_user = 'root';
- $db_passwd = '';
- $ssi_db_user = '';
- $ssi_db_passwd = '';
- $db_prefix = 'smf_';
- $db_persist = 0;
- $db_error_send = 0;
- $cache_accelerator = '';
- $cache_enable = 0;
- $cache_memcached = '';
- $cachedir = dirname(__FILE__) . '/cache';
- $boarddir = dirname(__FILE__);
- $sourcedir = dirname(__FILE__) . '/Sources';
- if (file_exists(dirname(__FILE__) . '/db_last_error.php'))
- include(dirname(__FILE__) . '/db_last_error.php');
- if (!isset($db_last_error))
- {
-
- file_put_contents(dirname(__FILE__) . '/db_last_error.php', '<' . '?' . "php\n" . '$db_last_error = 0;');
- $db_last_error = 0;
- }
- if (file_exists(dirname(__FILE__) . '/install.php'))
- {
- header('Location: http' . (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 's' : '') . '://' . (empty($_SERVER['HTTP_HOST']) ? $_SERVER['SERVER_NAME'] . (empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']) : $_SERVER['HTTP_HOST']) . (strtr(dirname($_SERVER['PHP_SELF']), '\\', '/') == '/' ? '' : strtr(dirname($_SERVER['PHP_SELF']), '\\', '/')) . '/install.php'); exit;
- }
- if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
- $boarddir = dirname(__FILE__);
- if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
- $sourcedir = $boarddir . '/Sources';
- if (!file_exists($cachedir) && file_exists($boarddir . '/cache'))
- $cachedir = $boarddir . '/cache';
|