Changeset 4861 for extensions/Mail_supervisor/admin
- Timestamp:
- Feb 9, 2010, 10:52:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/admin/mail_superv_admin.php
r4721 r4861 89 89 90 90 $mails_options = explode("," , $conf['mail_superv']); 91 if (!isset($mails_options[ 7])) $mails_options[7] = 'off' ; //set_id92 if (!isset($mails_options[ 6])) $mails_options[6] = $ip ;93 if (!isset($mails_options[ 5])) $mails_options[5] = 'off' ;94 if (!isset($mails_options[ 4])) $mails_options[4] = 'off' ;95 if (!isset($mails_options[ 3])) $mails_options[3] = 'off' ;91 if (!isset($mails_options[set_id])) $mails_options[set_id] = 'off' ; // 7 92 if (!isset($mails_options[ip])) $mails_options[ip] = $ip ; //6 93 if (!isset($mails_options[set_auto])) $mails_options[set_auto] = 'off' ; //5 94 if (!isset($mails_options[no_connect])) $mails_options[no_connect] = 'off' ; //4 95 if (!isset($mails_options[no_mail_list])) $mails_options[no_mail_list] = 'off' ; //3 96 96 97 if (!isset($mails_options[ 2])) $mails_options[2] = 'off' ;98 if (!isset($mails_options[ 1])) $mails_options[1] = 'off' ;99 if (!isset($mails_options[ 0])) $mails_options[0] = 'off' ;97 if (!isset($mails_options[check_header_text])) $mails_options[check_header_text] = 'off' ; //2 98 if (!isset($mails_options[check_header_carbon])) $mails_options[check_header_carbon] = 'off' ; //1 99 if (!isset($mails_options[check_mailto])) $mails_options[check_mailto] = 'off' ; //0 100 100 101 101 $mails_données = Get_Datas(); … … 124 124 } 125 125 $version= $versions['version']; 126 if (!isset($ip)) { 127 if (getenv("HTTP_CLIENT_IP")) 128 { $ip=getenv("HTTP_CLIENT_IP"); } 129 else{ $ip=getenv("REMOTE_ADDR"); } 130 } 126 131 //================================================================================ 127 132 switch ($page['tab']) … … 175 180 { 176 181 177 $mails_options[ 0] = isset($_POST['check_mailto']) ? $_POST['check_mailto'] : 'off' ;178 $mails_options[ 1] = isset($_POST['check_header_carbon']) ? $_POST['check_header_carbon'] : 'off' ;179 $mails_options[ 2] = isset($_POST['check_header_text']) ? $_POST['check_header_text'] : 'off' ;182 $mails_options[check_mailto] = isset($_POST['check_mailto']) ? $_POST['check_mailto'] : 'off' ; 183 $mails_options[check_header_carbon] = isset($_POST['check_header_carbon']) ? $_POST['check_header_carbon'] : 'off' ; 184 $mails_options[check_header_text] = isset($_POST['check_header_text']) ? $_POST['check_header_text'] : 'off' ; 180 185 181 186 //données … … 210 215 $template->assign( 211 216 array( 212 'check_mailto' => ($mails_options[ 0] == 'on') ? 'checked="checked"' : '' ,213 'check_header_carbons' => ($mails_options[ 1] == 'on') ? 'checked="checked"' : '' ,214 'check_header_text' => ($mails_options[ 2] == 'on') ? 'checked="checked"' : '' ,217 'check_mailto' => ($mails_options[check_mailto] == 'on') ? 'checked="checked"' : '' , 218 'check_header_carbons' => ($mails_options[check_header_carbon] == 'on') ? 'checked="checked"' : '' , 219 'check_header_text' => ($mails_options[check_header_text] == 'on') ? 'checked="checked"' : '' , 215 220 216 221 … … 328 333 $aff_nb=false; 329 334 //------------------------------------------------------------------------------------ 330 331 $mails_options[3] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : $mails_options[3] ; 332 $mails_options[4] = isset($_POST['no_connect']) ? $_POST['no_connect'] : $mails_options[4] ; 333 $mails_options[5] = isset($_POST['no_connect']) ? $_POST['no_connect'] : $mails_options[5] ; 335 $mails_options[no_mail_list] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : $mails_options[no_mail_list] ; 336 $mails_options[no_connect] = isset($_POST['no_connect']) ? $_POST['no_connect'] : $mails_options[no_connect] ; 337 $mails_options[set_auto] = isset($_POST['set_auto']) ? $_POST['set_auto'] : $mails_options[set_auto] ; 334 338 335 339 //======================================================================================= … … 363 367 if ( $_POST['submit'] == l10n('Valider') ) 364 368 { 365 $mails_options[ 3] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : "off" ;366 $mails_options[ 4] = isset($_POST['no_connect']) ? $_POST['no_connect'] : "off" ;367 $mails_options[ 5] = isset($_POST['set_auto']) ? $_POST['set_auto'] : "off" ;368 $mails_options[ 7] = isset($_POST['set_auto']) ? $_POST['set_id'] : "off" ;369 $mails_options[no_mail_list] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : "off" ; 370 $mails_options[no_connect] = isset($_POST['no_connect']) ? $_POST['no_connect'] : "off" ; 371 $mails_options[set_auto] = isset($_POST['set_auto']) ? $_POST['set_auto'] : "off" ; 372 $mails_options[set_id] = isset($_POST['set_id']) ? $_POST['set_id'] : "off" ; 369 373 sauve_options(); 370 374 $infos_message .= l10n('save_config') . '<br />'; … … 400 404 'F_ACTION' => $f_action , 401 405 402 'no_mail_list' => ($mails_options[ 3] == 'on') ? 'checked="checked"' : '' ,403 'no_connect' => ($mails_options[ 4] == 'on') ? 'checked="checked"' : '' ,404 'set_auto' => ($mails_options[ 5] == 'on') ? 'checked="checked"' : '' ,405 'set_id' => ($mails_options[ 7] == 'on') ? 'checked="checked"' : '' ,406 'no_mail_list' => ($mails_options[no_mail_list] == 'on') ? 'checked="checked"' : '' , 407 'no_connect' => ($mails_options[no_connect] == 'on') ? 'checked="checked"' : '' , 408 'set_auto' => ($mails_options[set_auto] == 'on') ? 'checked="checked"' : '' , 409 'set_id' => ($mails_options[set_id] == 'on') ? 'checked="checked"' : '' , 406 410 'IP' => $ip , 407 411 'PAYS' => $pays ,
Note: See TracChangeset
for help on using the changeset viewer.