Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
+198
-198
@@ -1,199 +1,199 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* Remote API integration gateway file
|
||||
* Last Updated: $Date: 2011-03-11 12:41:48 -0500 (Fri, 11 Mar 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8042 $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Script type
|
||||
*
|
||||
*/
|
||||
define( 'IPB_THIS_SCRIPT', 'api' );
|
||||
define( 'IPB_LOAD_SQL' , 'queries' );
|
||||
|
||||
/**
|
||||
* Matches IP address of requesting API
|
||||
* Set to 0 to not match with IP address
|
||||
*/
|
||||
define( 'CVG_IP_MATCH', 1 );
|
||||
|
||||
require_once( '../../initdata.php' );/*noLibHook*/
|
||||
|
||||
//===========================================================================
|
||||
// MAIN PROGRAM
|
||||
//===========================================================================
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
//-----------------------------------------
|
||||
// Set up cookie stuff
|
||||
//-----------------------------------------
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
|
||||
IPSCookie::$sensitive_cookies = array( 'session_id', 'ipb_admin_session_id', 'member_id', 'pass_hash' );
|
||||
|
||||
//--------------------------------
|
||||
// Set up our vars
|
||||
//--------------------------------
|
||||
|
||||
$registry->DB()->obj['use_shutdown'] = 0;
|
||||
|
||||
//--------------------------------
|
||||
// Set debug mode
|
||||
//--------------------------------
|
||||
|
||||
$registry->DB()->setDebugMode( ipsRegistry::$settings['sql_debug'] == 1 ? intval($_GET['debug']) : 0 );
|
||||
|
||||
//--------------------------------
|
||||
// Initialize the FUNC
|
||||
//--------------------------------
|
||||
|
||||
if ( ! ipsRegistry::$settings['xmlrpc_enable'] )
|
||||
{
|
||||
@header( "Content-type: text/xml" );
|
||||
print"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<methodResponse>
|
||||
<fault>
|
||||
<value>
|
||||
<struct>
|
||||
<member>
|
||||
<name>faultCode</name>
|
||||
<value>
|
||||
<int>1</int>
|
||||
</value>
|
||||
</member>
|
||||
<member>
|
||||
<name>faultString</name>
|
||||
<value>
|
||||
<string>IP.Board's XML-RPC API system is not enabled. Log into your IP.Board ACP and visit: System -> System Settings -> Advanced -> XML-RPC API and update "Enable XML-RPC API System"</string>
|
||||
</value>
|
||||
</member>
|
||||
</struct>
|
||||
</value>
|
||||
</fault>
|
||||
</methodResponse>";
|
||||
exit();
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Define Service
|
||||
//===========================================================================
|
||||
|
||||
require_once( IPS_KERNEL_PATH . 'classApiServer.php' );/*noLibHook*/
|
||||
|
||||
//===========================================================================
|
||||
// Create the XML-RPC Server
|
||||
//===========================================================================
|
||||
|
||||
$server = new classApiServer();
|
||||
$api = $server->decodeRequest();
|
||||
$module = $server->params['api_module'];
|
||||
$user = IPSText::md5Clean( $server->params['api_key']);
|
||||
|
||||
//-----------------------------------------
|
||||
// Check for module
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $module AND is_file( DOC_IPS_ROOT_PATH . 'interface/board/modules/' . $module . '/api.php' ) )
|
||||
{
|
||||
require_once( DOC_IPS_ROOT_PATH . 'interface/board/modules/' . $module . '/api.php' );/*noLibHook*/
|
||||
|
||||
$webservice = new API_Server( $registry );
|
||||
$webservice->classApiServer =& $server;
|
||||
}
|
||||
else
|
||||
{
|
||||
$server->apiSendError( '2', "IP.Board could not locate an API module called '{$module}'" );
|
||||
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
exit();
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Check user...
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $user )
|
||||
{
|
||||
$webservice->api_user = $registry->DB()->buildAndFetch( array( 'select' => '*',
|
||||
'from' => 'api_users',
|
||||
'where' => "api_user_key='" . $user . "'" ) );
|
||||
|
||||
if ( ! $webservice->api_user['api_user_id'] )
|
||||
{
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
|
||||
$server->apiSendError( '3', "IP.Board could not locate a valid API user with that API key" );
|
||||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
|
||||
$server->apiSendError( '4', "No API Key was sent in the request" );
|
||||
exit();
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Check for IP address
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $webservice->api_user['api_user_ip'] )
|
||||
{
|
||||
if ( $_SERVER['REMOTE_ADDR'] != $webservice->api_user['api_user_ip'] )
|
||||
{
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
|
||||
$server->apiSendError( '5', "Incorrect IP Address ({$_SERVER['REMOTE_ADDR']}). You must update the API User Key with that IP Address." );
|
||||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Add web service
|
||||
//-----------------------------------------
|
||||
|
||||
$server->addObjectMap( $webservice, IPS_DOC_CHAR_SET );
|
||||
|
||||
//-----------------------------------------
|
||||
// Process....
|
||||
//-----------------------------------------
|
||||
|
||||
$server->getXmlRpc();
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Remote API integration gateway file
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Script type
|
||||
*
|
||||
*/
|
||||
define( 'IPB_THIS_SCRIPT', 'api' );
|
||||
define( 'IPB_LOAD_SQL' , 'queries' );
|
||||
|
||||
/**
|
||||
* Matches IP address of requesting API
|
||||
* Set to 0 to not match with IP address
|
||||
*/
|
||||
define( 'CVG_IP_MATCH', 1 );
|
||||
|
||||
require_once( '../../initdata.php' );/*noLibHook*/
|
||||
|
||||
//===========================================================================
|
||||
// MAIN PROGRAM
|
||||
//===========================================================================
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
//-----------------------------------------
|
||||
// Set up cookie stuff
|
||||
//-----------------------------------------
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
|
||||
IPSCookie::$sensitive_cookies = array( 'session_id', 'ipb_admin_session_id', 'member_id', 'pass_hash' );
|
||||
|
||||
//--------------------------------
|
||||
// Set up our vars
|
||||
//--------------------------------
|
||||
|
||||
$registry->DB()->obj['use_shutdown'] = 0;
|
||||
|
||||
//--------------------------------
|
||||
// Set debug mode
|
||||
//--------------------------------
|
||||
|
||||
$registry->DB()->setDebugMode( ipsRegistry::$settings['sql_debug'] == 1 ? intval($_GET['debug']) : 0 );
|
||||
|
||||
//--------------------------------
|
||||
// Initialize the FUNC
|
||||
//--------------------------------
|
||||
|
||||
if ( ! ipsRegistry::$settings['xmlrpc_enable'] )
|
||||
{
|
||||
@header( "Content-type: text/xml" );
|
||||
print"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<methodResponse>
|
||||
<fault>
|
||||
<value>
|
||||
<struct>
|
||||
<member>
|
||||
<name>faultCode</name>
|
||||
<value>
|
||||
<int>1</int>
|
||||
</value>
|
||||
</member>
|
||||
<member>
|
||||
<name>faultString</name>
|
||||
<value>
|
||||
<string>IP.Board's XML-RPC API system is not enabled. Log into your IP.Board ACP and visit: System -> System Settings -> Advanced -> XML-RPC API and update "Enable XML-RPC API System"</string>
|
||||
</value>
|
||||
</member>
|
||||
</struct>
|
||||
</value>
|
||||
</fault>
|
||||
</methodResponse>";
|
||||
exit();
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Define Service
|
||||
//===========================================================================
|
||||
|
||||
require_once( IPS_KERNEL_PATH . 'classApiServer.php' );/*noLibHook*/
|
||||
|
||||
//===========================================================================
|
||||
// Create the XML-RPC Server
|
||||
//===========================================================================
|
||||
|
||||
$server = new classApiServer();
|
||||
$api = $server->decodeRequest();
|
||||
$module = $server->params['api_module'];
|
||||
$user = IPSText::md5Clean( $server->params['api_key']);
|
||||
|
||||
//-----------------------------------------
|
||||
// Check for module
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $module AND is_file( DOC_IPS_ROOT_PATH . 'interface/board/modules/' . $module . '/api.php' ) )
|
||||
{
|
||||
require_once( DOC_IPS_ROOT_PATH . 'interface/board/modules/' . $module . '/api.php' );/*noLibHook*/
|
||||
|
||||
$webservice = new API_Server( $registry );
|
||||
$webservice->classApiServer =& $server;
|
||||
}
|
||||
else
|
||||
{
|
||||
$server->apiSendError( '2', "IP.Board could not locate an API module called '{$module}'" );
|
||||
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
exit();
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Check user...
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $user )
|
||||
{
|
||||
$webservice->api_user = $registry->DB()->buildAndFetch( array( 'select' => '*',
|
||||
'from' => 'api_users',
|
||||
'where' => "api_user_key='" . $user . "'" ) );
|
||||
|
||||
if ( ! $webservice->api_user['api_user_id'] )
|
||||
{
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
|
||||
$server->apiSendError( '3', "IP.Board could not locate a valid API user with that API key" );
|
||||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
|
||||
$server->apiSendError( '4', "No API Key was sent in the request" );
|
||||
exit();
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Check for IP address
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $webservice->api_user['api_user_ip'] )
|
||||
{
|
||||
if ( $_SERVER['REMOTE_ADDR'] != $webservice->api_user['api_user_ip'] )
|
||||
{
|
||||
$registry->DB()->insert( 'api_log', array( 'api_log_key' => $user,
|
||||
'api_log_ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'api_log_date' => time(),
|
||||
'api_log_query' => $server->raw_request,
|
||||
'api_log_allowed' => 0 ) );
|
||||
|
||||
$server->apiSendError( '5', "Incorrect IP Address ({$_SERVER['REMOTE_ADDR']}). You must update the API User Key with that IP Address." );
|
||||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Add web service
|
||||
//-----------------------------------------
|
||||
|
||||
$server->addObjectMap( $webservice, IPS_DOC_CHAR_SET );
|
||||
|
||||
//-----------------------------------------
|
||||
// Process....
|
||||
//-----------------------------------------
|
||||
|
||||
$server->getXmlRpc();
|
||||
|
||||
exit;
|
||||
@@ -1,51 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* Remote API integration gateway file
|
||||
* Last Updated: $Date: 2011-03-11 12:41:48 -0500 (Fri, 11 Mar 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8042 $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Script type
|
||||
*
|
||||
*/
|
||||
define( 'IPB_THIS_SCRIPT', 'api' );
|
||||
define( 'IPB_LOAD_SQL' , 'queries' );
|
||||
define( 'IPS_PUBLIC_SCRIPT', 'index.php' );
|
||||
|
||||
require_once( '../../initdata.php' );/*noLibHook*/
|
||||
|
||||
//-----------------------------------------
|
||||
// Main code
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$_GET['app'] = 'core';
|
||||
$_REQUEST['app'] = 'core';
|
||||
$_GET['module'] = 'global';
|
||||
$_GET['section'] = 'login';
|
||||
$_GET['do'] = 'process';
|
||||
|
||||
//-----------------------------------------
|
||||
// Ignore auth key for live requests
|
||||
//-----------------------------------------
|
||||
|
||||
define( 'IGNORE_AUTH_KEY', true );
|
||||
|
||||
ipsController::run();
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Remote API integration gateway file
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
* @todo http://community.invisionpower.com/tracker/issue-20920-liveid-logout/
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Script type
|
||||
*
|
||||
*/
|
||||
define( 'IPB_THIS_SCRIPT', 'api' );
|
||||
define( 'IPB_LOAD_SQL' , 'queries' );
|
||||
define( 'IPS_PUBLIC_SCRIPT', 'index.php' );
|
||||
|
||||
require_once( '../../initdata.php' );/*noLibHook*/
|
||||
|
||||
//-----------------------------------------
|
||||
// Main code
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$_GET['app'] = 'core';
|
||||
$_REQUEST['app'] = 'core';
|
||||
$_GET['module'] = 'global';
|
||||
$_GET['section'] = 'login';
|
||||
$_GET['do'] = 'process';
|
||||
|
||||
//-----------------------------------------
|
||||
// Ignore auth key for live requests
|
||||
//-----------------------------------------
|
||||
|
||||
define( 'IGNORE_AUTH_KEY', true );
|
||||
|
||||
ipsController::run();
|
||||
|
||||
exit();
|
||||
@@ -1,10 +1,10 @@
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* Remote API Server configuration
|
||||
* Last Updated: $Date: 2010-12-17 08:16:34 -0500 (Fri, 17 Dec 2010) $
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 7447 $
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* Defines the allowed methods a remote server may request and the in/out parameters
|
||||
* Last Updated: $Date: 2010-12-17 08:16:34 -0500 (Fri, 17 Dec 2010) $
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 7447 $
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,15 +3,15 @@
|
||||
/**
|
||||
* Invision Power Services
|
||||
* Incoming Email Handler - Piping
|
||||
* Last Updated: $Date: 2011-08-23 10:24:47 -0400 (Tue, 23 Aug 2011) $
|
||||
* Last Updated: $Date: 2012-06-06 05:13:39 -0400 (Wed, 06 Jun 2012) $
|
||||
*
|
||||
* @author $Author: mark $
|
||||
* @copyright (c) 2010 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 12th February 2010
|
||||
* @version $Revision: 9404 $
|
||||
* @version $Revision: 10871 $
|
||||
*/
|
||||
|
||||
$writeDebug = FALSE;
|
||||
@@ -21,35 +21,35 @@
|
||||
// Init
|
||||
//--------------------------------------
|
||||
|
||||
$root = isset( $_SERVER['argv'][0] ) ? $_SERVER['argv'][0] : $_SERVER['SCRIPT_FILENAME'];
|
||||
define( '_DOC_IPS_ROOT_PATH', str_replace( 'interface/email/piping.php', '', $root ) );
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
define( 'IPB_THIS_SCRIPT', 'public' );
|
||||
|
||||
$INFO = array();
|
||||
require_once( _DOC_IPS_ROOT_PATH . 'conf_global.php' );/*noLibHook*/
|
||||
define( 'BASE_URL', $INFO['board_url'] );
|
||||
|
||||
require_once( _DOC_IPS_ROOT_PATH . 'initdata.php' );/*noLibHook*/
|
||||
define( 'IPS_ROOT_PATH', DOC_IPS_ROOT_PATH . CP_DIRECTORY . '/' );
|
||||
define( 'IPS_KERNEL_PATH', DOC_IPS_ROOT_PATH . "ips_kernel/" );
|
||||
|
||||
$debugPath = DOC_IPS_ROOT_PATH . 'cache/_email.txt';
|
||||
require_once( str_replace( 'interface/email/piping.php', '', ( isset( $_SERVER['argv'][0] ) ? $_SERVER['argv'][0] : $_SERVER['SCRIPT_FILENAME'] ) ) . 'initdata.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
|
||||
//-----------------------------------------
|
||||
// Get the Email
|
||||
//-----------------------------------------
|
||||
|
||||
$debugPath = DOC_IPS_ROOT_PATH . 'cache/_email.txt';
|
||||
$email = file_get_contents( $readDebug ? $debugPath : 'php://stdin' );
|
||||
|
||||
if ( $writeDebug )
|
||||
{
|
||||
file_put_contents( $debugPath, $email );
|
||||
}
|
||||
|
||||
require_once ( IPS_KERNEL_PATH . 'classIncomingEmail.php' );/*noLibHook*/
|
||||
$incomingEmail = new classIncomingEmail( $email );
|
||||
if ( !$incomingEmail->ignore )
|
||||
|
||||
$override = array();
|
||||
if ( isset( $_SERVER['argv'][1] ) )
|
||||
{
|
||||
@$incomingEmail->route();
|
||||
$override['to'] = $_SERVER['argv'][1];
|
||||
}
|
||||
|
||||
require_once ( IPS_ROOT_PATH . 'sources/classes/incomingEmail/incomingEmail.php' );
|
||||
incomingEmail::parse( $email, $override );
|
||||
|
||||
exit();
|
||||
Whitespace-only changes.
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Facebook channel file
|
||||
* Last Updated: $Date: 2012-01-31 11:24:24 +0000 (Tue, 31 Jan 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: mmecham $
|
||||
* @copyright (c) 2001 - 2008 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10219 $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @link http://developers.facebook.com/docs/reference/javascript/#auth-methods
|
||||
*/
|
||||
|
||||
$cache_expire = 60*60*24*365;
|
||||
header("Pragma: public");
|
||||
header("Cache-Control: max-age=".$cache_expire);
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
|
||||
?>
|
||||
<script src="//connect.facebook.net/en_US/all.js"></script>
|
||||
@@ -1,10 +1,10 @@
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,18 +2,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* Main public executable wrapper.
|
||||
* Set-up and load module to run
|
||||
* Last Updated: $Date: 2011-07-27 20:58:18 -0400 (Wed, 27 Jul 2011) $
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2008 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9327 $
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -63,6 +63,11 @@ if ( $_REQUEST['code'] )
|
||||
{
|
||||
$msg = $error->getMessage();
|
||||
|
||||
/* Try re-authorising */
|
||||
if ( stristr( $error->getMessage(), 'invalid' ) )
|
||||
{
|
||||
$facebook->redirectToConnectPage();
|
||||
}
|
||||
switch( $msg )
|
||||
{
|
||||
default:
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* Last Updated: $LastChangedDate: 2011-03-31 06:17:44 -0400 (Thu, 31 Mar 2011) $
|
||||
* IP.Board v3.3.4
|
||||
* Last Updated: $LastChangedDate: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 3.0.0
|
||||
* @version $Rev: 8229 $
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* Last Updated: $LastChangedDate: 2011-03-31 06:17:44 -0400 (Thu, 31 Mar 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @since 3.0.0
|
||||
* @version $Rev: 8229 $
|
||||
*
|
||||
*/
|
||||
|
||||
// cache the xd_receiver
|
||||
header('Cache-Control: max-age=225065900');
|
||||
header('Expires:');
|
||||
header('Pragma:');
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head>
|
||||
<title>cross domain receiver page</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--
|
||||
This is a cross domain (XD) receiver page. It needs to be placed on your domain so that the Javascript
|
||||
library can communicate within the iframe permission model. Put it here:
|
||||
|
||||
http://www.example.com/xd_receiver.php
|
||||
-->
|
||||
<script
|
||||
src="https://ssl.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js"
|
||||
type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Last Updated: $LastChangedDate: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 3.0.0
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
// cache the xd_receiver
|
||||
header('Cache-Control: max-age=225065900');
|
||||
header('Expires:');
|
||||
header('Pragma:');
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head>
|
||||
<title>cross domain receiver page</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--
|
||||
This is a cross domain (XD) receiver page. It needs to be placed on your domain so that the Javascript
|
||||
library can communicate within the iframe permission model. Put it here:
|
||||
|
||||
http://www.example.com/xd_receiver.php
|
||||
-->
|
||||
<script
|
||||
src="https://ssl.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js"
|
||||
type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,10 +1,10 @@
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* @file ips.php API for informing IPB that license data needs to be refreshed - called when license is renewed, etc.
|
||||
*
|
||||
* $Copyright: $
|
||||
* $License: $
|
||||
* $Author: mark $
|
||||
* $LastChangedDate: 2012-02-22 12:07:55 -0500 (Wed, 22 Feb 2012) $
|
||||
* $Revision: 10349 $
|
||||
* @since 22nd February 2012
|
||||
*/
|
||||
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
define( 'IPB_THIS_SCRIPT', 'public' );
|
||||
require_once( '../initdata.php' );/*noLibHook*/
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
|
||||
if ( ipsRegistry::$settings['ipb_reg_number'] and ipsRegistry::$request['key'] == md5( ipsRegistry::$settings['ipb_reg_number'] ) )
|
||||
{
|
||||
ipsRegistry::DB()->update( 'cache_store', array( 'cs_rebuild' => 1 ), "cs_key='licenseData'" );
|
||||
ipsRegistry::cache()->putWithCacheLib( 'licenseData', 'rebuildCache', 200 );
|
||||
}
|
||||
|
||||
exit;
|
||||
+975
-897
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @file monitor.php IP.Nexus Server Monitoring Response Interface
|
||||
*
|
||||
* $Copyright: $
|
||||
* $License: $
|
||||
* $Author: mark $
|
||||
* $LastChangedDate: 2012-05-14 09:27:37 -0400 (Mon, 14 May 2012) $
|
||||
* $Revision: 10743 $
|
||||
* @since 7th September 2011
|
||||
*/
|
||||
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
define( 'IPB_THIS_SCRIPT', 'public' );
|
||||
require_once( '../initdata.php' );/*noLibHook*/
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
$settings =& $registry->fetchSettings();
|
||||
|
||||
$server = intval( $_GET['server'] );
|
||||
$server = ipsRegistry::DB()->buildAndFetch( array( 'select' => '*', 'from' => 'nexus_hosting_servers', 'where' => "server_id={$server}" ) );
|
||||
if ( !$server['server_id'] )
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
$by = urldecode( $_GET['by'] );
|
||||
|
||||
if ( $_GET['a'] == 'a' )
|
||||
{
|
||||
ipsRegistry::DB()->update( 'nexus_hosting_servers', array( 'server_monitor_acknowledged' => 1 ), "server_id={$server['server_id']}" );
|
||||
|
||||
foreach ( explode( ',', $settings['monitoring_alert'] ) as $n )
|
||||
{
|
||||
$encoded = urlencode( $n );
|
||||
|
||||
IPSText::getTextClass( 'email' )->subject = "{$server['server_hostname']} (Acknowledged)";
|
||||
IPSText::getTextClass( 'email' )->to = $n;
|
||||
IPSText::getTextClass( 'email' )->from = $settings['monitoring_from'];
|
||||
IPSText::getTextClass( 'email' )->message = "{$server['server_hostname']} acknowledged by {$by}<br /><br /><a href='{$settings['board_url']}/interface/monitor.php?a=r&server={$server['server_id']}&by={$encoded}'>Reset</a>";
|
||||
IPSText::getTextClass( 'email' )->html_email= 1;
|
||||
IPSText::getTextClass( 'email' )->sendMail();
|
||||
}
|
||||
|
||||
if ( file_exists( IPSLib::getAppDir('nexus') . '/sources/actions/monitor.php' ) )
|
||||
{
|
||||
require_once( IPSLib::getAppDir('nexus') . '/sources/actions/monitor.php' );
|
||||
monitoring::acknowledge( $server, $by );
|
||||
}
|
||||
}
|
||||
elseif ( $_GET['a'] == 'r' )
|
||||
{
|
||||
ipsRegistry::DB()->update( 'nexus_hosting_servers', array( 'server_monitor_acknowledged' => 0, 'server_monitor_fails' => 0 ), "server_id={$server['server_id']}" );
|
||||
|
||||
foreach ( explode( ',', $settings['monitoring_alert'] ) as $n )
|
||||
{
|
||||
$encoded = urlencode( $n );
|
||||
|
||||
IPSText::getTextClass( 'email' )->subject = "{$server['server_hostname']} (Reset)";
|
||||
IPSText::getTextClass( 'email' )->to = $n;
|
||||
IPSText::getTextClass( 'email' )->from = $settings['monitoring_from'];
|
||||
IPSText::getTextClass( 'email' )->message = "{$server['server_hostname']} reset by {$by}";
|
||||
IPSText::getTextClass( 'email' )->html_email= 1;
|
||||
IPSText::getTextClass( 'email' )->sendMail();
|
||||
}
|
||||
|
||||
if ( file_exists( IPSLib::getAppDir('nexus') . '/sources/actions/monitor.php' ) )
|
||||
{
|
||||
require_once( IPSLib::getAppDir('nexus') . '/sources/actions/monitor.php' );
|
||||
monitoring::reset( $server, $by );
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done";
|
||||
exit;
|
||||
@@ -0,0 +1,50 @@
|
||||
#!/usr/bin/php -q
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Task Handler
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright © 2011 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @subpackage Core
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Revision: 10914 $
|
||||
*/
|
||||
|
||||
//ini_set( 'display_errors', 'off' );
|
||||
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
define( 'IPS_IS_SHELL', TRUE );
|
||||
require_once( str_replace( '/interface/task.php', '/initdata.php', $_SERVER['argv'][0] ) );/*noLibHook*/
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
|
||||
if ( isset( $_SERVER['argv'][1] ) )
|
||||
{
|
||||
ipsRegistry::$request['ck'] = $_SERVER['argv'][1];
|
||||
}
|
||||
else
|
||||
{
|
||||
die;
|
||||
}
|
||||
|
||||
if ( isset( $_SERVER['argv'][2] ) )
|
||||
{
|
||||
ipsRegistry::$request['allpass'] = $_SERVER['argv'][2];
|
||||
}
|
||||
|
||||
|
||||
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/class_taskmanager.php', 'class_taskmanager' );
|
||||
$functions = new $classToLoad( $registry );
|
||||
|
||||
$functions->runTask();
|
||||
@@ -2,18 +2,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* Main public executable wrapper.
|
||||
* Set-up and load module to run
|
||||
* Last Updated: $Date: 2011-07-27 20:58:18 -0400 (Wed, 27 Jul 2011) $
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2008 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9327 $
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.0 Beta 1
|
||||
* Main public executable wrapper.
|
||||
* Set-up and load module to run
|
||||
* Last Updated: $Date: 2011-03-11 12:41:48 -0500 (Fri, 11 Mar 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2008 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8042 $
|
||||
*
|
||||
*/
|
||||
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
define( 'IPB_THIS_SCRIPT', 'public' );
|
||||
require_once( '../../initdata.php' );/*noLibHook*/
|
||||
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
|
||||
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/vkontakte/connect.php', 'vkontakte_connect' );
|
||||
$vkontakte = new $classToLoad( $registry );
|
||||
|
||||
if ( $_REQUEST['code'] )
|
||||
{
|
||||
/* From the log in page */
|
||||
if ( $_REQUEST['key'] )
|
||||
{
|
||||
try
|
||||
{
|
||||
if ( ! intval( $_REQUEST['m'] ) )
|
||||
{
|
||||
$vkontakte->finishLogin();
|
||||
}
|
||||
else
|
||||
{
|
||||
$vkontakte->finishConnection();
|
||||
}
|
||||
}
|
||||
catch( Exception $error )
|
||||
{
|
||||
$msg = $error->getMessage();
|
||||
|
||||
switch( $msg )
|
||||
{
|
||||
default:
|
||||
$registry->getClass('output')->showError( 'twit_ohnoes', 99999, null, null, 403 );
|
||||
break;
|
||||
case 'TWITTER_NOT_SET_UP':
|
||||
$registry->getClass('output')->showError( 'twit_not_on', 99999, null, null, 403 );
|
||||
case 'NOT_REMOTE_MEMBER':
|
||||
$registry->getClass('output')->showError( 'twit_not_remote', 99999, null, null, 403 );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$vkontakte->finishConnection();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$vkontakte->redirectToConnectPage();
|
||||
}
|
||||
|
||||
exit();
|
||||
Reference in new issue
Block a user