Subversion Repositories ALCASAR

Rev

Rev 3215 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3215 Rev 3227
Line 420... Line 420...
420
<table width="100%" border=1 cellspacing=0 cellpadding=1>
420
<table width="100%" border=1 cellspacing=0 cellpadding=1>
421
<tr><td valign="middle" align="left" colspan=10>
421
<tr><td valign="middle" align="left" colspan=10>
422
<?php
422
<?php
423
echo "<center>";
423
echo "<center>";
424
// total number of IP, DNS & URLs
424
// total number of IP, DNS & URLs
425
$nbDomainNames = exec("wc -l $dir_bl_domain_names_enabled* | tail -n 1 | awk '{print $1}'2") / 2;
425
$nbDomainNames = exec("wc -l $dir_bl_domain_names_enabled* | tail -n 1 | awk '{print $1}'") / 2;
426
$nbUrl = exec("for file in `find /etc/e2guardian/lists/blacklists/ -name 'urls'`; do nb=$((nb+$(wc -l \$file | awk '{print $1}'))); done; echo \$nb");
426
$nbUrl = exec("for file in `find /etc/e2guardian/lists/blacklists/ -name 'urls'`; do nb=$((nb+$(wc -l \$file | awk '{print $1}'))); done; echo \$nb");
427
$nbIp = exec("wc -l $dir_bl_ip_enabled* | tail -n 1 | awk '{print $1}'");
427
$nbIp = exec("wc -l $dir_bl_ip_enabled* | tail -n 1 | awk '{print $1}'");
428
echo "$l_state $nbDomainNames <b>$l_nbDomainNames</b>, $nbUrl <b>$l_nbUrl</b>, $nbIp <b>$l_nbIp</b><br/>";
428
echo "$l_state $nbDomainNames <b>$l_nbDomainNames</b>, $nbUrl <b>$l_nbUrl</b>, $nbIp <b>$l_nbIp</b><br/>";
429
echo "$l_bl_categories</center></td></tr>";
429
echo "$l_bl_categories</center></td></tr>";
430
//read & display all categories (checked or not)
430
//read & display all categories (checked or not)