1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

Using block_vars to fake IF...ELSE...ENDIF capability

git-svn-id: file:///svn/phpbb/trunk@719 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-07-21 13:45:18 +00:00
parent 5706375aac
commit f0b2e3beb1
4 changed files with 43 additions and 13 deletions

View File

@@ -259,10 +259,7 @@ $template->assign_vars(array(
//
if(!$userdata['session_logged_in'])
{
$template->set_filenames(array(
"loginbox" => "loginbox.tpl")
);
$template->assign_var_from_handle("S_LOGINBOX", "loginbox");
$template->assign_block_vars("loginbox", array());
}
header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT");