Ignore:
Timestamp:
Jan 14, 2008, 9:48:39 PM (16 years ago)
Author:
george
Message:

Upraveno: Změna přístupu k databázi na třídu rozšířenou mysqli.
Upraveno: Sjednocení
Upraveno: Změna kódování všech stránek na UTF-8.
Odstraňeno: Staré nepotřebné soubory.

Location:
www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • www

    • Property svn:ignore set to
      config.php
      php_script_error.log
  • 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
    72
    8   //include_once('../style.php');
    9   //ShowHeader('Obsah souboru Network.cfg Sunrisechatu','Soubor testu sítì Sunrisechatu');
     3include_once('../global.php');
     4include_once('code.php');
    105
    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', '*');
     8while($Row = $DbResult->fetch_array())
     9{
     10  $User[$Row['id']] = $Row;
     11}
    1712
    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');
     14while($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}
    2520 
    26   //ShowFooter();
    2721?>
Note: See TracChangeset for help on using the changeset viewer.