Ignore:
Timestamp:
Feb 28, 2008, 3:41:48 AM (17 years ago)
Author:
rvelices
Message:
  • migrate many templates to smarty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/identification.php

    r2029 r2223  
    7171$template->set_filenames( array('identification'=>'identification.tpl') );
    7272
    73 $template->assign_vars(
     73$template->assign(
    7474  array(
    75     'U_REGISTER' => PHPWG_ROOT_PATH.'register.php',
    76     'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php',
    77     'U_HOME' => make_index_url(),
     75    'U_LOST_PASSWORD' => get_root_url().'password.php',
    7876    'U_REDIRECT' => $redirect_to,
    7977
    80     'F_LOGIN_ACTION' => PHPWG_ROOT_PATH.'identification.php'
     78    'F_LOGIN_ACTION' => get_root_url().'identification.php',
     79    'authorize_remembering' => $conf['authorize_remembering'],
    8180    ));
    8281
    83 if ($conf['authorize_remembering'])
    84 {
    85   $template->assign_block_vars('remember_me',array());
    86 }
    8782if ($conf['allow_user_registration'])
    8883{
    89   $template->assign_block_vars('register',array());
     84  $template->assign('U_REGISTER', get_root_url().'register.php' );
    9085}
    9186
     
    9388if ( sizeof( $errors ) != 0 )
    9489{
    95   $template->assign_block_vars('errors',array());
    96   for ( $i = 0; $i < sizeof( $errors ); $i++ )
    97   {
    98     $template->assign_block_vars('errors.error',array('ERROR'=>$errors[$i]));
    99   }
     90  $template->assign('errors', $errors);
    10091}
    101 //-------------------------------------------------------------- visit as guest
    102 $template->assign_block_vars('free_access',array());
     92
    10393//----------------------------------------------------------- html code display
    104 $template->parse('identification');
     94$template->pparse('identification');
    10595include(PHPWG_ROOT_PATH.'include/page_tail.php');
    10696?>
Note: See TracChangeset for help on using the changeset viewer.