Сложный вопрос (ну для меня это точно =))
Tetrix
Код: Выделить всё
$user->session_begin();
$auth->acl($user->data);
Код: Выделить всё
$mode=request_var('mode', '');Код: Выделить всё
if($forum_astracker)
{
$template->set_filenames(array(
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_tracker_body.html')
);
}
else
{
$template->set_filenames(array(
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')
);
}Код: Выделить всё
if($mode == '')
{
if($forum_astracker)
{
$template->set_filenames(array(
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_tracker_body.html')
);
}
else
{
$template->set_filenames(array(
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')
);
}
}
if($mode == 'anothertpl')
{
if($forum_astracker)
{
$template->set_filenames(array(
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_tracker_body_anothertpl.html')
);
}
else
{
$template->set_filenames(array(
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body_anothertpl.html')
);
}
}serrrios
Код: Выделить всё
if($mode == ' ')Код: Выделить всё
if($mode == ' модификатор')Tetrix
serrrios
Tetrix
Код: Выделить всё
[phpBB Debug] PHP Notice: in file /viewforum.php on line 155: Undefined variable: mode
[phpBB Debug] PHP Notice: in file /viewforum.php on line 170: Undefined variable: modeTetrix
Код: Выделить всё
// Start initial var setup
...blah-blah...
$mode = request_var('mode', '');Код: Выделить всё
template->_tpl_load(): No file specified for handle bodyTetrix
Код: Выделить всё
if($mode == ' ')Код: Выделить всё
if($mode != 'anothertpl ')Tetrix
serrrios