Changeset 369 for trunk/profile.php
- Timestamp:
- Feb 22, 2004, 3:43:13 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/profile.php
r364 r369 132 132 // 133 133 $title = $lang['customize_page_title']; 134 include( 'include/page_header.php');134 include(PHPWG_ROOT_PATH.'include/page_header.php'); 135 135 136 136 $template->set_filenames(array('profile'=>'profile.tpl')); … … 224 224 )); 225 225 226 //--------------------------------------------------------------- create cookie227 if ( $conf['authorize_cookies'] )228 {229 $vtp->addSession( $handle, 'cookie' );230 $options = array(231 array( 'message' => '1 '.$lang['customize_day'],232 'value' => time() + 24*60*60 ),233 array( 'message' => '1 '.$lang['customize_week'],234 'value' => time() + 7*24*60*60 ),235 array( 'message' => '1 '.$lang['customize_month'],236 'value' => time() + 30*24*60*60 ),237 array( 'message' => '1 '.$lang['customize_year'],238 'value' => time() + 365*24*60*60 )239 );240 foreach ( $options as $option ) {241 $vtp->addSession( $handle, 'expiration_option' );242 $vtp->setVar( $handle, 'expiration_option.option', $option['message'] );243 $vtp->setVar( $handle, 'expiration_option.value', $option['value'] );244 $vtp->closeSession( $handle, 'expiration_option' );245 }246 $vtp->closeSession( $handle, 'cookie' );247 }248 226 //----------------------------------------------------------- html code display 249 227 $template->pparse('profile'); 250 include( 'include/page_tail.php');228 include(PHPWG_ROOT_PATH.'include/page_tail.php'); 251 229 ?>
Note: See TracChangeset
for help on using the changeset viewer.