Changeset 2223 for trunk/password.php
- Timestamp:
- Feb 28, 2008, 3:41:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/password.php
r1951 r2223 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 147 147 $title = l10n('Forgot your password?'); 148 148 $page['body_id'] = 'thePasswordPage'; 149 include(PHPWG_ROOT_PATH.'include/page_header.php'); 149 150 150 $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' 155 153 ) 156 154 ); 157 158 155 // +-----------------------------------------------------------------------+ 159 156 // | infos & errors display | 160 157 // +-----------------------------------------------------------------------+ 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']); 191 160 192 161 // +-----------------------------------------------------------------------+ 193 162 // | html code display | 194 163 // +-----------------------------------------------------------------------+ 195 196 $template->p arse('password');164 include(PHPWG_ROOT_PATH.'include/page_header.php'); 165 $template->pparse('password'); 197 166 include(PHPWG_ROOT_PATH.'include/page_tail.php'); 198 167
Note: See TracChangeset
for help on using the changeset viewer.