aboutsummaryrefslogtreecommitdiffstats
path: root/password.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-02-28 02:41:48 +0000
committerrvelices <rv-github@modusoptimus.com>2008-02-28 02:41:48 +0000
commitc73923204927f406d492491398980d3aa429c4eb (patch)
tree717f79ecab01b8d97c359c27406be6dd26ff8193 /password.php
parent618158aca4d99fe522b0f54d547442f17a5db148 (diff)
- migrate many templates to smarty
git-svn-id: http://piwigo.org/svn/trunk@2223 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--password.php47
1 files changed, 8 insertions, 39 deletions
diff --git a/password.php b/password.php
index 1ff5dfab6..ec348372e 100644
--- a/password.php
+++ b/password.php
@@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id$
// | last update : $Date$
@@ -146,54 +146,23 @@ WHERE '
$title = l10n('Forgot your password?');
$page['body_id'] = 'thePasswordPage';
-include(PHPWG_ROOT_PATH.'include/page_header.php');
-$template->set_filenames(array('password'=>'password.tpl'));
-$template->assign_vars(
- array(
- 'U_HOME' => make_index_url(),
+$template->set_filenames(array('password'=>'password.tpl'));
+$template->assign( array(
+ 'F_ACTION'=> get_root_url().'password.php'
)
);
-
// +-----------------------------------------------------------------------+
// | infos & errors display |
// +-----------------------------------------------------------------------+
-
-if (count($page['errors']) != 0)
-{
- $template->assign_block_vars('errors', array());
-
- foreach ($page['errors'] as $error)
- {
- $template->assign_block_vars(
- 'errors.error',
- array(
- 'ERROR' => $error
- )
- );
- }
-}
-
-if (count($page['infos']) != 0)
-{
- $template->assign_block_vars('infos', array());
-
- foreach ($page['infos'] as $info)
- {
- $template->assign_block_vars(
- 'infos.info',
- array(
- 'INFO' => $info
- )
- );
- }
-}
+$template->assign('errors', $page['errors']);
+$template->assign('infos', $page['infos']);
// +-----------------------------------------------------------------------+
// | html code display |
// +-----------------------------------------------------------------------+
-
-$template->parse('password');
+include(PHPWG_ROOT_PATH.'include/page_header.php');
+$template->pparse('password');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>