par RON » 04 Avr 2003 22:57
Je pense que si tu doit avoir tout de même quelquechose si tu as fait l'install :
<BR><!-- BBCode auto-link start --><a href="http://@Ipcop:81/cgi-bin/traffic.cgi" target="_blank">http://@Ipcop:81/cgi-bin/traffic.cgi</a><!-- BBCode auto-link end -->
<BR>Mais ça doit pas être correct.
<BR>
<BR>Voici ce que j'ai fait pour que ça donne des résultats correspondant au trafic :
<BR>
<BR>Après avoir lancer ./install.pl
<BR>modifications du fichier fr.pl dans /var/ipcop/langs/, rajout de :
<BR>
<BR>'sstraffic' => 'Trafic Réseau',
<BR>'traffic page' => 'utilisation',
<BR>'selecttraffic' => 'sélectionner le mois d'utilisation:',
<BR>'trafficgreen' => 'lan',
<BR>'trafficred' => 'internet',
<BR>'traffics' => 'aperçu de l'utilisation:',
<BR>'trafficdate' => 'Date',
<BR>'trafficin' => 'entrée',
<BR>'trafficout' => 'sortie',
<BR>'trafficsum' => 'totaux',
<BR>'trafficfrom' => 'de',
<BR>'trafficto' => 'Ã',
<BR>'cache management' => 'Configuration du Cache:',
<BR>'transfer limits' => 'Limite des Tranferts',
<BR>
<BR>modification du fichier /etc/ipac-ng/ipac.conf :
<BR>drop zero lines = no
<BR>
<BR>modification des fichiers traffic.cgi et traffics.cgi :
<BR>pour une config green+orange+red sur modem usb
<BR>
<BR> $greeninline = 1; $greenoutline = 2;
<BR> $orangeinline = 5; $orangeoutline = 6;
<BR> $redpppinline = 9; $redpppoutline = 10;
<BR>
<BR> my @files = glob('/var/lib/ipac/????'.$cgiparams{'SECTION'}.'??-??????');
<BR>.....
<BR>.....
<BR> ($paket, $r_in) = split(/D+/,$current[$refline + $redpppinline]);
<BR> ($paket, $r_out) = split(/D+/,$current[$refline + $redpppoutline]);
<BR> ($paket, $r_inn) = split(/D+/,$current[$refline +2 + $redpppinline]);
<BR> ($paket, $r_outt) = split(/D+/,$current[$refline +2 + $redpppoutline]);
<BR>
<BR>
<BR> ($paket, $g_in) = split(/D+/,$current[$refline + $greeninline]);
<BR> ($paket, $g_out) = split(/D+/,$current[$refline + $greenoutline]);
<BR> ($paket, $g_inn) = split(/D+/,$current[$refline +2 + $greeninline]);
<BR> ($paket, $g_outt) = split(/D+/,$current[$refline +2 + $greenoutline]);
<BR>
<BR> if ($orangeinline >= 0)
<BR> {
<BR> ($paket, $o_in) = split(/D+/,$current[$refline + $orangeinline]);
<BR> ($paket, $o_out) = split(/D+/,$current[$refline + $orangeoutline]);
<BR> ($paket, $o_inn) = split(/D+/,$current[$refline +2 + $orangeinline]);
<BR> ($paket, $o_outt) = split(/D+/,$current[$refline +2 + $orangeoutline]);
<BR> }
<BR>
<BR> $g_in =($g_in + $g_inn)/1048576;
<BR> $g_out = ($g_out+$g_outt)/1048576;
<BR>
<BR> if ($orangeinline >= 0)
<BR> {
<BR> $o_in =($o_in+$o_inn)/1048576;
<BR> $o_out = ($o_out+$o_outt)/1048576;
<BR> }
<BR>
<BR> $r_in = ($r_in+$r_inn)/1048576;
<BR> $r_out = ($r_out+$r_outt)/1048576;
<BR>
<BR> my ($dummy, $filename)=split('/var/lib/ipac/',$filename);
<BR>
<BR>Voilà
<BR>
<BR> <IMG SRC="images/smiles/icon_smile.gif"> <IMG SRC="images/smiles/icon_smile.gif"> <IMG SRC="images/smiles/icon_smile.gif">