From d90e90dd4a98c8bb70c83e5d0a351b27c0e2283b Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 29 Mar 2004 22:40:21 +0000 Subject: code refactoring git-svn-id: http://piwigo.org/svn/trunk@402 68402e56-0260-453c-a942-63ccdbb3a9ee --- identification.php | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'identification.php') 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 ) { -- cgit v1.2.3