Ignore:
Timestamp:
Mar 30, 2004, 12:40:21 AM (20 years ago)
Author:
z0rglub
Message:

code refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/identification.php

    r393 r402  
    2626// +-----------------------------------------------------------------------+
    2727
    28 //----------------------------------------------------------- include
     28//--------------------------------------------------------------------- include
    2929define('PHPWG_ROOT_PATH','./');
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     
    4343    $session_id = session_create( $_POST['username'] );
    4444    $url = 'category.php?id='.$session_id;
     45    redirect( $url );
    4546    header( 'Request-URI: '.$url );
    4647    header( 'Content-Location: '.$url ); 
     
    6263$template->set_filenames( array('identification'=>'identification.tpl') );
    6364
    64 $template->assign_vars(array(
    65   'MAIL_ADMIN' => $conf['mail_webmaster'],
    66 
    67   'L_TITLE' => $lang['ident_title'],
    68   'L_USERNAME' => $lang['login'],
    69   'L_PASSWORD' => $lang['password'],
    70   'L_LOGIN' => $lang['submit'],
    71   'L_GUEST' => $lang['ident_guest_visit'],
    72   'L_REGISTER' => $lang['ident_register'],
    73   'L_FORGET' => $lang['ident_forgotten_password'],
    74  
    75   'T_STYLE' => $user['template'],
    76  
    77   'F_LOGIN_ACTION' => add_session_id('identification.php')
    78   ));
    79 
     65$template->assign_vars(
     66  array(
     67    'MAIL_ADMIN' => $conf['mail_webmaster'],
     68   
     69    'L_TITLE' => $lang['ident_title'],
     70    'L_USERNAME' => $lang['login'],
     71    'L_PASSWORD' => $lang['password'],
     72    'L_LOGIN' => $lang['submit'],
     73    'L_GUEST' => $lang['ident_guest_visit'],
     74    'L_REGISTER' => $lang['ident_register'],
     75    'L_FORGET' => $lang['ident_forgotten_password'],
     76   
     77    'T_STYLE' => $user['template'],
     78   
     79    'F_LOGIN_ACTION' => add_session_id('identification.php')
     80    ));
    8081//-------------------------------------------------------------- errors display
    8182if ( sizeof( $errors ) != 0 )
Note: See TracChangeset for help on using the changeset viewer.