mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
code refactoring
git-svn-id: http://piwigo.org/svn/trunk@402 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+18
-17
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user