function token_auth( )
{
- global $_GET;
+ global $_POST;
// TODO: Part of ping/pong requirement.
// Run a function to clear all authkeys older than 5 minutes.
expire_authkeys();
- if ( array_key_exists('session', $_GET )
- && array_key_exists('auth_key', $_GET ) )
+ if ( array_key_exists('session', $_POST )
+ && array_key_exists('auth_key', $_POST ) )
{
- if ( ! check_session($_GET['session'] ) ) simple_authfail();
- if ( ! check_authkey($_GET['auth_key'] ) ) simple_authfail();
+ if ( ! check_session($_POST['session'] ) ) simple_authfail();
+ if ( ! check_authkey($_POST['auth_key'] ) ) simple_authfail();
}
else simple_authfail();
}