Ignore:
Timestamp:
Jul 27, 2003, 10:24:10 AM (21 years ago)
Author:
z0rglub
Message:

optional cookie identification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r42 r45  
    4242       'upload_maxfilesize', 'upload_maxwidth','upload_maxheight',
    4343       'upload_maxwidth_thumbnail','upload_maxheight_thumbnail','log',
    44        'comments_validation','comments_forall' );
     44       'comments_validation','comments_forall','authorize_cookies' );
    4545$default_user_infos =
    4646array( 'nb_image_line','nb_line_page','language','maxwidth',
     
    852852$vtp->closeSession( $sub, 'space_line' );
    853853$vtp->closeSession( $sub, 'line' );
     854// authorize cookies ?
     855$vtp->addSession( $sub, 'line' );
     856$vtp->addSession( $sub, 'param_line' );
     857$vtp->setVar( $sub, 'param_line.name', $lang['conf_session_cookie'] );
     858$vtp->addSession( $sub, 'group' );
     859$vtp->addSession( $sub, 'radio' );
     860$vtp->setVar( $sub, 'radio.name', 'authorize_cookies' );
     861$vtp->setVar( $sub, 'radio.value', 'true' );
     862$checked = '';
     863if ( $authorize_cookies == 'true' )
     864{
     865  $checked = ' checked="checked"';
     866}
     867$vtp->setVar( $sub, 'radio.checked', $checked );
     868$vtp->setVar( $sub, 'radio.option', $lang['yes'] );
     869$vtp->closeSession( $sub, 'radio' );
     870$vtp->addSession( $sub, 'radio' );
     871$vtp->setVar( $sub, 'radio.name', 'authorize_cookies' );
     872$vtp->setVar( $sub, 'radio.value', 'false' );
     873$checked = '';
     874if ( $authorize_cookies == 'false' )
     875{
     876  $checked = ' checked="checked"';
     877}
     878$vtp->setVar( $sub, 'radio.checked', $checked );
     879$vtp->setVar( $sub, 'radio.option', $lang['no'] );
     880$vtp->closeSession( $sub, 'radio' );
     881$vtp->closeSession( $sub, 'group' );
     882$vtp->setVar( $sub, 'param_line.def', $lang['conf_session_cookie_info'] );
     883$vtp->closeSession( $sub, 'param_line' );
     884$vtp->closeSession( $sub, 'line' );
    854885// session size
    855886$vtp->addSession( $sub, 'line' );
Note: See TracChangeset for help on using the changeset viewer.