Topic Solved

Поддержка старых модов или модов, созданных авторами не из нашего сообщества, а также любые вопросы, связанные с модами для phpBB 3.0.x, кроме относящихся к форуму Для авторов (phpBB 3.0.x).
Правила форума
Местная Конституция | Шаблон запроса | Документация (phpBB3) | Переход на 3.0.6 и выше | FAQ-3 (phpbb3) | Как задавать вопросы | Как устанавливать моды

Ваш вопрос может быть удален без объяснения причин, если на него есть ответы по приведённым ссылкам (а вы рискуете получить предупреждение ;) ).
Аватара пользователя
Lensmen
phpBB 1.4.4
Сообщения: 103
Стаж: 19 лет 9 месяцев
Откуда: Николаев
Благодарил (а): 1 раз

Re: Кнопка "Решено"

Сообщение Lensmen »

Я что то у себя не могу найти эту строку 'some_text' => request_var('some_text', '', true),

Код: Выделить всё

$forum_data += array(
						'parent_id'				=> request_var('forum_parent_id', $this->parent_id),
						'forum_type'			=> request_var('forum_type', FORUM_POST),
						'type_action'			=> request_var('type_action', ''),
						'forum_status'			=> request_var('forum_status', ITEM_UNLOCKED),
						'forum_parents'			=> '',
						'forum_name'			=> utf8_normalize_nfc(request_var('forum_name', '', true)),
						'forum_link'			=> request_var('forum_link', ''),
						'forum_link_track'		=> request_var('forum_link_track', false),
						'forum_desc'			=> utf8_normalize_nfc(request_var('forum_desc', '', true)),
						'forum_desc_uid'		=> '',
						'forum_desc_options'	=> 7,
						'forum_desc_bitfield'	=> '',
						'forum_rules'			=> utf8_normalize_nfc(request_var('forum_rules', '', true)),
						'forum_rules_uid'		=> '',
						'forum_rules_options'	=> 7,
						'forum_rules_bitfield'	=> '',
						'forum_rules_link'		=> request_var('forum_rules_link', ''),
						'forum_image'			=> request_var('forum_image', ''),
						'forum_style'			=> request_var('forum_style', 0),
						'display_subforum_list'	=> request_var('display_subforum_list', false),
						'display_on_index'		=> request_var('display_on_index', false),
						'forum_topics_per_page'	=> request_var('topics_per_page', 0),
						/*-- begin mod: NV recent topics -----------------------------------------*/
						'forum_recent_topics'	=> request_var('forum_recent_topics', 1),
						/*-- end mod: NV recent topics -------------------------------------------*/
						'enable_indexing'		=> request_var('enable_indexing', true),
						'enable_icons'			=> request_var('enable_icons', false),
						'enable_prune'			=> request_var('enable_prune', false),
						'enable_post_review'	=> request_var('enable_post_review', true),
						'enable_quick_reply'	=> request_var('enable_quick_reply', false),
						'prune_days'			=> request_var('prune_days', 7),
						'prune_viewed'			=> request_var('prune_viewed', 7),
						'prune_freq'			=> request_var('prune_freq', 1),
						'prune_old_polls'		=> request_var('prune_old_polls', false),
						'prune_announce'		=> request_var('prune_announce', false),
						'prune_sticky'			=> request_var('prune_sticky', false),
						'forum_password'		=> request_var('forum_password', '', true),
						'forum_password_confirm'=> request_var('forum_password_confirm', '', true),
						'forum_password_unset'	=> request_var('forum_password_unset', false),
					);
Аватара пользователя
HAMMER663
Former team member
Сообщения: 2032
Стаж: 16 лет 5 месяцев
Откуда: Зеленоград
Благодарил (а): 77 раз
Поблагодарили: 249 раз

Re: Кнопка "Решено"

Сообщение HAMMER663 »

Аватара пользователя
Lensmen
phpBB 1.4.4
Сообщения: 103
Стаж: 19 лет 9 месяцев
Откуда: Николаев
Благодарил (а): 1 раз

