Changeset 145 for www/global.php
- Timestamp:
- Feb 15, 2009, 6:53:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/global.php
r130 r145 23 23 function GetMicrotime() 24 24 { 25 list($Usec, $Sec) = explode( " ",microtime());25 list($Usec, $Sec) = explode(' ', microtime()); 26 26 return ((float)$Usec + (float)$Sec); 27 27 } … … 170 170 return($out); 171 171 } 172 173 function GetMemberByIP($IP) 174 { 175 global $Database; 176 177 $DbResult = $Database->query('SELECT id FROM users WHERE (SELECT user FROM hosts WHERE IP="'.$IP.'") = users.id'); 178 $DbRow = $DbResult->fetch_assoc(); 179 return($DbRow['id']); 180 } 172 181 173 182 ?>
Note:
See TracChangeset
for help on using the changeset viewer.