Помогите плиз
PPK
Oleg
PPK
Код: Выделить всё
'default_dateformat' =>'|d M Y|, H:i', // Сегодня, 13:37 / 01 Янв 2007, 13:37
Код: Выделить всё
'BB3TOPICS' => 'Темы на форуме',
'BB3TOPICS_FORUMS' => 'Темы в форуме',
'BB3TOPICS_TOPICS' => 'Новые темы',
'BB3TOPICS_ANNOUNCES' => 'Объявления',
'BB3TOPICS_VIEWED' => 'Популярные темы',
'BB3TOPICS_REPLIES' => 'Обсуждаемые темы',
'BB3TOPICS_VOTES' => 'Опросы',
'BB3TOPICS_RANDOM' => 'Случайные темы',
'BB3TOPICS_PERSONAL' => 'Персональные темы',
'BB3TOPICS_STICKY' => 'Прилепленные темы',
'BB3TOPICS_GLOBAL' => 'Важные темы',
Oleg
Oleg писал(а):если убираю, то форум появляется
PPK
Oleg
PPK
Код: Выделить всё
function my_split_config($config, $count=0, $type=false, $split='')
{
Код: Выделить всё
// Common global functions
Код: Выделить всё
function my_split_config($config, $count=0, $type=false, $split='')
{
$count=intval($count);
if(!$count && $config==='')
{
return array();
}
$s_config=$count > 0 ? @explode($split ? $split : ' ', $config, $count) : @explode($split ? $split : ' ', $config);
$count=$count > 0 ? $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(@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, '.', '');
}
Код: Выделить всё
function my_split_config($config, $count=0, $type=false, $split='')
{
$count=intval($count);
if(!$count && $config==='')
{
return array();
}
$s_config=$count > 0 ? @explode($split ? $split : ' ', $config, $count) : @explode($split ? $split : ' ', $config);
$count=$count > 0 ? $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(@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, 0, '', '');
}
function my_float_val($v=0, $n=3)
{
if(!$v || $v < 0)
{
return "0.".str_repeat('0', $n);
}
return @number_format($v+0, $n, '.', '');
}
Код: Выделить всё
function my_split_config($config, $count=0, $type=false, $split='')
{
$count=intval($count);
if(!$count && $config==='')
{
return array();
}
$s_config=$count > 0 ? @explode($split ? $split : ' ', $config, $count) : @explode($split ? $split : ' ', $config);
$count=$count > 0 ? $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(@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, '.', '');
}
Oleg
а если посмотреть код, то видно, что он одинаковыйнайти
---------------
если ничего не найдено
PPK
Oleg