Changeset 145 for www/global.php


Ignore:
Timestamp:
Feb 15, 2009, 6:53:26 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Nezobrazovat seznam účastníků a jejich financí. Zobrazovat pouze informace vlastníka IP adresy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/global.php

    r130 r145  
    2323function GetMicrotime()
    2424{
    25   list($Usec, $Sec) = explode(" ",microtime());
     25  list($Usec, $Sec) = explode(' ', microtime());
    2626  return ((float)$Usec + (float)$Sec);
    2727}
     
    170170    return($out);
    171171}
     172
     173function 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}
    172181 
    173182?>
Note: See TracChangeset for help on using the changeset viewer.