Ignore:
Timestamp:
Sep 11, 2003, 12:24:03 AM (21 years ago)
Author:
z0rglub
Message:

Mail notification for admins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r61 r85  
    4444       'upload_maxfilesize', 'upload_maxwidth','upload_maxheight',
    4545       'upload_maxwidth_thumbnail','upload_maxheight_thumbnail','log',
    46        'comments_validation','comments_forall','authorize_cookies' );
     46       'comments_validation','comments_forall','authorize_cookies',
     47       'mail_notification' );
    4748$default_user_infos =
    4849array( 'nb_image_line','nb_line_page','language','maxwidth',
     
    404405$vtp->closeSession( $sub, 'param_line' );
    405406$vtp->closeSession( $sub, 'line' );
     407// mail notification for admins
     408$vtp->addSession( $sub, 'line' );
     409$vtp->addSession( $sub, 'param_line' );
     410$vtp->setVar( $sub, 'param_line.name',
     411              $lang['conf_general_mail_notification'] );
     412$vtp->addSession( $sub, 'group' );
     413$vtp->addSession( $sub, 'radio' );
     414$vtp->setVar( $sub, 'radio.name', 'mail_notification' );
     415$vtp->setVar( $sub, 'radio.value', 'true' );
     416$vtp->setVar( $sub, 'radio.option', $lang['yes'] );
     417$checked = '';
     418if ( $mail_notification == 'true' )
     419{
     420  $checked = ' checked="checked"';
     421}
     422$vtp->setVar( $sub, 'radio.checked', $checked );
     423$vtp->closeSession( $sub, 'radio' );
     424$vtp->addSession( $sub, 'radio' );
     425$vtp->setVar( $sub, 'radio.name', 'mail_notification' );
     426$vtp->setVar( $sub, 'radio.value', 'false' );
     427$vtp->setVar( $sub, 'radio.option', $lang['no'] );
     428$checked = '';
     429if ( $mail_notification == 'false' )
     430{
     431  $checked = ' checked="checked"';
     432}
     433$vtp->setVar( $sub, 'radio.checked', $checked );
     434$vtp->closeSession( $sub, 'radio' );
     435$vtp->closeSession( $sub, 'group' );
     436$vtp->setVar( $sub, 'param_line.def',
     437              $lang['conf_general_mail_notification_info'] );
     438$vtp->closeSession( $sub, 'param_line' );
     439$vtp->closeSession( $sub, 'line' );
    406440
    407441$vtp->addSession( $sub, 'line' );
Note: See TracChangeset for help on using the changeset viewer.