MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/local/ssl/local/bandmin/bandminstart
#!/usr/bin/perl -I/usr/local/bandmin
#
#****************************************
#Bandmin (c)1998-1999 J. Nick Koston (BlueDraco) bdraco{at}darkorb[dot]net
# - A simple Bandwidth Monitor
#****************************************
#
#To use this package you must have a OS that has either ipfwadm,ipchains,
#or ipfw
#

use IP::Acct;

require 'services.conf';

#print "Turning on Ip Accouting....";
$ips = `/sbin/ifconfig -a`;
$ipadmin = IP::Acct->new;
$ipadmin->flush();

@IPS = split(/\n/, $ips);
foreach $ip (@IPS) {
	if ($ip =~ /(\d*)\.(\d*)\.(\d*)\.(\d*)/) {
		$thisip = "$1.$2.$3.$4";
		if ($thisip ne "127.0.0.1" && $thisip ne "0.0.0.0") {
			$ipadmin->initip("$thisip",@SERVICES);
		}
	}
}

$ipadmin->initall;

#print "Done\n";