- migrate many templates to smarty

git-svn-id: http://piwigo.org/svn/trunk@2223 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2008-02-28 02:41:48 +00:00
parent 618158aca4
commit c739232049
39 changed files with 827 additions and 1234 deletions
+8 -18
View File
@@ -70,37 +70,27 @@ include(PHPWG_ROOT_PATH.'include/page_header.php');
$template->set_filenames( array('identification'=>'identification.tpl') );
$template->assign_vars(
$template->assign(
array(
'U_REGISTER' => PHPWG_ROOT_PATH.'register.php',
'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php',
'U_HOME' => make_index_url(),
'U_LOST_PASSWORD' => get_root_url().'password.php',
'U_REDIRECT' => $redirect_to,
'F_LOGIN_ACTION' => PHPWG_ROOT_PATH.'identification.php'
'F_LOGIN_ACTION' => get_root_url().'identification.php',
'authorize_remembering' => $conf['authorize_remembering'],
));
if ($conf['authorize_remembering'])
{
$template->assign_block_vars('remember_me',array());
}
if ($conf['allow_user_registration'])
{
$template->assign_block_vars('register',array());
$template->assign('U_REGISTER', get_root_url().'register.php' );
}
//-------------------------------------------------------------- errors display
if ( sizeof( $errors ) != 0 )
{
$template->assign_block_vars('errors',array());
for ( $i = 0; $i < sizeof( $errors ); $i++ )
{
$template->assign_block_vars('errors.error',array('ERROR'=>$errors[$i]));
}
$template->assign('errors', $errors);
}
//-------------------------------------------------------------- visit as guest
$template->assign_block_vars('free_access',array());
//----------------------------------------------------------- html code display
$template->parse('identification');
$template->pparse('identification');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>