Changeset 302
- Timestamp:
- Feb 19, 2008, 6:09:15 PM (17 years ago)
- Location:
- quests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/includes/global.php
r297 r302 49 49 $_SESSION['UserID'] = ''; 50 50 $_SESSION['User'] = ''; 51 $_SESSION['Pass'] = ''; 51 52 } else { 52 53 $_SESSION['UserID'] = $Line['ID']; -
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>'); -
quests/save.php
r263 r302 6 6 foreach($_POST as $Index => $Item) $_POST[$Index] = addslashes($Item); 7 7 foreach($_GET as $Index => $Item) $_GET[$Index] = addslashes($Item); 8 9 //ochrana proti neoprávnìnému pøístupu 10 if (Licence(0) == false) { die('Nemáte pøístup do této sekce! Pøihlaste se...'); } 8 11 9 12 if (array_key_exists('entry', $_POST)) {
Note:
See TracChangeset
for help on using the changeset viewer.