- Timestamp:
- Feb 1, 2008, 9:56:41 PM (17 years ago)
- Location:
- www/sunrisechat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www/sunrisechat
-
Property svn:ignore
set to
nohup.out
-
Property svn:ignore
set to
-
www/sunrisechat/sunrisechat2.php
r24 r43 3 3 include_once('../global.php'); 4 4 include_once('webchatsend.php'); 5 //$Config['Web']['ShowError'] = 1; 5 6 6 7 $Debug = 0; … … 41 42 if($Command == 'Alive') 42 43 { 43 $ Result = $Database->select('sunrisechat_onlinelist','*','sender_id='.$SenderID.' AND sender_ip="'.$SenderIP.'"');44 if($DbResult->num_rows ()> 0)44 $DbResult = $Database->select('sunrisechat_onlinelist','*','sender_id='.$SenderID.' AND sender_ip="'.$SenderIP.'"'); 45 if($DbResult->num_rows > 0) 45 46 { 46 47 $Row = $DbResult->fetch_array(); … … 59 60 if($Command == 'GoAway') 60 61 { 61 $ Result = $Database->select('sunrisechat_onlinelist','*','sender_id='.$SenderID.' AND sender_ip="'.$SenderIP.'"');62 $DbResult = $Database->select('sunrisechat_onlinelist','*','sender_id='.$SenderID.' AND sender_ip="'.$SenderIP.'"'); 62 63 if($DbResult->num_rows() > 0) 63 64 { … … 70 71 $Nick = $Parts[7]; 71 72 echo('UserInfo: '.$Nick."\n"); 72 $ Result = $Database->select('sunrisechat_onlinelist','*','sender_id='.$SenderID.' AND sender_ip="'.$SenderIP.'"');73 if($DbResult->num_rows ()> 0)73 $DbResult = $Database->select('sunrisechat_onlinelist','*','sender_id='.$SenderID.' AND sender_ip="'.$SenderIP.'"'); 74 if($DbResult->num_rows > 0) 74 75 { 75 76 $Row = $DbResult->fetch_array(); … … 97 98 //$Row = DB_Row(); 98 99 //echo($Row[0]-(time()-200)."\n"); 99 DB_Delete('sunrisechat_onlinelist','UNIX_TIMESTAMP(lasttime)<'.(time()-30));100 $Database->delete('sunrisechat_onlinelist','UNIX_TIMESTAMP(lasttime)<'.(time()-30)); 100 101 } 101 102
Note:
See TracChangeset
for help on using the changeset viewer.