Changeset 4 for www/sunrisechat/network.php
- Timestamp:
 - Jan 14, 2008, 9:48:39 PM (18 years ago)
 - Location:
 - www
 - Files:
 - 
      
- 2 edited
 
- 
          
  . (modified) (1 prop)
 - 
          
  sunrisechat/network.php (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
www
- 
Property       svn:ignore
 set to       
config.php
php_script_error.log
 
 - 
Property       svn:ignore
 set to       
 - 
      
www/sunrisechat/network.php
r1 r4 1 <? 2 include_once('../is/db.php'); 3 include_once('../global.php'); 4 include_once('code.php'); 5 DB_Init('localhost','root','','is'); 6 DB_Query('SET CHARACTER SET latin2'); 1 <?php 7 2 8 //include_once('../style.php'); 9 //ShowHeader('Obsah souboru Network.cfg Sunrisechatu','Soubor testu sítì Sunrisechatu'); 3 include_once('../global.php'); 4 include_once('code.php'); 10 5 11 $User = array(0 => array('fullname' => ''));12 DB_Select('users','*');13 while($Row = DB_Row())14 {15 $User[$Row['id']] = $Row;16 }6 $User = array(0 => array('fullname' => '')); 7 $DbResult = $Database->select('users', '*'); 8 while($Row = $DbResult->fetch_array()) 9 { 10 $User[$Row['id']] = $Row; 11 } 17 12 18 DB_Select('hosts','*','1 ORDER BY id');19 while($Row = DB_Row())20 {21 $Row = $Row['id'].':'.$Row['parent'].':'.$Row['name'].':'.$Row['IP'].':'.$User[$Row['user']]['fullname'].':'.$Row['block']."\n";22 $Row = StrTr($Row, "\xA9\xAB\xAE\xB9\xBB\xBE", "\x8A\x8D\x8E\x9A\x9D\x9E");23 echo($Row);24 }13 $DbResult = $Database->select('hosts','*','1 ORDER BY id'); 14 while($Row = $DbResult->fetch_array()) 15 { 16 $Row = $Row['id'].':'.$Row['parent'].':'.$Row['name'].':'.$Row['IP'].':'.$User[$Row['user']]['fullname'].':'.$Row['block']."\n"; 17 $Row = StrTr($Row, "\xA9\xAB\xAE\xB9\xBB\xBE", "\x8A\x8D\x8E\x9A\x9D\x9E"); 18 echo($Row); 19 } 25 20 26 //ShowFooter();27 21 ?>  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  