Changeset 4206 for extensions/Mail_supervisor
- Timestamp:
- Nov 5, 2009, 5:15:31 PM (15 years ago)
- Location:
- extensions/Mail_supervisor
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/admin/mail_black_liste.tpl
r4200 r4206 11 11 <legend >{'options'|translate}</legend> 12 12 <table> 13 14 <td><input type="checkbox" name="NO_MAIL_LIST" value="on" {$no_mail_list} /> {'no_mail_list'|translate} </td>15 <td><input type="checkbox" name="NO_CONNECT" value="on" {$no_connect} /> {'no_connect'|translate}</td>16 <td><input type="checkbox" name="SET_AUTO" value="on" {$set_auto} /> {'set_auto'|translate}</td>17 13 14 <td><input type="checkbox" name="NO_MAIL_LIST" value="on" {$NO_MAIL_LIST} /> {'no_mail_list'|translate} </td> 15 <td><input type="checkbox" name="NO_CONNECT" value="on" {$NO_CONNECT} /> {'no_connect'|translate}</td> 16 <td><input type="checkbox" name="SET_AUTO" value="on" {$SET_AUTO} /> {'set_auto'|translate}</td> 18 17 19 18 <tr><td> -
extensions/Mail_supervisor/admin/mail_superv_admin.php
r4190 r4206 51 51 load_language('plugin.lang', MAIL_SUPERV_PATH); 52 52 53 54 55 $mails_options = explode("," , $conf['mail_superv']);56 57 58 if (count($mails_options) < 6 )59 {60 $mails_options[]='off';61 62 }63 if (count($mails_options) < 7 )64 {65 $mails_options[]='';66 67 }68 69 $mails_données=Get_Datas();70 53 71 54 if (!isset($_GET['tab'])) … … 105 88 $error = array(); 106 89 90 91 $mails_options = explode("," , $conf['mail_superv']); 92 93 $mails_données=Get_Datas(); 107 94 vérif_base(); 108 95 … … 159 146 $infos_message .= l10n('save_config') ; 160 147 } 161 148 162 149 if ( isset($_POST['submit']) ) 163 150 { 164 151 //Options 165 $mails_options[0] = isset($_POST['check_mailto']) ? $_POST['check_mailto'] : '' ; 166 $mails_options[1] = isset($_POST['check_header_carbon']) ? $_POST['check_header_carbon'] : '' ; 167 $mails_options[2] = isset($_POST['check_header_text']) ? $_POST['check_header_text'] : '' ; 168 152 153 154 $mails_options[0] = isset($_POST['check_mailto']) ? $_POST['check_mailto'] : 'off' ; 155 $mails_options[1] = isset($_POST['check_header_carbon']) ? $_POST['check_header_carbon'] : 'off' ; 156 $mails_options[2] = isset($_POST['check_header_text']) ? $_POST['check_header_text'] : 'off' ; 169 157 170 158 //données … … 181 169 sauve_données(); 182 170 //======================================================================================================= 183 $infos_message .= l10n('save_config') ;171 $infos_message .= l10n('save_config') ; 184 172 } 185 173 186 $mails_options = explode("," , $conf['mail_superv']);174 187 175 $mails_données = Get_Datas(); 188 176 … … 199 187 $template->assign( 200 188 array( 201 'check_mailto' => $mails_options[0] == 'on'? 'checked="checked"' : '' ,202 'check_header_carbons' => $mails_options[1] == 'on'? 'checked="checked"' : '' ,203 'check_header_text' => $mails_options[2] == 'on'? 'checked="checked"' : '' ,189 'check_mailto' => ($mails_options[0] == 'on') ? 'checked="checked"' : '' , 190 'check_header_carbons' => ($mails_options[1] == 'on') ? 'checked="checked"' : '' , 191 'check_header_text' => ($mails_options[2] == 'on') ? 'checked="checked"' : '' , 204 192 205 193 … … 329 317 $ip_black=""; 330 318 $info_ip =""; 319 331 320 332 321 include (MAIL_SUPERV_PATH.'include/save_info.php'); -
extensions/Mail_supervisor/admin/mail_superv_help.tpl
r4200 r4206 209 209 </div> <!-- Fonctions --> 210 210 211 212 211 </fieldset></div> -
extensions/Mail_supervisor/include/fonctions.php
r4190 r4206 116 116 { 117 117 global $mails_options ; 118 $query = ' 119 UPDATE '.CONFIG_TABLE.' 120 SET value="'.$mails_options[0]. ',' .$mails_options[1]. ',' .$mails_options[2].',' .$mails_options[3]. ',' .$mails_options[4]. ',' .$mails_options[5]. ',' .$mails_options[6]. '" 121 WHERE param="mail_superv" 122 LIMIT 1'; 123 pwg_query($query); 124 118 if ( isset($mails_options) ) 119 { 120 if ( count($mails_options) > 6 ) 121 { 122 $valeurs = implode( ',',$mails_options); 123 $query = ' 124 UPDATE '.CONFIG_TABLE.' 125 SET value="'. $valeurs . '" 126 WHERE param = "mail_superv" 127 LIMIT 1'; 128 pwg_query($query); 129 } 130 } 125 131 } 126 132 //================================================================================= … … 653 659 global $mails_options ; 654 660 global $superv_bl_champs,$superv_bl_type ; 655 656 $mails_options = explode("," , $conf['mail_superv']); 657 658 659 if (count($mails_options) < 6 ) 660 { 661 $mails_options[]='off'; 662 663 } 664 if (count($mails_options) < 7 ) 665 { 666 $mails_options[]=''; 667 668 } 661 662 663 if (count($mails_options) < 6 ) return false ; 664 669 665 $ip = $_SERVER['REMOTE_ADDR'] ; 670 666 -
extensions/Mail_supervisor/language/fr_FR/help/plugin.lang.php
r4200 r4206 46 46 47 47 $lang['hlp_5_1']='Dernier message renvoyé par la fonction mail().'; 48 //=====================================================================49 48 50 49 -
extensions/Mail_supervisor/main.inc.php
r4199 r4206 23 23 // lecture config table ------------- 24 24 load_language('plugin.lang', MAIL_SUPERV_PATH); 25 26 25 27 26 $mails_options = explode("," , $conf['mail_superv']); 28 27 -
extensions/Mail_supervisor/maintain.inc.php
r4190 r4206 76 76 $q = ' 77 77 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 78 VALUES ("mail_superv","off,off,off 78 VALUES ("mail_superv","off,off,off,off,off,off,127.0.0.1","Parametres du plugin Mail superviseur") 79 79 ;'; 80 80 pwg_query($q); … … 102 102 103 103 pwg_query($q); 104 }104 105 105 $q = 'DROP TABLE IF EXISTS '.MAIL_BLACK_LISTE_TABLE.';'; 106 106 pwg_query( $q ); … … 108 108 pwg_query( $q ); 109 109 110 110 } 111 111 112 112 }
Note: See TracChangeset
for help on using the changeset viewer.