Changeset 37 for system/statistic/connections.php
Legend:
- Unmodified
- Added
- Removed
-
system
-
Property svn:ignore
set to
nohup.out
-
Property svn:ignore
set to
-
system/statistic
-
Property svn:ignore
set to
nohup.out
-
Property svn:ignore
set to
-
system/statistic/connections.php
r1 r37 1 <? 2 include_once(' /a/html/is/db.php');3 DB_Init('localhost','root','','statistic');1 <?php 2 include_once('../html/global.php'); 3 $Database->select('statistic'); 4 4 5 5 while(1) 6 6 { 7 7 $Id = 1; 8 DB_Delete('ip_conntrack', '1');8 $Database->delete('ip_conntrack', '1'); 9 9 $File = fopen('/proc/net/ip_conntrack', 'r'); 10 10 while(!feof($File)) … … 40 40 $Size2 = array_shift($Parts); 41 41 42 DB_Insert('ip_conntrack', array('id' => $Id, 'proto' => $ProtocolType, 'timeout' => $Timeout, 'state' => $TcpState, 'src_addr' => $SourceAddress, 'dst_addr' => $DestinationAddress, 'src_port' => $SourcePort, 'dst_port' => $DestinationPort, 'size' => $Size, 'src_addr2' => $SourceAddress2, 'dst_addr2' => $DestinationAddress2, 'src_port2' => $SourcePort2, 'dst_port2' => $DestinationPort2, 'size2' => $Size2));42 $Database->insert('ip_conntrack', array('id' => $Id, 'proto' => $ProtocolType, 'timeout' => $Timeout, 'state' => $TcpState, 'src_addr' => $SourceAddress, 'dst_addr' => $DestinationAddress, 'src_port' => $SourcePort, 'dst_port' => $DestinationPort, 'size' => $Size, 'src_addr2' => $SourceAddress2, 'dst_addr2' => $DestinationAddress2, 'src_port2' => $SourcePort2, 'dst_port2' => $DestinationPort2, 'size2' => $Size2)); 43 43 $Id = $Id + 1; 44 44 }
Note:
See TracChangeset
for help on using the changeset viewer.