Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
require_once str_replace( 'applications/core/interface/vkontakte/auth.php', '', str_replace( '\\', '/', $_SERVER['SCRIPT_FILENAME'] ) ) . 'init.php';
|
||||
$state = explode( '-', \IPS\Request::i()->state );
|
||||
|
||||
if ( $state[0] == 'ucp' )
|
||||
{
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( "app=core&module=system&controller=settings&area=profilesync&service=VK&loginProcess=vkontakte&state={$state[1]}&code=" . urlencode( \IPS\Request::i()->code ), 'front', 'settings_Vkontakte' ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( "app=core&module=system&controller=login&loginProcess=vkontakte&code=" . urlencode( \IPS\Request::i()->code ), $state[0] ) );
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user