From 058c5e2b765019272a0d45a461fdb4bd04396295 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 14 Sep 2003 16:21:02 +0000 Subject: Using template_initialize git-svn-id: http://piwigo.org/svn/trunk@105 68402e56-0260-453c-a942-63ccdbb3a9ee --- register.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'register.php') diff --git a/register.php b/register.php index b491b87d8..0f0669926 100644 --- a/register.php +++ b/register.php @@ -50,12 +50,7 @@ $vtp->setGlobalVar( $handle, 'register_page_title', $vtp->setGlobalVar( $handle, 'register_title', $lang['register_title'] ); $vtp->setGlobalVar( $handle, 'ident_guest_visit',$lang['ident_guest_visit'] ); $vtp->setGlobalVar( $handle, 'submit', $lang['submit'] ); -// user -$vtp->setGlobalVar( $handle, 'page_style', $user['style'] ); -// structure -$vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() ); -$vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() ); -$vtp->setGlobalVar( $handle, 'frame_end', get_frame_end() ); +initialize_template(); //----------------------------------------------------------------- form action $vtp->setGlobalVar( $handle, 'form_action', './register.php' ); //-------------------------------------------------------------- errors display @@ -96,7 +91,7 @@ $vtp->closeSession( $handle, 'password' ); $vtp->closeSession( $handle, 'line' ); //---------------------------------------------------------------- mail address $vtp->addSession( $handle, 'line' ); -$vtp->setVar( $handle, 'line.name', $lang['reg_mail_address'] ); +$vtp->setVar( $handle, 'line.name', $lang['mail_address'] ); $vtp->addSession( $handle, 'text' ); $vtp->setVar( $handle, 'text.name', 'mail_address' ); $vtp->setVar( $handle, 'text.value', $_POST['mail_address'] ); -- cgit v1.2.3