The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Ошибка PHP при изменении настроек SMF"
Вариант для распечатки  
Пред. тема | След. тема 
Форум WEB технологии (PHP)
Изначальное сообщение [ Отслеживать ]

"Ошибка PHP при изменении настроек SMF"  +/
Сообщение от Анонимный Аноним on 08-Авг-10, 10:11 
Короче при изменении конфигурации SMF, PHP выводит вот такую хрень, вместо форума:

Parse error: syntax error, unexpected T_VARIABLE in /home/vhosts/lforum.eu5.org/Settings.php on line 3


Вот содержимое этого файла:

<?php########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable!  Change it to 0 to fix it.
$maintenance = 1;      # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode';      # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';      # Description of why the forum is in maintenance mode.

########## Forum Info ##########
$mbname = 'My Community';      # The name of your forum.
$language = 'english';      # The default language file set for the forum.
$boardurl = 'http://lforum.eu5.org';      # URL to your forum's folder. (without the trailing /!)
$webmaster_email = 'email@example.com';      # Email address to send emails from. (like noreply@yourdomain.com.)
$cookiename = 'SMFCookie59';      # Name of the cookie to set for authentication.

########## Database Info ##########
$db_type = 'mysql';
$db_server = 'localhost';
$db_name = '55946';
$db_user = '55946';
$db_passwd = '********';
$ssi_db_user = '';
$ssi_db_passwd = '';
$db_prefix = 'smfroot_';
$db_persist = 0;
$db_error_send = 1;

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = '/home/vhosts/lforum.eu5.org';      # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/vhosts/lforum.eu5.org/Sources';      # Path to the Sources directory.
$cachedir = '/home/vhosts/lforum.eu5.org/cache';      # Path to the cache directory.

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 0;


# Make sure the paths are correct... at least try to fix them.
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';

?>

Высказать мнение | Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Ошибка PHP при изменении настроек SMF"  +/
Сообщение от Анонимный Аноним on 08-Авг-10, 10:14 
Это то, что было в файле после того, как я пытался его отбэкапить. А ******** я заменил настоящий свой пароль


Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру