Changeset 302 for quests/includes/global_function.php
- Timestamp:
- Feb 19, 2008, 6:09:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/includes/global_function.php
r295 r302 17 17 $Pass = $_SESSION['Pass']; 18 18 19 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID'])); 20 if (!$Line) { 21 return false; 22 } else { 23 if ($Licence <= $Line['gm']) { 19 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID']." 20 AND GM >= $Licence AND pass = '$Pass'")); 21 // echo "SELECT * FROM user WHERE ID = ".$_SESSION['UserID']." AND GM <= $Licence AND pass = '$Pass'"; 22 if (!$Line) { 23 return false; 24 } else { 25 return true; 26 /* 27 if ($Licence <= $Line['gm']) { 24 28 return true; 25 29 } else return false; … … 31 35 32 36 return True; 33 } else { return False; 37 } else { return False; 34 38 // die('Nemáte zde pøístup, pøihla¹te se: <a href="'.$Config['Web']['BaseURL'].'">zde</a>'); 39 } */ 35 40 } 36 }37 41 } else { return False; 38 42 // die('Nemáte zde pøístup, pøihla¹te se: <a href="'.$Config['Web']['BaseURL'].'">zde</a>');
Note:
See TracChangeset
for help on using the changeset viewer.