[4132] | 1 | {html_head}<link rel="stylesheet" type="text/css" href="{$MAIL_SUPERV_PATH}admin/theme.css" />{/html_head} |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | <div class="titrePage"> |
---|
| 5 | <h2>{'supervisor'|translate}</h2> |
---|
| 6 | </div> |
---|
| 7 | <div class="bug" > |
---|
| 8 | |
---|
| 9 | </div> |
---|
| 10 | |
---|
[4136] | 11 | |
---|
[4132] | 12 | <form action='' method="post" name="form_black"> |
---|
| 13 | |
---|
| 14 | <fieldset > |
---|
| 15 | <legend>{'black_liste'|translate}</legend> |
---|
[4136] | 16 | |
---|
[4132] | 17 | |
---|
| 18 | <table> |
---|
[4136] | 19 | |
---|
| 20 | <input name="info1" type="hidden" > |
---|
| 21 | <input name="ip_black" type="hidden" class="items" value="{$ip_black}" > |
---|
| 22 | <input type="submit" name="info" value="" id='ip_ajout' class="row2" style="position:absolute; width:0px" > |
---|
| 23 | <div> |
---|
| 24 | <input name="ip_black_test" id = "ip_black_test" type="text" value="{$ip_black_test}" > {'valider'|@translate} |
---|
| 25 | {if not empty($ip_black_test)} |
---|
| 26 | <iframe src="http://www.stopforumspam.com/api?ip={$ip_black_test}" scrolling="no" class="frame_" ></iframe> |
---|
| 27 | {/if} |
---|
| 28 | <input type="image" class='row1' |
---|
| 29 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" |
---|
| 30 | alt="{'ajout'|@translate}" |
---|
| 31 | onclick = " |
---|
| 32 | if (confirm( document.getElementById('btn_ajout{$ip_black_test}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}')) |
---|
| 33 | form_black.info1.value='ajout:{$ip_black_test}' |
---|
| 34 | " |
---|
| 35 | id="btn_ajout{$ip_black_test}" |
---|
| 36 | title="{'ajout'|@translate} {$ip_black_test}" |
---|
| 37 | |
---|
| 38 | > |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | </div> |
---|
| 43 | </table> |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
[4132] | 48 | <table class="table2" > |
---|
| 49 | <tr class="throw"> |
---|
| 50 | |
---|
| 51 | <th>{$champs_bl[1]|@translate}</th> |
---|
| 52 | <th>{$champs_bl[2]|@translate}</th> |
---|
| 53 | <th>{$champs_bl[3]|@translate}</th> |
---|
| 54 | <th>{$champs_bl[4]|@translate}</th> |
---|
| 55 | <th>{$champs_bl[7]|@translate}</th> |
---|
| 56 | <th>{'blackliste'|@translate}</th> |
---|
| 57 | </tr> |
---|
| 58 | {if not empty($liste_bl)} |
---|
| 59 | {foreach from=$liste_bl item=group name=group_loop} |
---|
| 60 | <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> |
---|
| 61 | <td>{$group.ip}</td> |
---|
| 62 | <td>{$group.pays}</td> |
---|
| 63 | <td>{$group.region}</td> |
---|
| 64 | <td>{$group.ville}</td> |
---|
| 65 | <td>{$group.nb}</td> |
---|
| 66 | <td style="text-align:center;"> |
---|
| 67 | |
---|
| 68 | <input type="image" class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" |
---|
| 69 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" |
---|
| 70 | alt="{'delete'|@translate}" |
---|
| 71 | onclick = " |
---|
| 72 | if (confirm( document.getElementById('btn_delete{$group.ip}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}')) |
---|
| 73 | form_black.info1.value='raz:{$group.ip}' |
---|
[4136] | 74 | " |
---|
[4132] | 75 | id="btn_delete{$group.ip}" |
---|
| 76 | title="{'delete'|@translate} {$group.ip}" |
---|
[4136] | 77 | > |
---|
[4132] | 78 | |
---|
| 79 | |
---|
| 80 | |
---|
[4136] | 81 | </td> |
---|
| 82 | </tr> |
---|
| 83 | {/foreach} |
---|
| 84 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" > supprime de la liste noire</td> |
---|
| 85 | </table> |
---|
[4132] | 86 | |
---|
[4136] | 87 | </fieldset> |
---|
| 88 | |
---|
[4132] | 89 | {/if} |
---|
| 90 | |
---|
| 91 | <fieldset > |
---|
| 92 | <legend>{'liste_ip'|translate}</legend> |
---|
| 93 | <p class="info"> |
---|
| 94 | {'IP_adress'|translate} : {$IP} |
---|
| 95 | |
---|
[4136] | 96 | <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js" type="text/javascript" ></script> |
---|
[4132] | 97 | <script language="JavaScript" type="text/javascript"> |
---|
| 98 | |
---|
| 99 | var pays = geoip_country_name(); |
---|
| 100 | |
---|
| 101 | var ville = geoip_city(); |
---|
| 102 | var region = geoip_region_name() ; |
---|
| 103 | var latitude = geoip_latitude() ; |
---|
| 104 | var longitude = geoip_longitude() ; |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | document.write (' <input name="pays" type="text" value = '+ pays +' id = "pays" class="info" > '); |
---|
| 108 | document.write (' <input name="ville" type="text" value = '+ ville +' id = "ville" class="info" > '); |
---|
| 109 | document.write (' <input name="region" type="text" value = '+ region +' id = "region" class="info" > '); |
---|
| 110 | document.write (' <input name="latitude" type="text" value = '+ latitude +' id = "latitude" class="info" > '); |
---|
| 111 | document.write (' <input name="longitude" type="text" value = '+ longitude + ' id = "longitude" class="info" > '); |
---|
| 112 | |
---|
| 113 | </script> |
---|
| 114 | </p> |
---|
| 115 | |
---|
| 116 | <table class="table2"> |
---|
| 117 | |
---|
| 118 | <tr class="throw"> |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | <th>{$champs_ip[1]|@translate}</th> |
---|
| 122 | <th>{$champs_ip[2]|@translate}</th> |
---|
| 123 | <th>{$champs_ip[3]|@translate}</th> |
---|
| 124 | <th>{$champs_ip[4]|@translate}</th> |
---|
| 125 | <th>{$champs_ip[5]|@translate}</th> |
---|
| 126 | |
---|
| 127 | <th>{'blackliste'|@translate}</th> |
---|
| 128 | </tr> |
---|
| 129 | {if not empty($liste_ip)} |
---|
| 130 | |
---|
| 131 | {foreach from=$liste_ip item=group name=group_loop} |
---|
| 132 | |
---|
| 133 | <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> |
---|
| 134 | <td>{$group.date}</td> |
---|
| 135 | <td>{$group.time}</td> |
---|
| 136 | <td>{$group.user_id}</td> |
---|
| 137 | <td>{$group.IP}</td> |
---|
| 138 | <td>{$group.total}</td> |
---|
| 139 | <td style="text-align:center;"> |
---|
| 140 | |
---|
| 141 | |
---|
| 142 | |
---|
| 143 | <input type="image" |
---|
| 144 | class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}" |
---|
| 145 | src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" |
---|
| 146 | onclick = " |
---|
| 147 | if (confirm( document.getElementById('btn_permissions{$group.IP}').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}')) |
---|
| 148 | form_black.info1.value='ajout:{$group.IP}' |
---|
[4136] | 149 | " |
---|
[4132] | 150 | id="btn_permissions{$group.IP}" |
---|
| 151 | title="{'blacklist'|@translate} {$group.IP}" |
---|
| 152 | alt="{'blacklist'|@translate} {$group.IP}" |
---|
[4136] | 153 | > |
---|
[4132] | 154 | |
---|
| 155 | |
---|
| 156 | |
---|
| 157 | |
---|
| 158 | |
---|
| 159 | </td> |
---|
| 160 | </tr> |
---|
| 161 | {/foreach} |
---|
| 162 | {/if} |
---|
[4136] | 163 | <td> <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plug_activate.png" > mise sur la liste noire</td> |
---|
[4132] | 164 | |
---|
| 165 | |
---|
[4136] | 166 | </table> |
---|
[4132] | 167 | </fieldset> |
---|
| 168 | |
---|
| 169 | </table> |
---|
| 170 | |
---|
| 171 | <p> |
---|
| 172 | |
---|
[4136] | 173 | <input class="submit" type="submit" name="info" value="liste" > |
---|
[4132] | 174 | |
---|
| 175 | </p> |
---|
| 176 | </fieldset> |
---|
| 177 | |
---|
| 178 | </form> |
---|