Помогите плиз
buzb
Код: Выделить всё
ALTER TABLE `phpbb_config` CHANGE `config_value` `config_value` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
PPK
И исключение разделов не работает....Внимание
Введённое значение параметра «Исключать указанные форумы» слишком длинное. Максимальная допустимая длина — 255.
buzb
/adm/index.php заменитьЕсли так то в админке вот такое предупреждение
Код: Выделить всё
$validator[$max] = (isset($validator[$max])) ? min(255, $validator[$max]) : 255;
Код: Выделить всё
$validator[$max] = (isset($validator[$max])) ? min($validator_max, $validator[$max]) : $validator_max;
Код: Выделить всё
$length = utf8_strlen($cfg_array[$config_name]);
// the column is a VARCHAR
Код: Выделить всё
$validator_max=255;
if(preg_match('/^bb3topics_/', $config_name))
{
$validator_max=isset($validator[$max]) ? $validator[$max] : 3000;
}
PPK
Код: Выделить всё
Ошибка
SQL-запрос:
INSERT INTO `phpbb_00000config` ( `config_name` , `config_value` , `is_dynamic` )
VALUES (
'bb3topics_enable', '0', 0
);
Ответ MySQL:
#1062 - Duplicate entry 'bb3topics_enable' for key 'PRIMARY'
roossasen
Код: Выделить всё
DELETE FROM `phpbb_00000config` WHERE `config_name` LIKE 'bb3topics%';
PPK
roossasen
Код: Выделить всё
Fatal error: Cannot redeclare my_split_config() (previously declared in /home/p100636/www/onstyles.ru/forum/includes/functions.php:167) in /home/p100636/www/onstyles.ru/forum/includes/functions.php on line 451
votept
Код: Выделить всё
function my_split_config($config, $count=0, $type=false, $split='')
{
$s_config=@explode($split ? $split : ' ', $config);
$count=$count ? $count : sizeof($s_config);
if($count)
{
for($i=0;$i<$count;$i++)
{
if($type)
{
if(is_array($type) && @function_exists($type[$i]))
{
$s_config[$i]=call_user_func($type[$i], @$s_config[$i]);
}
else if(@$type && @function_exists($type))
{
$s_config[$i]=call_user_func($type, @$s_config[$i]);
}
else
{
$s_config[$i]=@$s_config[$i];
}
}
else
{
$s_config[$i]=@$s_config[$i];
}
}
}
return $s_config;
}
function my_int_val($v=0)
{
if(!$v || $v < 0)
{
return 0;
}
return @number_format($v, 0, '', '');
}
function my_float_val($v=0)
{
if(!$v || $v < 0)
{
return 0.000;
}
return @number_format($v, 3, '.', '');
}
PPK
Код: Выделить всё
Parse error: syntax error, unexpected T_ELSE in /home/p100636/www/onstyles.ru/forum/includes/functions.php on line 420
Код: Выделить всё
Parse error: syntax error, unexpected T_ELSE in /home/p100636/www/onstyles.ru/forum/includes/functions.php on line 168
votept