Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Regard whitespace Rev 2841 → Rev 2840

/web/acc/manager/htdocs/security.php
9,7 → 9,7
if ($language === 'fr') {
$l_title = 'Sécurité';
$l_spoofing = "Adresse(s) MAC usurpée(s) (Watchdog)";
$l_virus = "Virus bloqué(s) (CLAMAV)";
$l_virus = "Virus bloqué(s) (HAVP)";
$l_fail2ban = "Adresse(s) IP bloquée(s) (Fail2Ban)";
$l_ipAddress="Adresse IP";
$l_user = "L'utilisateur";
18,7 → 18,7
} else {
$l_title = 'Security';
$l_spoofing = "MAC address spoofed (Watchdog)";
$l_virus = "Virus blocked (CLAMAV)";
$l_virus = "Virus blocked (HAVP)";
$l_fail2ban = "IP address blocked (Fail2Ban)";
$l_ipAddress="IP address";
$l_user = "User";
101,7 → 101,7
</div>
<?php
} else if ($tab === 2) {
$filePath = '/var/log/clamav/clamd.log';
$filePath = '/var/log/havp/access.log';
$lines = file($filePath);
if ($lines === false) {
exit("Cannot open '$filePath'.");
/web/acc/manager/htdocs/group_new.php
459,9 → 459,9
echo "<select name=\"$name\">";
echo "<option value=\"\"></option>";
echo "<option value=\"1\">$l_filtering_none</option>";
echo "<option value=\"2\">$l_filtering_av</option>";
echo "<option value=\"3\">$l_filtering_av_bl</option>";
echo "<option value=\"4\">$l_filtering_av_wl</option>";
echo "<option value=\"2\">$l_filtering_havp</option>";
echo "<option value=\"3\">$l_filtering_havp_bl</option>";
echo "<option value=\"4\">$l_filtering_havp_wl</option>";
echo "</select>";
break;
case 'Alcasar-Protocols-Filter' :
/web/acc/manager/htdocs/user_edit.php
311,11 → 311,11
break;
case 'Alcasar-Filter' :
if ($val === '4') {
$grp_filter = $l_filtering_av_wl;
$grp_filter = $l_filtering_havp_wl;
} else if ($val === '3') {
$grp_filter = $l_filtering_av_bl;
$grp_filter = $l_filtering_havp_bl;
} else if ($val === '2') {
$grp_filter = $l_filtering_av;
$grp_filter = $l_filtering_havp;
} else if ($val === '1') {
$grp_filter = $l_filtering_none;
} else {
780,9 → 780,9
echo "<select name=\"$name1\">";
echo "<option value=\"\"".(($val === '') ? ' selected' : '')."></option>";
echo "<option value=\"1\"".(($val === '1') ? ' selected' : '').">$l_filtering_none</option>";
echo "<option value=\"2\"".(($val === '2') ? ' selected' : '').">$l_filtering_av</option>";
echo "<option value=\"3\"".(($val === '3') ? ' selected' : '').">$l_filtering_av_bl</option>";
echo "<option value=\"4\"".(($val === '4') ? ' selected' : '').">$l_filtering_av_wl</option>";
echo "<option value=\"2\"".(($val === '2') ? ' selected' : '').">$l_filtering_havp</option>";
echo "<option value=\"3\"".(($val === '3') ? ' selected' : '').">$l_filtering_havp_bl</option>";
echo "<option value=\"4\"".(($val === '4') ? ' selected' : '').">$l_filtering_havp_wl</option>";
echo "</select>";
break;
case 'Alcasar-Protocols-Filter' :
/web/acc/manager/htdocs/user_new.php
463,9 → 463,9
echo "<select name=\"$name\">";
echo "<option value=\"\"></option>";
echo "<option value=\"1\">$l_filtering_none</option>";
echo "<option value=\"2\">$l_filtering_av</option>";
echo "<option value=\"3\">$l_filtering_av_bl</option>";
echo "<option value=\"4\">$l_filtering_av_wl</option>";
echo "<option value=\"2\">$l_filtering_havp</option>";
echo "<option value=\"3\">$l_filtering_havp_bl</option>";
echo "<option value=\"4\">$l_filtering_havp_wl</option>";
echo "</select>";
break;
case 'Alcasar-Protocols-Filter' :
/web/acc/manager/lib/langues.php
114,9 → 114,9
$l_createTicketsMSG = "Saisissez le nombre d\'utilisateurs à créer";
$l_filtering = "Filtrage de domaines et antiviral ";
$l_filtering_none = "Aucun";
$l_filtering_av = "Antivirus web";
$l_filtering_av_bl = "Antivirus web + Blacklist";
$l_filtering_av_wl = "Antivirus web + Whitelist";
$l_filtering_havp = "Antivirus web";
$l_filtering_havp_bl = "Antivirus web + Blacklist";
$l_filtering_havp_wl = "Antivirus web + Whitelist";
$l_user_exists = "existe déjà !";
$l_created = "a été correctement créé";
$l_removed = "a été supprimé";
240,9 → 240,9
$l_createTicketsMSG = "Enter the number of users to create";
$l_filtering = "Antivirus & domain Filtering";
$l_filtering_none = "None";
$l_filtering_av = "WEB Antivirus";
$l_filtering_av_bl = "Blacklist + WEB antivirus";
$l_filtering_av_wl = "Whitelist + WEB antivirus";
$l_filtering_havp = "WEB Antivirus";
$l_filtering_havp_bl = "Blacklist + WEB antivirus";
$l_filtering_havp_wl = "Whitelist + WEB antivirus";
$l_user_exists = "already exists !";
$l_created = "has been correctly created";
$l_removed = "has been removed";
/web/acc/phpsysinfo/phpsysinfo.ini
296,7 → 296,7
; Hide mounts
; Example : HIDE_MOUNTS="/home,/usr"
;
; HIDE_MOUNTS="/dev,/dev/shm,/run,/run/user/0,/sys/fs/cgroup"
; HIDE_MOUNTS="/dev,/dev/shm,/run,/run/user/0,/var/tmp/havp,/sys/fs/cgroup"
HIDE_MOUNTS=""
 
 
/web/acc/about.htm
87,7 → 87,7
<TD align="center"><A HREF="javascript:ouvrir('https://sourceforge.net/projects/ipt-netflow')"><img border="0" src="/images/footer_netflow.png"></A></TD>
<TD align="center"><A HREF="javascript:ouvrir('https://www.clamav.net')"><img border="0" src="/images/footer_clamav.png"></A></TD>
<TD align="center"><A HREF="javascript:ouvrir('http://www.netfilter.org')"><img border="0" src="/images/footer_netfilter.png"></A></TD>
<TD align="center"><A HREF="javascript:ouvrir('http://www.wammu.eu')"><img border="0" src="/images/footer_gammu.png"></A></TD>
<TD align="center"><A HREF="javascript:ouvrir('http://www.havp.org')"><img border="0" src="/images/footer_havp.png"></A></TD>
<TD align="center"><A HREF="javascript:ouvrir('http://e2guardian.org')"><img border="0" src="/images/footer_e2guardian.png"></A></TD>
<TD align="center"><A HREF="javascript:ouvrir('http://thekelleys.org.uk/dnsmasq/doc.html')"><img border="0" src="/images/footer_dnsmasq.png"></A></TD>
</TR>
/web/images/footer_gammu.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes:
Deleted: svn:mime-type
-image/png
\ No newline at end of property
/web/images/footer_havp.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/web/status.php
315,7 → 315,7
}
}
 
$filename = '/tmp/current_users.txt';
$filename = '/var/tmp/havp/current_users.txt';
$user_needKeepOpen = (preg_match("/^$remote_ip:PERM/m", file_get_contents($filename)) === 0);
}
 
/web/still_connected.php
1,7 → 1,7
<?php
 
// store user @IP who can join this page (still have their status.php tab open) in a file.
$filename = '/tmp/current_users.txt';
$filename = '/var/tmp/havp/current_users.txt';
$user_ip = $_SERVER['REMOTE_ADDR'];
 
$isConnected = exec('sudo /usr/sbin/chilli_query list | awk '.escapeshellarg('($2 == "'.$user_ip.'") {print $5}'));