diff options
author | gweltas <gweltas@piwigo.org> | 2004-02-02 00:55:18 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-02-02 00:55:18 +0000 |
commit | bef4b3e3aa8e3d54cbf8b4962b9b5d4a89b55429 (patch) | |
tree | 647b2cf07ee8451a9314e1e8aebd11d9396cb32b /register.php | |
parent | eea989f019f21fbd7ae4aa8e2f4a1503992c23bf (diff) |
Merge of the 1.3.1 release
Creation of an unique include file (common.php)
Creation of an unique define file (include/constants.php)
Modification of the installation procedure
git-svn-id: http://piwigo.org/svn/trunk@345 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'register.php')
-rw-r--r-- | register.php | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/register.php b/register.php index 0f0669926..399e60603 100644 --- a/register.php +++ b/register.php @@ -17,8 +17,9 @@ * * ***************************************************************************/ -//----------------------------------------------------------- personnal include -include_once( './include/init.inc.php' ); +//----------------------------------------------------------- include +$phpwg_root_path = './'; +include_once( $phpwg_root_path.'common.php' ); //-------------------------------------------------- access authorization check if ( $conf['access'] == "restricted" ) { @@ -42,11 +43,14 @@ if ( isset( $_POST['submit'] ) ) } } //----------------------------------------------------- template initialization -$vtp = new VTemplate; +// +// Start output of page +// +$title= $lang['register_page_title']; +include('include/page_header.php'); + $handle = $vtp->Open( './template/'.$user['template'].'/register.vtp' ); // language -$vtp->setGlobalVar( $handle, 'register_page_title', - $lang['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'] ); @@ -70,7 +74,8 @@ $vtp->addSession( $handle, 'line' ); $vtp->setVar( $handle, 'line.name', $lang['login'] ); $vtp->addSession( $handle, 'text' ); $vtp->setVar( $handle, 'text.name', 'login' ); -$vtp->setVar( $handle, 'text.value', $_POST['login'] ); +if (isset( $_POST['login'])) + $vtp->setVar( $handle, 'text.value', $_POST['login'] ); $vtp->closeSession( $handle, 'text' ); $vtp->closeSession( $handle, 'line' ); //-------------------------------------------------------------------- password @@ -94,10 +99,12 @@ $vtp->addSession( $handle, 'line' ); $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'] ); +if (isset( $_POST['mail_address'])) + $vtp->setVar( $handle, 'text.value', $_POST['mail_address'] ); $vtp->closeSession( $handle, 'text' ); $vtp->closeSession( $handle, 'line' ); //----------------------------------------------------------- html code display $code = $vtp->Display( $handle, 0 ); echo $code; +include('include/page_tail.php'); ?>
\ No newline at end of file |