Changeset 178 for trunk/global.php
- Timestamp:
- Mar 24, 2009, 9:00:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/global.php
r170 r178 190 190 global $Database; 191 191 192 $DbResult = $Database->query('SELECT Id FROM User WHERE (SELECT user FROM hosts WHERE IP="'.$IP.'") = User.Id'); 193 $DbRow = $DbResult->fetch_assoc(); 194 return($DbRow['Id']); 192 $DbResult = $Database->query('SELECT Id FROM Member WHERE (SELECT user FROM hosts WHERE IP="'.$IP.'") = Member.Id'); 193 if($DbResult->num_rows > 0) 194 { 195 $DbRow = $DbResult->fetch_assoc(); 196 return($DbRow['Id']); 197 } else return(''); 195 198 } 196 199
Note:
See TracChangeset
for help on using the changeset viewer.