| /web/acc/admin/bl_filter.php |
|---|
| 469,6 → 469,7 |
| echo "<table cellspacing=2 cellpadding=3 border=1><tr><th>$l_file_name<th>$l_nb_ip<th>$l_nb_domain_names<th>$l_file_remove</tr>"; |
| $fichiersIp = array_diff(scandir($upload_dir_ip), array('ossi','ossi-ip-safesearch','..','.')); |
| $fichiersIp = preg_grep("/^ossi-/",$fichiersIp); |
| foreach($fichiersIp as $fichier => $value) |
| { |
| echo "<tr><td><center><a href='bl_categories_help.php?liste=bl&cat=$value&ossi=yes&filtre=domain' target='cat_help' onclick=window.open('bl_categories_help','cat_help','width=600,height=450,toolbar=no,scrollbars=yes,resizable=yes') title='categories help page'>".exec("sed 's/^.....//g' <<< $value")."</a></center></td><td><center>".exec("wc -l $upload_dir_ip$value | awk '{print $1}'")."</center></td><td><center>".exec("wc -l $upload_dir_domain_names$value | awk '{print $1}'")."</center></td><td><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>"; |
| /web/acc/admin/wl_filter.php |
|---|
| 356,6 → 356,7 |
| echo "<table cellspacing=2 cellpadding=3 border=1><tr><th>$l_file_name<th>$l_nb_ip<th>$l_nb_domain_names<th>$l_file_remove</tr>"; |
| $fichiersIp = array_diff(scandir($upload_dir_ip), array('ossi','ossi-ip-safesearch','..','.')); |
| $fichiersIp = preg_grep("/^ossi-/",$fichiersIp); |
| foreach($fichiersIp as $fichier => $value) |
| { |
| echo "<tr><td><center><a href='bl_categories_help.php?liste=wl&cat=$value&ossi=yes&filtre=domain' target='cat_help' onclick=window.open('bl_categories_help','cat_help','width=600,height=450,toolbar=no,scrollbars=yes,resizable=yes') title='categories help page'>".exec("sed 's/^.....//g' <<< $value")."</a></center></td><td><center>".exec("wc -l $upload_dir_ip$value | awk '{print $1}'")."</center></td><td><center>".exec("wc -l $upload_dir_domain_names$value | awk '{print $1}'")."</center></td><td><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>"; |
| /web/acc/manager/htdocs/ticket_user.php |
|---|
| 4,7 → 4,7 |
| //--recupération des variables provenant du formulaire |
| $langue_imp=utf8_decode($_POST["langue_imp"]); |
| $log_imp=$_POST["log_imp"]; |
| $passwd_imp=utf8_decode($_POST["passwd_imp"]); |
| $passwd_imp=$_POST["passwd_imp"]; |
| $exp_imp=utf8_decode($_POST["exp_imp"]); |
| $sto_imp=utf8_decode($_POST["sto_imp"]); |
| $mas_imp=utf8_decode($_POST["mas_imp"]); |
| /web/acc/manager/lib/sql/create_user.php |
|---|
| 15,6 → 15,7 |
| $op_val2 = ''; |
| $link = da_sql_pconnect($config); |
| if ($link){ |
| mysqli_set_charset($link,"utf8"); |
| if (is_file("../lib/crypt/$config[general_encryption_method].php")){ |
| include_once("../lib/crypt/$config[general_encryption_method].php"); |
| /*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/ |
| /web/index.php |
|---|
| 59,7 → 59,7 |
| $user = explode (" ", $tab[0]); |
| # on discrimine les accès directs sur Alcasar par rapport aux redirections (blacklist ou pannes rso) |
| if (($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_ADDR']) || preg_match ("/^alcasar$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$organisme$/", $_SERVER['HTTP_HOST'])) |
| if (isset($_SERVER['HTTP_HOST']) && (($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_ADDR']) || preg_match ("/^alcasar$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$organisme$/", $_SERVER['HTTP_HOST']))) |
| { |
| $direct_access=True; |
| } |
| /web/status.php |
|---|
| 47,6 → 47,7 |
| //On récupère le nom de connexion de la session active. on attend que chilli ait mis à jour ses tables |
| sleep (1); |
| exec ("sudo /usr/sbin/chilli_query list | grep 'pass' | grep -Ew '($remote_ip)'" , $tab); |
| if(isset($tab[0])) |
| $user = explode (" ", $tab[0]); |
| #### Affichage des 3 dernières connexions de $user[5] |
| 299,7 → 300,7 |
| </tr> |
| <tr> |
| <td class="alert"> |
| <?php echo $a_connection; ?> |
| <?php if(isset($a_connection))echo $a_connection; ?> |
| </td> |
| </tr> |
| <tr> |