Changeset 369 for trunk/profile.php


Ignore:
Timestamp:
Feb 22, 2004, 3:43:13 AM (20 years ago)
Author:
gweltas
Message:

Template migration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r364 r369  
    132132//
    133133$title = $lang['customize_page_title'];
    134 include('include/page_header.php');
     134include(PHPWG_ROOT_PATH.'include/page_header.php');
    135135
    136136$template->set_filenames(array('profile'=>'profile.tpl'));
     
    224224  ));
    225225
    226 //--------------------------------------------------------------- create cookie
    227 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 }
    248226//----------------------------------------------------------- html code display
    249227$template->pparse('profile');
    250 include('include/page_tail.php');
     228include(PHPWG_ROOT_PATH.'include/page_tail.php');
    251229?>
Note: See TracChangeset for help on using the changeset viewer.