aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-02-22 02:43:13 +0000
committergweltas <gweltas@piwigo.org>2004-02-22 02:43:13 +0000
commit60b84a9db5822b98a3e18a842901c2f0c323e032 (patch)
treedbc84d5ee9f839ee44fa7213ed3cbc8ce5a927b9 /profile.php
parentd339037b1e06a84594c503fa7d7b8c1be1862d47 (diff)
Template migration
git-svn-id: http://piwigo.org/svn/trunk@369 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php26
1 files changed, 2 insertions, 24 deletions
diff --git a/profile.php b/profile.php
index 97968221d..2fb1b9de3 100644
--- a/profile.php
+++ b/profile.php
@@ -131,7 +131,7 @@ if ( isset( $_POST['submit'] ) )
// Start output of page
//
$title = $lang['customize_page_title'];
-include('include/page_header.php');
+include(PHPWG_ROOT_PATH.'include/page_header.php');
$template->set_filenames(array('profile'=>'profile.tpl'));
initialize_template();
@@ -223,29 +223,7 @@ $template->assign_block_vars('radio',array(
'F_OPTIONS'=>make_radio('show_nb_comments', array(true=>$lang['yes'], false=>$lang['no']), $user['show_nb_comments'], true)
));
-//--------------------------------------------------------------- create cookie
-if ( $conf['authorize_cookies'] )
-{
- $vtp->addSession( $handle, 'cookie' );
- $options = array(
- array( 'message' => '1 '.$lang['customize_day'],
- 'value' => time() + 24*60*60 ),
- array( 'message' => '1 '.$lang['customize_week'],
- 'value' => time() + 7*24*60*60 ),
- array( 'message' => '1 '.$lang['customize_month'],
- 'value' => time() + 30*24*60*60 ),
- array( 'message' => '1 '.$lang['customize_year'],
- 'value' => time() + 365*24*60*60 )
- );
- foreach ( $options as $option ) {
- $vtp->addSession( $handle, 'expiration_option' );
- $vtp->setVar( $handle, 'expiration_option.option', $option['message'] );
- $vtp->setVar( $handle, 'expiration_option.value', $option['value'] );
- $vtp->closeSession( $handle, 'expiration_option' );
- }
- $vtp->closeSession( $handle, 'cookie' );
-}
//----------------------------------------------------------- html code display
$template->pparse('profile');
-include('include/page_tail.php');
+include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>