|
@@ -764,7 +764,7 @@ function createToken($action, $type = 'post')
|
|
|
*/
|
|
|
function validateToken($action, $type = 'post', $reset = true)
|
|
|
{
|
|
|
- global $modSettings, $sourcedir;
|
|
|
+ global $modSettings;
|
|
|
|
|
|
$type = $type == 'get' || $type == 'request' ? $type : 'post';
|
|
|
|
|
@@ -806,13 +806,6 @@ function validateToken($action, $type = 'post', $reset = true)
|
|
|
// I'm back baby.
|
|
|
createToken($action, $type);
|
|
|
|
|
|
- // Need to type in a password for that, man.
|
|
|
- if (!isset($_GET['xml']))
|
|
|
- {
|
|
|
- require_once($sourcedir . '/Subs-Auth.php');
|
|
|
- adminLogin($type, $action);
|
|
|
- }
|
|
|
-
|
|
|
fatal_lang_error('token_verify_fail', false);
|
|
|
}
|
|
|
// Remove this token as its useless
|