Ignore:
Timestamp:
Mar 24, 2009, 2:15:00 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Generování informací pro test sítě SunriseChatu.
  • Opraveno: Ukládání IP adresy posledního přihlášení.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/sunrisechat/network.php

    r8 r169  
    11<?php
    22
    3 include_once('../global.php');
    4 include_once('code.php');
     3include('../global.php');
    54
    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');
    87while($Row = $DbResult->fetch_array())
    98{
    10   $User[$Row['id']] = $Row;
     9  $User[$Row['Id']] = $Row;
    1110}
    1211
     
    1413while($Row = $DbResult->fetch_array())
    1514{
    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');
    1817  echo($Row);
    1918}
Note: See TracChangeset for help on using the changeset viewer.