Changeset 169 for www/sunrisechat
- Timestamp:
- Mar 24, 2009, 2:15:00 PM (16 years ago)
- Location:
- www/sunrisechat
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/sunrisechat/network.php
r8 r169 1 1 <?php 2 2 3 include_once('../global.php'); 4 include_once('code.php'); 3 include('../global.php'); 5 4 6 $User = array(0 => array(' fullname' => ''));7 $DbResult = $Database->select(' users', '*,CONCAT(second_name, " ",first_name) as fullname');5 $User = array(0 => array('Fullname' => '')); 6 $DbResult = $Database->select('User', '*, CONCAT(SecondName, " ", FirstName) as Fullname'); 8 7 while($Row = $DbResult->fetch_array()) 9 8 { 10 $User[$Row[' id']] = $Row;9 $User[$Row['Id']] = $Row; 11 10 } 12 11 … … 14 13 while($Row = $DbResult->fetch_array()) 15 14 { 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");15 $Row = $Row['id'].':'.$Row['parent'].':'.$Row['name'].':'.$Row['IP'].':'.trim($User[$Row['user']]['Fullname']).':'.$Row['block']."\n"; 16 $Row = FromUTF8($Row, 'win1250'); 18 17 echo($Row); 19 18 }
Note:
See TracChangeset
for help on using the changeset viewer.