Ignore:
Timestamp:
Jan 14, 2008, 9:48:39 PM (17 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/webchatframe2.php

    r1 r4  
    1 <?
    2   header('Refresh: 5');
    3   session_start();
     1<?php
     2include('../global.php');
     3header('Refresh: 5');
    44 
    5   echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     5echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    66<html><head><title>User list</title>
    7   <meta http-equiv="Content-Language" content="cs">
    8   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
    9   </head><body>');
     7<meta http-equiv="Content-Language" content="cs">
     8<meta http-equiv="Content-Type" content="text/html; charset='.$Config['Web']['Charset'].'">
     9</head><body>');
    1010 
    11   if(array_key_exists('nick',$_GET))
    12   {
    13     $_SESSION['nick'] = $_GET['nick']; 
    14     include_once('webchatsend.php');
    15     Send('Alive',''); 
    16   }
    17  
    18   include_once('/a/html/is/db.php');
    19   DB_Init('localhost','root','','is');
    20   DB_Query('SET CHARACTER SET latin2');
     11if(array_key_exists('nick',$_GET))
     12{
     13  $_SESSION['nick'] = $_GET['nick']; 
     14  include_once('webchatsend.php');
     15  Send('Alive',''); 
     16}
    2117 
    22   $List = array();
    23   echo('<table style="height: 100%; font-family: Arial;" width="100%" cellspacing="0" cellpadding="2" border="1" bgcolor="#d0d0d0"><tr>
    24   <td bgcolor="#ffffff" valign="top" width="10%" style="font-size: 14px;">');
    25   DB_Select('sunrisechat_onlinelist','*');
    26   while($Row = DB_Row())
    27   {
    28     if($Row['status'] == 'Away') echo('<img src="images/UserNotAvailable.png" alt="away icon">');
    29     else if($Row['status'] == 'Writting') echo('<img src="images/UserWritting.png" alt="writting icon">');
    30     else echo('<img src="images/UserOnline.png" alt="online icon">');
    31     echo($Row['nick'].'<br>');
    32   }
    33   echo('</td></tr></table>
    34   </body></html>');
     18$List = array();
     19echo('<table style="height: 100%; font-family: Arial;" width="100%" cellspacing="0" cellpadding="2" border="1" bgcolor="#d0d0d0"><tr>
     20<td bgcolor="#ffffff" valign="top" width="10%" style="font-size: 14px;">');
     21$DbResult = $Database->select('sunrisechat_onlinelist','*');
     22while($Row = $DbResult->fetch_array())
     23{
     24  if($Row['status'] == 'Away') echo('<img src="images/UserNotAvailable.png" alt="away icon">');
     25  else if($Row['status'] == 'Writting') echo('<img src="images/UserWritting.png" alt="writting icon">');
     26  else echo('<img src="images/UserOnline.png" alt="online icon">');
     27  echo($Row['nick'].'<br>');
     28}
     29echo('</td></tr></table>
     30</body></html>');
     31
    3532?>
Note: See TracChangeset for help on using the changeset viewer.