Re: Кнопка "Решено"

Сообщение Lensmen »

Ну и что.. нет у меня таких строк. Вот мой файл acp_forums.php
У вас нет необходимых прав для просмотра вложений в этом сообщении.
Аватара пользователя
HAMMER663
Former team member
Сообщения: 2032
Стаж: 16 лет 5 месяцев
Откуда: Зеленоград
Благодарил (а): 77 раз
Поблагодарили: 249 раз

Re: Кнопка "Решено"

Сообщение HAMMER663 »

Lensmen у вас этого нет потому что вы не выполнили полностью инструкцию по установке
найти

Код: Выделить всё

						'forum_password_unset'	=> request_var('forum_password_unset', false),
добавить после

Код: Выделить всё

// BEGIN Topic solved
						'forum_allow_solve'		=> request_var('forum_allow_solve', 1),
						'forum_allow_unsolve'	=> request_var('forum_allow_unsolve', 1),
						'forum_solve_text'	=> request_var('forum_solve_text', ''),
						'forum_solve_color'	=> trim(request_var('forum_solve_color', '')),
						'forum_lock_solved'	=> request_var('forum_lock_solved', 0),
// END Topic solved
а вот тут-то и есть то что вам надо
Аватара пользователя
Lensmen
phpBB 1.4.4
Сообщения: 103
Стаж: 19 лет 9 месяцев
Откуда: Николаев
Благодарил (а): 1 раз

Re: Кнопка "Решено"

Сообщение Lensmen »

Вот за это спасибо...кстати, не было у меня в файле инструкции по установке этого мода.
Аватара пользователя
HAMMER663
Former team member
Сообщения: 2032
Стаж: 16 лет 5 месяцев
Откуда: Зеленоград
Благодарил (а): 77 раз
Поблагодарили: 249 раз

Re: Кнопка "Решено"

Сообщение HAMMER663 »

не может такого быть. скачивайте с офф сайта и все вам будет))
зы: для спасибок есть отдельная кнопочка
Аватара пользователя
x00peR
phpBB 2.0.3
Сообщения: 368
Стаж: 15 лет 7 месяцев
Благодарил (а): 75 раз
Поблагодарили: 15 раз

Topic Solved

Сообщение x00peR »

Все установил. Все правки сделал. Переходу на форум и вижу:
Ошибка сервера
На веб-сайте произошла ошибка при получении http://forum.cs-game.biz/ucp.php?mode=l ... ec99325731. Веб-сайт может быть закрыт на обслуживание или настроен неправильно.
Вот несколько советов и рекомендаций:
Обновите эту страницу позже.
Ошибка HTTP 500 (Internal Server Error): При попытке сервера выполнить запрос возникла неожиданная ситуация.
Вот оригинал форума:
http://cs-game.biz/index.php

Вот копия на которую устанавливался мод:
http://forum.cs-game.biz

Переустанавливал 2 раза. В чем проблема не могу понять.

Качал отсюда http://www.phpbb.com/community/viewtopi ... &t=1214795

