diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-03-29 22:40:21 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-03-29 22:40:21 +0000 |
commit | d90e90dd4a98c8bb70c83e5d0a351b27c0e2283b (patch) | |
tree | f3f633725286c3c0e4ebc74dabc99d9fb8146dcb /identification.php | |
parent | f39248ae006341ef745eb0f0346a2299688941fe (diff) |
code refactoring
git-svn-id: http://piwigo.org/svn/trunk@402 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | identification.php | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/identification.php b/identification.php index 44cde32fd..2b7adc064 100644 --- a/identification.php +++ b/identification.php @@ -25,7 +25,7 @@ // | USA. | // +-----------------------------------------------------------------------+ -//----------------------------------------------------------- include +//--------------------------------------------------------------------- include define('PHPWG_ROOT_PATH','./'); include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); @@ -42,6 +42,7 @@ if ( isset( $_POST['login'] ) ) { $session_id = session_create( $_POST['username'] ); $url = 'category.php?id='.$session_id; + redirect( $url ); header( 'Request-URI: '.$url ); header( 'Content-Location: '.$url ); header( 'Location: '.$url ); @@ -61,22 +62,22 @@ include(PHPWG_ROOT_PATH.'include/page_header.php'); $template->set_filenames( array('identification'=>'identification.tpl') ); -$template->assign_vars(array( - 'MAIL_ADMIN' => $conf['mail_webmaster'], - - 'L_TITLE' => $lang['ident_title'], - 'L_USERNAME' => $lang['login'], - 'L_PASSWORD' => $lang['password'], - 'L_LOGIN' => $lang['submit'], - 'L_GUEST' => $lang['ident_guest_visit'], - 'L_REGISTER' => $lang['ident_register'], - 'L_FORGET' => $lang['ident_forgotten_password'], - - 'T_STYLE' => $user['template'], - - 'F_LOGIN_ACTION' => add_session_id('identification.php') - )); - +$template->assign_vars( + array( + 'MAIL_ADMIN' => $conf['mail_webmaster'], + + 'L_TITLE' => $lang['ident_title'], + 'L_USERNAME' => $lang['login'], + 'L_PASSWORD' => $lang['password'], + 'L_LOGIN' => $lang['submit'], + 'L_GUEST' => $lang['ident_guest_visit'], + 'L_REGISTER' => $lang['ident_register'], + 'L_FORGET' => $lang['ident_forgotten_password'], + + 'T_STYLE' => $user['template'], + + 'F_LOGIN_ACTION' => add_session_id('identification.php') + )); //-------------------------------------------------------------- errors display if ( sizeof( $errors ) != 0 ) { |