From c73923204927f406d492491398980d3aa429c4eb Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 28 Feb 2008 02:41:48 +0000 Subject: - migrate many templates to smarty git-svn-id: http://piwigo.org/svn/trunk@2223 68402e56-0260-453c-a942-63ccdbb3a9ee --- identification.php | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'identification.php') diff --git a/identification.php b/identification.php index 434cc06c3..7ac373440 100644 --- a/identification.php +++ b/identification.php @@ -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'); ?> -- cgit v1.2.3