Changeset 4 for www/sunrisechat/webchat.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/webchat.php
r1 r4 1 <? 2 session_start(); 1 <?php 2 include_once('../global.php'); 3 3 include_once('../style.php'); 4 4 ShowHeader('Okno Sunrisechatu','Sunrisechatu'); 5 6 include_once('/a/html/is/db.php');7 DB_Init('localhost','root','','is');8 DB_Query('SET CHARACTER SET latin2');9 5 10 6 include_once('webchatsend.php'); … … 17 13 Send('Disconnect',''); 18 14 session_unregister('nick'); 19 echo('Byl jste odhlá ¹en.<br>');15 echo('Byl jste odhlášen.<br>'); 20 16 } 21 17 22 18 if(array_key_exists('nick',$_POST)) 23 19 { 24 DB_Select('sunrisechat_onlinelist','*'," nick='".$_POST['nick']."'");25 if( DB_NumRows()==0)20 $DbResult = $Database->select('sunrisechat_onlinelist','*'," nick='".$_POST['nick']."'"); 21 if($DbResult->num_rows == 0) 26 22 { 27 23 $_SESSION['nick'] = $_POST['nick']; … … 29 25 Send('UserInfo',''); 30 26 Send('Connect',''); 31 } else echo('P øezdívka ji¾ pou¾ita! Zvolte jinou pøezdívku.');27 } else echo('Přezdívka již použita! Zvolte jinou přezdívku.'); 32 28 } 33 29 … … 45 41 <tr><td>Výpis diskuse:<br> 46 42 <IFRAME MARGINWIDTH="0" MARGINHEIGHT="0" src="webchatframe.php?nick='.$_SESSION['nick'].'" width="100%" height="405" frameborder="0"></IFRAME> 47 </td><td width="150">U ¾ivatelé:<br>43 </td><td width="150">Uživatelé:<br> 48 44 <IFRAME MARGINWIDTH="0" MARGINHEIGHT="0" src="webchatframe2.php?nick='.$_SESSION['nick'].'" width="100%" height="405" frameborder="0"></IFRAME> 49 45 </td></tr><tr><td> … … 58 54 <table style="border-color: black; border-size: 1px; border-style: solid;" align="center"> 59 55 <tr><th colspan="2">WebSunriseChat</th></tr> 60 <tr><td align="center">P øezdívka:</td><td><input type="text" name="nick" size="20"></td></tr>56 <tr><td align="center">Přezdívka:</td><td><input type="text" name="nick" size="20"></td></tr> 61 57 <tr><td align="center">Celé jméno:</td><td><input type="text" name="name" size="20"></td></tr> 62 58 <tr><td align="center" colspan="2"><input type="submit" value="Vstoupit"></td></tr>
Note:
See TracChangeset
for help on using the changeset viewer.