diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-07-27 08:24:10 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-07-27 08:24:10 +0000 |
commit | 45a8139acdc9a175f8f8e1536d42fa36bc57ff4c (patch) | |
tree | df7b51fc1b5063cdbcd46856cd16d0dacc28acd7 /admin/configuration.php | |
parent | 4e775187b8d054835b179ff136ccd5ad5393711f (diff) |
optional cookie identification
git-svn-id: http://piwigo.org/svn/trunk@45 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/configuration.php | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index 529a3541b..71802db1f 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -41,7 +41,7 @@ array( 'prefix_thumbnail','webmaster','mail_webmaster','access', 'show_comments','nb_comment_page','upload_available', 'upload_maxfilesize', 'upload_maxwidth','upload_maxheight', 'upload_maxwidth_thumbnail','upload_maxheight_thumbnail','log', - 'comments_validation','comments_forall' ); + 'comments_validation','comments_forall','authorize_cookies' ); $default_user_infos = array( 'nb_image_line','nb_line_page','language','maxwidth', 'maxheight','expand','show_nb_comments','short_period','long_period', @@ -851,6 +851,37 @@ $vtp->addSession( $sub, 'line' ); $vtp->addSession( $sub, 'space_line' ); $vtp->closeSession( $sub, 'space_line' ); $vtp->closeSession( $sub, 'line' ); +// authorize cookies ? +$vtp->addSession( $sub, 'line' ); +$vtp->addSession( $sub, 'param_line' ); +$vtp->setVar( $sub, 'param_line.name', $lang['conf_session_cookie'] ); +$vtp->addSession( $sub, 'group' ); +$vtp->addSession( $sub, 'radio' ); +$vtp->setVar( $sub, 'radio.name', 'authorize_cookies' ); +$vtp->setVar( $sub, 'radio.value', 'true' ); +$checked = ''; +if ( $authorize_cookies == 'true' ) +{ + $checked = ' checked="checked"'; +} +$vtp->setVar( $sub, 'radio.checked', $checked ); +$vtp->setVar( $sub, 'radio.option', $lang['yes'] ); +$vtp->closeSession( $sub, 'radio' ); +$vtp->addSession( $sub, 'radio' ); +$vtp->setVar( $sub, 'radio.name', 'authorize_cookies' ); +$vtp->setVar( $sub, 'radio.value', 'false' ); +$checked = ''; +if ( $authorize_cookies == 'false' ) +{ + $checked = ' checked="checked"'; +} +$vtp->setVar( $sub, 'radio.checked', $checked ); +$vtp->setVar( $sub, 'radio.option', $lang['no'] ); +$vtp->closeSession( $sub, 'radio' ); +$vtp->closeSession( $sub, 'group' ); +$vtp->setVar( $sub, 'param_line.def', $lang['conf_session_cookie_info'] ); +$vtp->closeSession( $sub, 'param_line' ); +$vtp->closeSession( $sub, 'line' ); // session size $vtp->addSession( $sub, 'line' ); $vtp->addSession( $sub, 'param_line' ); |