diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-02-28 02:41:48 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-02-28 02:41:48 +0000 |
commit | c73923204927f406d492491398980d3aa429c4eb (patch) | |
tree | 717f79ecab01b8d97c359c27406be6dd26ff8193 /identification.php | |
parent | 618158aca4d99fe522b0f54d547442f17a5db148 (diff) |
- migrate many templates to smarty
git-svn-id: http://piwigo.org/svn/trunk@2223 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | identification.php | 26 |
1 files changed, 8 insertions, 18 deletions
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'); ?> |