Changeset 2223 for trunk/password.php


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

Legend:

Unmodified
Added
Removed
  • trunk/password.php

    r1951 r2223  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    147147$title = l10n('Forgot your password?');
    148148$page['body_id'] = 'thePasswordPage';
    149 include(PHPWG_ROOT_PATH.'include/page_header.php');
     149
    150150$template->set_filenames(array('password'=>'password.tpl'));
    151 
    152 $template->assign_vars(
    153   array(
    154     'U_HOME' => make_index_url(),
     151$template->assign( array(
     152    'F_ACTION'=> get_root_url().'password.php'
    155153    )
    156154  );
    157 
    158155// +-----------------------------------------------------------------------+
    159156// |                        infos & errors display                         |
    160157// +-----------------------------------------------------------------------+
    161 
    162 if (count($page['errors']) != 0)
    163 {
    164   $template->assign_block_vars('errors', array());
    165  
    166   foreach ($page['errors'] as $error)
    167   {
    168     $template->assign_block_vars(
    169       'errors.error',
    170       array(
    171         'ERROR' => $error
    172         )
    173       );
    174   }
    175 }
    176 
    177 if (count($page['infos']) != 0)
    178 {
    179   $template->assign_block_vars('infos', array());
    180  
    181   foreach ($page['infos'] as $info)
    182   {
    183     $template->assign_block_vars(
    184       'infos.info',
    185       array(
    186         'INFO' => $info
    187         )
    188       );
    189   }
    190 }
     158$template->assign('errors', $page['errors']);
     159$template->assign('infos', $page['infos']);
    191160
    192161// +-----------------------------------------------------------------------+
    193162// |                           html code display                           |
    194163// +-----------------------------------------------------------------------+
    195 
    196 $template->parse('password');
     164include(PHPWG_ROOT_PATH.'include/page_header.php');
     165$template->pparse('password');
    197166include(PHPWG_ROOT_PATH.'include/page_tail.php');
    198167
Note: See TracChangeset for help on using the changeset viewer.