Changeset 4 for www/sunrisechat/webchatframe2.php
- Timestamp:
- Jan 14, 2008, 9:48:39 PM (17 years ago)
- Location:
- www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www
-
Property svn:ignore
set to
config.php
php_script_error.log
-
Property svn:ignore
set to
-
www/sunrisechat/webchatframe2.php
r1 r4 1 <? 2 header('Refresh: 5');3 session_start();1 <?php 2 include('../global.php'); 3 header('Refresh: 5'); 4 4 5 5 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 6 6 <html><head><title>User list</title> 7 8 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">9 7 <meta http-equiv="Content-Language" content="cs"> 8 <meta http-equiv="Content-Type" content="text/html; charset='.$Config['Web']['Charset'].'"> 9 </head><body>'); 10 10 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'); 11 if(array_key_exists('nick',$_GET)) 12 { 13 $_SESSION['nick'] = $_GET['nick']; 14 include_once('webchatsend.php'); 15 Send('Alive',''); 16 } 21 17 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(); 19 echo('<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','*'); 22 while($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 } 29 echo('</td></tr></table> 30 </body></html>'); 31 35 32 ?>
Note:
See TracChangeset
for help on using the changeset viewer.