Ignore:
Timestamp:
Jan 31, 2008, 8:38:47 PM (17 years ago)
Author:
george
Message:

Upraveno: Přepsán přístup k databázi přes třídu mysqli v systémové složce.
Odstraněno: Staré verze souborů a staré nepoužité soubory.

Location:
system
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • system

    • Property svn:ignore set to
      nohup.out
  • system/statistic

    • Property svn:ignore set to
      nohup.out
  • system/statistic/connections.php

    r1 r37  
    1 <?
    2 include_once('/a/html/is/db.php');
    3 DB_Init('localhost','root','','statistic');
     1<?php
     2include_once('../html/global.php');
     3$Database->select('statistic');
    44
    55while(1)
    66{
    77  $Id = 1;
    8   DB_Delete('ip_conntrack', '1');
     8  $Database->delete('ip_conntrack', '1');
    99  $File = fopen('/proc/net/ip_conntrack', 'r');
    1010  while(!feof($File))
     
    4040      $Size2 = array_shift($Parts);
    4141
    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));
    4343      $Id = $Id + 1;
    4444    } 
Note: See TracChangeset for help on using the changeset viewer.