Прошу помощи у знатоков, сам не могу разобраться :(

Добавлено спустя 7 минут 21 секунду:
Описание проблемы: Не работает форум
Произведенные изменения, после которых начались неполадки: Просто устанавливал мод
Версия phpBB: 3.0.10 Ссылка на движок: http://www.phpbbguru.net/files/base/phpbb3-ru/
Используемые стили: Ca_gen2 Ссылка на стиль: http://rghost.ru/37493871
Используемые моды: Айпи в теме, Автор темы, Быстрый бан, BBCode для модераторов, Название темы на главной странице, Инвайты, Спасибо за сообщение.
Версия PHP: 5.2.17
Используемая СУБД и её версия: MySQL 5.0.x
Ссылка на конференцию: forum.cs-game.biz
Есть ли у вас тестовый аккаунт: Логин: 123456 Пароль: 123456 Если нужен будет акк админа, то кину в ЛС
Использовался ли поиск для решения проблемы: Да
Если да, то какие запросы вы использовали: кнопка решено, ropic solved
Аватара пользователя
HAMMER663
Former team member
Сообщения: 2032
Стаж: 16 лет 5 месяцев
Откуда: Зеленоград
Благодарил (а): 77 раз
Поблагодарили: 249 раз

Re: Topic Solved 1.4.5

Сообщение HAMMER663 »

x00peR поиск по форуму: белые, пустые страницы
Аватара пользователя
x00peR
phpBB 2.0.3
Сообщения: 368
Стаж: 15 лет 7 месяцев
Благодарил (а): 75 раз
Поблагодарили: 15 раз

Re: Topic Solved 1.4.5

Сообщение x00peR »

Так и не нашел ответа:
ВОт ерорлог сервера:

Код: Выделить всё

[Tue May 01 00:10:28 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:01 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:04 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:07 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:11 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:13 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:15 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:16 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:19 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:24 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:42 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:46 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:49 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:11:53 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:01 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:19 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:21 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:29 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:31 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:35 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:39 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:41 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:43 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:12:45 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:13:14 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:13:21 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:14:12 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:15:26 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:15:28 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:15:30 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:15:34 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:15:41 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:15:48 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:16:35 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:17:54 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:18:23 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:18:46 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:18:50 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:18:53 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:19:21 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:19:25 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:19:27 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:19:32 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:20:15 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:20:19 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:20:21 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:20:24 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:21:48 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:21:51 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:21:55 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:22:54 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:31:32 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:10 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:13 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:16 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:17 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:19 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:25 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:28 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:31 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:39 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 00:32:46 2012] [error] [client 46.164.242.246] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 03:44:22 2012] [error] [client 213.180.209.10] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/dedicated-server.ru
[Tue May 01 11:04:09 2012] [error] [client 95.108.151.244] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/robots.txt
[Tue May 01 11:44:25 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:27 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:30 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:33 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:35 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:40 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:43 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:47 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:49 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:50 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:44:56 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:57:55 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:58:03 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:59:14 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:59:16 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 11:59:17 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:00:45 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:00:52 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:00:56 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:00:59 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:01 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:04 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:06 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:08 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:18 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:20 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:44 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:45 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:47 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:54 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:01:58 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:01 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:03 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:04 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:06 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:17 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:24 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:26 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:02:28 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:03 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:06 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:08 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:09 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:11 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:16 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:18 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:19 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:21 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:25:23 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:26:12 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:27:30 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 12:27:38 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 15:13:34 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 15:52:33 2012] [error] [client 195.98.67.43] script '/home/x00pe171/data/www/forum.cs-game.biz/admin.php' not found or unable to stat
[Tue May 01 15:52:33 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 15:53:35 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 15:53:40 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:45:33 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:45:35 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:45:36 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:45:38 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:45:54 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:45:55 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:46:08 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:46:09 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:46:10 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:46:15 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:46:18 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:00 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:02 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:05 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:07 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:18 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:20 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:51 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:54 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:47:57 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:48:21 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:48:26 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:48:42 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:48:53 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 16:49:04 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:04:23 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:05:56 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:08:59 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:09:52 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:09:54 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:09:58 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:10:06 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:10:09 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:10:12 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:11:29 2012] [error] [client 213.87.132.190] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:11:29 2012] [error] [client 213.87.132.190] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:11:30 2012] [error] [client 213.87.132.190] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:02 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:07 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:09 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:10 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:15 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:20 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:27 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:35 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:38 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:43 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:46 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:12:51 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:14:34 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 17:15:12 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:41:13 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:08 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:16 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:20 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:24 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:30 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:32 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:42 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:48 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:42:59 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 19:43:48 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 20:12:48 2012] [error] [client 80.82.47.164] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 20:13:20 2012] [error] [client 80.82.47.164] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 20:13:22 2012] [error] [client 80.82.47.164] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 20:13:31 2012] [error] [client 80.82.47.164] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 20:13:37 2012] [error] [client 80.82.47.164] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:16:52 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:17:57 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:41:21 2012] [error] [client 93.157.16.113] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:41:21 2012] [error] [client 93.157.16.113] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:41:22 2012] [error] [client 93.157.16.113] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:51:15 2012] [error] [client 178.234.100.18] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:51:15 2012] [error] [client 178.234.100.18] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:51:15 2012] [error] [client 178.234.100.18] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 21:56:22 2012] [error] [client 195.98.67.43] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 22:00:41 2012] [error] [client 85.157.2.28] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 22:00:41 2012] [error] [client 85.157.2.28] File does not exist: /home/x00pe171/data/www/forum.cs-game.biz/favicon.ico
[Tue May 01 22:15:17 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:15:18 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:15:19 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:15:20 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:15:20 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:15:50 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:15:50 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:20:06 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:20:06 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:20:09 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:29:29 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:32:59 2012] [error] [client 195.98.67.43] PHP Warning:  Unknown: open_basedir restriction in effect. File(error.log) is not within the allowed path(s): (/home/x00pe171/data:.) in Unknown on line 0
[Tue May 01 22:32:59 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
[Tue May 01 22:33:02 2012] [error] [client 195.98.67.43] PHP Warning:  Unknown: open_basedir restriction in effect. File(error.log) is not within the allowed path(s): (/home/x00pe171/data:.) in Unknown on line 0
[Tue May 01 22:33:02 2012] [error] [client 195.98.67.43] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/x00pe171/data/www/forum.cs-game.biz/language/ru/common.php on line 891
Проблему нашел здесь:
Открыть: language/en/common.php
Найти: Добавить перед

Код: Выделить всё

	'SEARCH_UNSOLVED'				=> 'View unsolved topics',
	'SEARCH_YOUR_UNSOLVED'			=> 'View your unsolved topics',
	'SEARCH_SOLVED'					=> 'Search only in solved topics',
	'TOPIC_SOLVED'					=> 'Topic is solved',
	'SET_TOPIC_SOLVED'				=> 'Accept this answer',
	'SET_TOPIC_NOT_SOLVED'			=> 'Set topic as unsolved',
- было 2 варианта, поставил перед вторым и форум открылся.


При авторизации выводится это:

Код: Выделить всё

[phpBB Debug] PHP Notice: in file /includes/auth/auth_db.php on line 72: Undefined index: ip_login_limit_use_forwarded
[phpBB Debug] PHP Notice: in file /includes/auth/auth_db.php on line 77: Undefined index: ip_login_limit_time
[phpBB Debug] PHP Notice: in file /includes/auth/auth_db.php on line 78: Undefined index: ip_login_limit_use_forwarded
[phpBB Debug] PHP Notice: in file /includes/auth/auth_db.php on line 118: Undefined index: ip_login_limit_max
При установки мода изменения в auth_db.php не вносились.

Вот весь auth_db.php:

Код: Выделить всё

<?php
/**
* Database auth plug-in for phpBB3
*
* Authentication plug-ins is largely down to Sergey Kanareykin, our thanks to him.
*
* This is for authentication via the integrated user table
*
* @package login
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* Login function
*
* @param string $username
* @param string $password
* @param string $ip			IP address the login is taking place from. Used to
*							limit the number of login attempts per IP address.
* @param string $browser	The user agent used to login
* @param string $forwarded_for X_FORWARDED_FOR header sent with login request
* @return array				A associative array of the format
*							array(
*								'status' => status constant
*								'error_msg' => string
*								'user_row' => array
*							)
*/
function login_db($username, $password, $ip = '', $browser = '', $forwarded_for = '')
{
	global $db, $config;

	// do not allow empty password
	if (!$password)
	{
		return array(
			'status'	=> LOGIN_ERROR_PASSWORD,
			'error_msg'	=> 'NO_PASSWORD_SUPPLIED',
			'user_row'	=> array('user_id' => ANONYMOUS),
		);
	}

	if (!$username)
	{
		return array(
			'status'	=> LOGIN_ERROR_USERNAME,
			'error_msg'	=> 'LOGIN_ERROR_USERNAME',
			'user_row'	=> array('user_id' => ANONYMOUS),
		);
	}

	$username_clean = utf8_clean_string($username);

	$sql = 'SELECT user_id, username, user_password, user_passchg, user_pass_convert, user_email, user_type, user_login_attempts
		FROM ' . USERS_TABLE . "
		WHERE username_clean = '" . $db->sql_escape($username_clean) . "'";
	$result = $db->sql_query($sql);
	$row = $db->sql_fetchrow($result);
	$db->sql_freeresult($result);

	if (($ip && !$config['ip_login_limit_use_forwarded']) ||
		($forwarded_for && $config['ip_login_limit_use_forwarded']))
	{
		$sql = 'SELECT COUNT(*) AS attempts
			FROM ' . LOGIN_ATTEMPT_TABLE . '
			WHERE attempt_time > ' . (time() - (int) $config['ip_login_limit_time']);
		if ($config['ip_login_limit_use_forwarded'])
		{
			$sql .= " AND attempt_forwarded_for = '" . $db->sql_escape($forwarded_for) . "'";
		}
		else
		{
			$sql .= " AND attempt_ip = '" . $db->sql_escape($ip) . "' ";
		}

		$result = $db->sql_query($sql);
		$attempts = (int) $db->sql_fetchfield('attempts');
		$db->sql_freeresult($result);

		$attempt_data = array(
			'attempt_ip'			=> $ip,
			'attempt_browser'		=> trim(substr($browser, 0, 149)),
			'attempt_forwarded_for'	=> $forwarded_for,
			'attempt_time'			=> time(),
			'user_id'				=> ($row) ? (int) $row['user_id'] : 0,
			'username'				=> $username,
			'username_clean'		=> $username_clean,
		);
		$sql = 'INSERT INTO ' . LOGIN_ATTEMPT_TABLE . $db->sql_build_array('INSERT', $attempt_data);
		$result = $db->sql_query($sql);
	}
	else
	{
		$attempts = 0;
	}

	if (!$row)
	{
		return array(
			'status'	=> LOGIN_ERROR_USERNAME,
			'error_msg'	=> 'LOGIN_ERROR_USERNAME',
			'user_row'	=> array('user_id' => ANONYMOUS),
		);
	}

	$show_captcha = ($config['max_login_attempts'] && $row['user_login_attempts'] >= $config['max_login_attempts']) ||
		($config['ip_login_limit_max'] && $attempts >= $config['ip_login_limit_max']);

	// If there are too much login attempts, we need to check for an confirm image
	// Every auth module is able to define what to do by itself...
	if ($show_captcha)
	{
		// Visual Confirmation handling
		if (!class_exists('phpbb_captcha_factory'))
		{
			global $phpbb_root_path, $phpEx;
			include ($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
		}

		$captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
		$captcha->init(CONFIRM_LOGIN);
		$vc_response = $captcha->validate($row);
		if ($vc_response)
		{
			return array(
				'status'		=> LOGIN_ERROR_ATTEMPTS,
				'error_msg'		=> 'LOGIN_ERROR_ATTEMPTS',
				'user_row'		=> $row,
			);
		}
		else
		{
			$captcha->reset();
		}

	}

	// If the password convert flag is set we need to convert it
	if ($row['user_pass_convert'])
	{
		// in phpBB2 passwords were used exactly as they were sent, with addslashes applied
		$password_old_format = isset($_REQUEST['password']) ? (string) $_REQUEST['password'] : '';
		$password_old_format = (!STRIP) ? addslashes($password_old_format) : $password_old_format;
		$password_new_format = '';

		set_var($password_new_format, stripslashes($password_old_format), 'string');

		if ($password == $password_new_format)
		{
			if (!function_exists('utf8_to_cp1252'))
			{
				global $phpbb_root_path, $phpEx;
				include($phpbb_root_path . 'includes/utf/data/recode_basic.' . $phpEx);
			}

			// cp1252 is phpBB2's default encoding, characters outside ASCII range might work when converted into that encoding
			// plain md5 support left in for conversions from other systems.
			if ((strlen($row['user_password']) == 34 && (phpbb_check_hash(md5($password_old_format), $row['user_password']) || phpbb_check_hash(md5(utf8_to_cp1252($password_old_format)), $row['user_password'])))
				|| (strlen($row['user_password']) == 32  && (md5($password_old_format) == $row['user_password'] || md5(utf8_to_cp1252($password_old_format)) == $row['user_password'])))
			{
				$hash = phpbb_hash($password_new_format);

				// Update the password in the users table to the new format and remove user_pass_convert flag
				$sql = 'UPDATE ' . USERS_TABLE . '
					SET user_password = '' . $db->sql_escape($hash) . '',
						user_pass_convert = 0
					WHERE user_id = ' . $row['user_id'];
				$db->sql_query($sql);

				$row['user_pass_convert'] = 0;
				$row['user_password'] = $hash;
			}
			else
			{
				// Although we weren't able to convert this password we have to
				// increase login attempt count to make sure this cannot be exploited
				$sql = 'UPDATE ' . USERS_TABLE . '
					SET user_login_attempts = user_login_attempts + 1
					WHERE user_id = ' . (int) $row['user_id'] . '
						AND user_login_attempts < ' . LOGIN_ATTEMPTS_MAX;
				$db->sql_query($sql);

				return array(
					'status'		=> LOGIN_ERROR_PASSWORD_CONVERT,
					'error_msg'		=> 'LOGIN_ERROR_PASSWORD_CONVERT',
					'user_row'		=> $row,
				);
			}
		}
	}

	// Check password ...
	if (!$row['user_pass_convert'] && phpbb_check_hash($password, $row['user_password']))
	{
		// Check for old password hash...
		if (strlen($row['user_password']) == 32)
		{
			$hash = phpbb_hash($password);

			// Update the password in the users table to the new format
			$sql = 'UPDATE ' . USERS_TABLE . "
				SET user_password = '" . $db->sql_escape($hash) . "',
					user_pass_convert = 0
				WHERE user_id = {$row['user_id']}";
			$db->sql_query($sql);

			$row['user_password'] = $hash;
		}

		$sql = 'DELETE FROM ' . LOGIN_ATTEMPT_TABLE . '
			WHERE user_id = ' . $row['user_id'];
		$db->sql_query($sql);

		if ($row['user_login_attempts'] != 0)
		{
			// Successful, reset login attempts (the user passed all stages)
			$sql = 'UPDATE ' . USERS_TABLE . '
				SET user_login_attempts = 0
				WHERE user_id = ' . $row['user_id'];
			$db->sql_query($sql);
		}

		// User inactive...
		if ($row['user_type'] == USER_INACTIVE || $row['user_type'] == USER_IGNORE)
		{
			return array(
				'status'		=> LOGIN_ERROR_ACTIVE,
				'error_msg'		=> 'ACTIVE_ERROR',
				'user_row'		=> $row,
			);
		}

		// Successful login... set user_login_attempts to zero...
		return array(
			'status'		=> LOGIN_SUCCESS,
			'error_msg'		=> false,
			'user_row'		=> $row,
		);
	}

	// Password incorrect - increase login attempts
	$sql = 'UPDATE ' . USERS_TABLE . '
		SET user_login_attempts = user_login_attempts + 1
		WHERE user_id = ' . (int) $row['user_id'] . '
			AND user_login_attempts < ' . LOGIN_ATTEMPTS_MAX;
	$db->sql_query($sql);

	// Give status about wrong password...
	return array(
		'status'		=> ($show_captcha) ? LOGIN_ERROR_ATTEMPTS : LOGIN_ERROR_PASSWORD,
		'error_msg'		=> ($show_captcha) ? 'LOGIN_ERROR_ATTEMPTS' : 'LOGIN_ERROR_PASSWORD',
		'user_row'		=> $row,
	);
}

?>
72строка

Код: Выделить всё

	if (($ip && !$config['ip_login_limit_use_forwarded']) ||
77строка

Код: Выделить всё

			WHERE attempt_time > ' . (time() - (int) $config['ip_login_limit_time']);
78строка

Код: Выделить всё

		if ($config['ip_login_limit_use_forwarded'])
118 строка

Код: Выделить всё

		($config['ip_login_limit_max'] && $attempts >= $config['ip_login_limit_max']);
Что в них не так?
debug включен.

Добавлено спустя 1 минуту 6 секунд:
После ввода данных о входе - снова перебрасывает на главную страницу.
Аватара пользователя
index-07
phpBB 1.2.1
Сообщения: 23
Стаж: 14 лет 2 месяца
Благодарил (а): 13 раз

Совместимост Topic Solved с Advanced similar topics

Сообщение index-07 »

Можно сделать так, что в список похожих тем отображалась иконка тема решена?

Например как здесь:
Изображение
Sorry for my pure russian!
Аватара пользователя
МайскийЖук
phpBB 3.0.7-PL1
Сообщения: 2535
Стаж: 16 лет 11 месяцев
Благодарил (а): 17 раз
Поблагодарили: 366 раз

Совместимост Topic Solved с Advanced similar topics

Сообщение МайскийЖук »

Да.
Любовь и боль, покой и бой я как любой несу с собой…
Аватара пользователя
index-07
phpBB 1.2.1
Сообщения: 23
Стаж: 14 лет 2 месяца
Благодарил (а): 13 раз

Re: Совместимост Topic Solved с Advanced similar topics

Сообщение index-07 »

Наверно надо вставить

Код: Выделить всё

<!-- IF topicrow.SOLVED_TOPIC -->&nbsp;&nbsp;
					<a href="{topicrow.U_SOLVED_TOPIC}" class="topictitle"{topicrow.SOLVED_STYLE}>{topicrow.SOLVED_TOPIC}</a>
					<!-- ENDIF -->	
в similar_viewtopic.html

Код: Выделить всё

<!-- IF S_NEW_TOPIC -->
<script type="text/javascript">// <![CDATA[
var u_similar_search = '{U_SIMILAR_SEARCH}';
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/similartopicsearchfunction.js"></script>
<tr id="similar_row" style="display:none;">
	<td class="row2" style="padding:0" colspan="2" id="similar_table"></td>
</tr>
<script type="text/javascript">// <![CDATA[
var similar_table = getElement("similar_table");
var similar_row = getElement("similar_row");
var liveSearch = new LiveSearch(document.forms.postform.subject, similar_table, similar_row);
// ]]>
</script>
<!-- ENDIF -->
<!-- IF .similar -->
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<th width="4%" nowrap="nowrap">&nbsp;</th>
		<th colspan="2" nowrap="nowrap">&nbsp;{L_SIMILAR_TOPICS}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
		<th nowrap="nowrap">&nbsp;{L_LAST_POST}&nbsp;</th>
	</tr>
	<!-- BEGIN similar -->
		<tr valign="middle">
			<td class="row1" width="25" align="center">{similar.TOPIC_FOLDER_IMG}</td>
			<td class="row1" width="25" align="center">
			<!-- IF similar.TOPIC_ICON_IMG -->
				<img src="{T_ICONS_PATH}{similar.TOPIC_ICON_IMG}" width="{similar.TOPIC_ICON_IMG_WIDTH}" height="{similar.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" />
			<!-- ENDIF -->
			</td>
			<td class="row1">
				<a href="{similar.U_VIEW_TOPIC}" class="topictitle" onclick="window.open(this.href);return false;">{similar.TOPIC_TITLE}</a>
				<!-- IF similar.PAGINATION -->
					<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {similar.PAGINATION} ] </p>
				<!-- ENDIF -->
				<!-- IF similar.S_TOPIC_GLOBAL -->
					<p class="gensmall">{L_GLOBAL}</p>
				<!-- ELSE -->
					<p class="gensmall">{L_IN} <a href="{similar.U_VIEW_FORUM}" onclick="window.open(this.href);return false;">{similar.FORUM_TITLE}</a></p>
				<!-- ENDIF -->
			</td>
			<td class="row2" width="100" align="center"><p class="topicauthor"><!-- IF similar.U_TOPIC_AUTHOR --><a href="{similar.U_TOPIC_AUTHOR}" onclick="window.open(this.href);return false;">{similar.TOPIC_AUTHOR}</a><!-- ELSE -->{similar.TOPIC_AUTHOR}<!-- ENDIF --></p></td>
			<td class="row1" width="50" align="center"><p class="topicdetails">{similar.TOPIC_REPLIES}</p></td>
			<td class="row2" width="50" align="center"><p class="topicdetails">{similar.TOPIC_VIEWS}</p></td>
			<td class="row1" width="120" align="center">
				<p class="topicdetails">{similar.LAST_POST_TIME}</p>
				<p class="topicdetails"><!-- IF similar.U_LAST_POST_AUTHOR --><a href="{similar.U_LAST_POST_AUTHOR}" onclick="window.open(this.href);return false;">{similar.LAST_POST_AUTHOR}</a><!-- ELSE -->{similar.LAST_POST_AUTHOR}<!-- ENDIF -->
					<a href="{similar.U_LAST_POST}" onclick="window.open(this.href);return false;">{LAST_POST_IMG}</a>
				</p>
			</td>
		</tr>
	<!-- END similar -->
	</table>
<!-- ENDIF -->
Но мне не понятно как это сделать. :(

Может подскажите?
Sorry for my pure russian!
Аватара пользователя
evrus01
Former team member
Сообщения: 1274
Стаж: 15 лет 6 месяцев
Откуда: Москва
Благодарил (а): 107 раз
Поблагодарили: 234 раза

Re: Совместимость Topic Solved с Advanced similar topics

Сообщение evrus01 »

index-07, вот так?

Пример

similar_topics.php
Найти:

Код: Выделить всё

$sql_array = array(
	'SELECT'	=> 'f.forum_id, f.forum_name, t.*, u.user_id, u.username, u.user_colour, ' . $sql_match_select . ' AS relevance',
В этом фрагменте найти f.forum_name,
И после вставить:

Код: Выделить всё

f.forum_solve_text, f.forum_solve_color, f.forum_allow_solve, t.topic_solved,
Найти:

Код: Выделить всё

'TOPIC_TITLE'			=> $similar['topic_title'],
Заменить на:

Код: Выделить всё

'TOPIC_TITLE'			=> $similar['topic_title'] . (($similar['topic_solved'] && $similar['topic_type'] != POST_GLOBAL) ? '&nbsp;<a href="'. append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=" . $similar['topic_id'] . '&p=' . $similar['topic_solved'] . '#p' . $similar['topic_solved']) . '"' . (($similar['forum_solve_color']) ? ' style="color: #' . $similar['forum_solve_color'] . '"' : '') . '>' . '' . (($similar['forum_solve_text']) ? $similar['forum_solve_text'] : $user->img('icon_topic_solved_list', 'TOPIC_SOLVED')).'</a>' : ''),
similar_viewtopic.html
Найти:

Код: Выделить всё

<a href="{similar.U_VIEW_TOPIC}" class="topictitle" onclick="window.open(this.href);return false;">{similar.TOPIC_TITLE}</a>
Вставить после:

Код: Выделить всё

<!-- IF similar.SOLVED_TOPIC --><a href="{similar.U_SOLVED_TOPIC}" class="topictitle"{similar.SOLVED_STYLE}>{similar.SOLVED_TOPIC}</a><!-- ENDIF -->
Очистить кеш.
Аватара пользователя
index-07
phpBB 1.2.1
Сообщения: 23
Стаж: 14 лет 2 месяца
Благодарил (а): 13 раз

Re: Совместимост Topic Solved с Advanced similar topics

Сообщение index-07 »

Спасибо!
Sorry for my pure russian!

Вернуться в «Поддержка модов для phpBB 3.0.x»