code refactoring

git-svn-id: http://piwigo.org/svn/trunk@402 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-03-29 22:40:21 +00:00
parent f39248ae00
commit d90e90dd4a
3 changed files with 603 additions and 572 deletions
+18 -17
View File
@@ -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 )
{