Version 5.0.0 beta 1
This commit is contained in:
1 parent
25ddeb65d6
commit
15c7beabc5
6736 files changed
+627902
-497943
No files matched your search
@@ -8,17 +8,21 @@
|
||||
* @since 20 Mar 2013
|
||||
*/
|
||||
|
||||
use IPS\Http\Url;
|
||||
use IPS\Output;
|
||||
use IPS\Request;
|
||||
|
||||
define('REPORT_EXCEPTIONS', TRUE);
|
||||
require_once str_replace( 'applications/core/interface/google/auth.php', '', str_replace( '\\', '/', __FILE__ ) ) . 'init.php';
|
||||
|
||||
$target = \IPS\Http\Url::internal( 'oauth/callback/', 'none' );
|
||||
$target = Url::internal( 'oauth/callback/', 'none' );
|
||||
|
||||
foreach ( array( 'code', 'state', 'scope', 'error', 'error_description', 'error_uri' ) as $k )
|
||||
{
|
||||
if ( isset( \IPS\Request::i()->$k ) )
|
||||
if ( isset( Request::i()->$k ) )
|
||||
{
|
||||
$target = $target->setQueryString( $k, \IPS\Request::i()->$k );
|
||||
$target = $target->setQueryString( $k, Request::i()->$k );
|
||||
}
|
||||
}
|
||||
|
||||
\IPS\Output::i()->redirect( $target );
|
||||
Output::i()->redirect( $target );
|
||||
Reference in new issue
Block a user