Version 2.2.2
This commit is contained in:
1 parent
22f1b963ee
commit
a3bb603c96
858 files changed
+479463
-188140
No files matched your search
@@ -1,16 +1,25 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+---------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2006 Invision Power Services
|
||||
| (c) 2001 - 2006 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
|
||||
| http://www.invisionboard.com
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Id$
|
||||
| > $Revision: 102 $
|
||||
@@ -30,7 +39,7 @@ $_CONVERGE_ALLOWED_METHODS = array();
|
||||
* CONVERGE LOG OUT
|
||||
* Passes info to complete local log out
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['converge_log_out'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['convergeLogOut'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
@@ -44,7 +53,7 @@ $_CONVERGE_ALLOWED_METHODS['converge_log_out'] = array(
|
||||
/**
|
||||
* Disable converge from the system
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['converge_disable'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['convergeDisable'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
@@ -58,7 +67,7 @@ $_CONVERGE_ALLOWED_METHODS['converge_disable'] = array(
|
||||
* ON Member Delete
|
||||
* Delete the member
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['on_member_delete'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['onMemberDelete'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
@@ -73,7 +82,7 @@ $_CONVERGE_ALLOWED_METHODS['on_member_delete'] = array(
|
||||
* ON Password change
|
||||
* Give the local app a chance to perform a new member log in key request
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['on_password_change'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['onPasswordChange'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
@@ -89,7 +98,7 @@ $_CONVERGE_ALLOWED_METHODS['on_password_change'] = array(
|
||||
* ON EMAIL CHANGE
|
||||
* Update the local app with the new email address
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['on_email_change'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['onEmailChange'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
@@ -105,7 +114,7 @@ $_CONVERGE_ALLOWED_METHODS['on_email_change'] = array(
|
||||
* CONVERGE LOG IN
|
||||
* Passes info to complete local log in
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['converge_log_in'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['convergeLogIn'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
@@ -125,7 +134,7 @@ $_CONVERGE_ALLOWED_METHODS['converge_log_in'] = array(
|
||||
* Get a batch of members to import
|
||||
*
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['import_members'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['importMembers'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
@@ -141,7 +150,7 @@ $_CONVERGE_ALLOWED_METHODS['import_members'] = array(
|
||||
* Get number of members and last ID
|
||||
*
|
||||
*/
|
||||
$_CONVERGE_ALLOWED_METHODS['get_members_info'] = array(
|
||||
$_CONVERGE_ALLOWED_METHODS['getMembersInfo'] = array(
|
||||
'in' => array(
|
||||
'auth_key' => 'string',
|
||||
'product_id' => 'integer',
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
|
||||
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
|
||||
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
|
||||
</head><body>
|
||||
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
|
||||
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó «<b>Íàçàä</b>» â âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,15 +1,24 @@
|
||||
<?php
|
||||
/*
|
||||
+---------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2006 Invision Power Services
|
||||
| (c) 2001 - 2006 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
|
||||
| http://www.invisionboard.com
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Id$
|
||||
| > $Revision: 102 $
|
||||
@@ -78,7 +87,7 @@ class Converge_Server
|
||||
}
|
||||
|
||||
/**
|
||||
* Converge_Server::on_member_delete()
|
||||
* Converge_Server::onMemberDelete()
|
||||
*
|
||||
* Deletes the member.
|
||||
* Keep in mind that the member may not be in the local DB
|
||||
@@ -94,15 +103,17 @@ class Converge_Server
|
||||
* @param string $multiple_email_addresses Comma delimited list of email addresses
|
||||
* @return xml
|
||||
**/
|
||||
function on_member_delete( $auth_key, $product_id, $multiple_email_addresses='' )
|
||||
function onMemberDelete( $auth_key, $product_id, $multiple_email_addresses='' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$return = 'FAILED';
|
||||
$emails = explode( ",", $multiple_email_addresses );
|
||||
$emails = explode( ",", $this->ipsclass->DB->add_slashes( $this->ipsclass->parse_clean_value( $multiple_email_addresses ) ) );
|
||||
$member_ids = array();
|
||||
$auth_key = $this->ipsclass->txt_md5_clean( $auth_key );
|
||||
$product_id = intval( $product_id );
|
||||
|
||||
//-----------------------------------------
|
||||
// Authenticate
|
||||
@@ -158,7 +169,7 @@ class Converge_Server
|
||||
}
|
||||
|
||||
/**
|
||||
* Converge_Server::on_password_change()
|
||||
* Converge_Server::onPasswordChange()
|
||||
*
|
||||
* handles new password change
|
||||
*
|
||||
@@ -173,13 +184,17 @@ class Converge_Server
|
||||
* @param string $md5_once_password Plain text password hashed by MD5
|
||||
* @return xml
|
||||
**/
|
||||
function on_password_change( $auth_key, $product_id, $email_address, $md5_once_password )
|
||||
function onPasswordChange( $auth_key, $product_id, $email_address, $md5_once_password )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$return = 'FAILED';
|
||||
$auth_key = $this->ipsclass->txt_md5_clean( $auth_key );
|
||||
$product_id = intval( $product_id );
|
||||
$email_address = $this->ipsclass->parse_clean_value( $email_address );
|
||||
$md5_once_password = $this->ipsclass->txt_md5_clean( $md5_once_password );
|
||||
$return = 'FAILED';
|
||||
|
||||
//-----------------------------------------
|
||||
// Authenticate
|
||||
@@ -199,7 +214,7 @@ class Converge_Server
|
||||
'converge_pass_salt' => str_replace( '\\', "\\\\", $salt )
|
||||
);
|
||||
|
||||
$this->ipsclass->DB->do_update( 'members_converge', $converge, "converge_email='" . $email_address . "'" );
|
||||
$this->ipsclass->DB->do_update( 'members_converge', $converge, "converge_email='" . $this->ipsclass->DB->add_slashes( $email_address ) . "'" );
|
||||
|
||||
$return = 'SUCCESS';
|
||||
|
||||
@@ -210,7 +225,7 @@ class Converge_Server
|
||||
}
|
||||
|
||||
/**
|
||||
* Converge_Server::on_email_change()
|
||||
* Converge_Server::onEmailChange()
|
||||
*
|
||||
* Updates the local app's DB
|
||||
*
|
||||
@@ -225,13 +240,17 @@ class Converge_Server
|
||||
* @param string $new_email_address NEW email address to change
|
||||
* @return xml
|
||||
**/
|
||||
function on_email_change( $auth_key, $product_id, $old_email_address, $new_email_address )
|
||||
function onEmailChange( $auth_key, $product_id, $old_email_address, $new_email_address )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$return = 'FAILED';
|
||||
$auth_key = $this->ipsclass->txt_md5_clean( $auth_key );
|
||||
$product_id = intval( $product_id );
|
||||
$old_email_address = $this->ipsclass->parse_clean_value( $old_email_address );
|
||||
$new_email_address = $this->ipsclass->parse_clean_value( $new_email_address );
|
||||
$return = 'FAILED';
|
||||
|
||||
//-----------------------------------------
|
||||
// Get member
|
||||
@@ -239,7 +258,7 @@ class Converge_Server
|
||||
|
||||
$member = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',
|
||||
'from' => 'members',
|
||||
'where' => "email='".$old_email_address."'" ) );
|
||||
'where' => "email='" . $this->ipsclass->DB->add_slashes( $old_email_address ) . "'" ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Authenticate
|
||||
@@ -249,9 +268,9 @@ class Converge_Server
|
||||
{
|
||||
if ( $old_email_address AND $new_email_address )
|
||||
{
|
||||
$this->ipsclass->DB->do_update( 'members_converge', array( 'converge_email' => $new_email_address ), "converge_email='" . $old_email_address . "'" );
|
||||
$this->ipsclass->DB->do_update( 'members_converge', array( 'converge_email' => $new_email_address ), "converge_email='" . $this->ipsclass->DB->add_slashes( $old_email_address ) . "'" );
|
||||
|
||||
$this->ipsclass->DB->do_update( 'members' , array( 'email' => $new_email_address ), "email='" . $old_email_address . "'" );
|
||||
$this->ipsclass->DB->do_update( 'members' , array( 'email' => $new_email_address ), "email='" . $this->ipsclass->DB->add_slashes( $old_email_address ) . "'" );
|
||||
|
||||
//-----------------------------------------
|
||||
// Update member's username?
|
||||
@@ -275,7 +294,7 @@ class Converge_Server
|
||||
|
||||
|
||||
/**
|
||||
* Converge_Server::import_members()
|
||||
* Converge_Server::importMembers()
|
||||
*
|
||||
* Returns a batch of members to import
|
||||
* Important!
|
||||
@@ -294,8 +313,17 @@ class Converge_Server
|
||||
* @param int $limit_b SQL limit b
|
||||
* @return xml
|
||||
**/
|
||||
function import_members( $auth_key, $product_id, $limit_a, $limit_b )
|
||||
function importMembers( $auth_key, $product_id, $limit_a, $limit_b )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$auth_key = $this->ipsclass->txt_md5_clean( $auth_key );
|
||||
$product_id = intval( $product_id );
|
||||
$limit_a = intval( $limit_a );
|
||||
$limit_b = intval( $limit_b );
|
||||
|
||||
//-----------------------------------------
|
||||
// Authenticate
|
||||
//-----------------------------------------
|
||||
@@ -313,10 +341,19 @@ class Converge_Server
|
||||
// Get Data
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->build_query( array( 'select' => '*',
|
||||
'from' => 'members_converge',
|
||||
'order' => 'converge_id ASC',
|
||||
'limit' => array( $limit_a, $limit_b ) ) );
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'c.*',
|
||||
'from' => array( 'members_converge' => 'c' ),
|
||||
'order' => 'c.converge_id ASC',
|
||||
'limit' => array( $limit_a, $limit_b ),
|
||||
'add_join' => array(
|
||||
array(
|
||||
'type' => 'left',
|
||||
'select' => 'm.ip_address',
|
||||
'where' => 'm.email=c.converge_email',
|
||||
'from' => array( 'members' => 'm' ),
|
||||
)
|
||||
)
|
||||
) );
|
||||
|
||||
$this->ipsclass->DB->exec_query();
|
||||
|
||||
@@ -326,6 +363,7 @@ class Converge_Server
|
||||
$members[ $row['converge_id'] ] = array( 'email_address' => $row['converge_email'],
|
||||
'pass_salt' => $row['converge_pass_salt'],
|
||||
'password' => $row['converge_pass_hash'],
|
||||
'ip_address' => $row['ip_address'],
|
||||
'join_date' => $row['converge_joined'] );
|
||||
}
|
||||
|
||||
@@ -344,7 +382,7 @@ class Converge_Server
|
||||
}
|
||||
|
||||
/**
|
||||
* Converge_Server::get_members_info()
|
||||
* Converge_Server::getMembersInfo()
|
||||
*
|
||||
* IP.Converge uses this to gather how many users the local application has,
|
||||
* and the last ID entered into the local application’s member table.
|
||||
@@ -357,8 +395,15 @@ class Converge_Server
|
||||
* @param int $product_id Product ID
|
||||
* @return xml
|
||||
**/
|
||||
function get_members_info( $auth_key, $product_id )
|
||||
function getMembersInfo( $auth_key, $product_id )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$auth_key = $this->ipsclass->txt_md5_clean( $auth_key );
|
||||
$product_id = intval( $product_id );
|
||||
|
||||
//-----------------------------------------
|
||||
// Authenticate
|
||||
//-----------------------------------------
|
||||
@@ -383,7 +428,7 @@ class Converge_Server
|
||||
}
|
||||
|
||||
/**
|
||||
* Converge_Server::converge_log_out()
|
||||
* Converge_Server::convergeLogOut()
|
||||
*
|
||||
* Logs in the member out of local application
|
||||
*
|
||||
@@ -397,13 +442,16 @@ class Converge_Server
|
||||
* @param string $email_address Email address of user logged in
|
||||
* @return xml
|
||||
**/
|
||||
function converge_log_out( $auth_key, $product_id, $email_address='' )
|
||||
function convergeLogOut( $auth_key, $product_id, $email_address='' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$update = array();
|
||||
$auth_key = $this->ipsclass->txt_md5_clean( $auth_key );
|
||||
$product_id = intval( $product_id );
|
||||
$email_address = $this->ipsclass->parse_clean_value( $email_address );
|
||||
$update = array();
|
||||
|
||||
//-----------------------------------------
|
||||
// Authenticate
|
||||
@@ -417,7 +465,7 @@ class Converge_Server
|
||||
|
||||
$member = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',
|
||||
'from' => 'members',
|
||||
'where' => "email='".$email_address."'" ) );
|
||||
'where' => "email='" . $this->ipsclass->DB->add_slashes( $email_address ) . "'" ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// If we've got a member, delete their session
|
||||
@@ -471,7 +519,7 @@ class Converge_Server
|
||||
}
|
||||
|
||||
/**
|
||||
* Converge_Server::converge_log_in()
|
||||
* Converge_Server::convergeLogIn()
|
||||
*
|
||||
* Logs in the member to the local application
|
||||
*
|
||||
@@ -497,13 +545,21 @@ class Converge_Server
|
||||
* @param string $dst_autocorrect The member's DST autocorrect settings
|
||||
* @return xml
|
||||
**/
|
||||
function converge_log_in( $auth_key, $product_id, $email_address='', $md5_once_password='', $ip_address='', $unix_join_date='', $timezone=0, $dst_autocorrect=0 )
|
||||
function convergeLogIn( $auth_key, $product_id, $email_address='', $md5_once_password='', $ip_address='', $unix_join_date='', $timezone=0, $dst_autocorrect=0 )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$return = 'FAILED';
|
||||
$auth_key = $this->ipsclass->txt_md5_clean( $auth_key );
|
||||
$product_id = intval( $product_id );
|
||||
$email_address = $this->ipsclass->parse_clean_value( $email_address );
|
||||
$md5_once_password = $this->ipsclass->txt_md5_clean( $md5_once_password );
|
||||
$ip_address = $this->ipsclass->parse_clean_value( $ip_address );
|
||||
$unix_join_date = intval( $unix_join_date );
|
||||
$timezone = intval( $timezone );
|
||||
$dst_autocorrect = intval( $dst_autocorrect );
|
||||
$return = 'FAILED';
|
||||
|
||||
//-----------------------------------------
|
||||
// Authenticate
|
||||
@@ -517,7 +573,9 @@ class Converge_Server
|
||||
|
||||
$this->ipsclass->member = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',
|
||||
'from' => 'members',
|
||||
'where' => "email='".$email_address."'" ) );
|
||||
'where' => "email='" . $this->ipsclass->DB->add_slashes( $email_address ) . "'" ) );
|
||||
|
||||
#$this->class_api_server->xmlrpc->_add_debug( "Found $email_address - ".$this->ipsclass->member['id'] );
|
||||
|
||||
//-----------------------------------------
|
||||
// No such user? Create one!
|
||||
@@ -568,9 +626,9 @@ class Converge_Server
|
||||
|
||||
$this->class_api_server->api_send_reply( array( 'complete' => 1,
|
||||
'response' => $return,
|
||||
'session_id' => $session->session_id,
|
||||
'member_id' => $session->member['id'],
|
||||
'log_in_key' => $session->member['member_login_key'] ) );
|
||||
'session_id' => $session['_session_id'],
|
||||
'member_id' => $session['id'],
|
||||
'log_in_key' => $session['member_login_key'] ) );
|
||||
exit();
|
||||
}
|
||||
}
|
||||
@@ -656,7 +714,7 @@ class Converge_Server
|
||||
|
||||
$member = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',
|
||||
'from' => 'members',
|
||||
'where' => "email='".$email_address."'" ) );
|
||||
'where' => "email='" . $this->ipsclass->DB->add_slashes( $email_address ) . "'" ) );
|
||||
|
||||
if ( $member['id'] )
|
||||
{
|
||||
|
||||
@@ -2,17 +2,24 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| Invision Power Board 2.2.2
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@invisionpower.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
|
||||
| http://www.invisionboard.com/?license
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-02-01 18:16:26 +0000 (Wed, 01 Feb 2006) $
|
||||
| > $Revision: 132 $
|
||||
@@ -115,6 +122,37 @@ $ipsclass->DB->set_debug_mode( $ipsclass->vars['sql_debug'] == 1 ? intval($_GET[
|
||||
|
||||
$ipsclass->initiate_ipsclass();
|
||||
|
||||
//--------------------------------
|
||||
// Initialize the FUNC
|
||||
//--------------------------------
|
||||
|
||||
if ( ! $ipsclass->vars['ipconverge_public_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.Converge is not enabled from your ACP Control Panel. Log into your IP.Board ACP and visit: Tools & Settings -> IP.Converge Configuration and update "Enable IP.Converge"</string>
|
||||
</value>
|
||||
</member>
|
||||
</struct>
|
||||
</value>
|
||||
</fault>
|
||||
</methodResponse>";
|
||||
exit();
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Define Service
|
||||
//===========================================================================
|
||||
@@ -134,7 +172,7 @@ $server->add_object_map( $webservice, 'UTF-8' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Saying "info" or actually doing some
|
||||
// work? INfo is used by converge app to
|
||||
// work? Info is used by converge app to
|
||||
// ensure this file exists and to grab the
|
||||
// apps name.
|
||||
// Codes:
|
||||
@@ -295,7 +333,7 @@ class handshake_server
|
||||
// Build dispatch list
|
||||
//-----------------------------------------
|
||||
|
||||
$this->__dispatch_map[ 'handshake_start' ] = array(
|
||||
$this->__dispatch_map[ 'handshakeStart' ] = array(
|
||||
'in' => array(
|
||||
'reg_id' => 'int',
|
||||
'reg_code' => 'string',
|
||||
@@ -309,7 +347,7 @@ class handshake_server
|
||||
'out' => array( 'response' => 'xmlrpc' )
|
||||
);
|
||||
|
||||
$this->__dispatch_map[ 'handshake_end' ] = array(
|
||||
$this->__dispatch_map[ 'handshakeEnd' ] = array(
|
||||
'in' => array(
|
||||
'reg_id' => 'int',
|
||||
'reg_code' => 'string',
|
||||
@@ -320,7 +358,7 @@ class handshake_server
|
||||
'out' => array( 'response' => 'xmlrpc' )
|
||||
);
|
||||
|
||||
$this->__dispatch_map[ 'handshake_remove' ] = array(
|
||||
$this->__dispatch_map[ 'handshakeRemove' ] = array(
|
||||
'in' => array(
|
||||
'reg_product_id' => 'int',
|
||||
'reg_code' => 'string' ),
|
||||
@@ -342,8 +380,20 @@ class handshake_server
|
||||
* @param string $converge_url Converge application base url (no slashes or paths)
|
||||
* @return xml
|
||||
**/
|
||||
function handshake_start( $reg_id='', $reg_code='', $reg_date='', $reg_product_id='', $converge_url='', $acp_email='', $acp_md5_password='', $http_user='', $http_pass='' )
|
||||
function handshakeStart( $reg_id='', $reg_code='', $reg_date='', $reg_product_id='', $converge_url='', $acp_email='', $acp_md5_password='', $http_user='', $http_pass='' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$reg_id = intval( $reg_id );
|
||||
$reg_code = $this->ipsclass->txt_md5_clean( $reg_code );
|
||||
$reg_date = intval( $reg_date );
|
||||
$reg_product_id = intval( $reg_product_id );
|
||||
$converge_url = $this->ipsclass->parse_clean_value( $converge_url );
|
||||
$acp_email = $this->ipsclass->parse_clean_value( $acp_email );
|
||||
$acp_md5_password = $this->ipsclass->txt_md5_clean( $acp_md5_password );
|
||||
|
||||
//-----------------------------------------
|
||||
// Check ACP user
|
||||
//-----------------------------------------
|
||||
@@ -390,7 +440,17 @@ class handshake_server
|
||||
|
||||
if ( $member['g_access_cp'] != 1 )
|
||||
{
|
||||
$this->class_api_server->api_send_error( 501, 'ACP Email or Password Incorrect' );
|
||||
$this->class_api_server->api_send_error( 501, 'The ACP member does not have ACP access' );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Are we a root admin?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $member['mgroup'] != $this->ipsclass->vars['admin_group'] )
|
||||
{
|
||||
$this->class_api_server->api_send_error( 501, 'The ACP member is not a root admin' );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -453,8 +513,19 @@ class handshake_server
|
||||
* @param integer $handshake_completed All done flag
|
||||
* @return xml
|
||||
**/
|
||||
function handshake_end( $reg_id='', $reg_code='', $reg_date='', $reg_product_id='', $converge_url='', $handshake_completed='' )
|
||||
function handshakeEnd( $reg_id='', $reg_code='', $reg_date='', $reg_product_id='', $converge_url='', $handshake_completed='' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$reg_id = intval( $reg_id );
|
||||
$reg_code = $this->ipsclass->txt_md5_clean( $reg_code );
|
||||
$reg_date = intval( $reg_date );
|
||||
$reg_product_id = intval( $reg_product_id );
|
||||
$converge_url = $this->ipsclass->parse_clean_value( $converge_url );
|
||||
$handshake_completed = intval( $handshake_completed );
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab data from the DB
|
||||
//-----------------------------------------
|
||||
@@ -464,53 +535,58 @@ class handshake_server
|
||||
'where' => "converge_api_code='".$reg_code."' AND converge_product_id=".$reg_product_id ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Update as done...
|
||||
// Got it?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $converge['converge_api_code'] )
|
||||
{
|
||||
$this->ipsclass->DB->do_update( 'converge_local', array( 'converge_active' => 0 ), "converge_url = '".$converge_url."'" );
|
||||
$this->ipsclass->DB->do_update( 'converge_local', array( 'converge_active' => 1 ), "converge_api_code = '".$reg_code."'" );
|
||||
|
||||
//-----------------------------------------
|
||||
// Update the settings...
|
||||
//-----------------------------------------
|
||||
|
||||
require( ROOT_PATH . "sources/action_admin/settings.php" );
|
||||
$settings = new ad_settings();
|
||||
$settings->ipsclass =& $this->ipsclass;
|
||||
|
||||
//-----------------------------------------
|
||||
// Sort out some vars
|
||||
//-----------------------------------------
|
||||
|
||||
$_full_url = preg_replace( "#/$#", "", $converge_url ) . '/?p='.$reg_product_id;
|
||||
|
||||
//-----------------------------------------
|
||||
// Update...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->do_update( "conf_settings", array( "conf_value" => 1 ) , "conf_key='ipconverge_enabled'" );
|
||||
$this->ipsclass->DB->do_update( "conf_settings", array( "conf_value" => $converge_url ) , "conf_key='ipconverge_url'" );
|
||||
$this->ipsclass->DB->do_update( "conf_settings", array( "conf_value" => $reg_product_id ) , "conf_key='ipconverge_pid'" );
|
||||
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 'converge' ), "conf_key='ipbli_key'" );
|
||||
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 'email' ) , "conf_key='ipbli_usertype'" );
|
||||
|
||||
$settings->setting_rebuildcache();
|
||||
|
||||
//-----------------------------------------
|
||||
// Switch over log in methods
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->do_update( "login_methods", array( "login_enabled" => 0 ) );
|
||||
$this->ipsclass->DB->do_update( "login_methods", array( "login_enabled" => 1,
|
||||
"login_login_url" => $_full_url,
|
||||
"login_maintain_url" => $_full_url . '&redirect=options',
|
||||
"login_logout_url" => $_full_url . '&redirect=logout',
|
||||
"login_register_url" => $_full_url . '&act=register' ), "login_folder_name='ipconverge'" );
|
||||
|
||||
$this->class_api_server->api_send_reply( array( 'handshake_updated' => 1 ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->class_api_server->api_send_error( 500, 'Could not locate a Converge handshake to update' );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Update the settings...
|
||||
//-----------------------------------------
|
||||
|
||||
require( ROOT_PATH . "sources/action_admin/settings.php" );
|
||||
$settings = new ad_settings();
|
||||
$settings->ipsclass =& $this->ipsclass;
|
||||
|
||||
//-----------------------------------------
|
||||
// Sort out some vars
|
||||
//-----------------------------------------
|
||||
|
||||
$_full_url = preg_replace( "#/$#", "", $converge_url ) . '/?p='.$reg_product_id;
|
||||
|
||||
//-----------------------------------------
|
||||
// Update...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->do_update( "conf_settings", array( "conf_value" => 1 ) , "conf_key='ipconverge_enabled'" );
|
||||
$this->ipsclass->DB->do_update( "conf_settings", array( "conf_value" => $converge_url ) , "conf_key='ipconverge_url'" );
|
||||
$this->ipsclass->DB->do_update( "conf_settings", array( "conf_value" => $reg_product_id ) , "conf_key='ipconverge_pid'" );
|
||||
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 'converge' ), "conf_key='ipbli_key'" );
|
||||
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 'email' ) , "conf_key='ipbli_usertype'" );
|
||||
|
||||
$settings->setting_rebuildcache();
|
||||
|
||||
//-----------------------------------------
|
||||
// Switch over log in methods
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->do_update( "login_methods", array( "login_enabled" => 0 ) );
|
||||
$this->ipsclass->DB->do_update( "login_methods", array( "login_enabled" => 1,
|
||||
"login_login_url" => $_full_url,
|
||||
"login_maintain_url" => $_full_url . '&redirect=options',
|
||||
"login_logout_url" => $_full_url . '&redirect=logout',
|
||||
"login_register_url" => $_full_url ), "login_folder_name='ipconverge'" );
|
||||
|
||||
$this->class_api_server->api_send_reply( array( 'handshake_updated' => 1 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -522,8 +598,15 @@ class handshake_server
|
||||
* @param string $reg_code Converge API Code (MUST BE PRESENT IN ALL RETURNED API REQUESTS).
|
||||
* @return xml
|
||||
**/
|
||||
function handshake_remove( $reg_product_id='', $reg_code='' )
|
||||
function handshakeRemove( $reg_product_id='', $reg_code='' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$reg_product_id = intval( $reg_product_id );
|
||||
$reg_code = $this->ipsclass->txt_md5_clean( $reg_code );
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab data from the DB
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -2,17 +2,24 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| Invision Power Board 2.2.2
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@invisionpower.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
|
||||
| http://www.invisionboard.com/?license
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-02-01 18:16:26 +0000 (Wed, 01 Feb 2006) $
|
||||
| > $Revision: 132 $
|
||||
@@ -115,6 +122,37 @@ $ipsclass->init_load_cache( $ipsclass->cache_array );
|
||||
|
||||
$ipsclass->initiate_ipsclass();
|
||||
|
||||
//--------------------------------
|
||||
// Initialize the FUNC
|
||||
//--------------------------------
|
||||
|
||||
if ( ! $ipsclass->vars['ipconverge_public_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.Converge is not enabled from your ACP Control Panel. Log into your IP.Board ACP and visit: Tools & Settings -> IP.Converge Configuration and update "Enable IP.Converge"</string>
|
||||
</value>
|
||||
</member>
|
||||
</struct>
|
||||
</value>
|
||||
</fault>
|
||||
</methodResponse>";
|
||||
exit();
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Define Service
|
||||
//===========================================================================
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
|
||||
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
|
||||
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
|
||||
</head><body>
|
||||
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
|
||||
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó «<b>Íàçàä</b>» â âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user