Changeset 4502 for branches/2.0/admin/include
- Timestamp:
- Dec 15, 2009, 11:54:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/include/functions.php
r4501 r4502 35 35 global $conf; 36 36 37 $token = hash_hmac('md5', session_id(), $conf['secret_key']); 38 39 if (!empty($_POST['pwg_token']) && ($_POST['pwg_token'] != $token)) 40 { 41 access_denied(); 42 } 43 elseif (!empty($_GET['pwg_token']) && ($_GET['pwg_token'] != $token)) 37 $valid_token = hash_hmac('md5', session_id(), $conf['secret_key']); 38 $given_token = null; 39 40 if (!empty($_POST['pwg_token'])) 41 { 42 $given_token = $_POST['pwg_token']; 43 } 44 elseif (!empty($_GET['pwg_token'])) 45 { 46 $given_token = $_GET['pwg_token']; 47 } 48 if ($given_token != $valid_token) 44 49 { 45 50 access_denied();
Note: See TracChangeset
for help on using the changeset viewer.