Version 2.1.7

This commit is contained in:
Neo committed 2025-12-19 00:21:15 -08:00
1 parent 0eecc172d9
commit f73f8bff6d
941 files changed
+215301 -103093

No files matched your search

+68
View File
@@ -0,0 +1,68 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Blog Module
| =============================================
| by Remco Wilting
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.vuboys.nl
| Email: remco@invisionboard.com
+--------------------------------------------------------------------------
|
| > Blog AdminCP script wrapper
| > Script written by Remco Wilting
| > Date started: 27st August 2004
| > Module version: 0.1.001
|
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class ad_blog {
var $base_url;
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// Do some set up
//-----------------------------------------
if ( ! @is_dir( ROOT_PATH.'/modules/blog' ) )
{
$this->ipsclass->admin->show_inframe("http://www.invisionpower.com/ip.dynamic/products/blog/index.html");
}
else
{
require ROOT_PATH.'modules/blog/admin/ad_blog.php';
$adblog = new ad_blog_plugin();
$adblog->ipsclass =& $this->ipsclass;
$adblog->run_me();
}
}
}
?>
+229
View File
@@ -0,0 +1,229 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2006-03-01 11:03:17 +0000 (Wed, 01 Mar 2006) $
| > $Revision: 150 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Admin Framework for IPS Services
| > Module written by Matt Mecham
| > Date started: 17 February 2003
|
| > Module Version Number: 1.0.0
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class ad_chatpara
{
var $ipsclass;
var $base_url;
/*-------------------------------------------------------------------------*/
// IPB CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// Make sure we're a root admin, or else!
//-----------------------------------------
if ($this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'])
{
$this->ipsclass->admin->error("Sorry, these functions are for the root admin group only");
}
switch($this->ipsclass->input['code'])
{
case 'ipchat04':
$this->chat_splash();
break;
case 'chatsettings':
$this->chat04_config();
break;
case 'chatsave':
$this->chat_save();
break;
case 'dochat':
$this->chat_config_save();
break;
default:
$this->chat_splash();
break;
}
}
/*-------------------------------------------------------------------------*/
// CHAT SPLASH
/*-------------------------------------------------------------------------*/
function chat_splash()
{
//-----------------------------------------
// Do we have an order number
//-----------------------------------------
if ( $this->ipsclass->vars['chat04_account_no'] )
{
$this->chat04_config();
}
else
{
$this->ipsclass->admin->page_title = "Invision Power Chat (Parachat)";
$this->ipsclass->admin->page_detail = "If you have already purchased IP Chat via Parachat, then simply enter your Site ID in the box below.";
$this->ipsclass->html .= "<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=chatsave' method='POST'>
<table style='background:#005' width='100%' cellpadding=4 cellspacing=0 border=0 align='center'>
<tr>
<td valign='middle' align='left'><b style='color:white'>Ordered IP Chat?</b></td>
<td valign='middle' align='left'><input type='text' size=35 name='account_no' value='enter your Site ID here...' onclick=\"this.value='';\"></td>
<td valign='middle' align='left'><input type='submit' class='realdarkbutton' value='Continue...'></td>
</tr>
</table>
</form>";
$this->ipsclass->admin->show_inframe( 'http://partners.parachat.com/invision/' );
}
}
/*-------------------------------------------------------------------------*/
// CHAT SAVE
/*-------------------------------------------------------------------------*/
function chat_save()
{
//-----------------------------------------
// Load libby-do-dah
//-----------------------------------------
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$adsettings = new ad_settings();
$adsettings->ipsclass =& $this->ipsclass;
$acc_number = $this->ipsclass->input['account_no'];
if ( $acc_number == "" )
{
$this->ipsclass->admin->error("Sorry, that is not a valid IP Chat account number");
}
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => $acc_number ), "conf_key='chat04_account_no'" );
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => '' ) , "conf_key='chat_account_no'" );
$adsettings->setting_rebuildcache();
//-----------------------------------------
// Update this component
//-----------------------------------------
require_once( ROOT_PATH . 'sources/api/api_core.php' );
require_once( ROOT_PATH . 'sources/api/api_components.php' );
$api = new api_components();
$api->ipsclass =& $this->ipsclass;
$fields = array( 'com_enabled' => 1,
'com_menu_data' => array( 0 => array( 'menu_text' => 'Chat Settings',
'menu_url' => 'code=chatsettings',
'menu_permbit' => 'edit' ) ) );
$api->acp_component_update( 'chatpara', $fields );
//-----------------------------------------
// Show config
//-----------------------------------------
$this->chat04_config();
}
/*-------------------------------------------------------------------------*/
// NEW CHAT
/*-------------------------------------------------------------------------*/
function chat04_config()
{
$this->ipsclass->admin->page_detail = "You may edit the configuration below to suit";
$this->ipsclass->admin->page_title = "Invision Power Chat Configuration";
//-----------------------------------------
// Load libby-do-dah
//-----------------------------------------
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$settings = new ad_settings();
$settings->ipsclass =& $this->ipsclass;
//-----------------------------------------
// Did we reset the component?
//-----------------------------------------
if ( ! $this->ipsclass->vars['chat04_account_no'] )
{
$this->chat_splash();
}
else
{
//-----------------------------------------
// Update version 6 or 7
//-----------------------------------------
if ( preg_match( "#^\d#", $this->ipsclass->vars['chat04_account_no'] ) )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 7 ), "conf_key='parachat_version'" );
}
else
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 6 ), "conf_key='parachat_version'" );
}
$settings->setting_rebuildcache();
}
$settings->get_by_key = 'chat04';
$settings->return_after_save = 'section=components&act=chatpara&code=show';
$settings->setting_view();
}
}
?>
+198
View File
@@ -0,0 +1,198 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2006-02-07 13:42:54 +0000 (Tue, 07 Feb 2006) $
| > $Revision: 141 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Admin Framework for IPS Services
| > Module written by Matt Mecham
| > Date started: 17 February 2003
|
| > Module Version Number: 1.0.0
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class ad_chatsigma
{
var $ipsclass;
var $base_url;
/*-------------------------------------------------------------------------*/
// IPB CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// Make sure we're a root admin, or else!
//-----------------------------------------
switch($this->ipsclass->input['code'])
{
case 'ipchat04':
$this->chat_splash();
break;
case 'chatsettings':
$this->chat04_config();
break;
case 'chatsave':
$this->chat_save();
break;
case 'dochat':
$this->chat_config_save();
break;
default:
$this->chat_splash();
break;
}
}
/*-------------------------------------------------------------------------*/
// CHAT SPLASH
/*-------------------------------------------------------------------------*/
function chat_splash()
{
//-----------------------------------------
// Do we have an order number
//-----------------------------------------
if ( $this->ipsclass->vars['chat_account_no'] )
{
$this->chat04_config();
}
else
{
$this->ipsclass->admin->page_title = "Sigma Chat";
$this->ipsclass->admin->page_detail = "If you have already purchased SigmaChat, then simply enter your account number in the box below.";
$this->ipsclass->html .= "<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=chatsave' method='POST'>
<table style='background:#005' width='100%' cellpadding=4 cellspacing=0 border=0 align='center'>
<tr>
<td valign='middle' align='left'><b style='color:white'>Own SigmaChat?</b></td>
<td valign='middle' align='left'><input type='text' size=35 name='account_no' value='enter your account number here...' onClick=\"this.value='';\"></td>
<td valign='middle' align='left'><input type='submit' class='realdarkbutton' value='Continue...'></td>
</tr>
</table>
</form>";
//$this->ipsclass->admin->show_inframe( 'http://www.sigmachat.com/' );
}
}
/*-------------------------------------------------------------------------*/
// CHAT SAVE
/*-------------------------------------------------------------------------*/
function chat_save()
{
//-----------------------------------------
// Load libby-do-dah
//-----------------------------------------
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$adsettings = new ad_settings();
$adsettings->ipsclass =& $this->ipsclass;
$acc_number = $this->ipsclass->input['account_no'];
if ( $acc_number == "" )
{
$this->ipsclass->admin->error("Sorry, that is not a valid IP Chat account number");
}
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => $acc_number ), "conf_key='chat_account_no'" );
$adsettings->setting_rebuildcache();
//-----------------------------------------
// Update this component
//-----------------------------------------
require_once( ROOT_PATH . 'sources/api/api_core.php' );
require_once( ROOT_PATH . 'sources/api/api_components.php' );
$api = new api_components();
$api->ipsclass =& $this->ipsclass;
$fields = array( 'com_enabled' => 1,
'com_menu_data' => array( 0 => array( 'menu_text' => 'Chat Settings',
'menu_url' => 'code=chatsettings',
'menu_permbit' => 'edit' ) ) );
$api->acp_component_update( 'chatsigma', $fields );
//-----------------------------------------
// Show config
//-----------------------------------------
$this->chat04_config();
}
/*-------------------------------------------------------------------------*/
// NEW CHAT
/*-------------------------------------------------------------------------*/
function chat04_config()
{
$this->ipsclass->admin->page_detail = "You may edit the configuration below to suit";
$this->ipsclass->admin->page_title = "Sigma Configuration";
//-----------------------------------------
// Load libby-do-dah
//-----------------------------------------
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$settings = new ad_settings();
$settings->ipsclass =& $this->ipsclass;
$settings->get_by_key = 'chat';
$settings->return_after_save = 'section=components&act=chatsigma&code=show';
$settings->setting_view();
}
}
?>
+243
View File
@@ -0,0 +1,243 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2006-02-23 17:01:38 +0000 (Thu, 23 Feb 2006) $
| > $Revision: 145 $
| > $Author: bfarber $
+---------------------------------------------------------------------------
|
| > Admin Framework for IPS Services
| > Module written by Matt Mecham
| > Date started: 17 February 2003
|
| > Module Version Number: 1.0.0
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class ad_copyright
{
var $ipsclass;
var $base_url;
function auto_run()
{
if ( TRIAL_VERSION )
{
print "This feature is disabled in the trial version.";
exit();
}
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// Make sure we're a root admin, or else!
if ($this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'])
{
$this->ipsclass->admin->error("Sorry, these functions are for the root admin group only");
}
switch($this->ipsclass->input['code'])
{
case 'show':
case 'copy':
$this->copy_splash();
break;
case 'copysave':
$this->copy_save();
break;
case 'docopy':
$this->copy_config_save();
break;
default:
exit();
break;
}
}
/*-------------------------------------------------------------------------*/
// Copyright removal Splash
/*-------------------------------------------------------------------------*/
function copy_splash()
{
//-----------------------------------------
// Do we have an order number
//-----------------------------------------
if ( $this->ipsclass->vars['ipb_copy_number'] )
{
$this->copy_config();
}
else
{
$this->ipsclass->admin->page_title = "Invision Power Board Copyright Removal";
$this->ipsclass->admin->page_detail = "";
$this->ipsclass->html .= "<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=copysave' method='POST'>
<table style='background:#005' width='100%' cellpadding=4 cellspacing=0 border=0 align='center'>
<tr>
<td valign='middle' align='left'><b style='color:white'>Already paid for copyright removal?</b></td>
<td valign='middle' align='left'><input type='text' size=50 name='ipb_copy_number' value='enter your IPB copyright removal key here...' onClick=\"this.value='';\"></td>
<td valign='middle' align='left'><input type='submit' class='realdarkbutton' value='Continue...'></td>
</tr>
</table>
</form>";
$this->ipsclass->admin->show_inframe( 'https://www.invisionpower.com/customer/index.php' );
}
}
/*-------------------------------------------------------------------------*/
// Save...
/*-------------------------------------------------------------------------*/
function copy_save()
{
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$settings = new ad_settings();
$settings->ipsclass =& $this->ipsclass;
$acc_number = trim($this->ipsclass->input['ipb_copy_number']);
if( !preg_match( "#^\d+?\-\d+?\-\d+?\-\d+?#", $acc_number ) )
{
$acc_number = "";
}
if ( stristr( $acc_number, ',pass=' ) )
{
list( $acc_number, $pass ) = explode( ',pass=', $acc_number );
if ( md5(strtolower($pass)) == 'b1c4780a00e7d010b0eca0b695398c02' )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => $acc_number ), "conf_key='ipb_copy_number'" );
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 1 ), "conf_key='ips_cp_purchase'" );
$settings->setting_rebuildcache();
$this->copy_config('new');
exit();
}
else
{
$this->ipsclass->admin->error("The override password was incorrect. Please <a href='http://www.invisionpower.com/?contact'>contact us</a> for assistance or start a new ticket from your <a href='http://customer.invisionpower.com'>IPS customer account</a>.");
}
}
if ( $acc_number == "" )
{
$this->ipsclass->admin->error("Sorry, that is not a valid IPB Copyright key, please hit 'back' in your browser and try again.");
}
$response = trim( @implode ('', @file( "http://www.invisionpower.com/customer/ipb/copy/?k=".urlencode($acc_number) ) ) );
if ( $response == "" )
{
$this->ipsclass->admin->error("There was no response back from the Invision Power Services registration server, this might be because of the following:
<ul>
<li>Your PHP version does not allow remote connections</li>
<li>The Invision Power Services registration server is offline</li>
<li>You are running this IPB on a server without an internet connection</li>
</ul>
<br />
Please <a href='http://www.invisionpower.com/?contact'>contact us</a> for assistance or start a new ticket from your <a href='http://customer.invisionpower.com'>IPS customer account</a>.
");
}
else if ( $response == '0' )
{
$this->ipsclass->admin->error("The copyright key you entered is not valid, this might be because of the following:
<ul>
<li>You incorrectly entered the registration key</li>
<li>You mistakenly used your customer center password instead of the copyright key</li>
<li>Your registration licence is no longer valid</li>
</ul>
<br />
Please <a href='http://www.invisionpower.com/?contact'>contact us</a> for assistance or start a new ticket from your <a href='http://customer.invisionpower.com'>IPS customer account</a>.
");
}
else if ( $response == '1' )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => $acc_number ), "conf_key='ipb_copy_number'" );
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => 1 ), "conf_key='ips_cp_purchase'" );
$settings->setting_rebuildcache();
}
$this->copy_config('new');
}
/*-------------------------------------------------------------------------*/
// Show...
/*-------------------------------------------------------------------------*/
function copy_config($type="")
{
$this->ipsclass->admin->page_detail = "&nbsp;";
$this->ipsclass->admin->page_title = "IPB Copyright Confirmation";
if ( $type == "new" )
{
$this->ipsclass->admin->page_detail .= "<br /><br /><b style='color:red'>Thank you for registering your copyright removal!</b>";
}
//-----------------------------------------
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "100%" );
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Configuration" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "The copyright should now be removed from the bottom of the IPB pages.<br /><br />If this is not the case, please contact our after sales staff immediately."
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
$this->ipsclass->admin->output();
}
}
?>
+72
View File
@@ -0,0 +1,72 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 23 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Default Components Loader
| > Module written by Matt Mecham
| > Date started: Tues 12th April 2005 (12:15)
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class ad_default
{
# Global
var $ipsclass;
var $html;
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// LOAD HTML
//-----------------------------------------
$this->html = $this->ipsclass->acp_load_template('cp_skin_components');
$this->ipsclass->html = $this->html->welcome_page();
$this->ipsclass->admin->output();
}
}
?>
+78
View File
@@ -0,0 +1,78 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Gallery Module
| ========================================
| by Joshua Williams
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisiongallery.com
| Email: josh@invisiongallery.com
+---------------------------------------------------------------------------
|
| > Main Admin Module
| > Script written by Joshua Williams
| $Id: gallery.php,v 1.1.1.1 2005/07/11 20:43:50 kinderstod Exp $
+--------------------------------------------------------------------------
*/
$idx = new ad_gallery();
class ad_gallery {
var $base_url;
var $ipsclass;
var $gallery_lib;
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
$this->ipsclass->admin->page_title = "Invision Gallery Manager";
$this->ipsclass->admin->page_detail = "You can set up and manage your gallery in this section.";
$this->ipsclass->admin->nav[] = array( 'section=components&act=gallery' , 'Invision Gallery Manager Home' );
//-----------------------------------------
// Do some set up
//-----------------------------------------
if ( ! @is_dir( ROOT_PATH.'/modules/gallery' ) )
{
$this->ipsclass->admin->show_inframe("http://www.invisiongallery.com/?why");
}
else
{
define( 'IPB_CALLED', 1 );
$this->ipsclass->DB->load_cache_file( ROOT_PATH . 'sources/sql/'.SQL_DRIVER.'_gallery_queries.php', 'gallery_sql_queries' );
$this->ipsclass->DB->load_cache_file( ROOT_PATH . 'sources/sql/'.SQL_DRIVER.'_gallery_admin_queries.php', 'gallery_admin_sql_queries' );
$section = ( $this->ipsclass->input['code'] ) ? "ad_{$this->ipsclass->input['code']}" : "ad_overview";
require ROOT_PATH.'modules/gallery/lib/gallery_library.php';
$this->gallery_lib = new gallery_lib();
$this->gallery_lib->ipsclass =& $this->ipsclass;
require ROOT_PATH.'modules/gallery/admin/'.$section.'.php';
$PLUGIN = new ad_plugin_gallery_sub();
$PLUGIN->ipsclass =& $this->ipsclass;
$PLUGIN->glib =& $this->gallery_lib;
$PLUGIN->auto_run();
}
}
}
?>
+78
View File
@@ -0,0 +1,78 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 23 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Default Components Loader
| > Module written by Matt Mecham
| > Date started: Tues 12th April 2005 (12:15)
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class ad_hello
{
# Global
var $ipsclass;
var $html;
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
switch( $this->ipsclass->input['code'] )
{
case 'setup':
$this->show_setup();
break;
}
}
function show_setup()
{
$this->ipsclass->html = "Welcome, there's not much here - that's up to you to code!";
$this->ipsclass->admin->output();
}
}
?>
+15
View File
@@ -0,0 +1,15 @@
<html>
<head><title>Ошибка &lt; Русская версия Invision Power Board</title></head>
<body>
<h1>Ошибка &lt; Русская версия Invision Power Board</h1>
<hr>
Вы попали на несуществующую страницу!<br>Пожалуйста нажмите на кнопочку &laquo;<b>Назад</b>&raquo;
в вашем браузере для возвращения на предыдущую страницу.
<hr>
<b>Invision Power Board:</b>
<ul>
<li><a href="http://www.bestwarez.ru" title="BestWarez.Ru - Только лучший Варез!">Русская версия</a></li>
<li><a href="http://www.invisionboard.com" title="Official Site">English version</a></li>
</ul>
</body>
</html>
@@ -0,0 +1,319 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 23 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Admin Framework for IPS Services
| > Module written by Matt Mecham
| > Date started: 17 February 2003
|
| > Module Version Number: 1.0.0
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class ad_registration {
var $base_url;
var $ipsclass;
function auto_run()
{
if ( TRIAL_VERSION )
{
print "This feature is disabled in the trial version.";
exit();
}
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// Make sure we're a root admin, or else!
if ($this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'])
{
$this->ipsclass->admin->error("Sorry, these functions are for the root admin group only");
}
switch($this->ipsclass->input['code'])
{
case 'show':
case 'reg':
$this->reg_splash();
break;
case 'regsave':
$this->reg_save();
break;
case 'doreg':
$this->reg_config_save();
break;
default:
$this->reg_splash();
break;
}
}
//-----------------------------------------
// Registration Splash
//-----------------------------------------
function reg_splash()
{
//-----------------------------------------
// Do we have an order number
//-----------------------------------------
if ( $this->ipsclass->vars['ipb_reg_number'] )
{
$this->reg_config();
}
else
{
$this->ipsclass->admin->page_title = "Invision Power Board";
$this->ipsclass->admin->page_detail = "If you have already purchased a registration key, please.";
$this->ipsclass->html .= "<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=regsave' method='POST'>
<table style='background:#005' width='100%' cellpadding=4 cellspacing=0 border=0 align='center'>
<tr>
<td valign='middle' align='left'><b style='color:white'>Already Registered?</b></td>
<td valign='middle' align='left'><input type='text' size='50' name='ipb_reg_number' value='enter your IPB registration key here...' onClick=\"this.value='';\"></td>
<td valign='middle' align='left'><input type='submit' class='realdarkbutton' value='Continue...'></td>
</tr>
</table>
</form>";
$this->ipsclass->admin->show_inframe( 'http://www.invisionboard.com/?whyregister' );
}
}
/*-------------------------------------------------------------------------*/
// Save
/*-------------------------------------------------------------------------*/
function reg_save()
{
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$settings = new ad_settings();
$settings->ipsclass =& $this->ipsclass;
$acc_number = trim($this->ipsclass->input['ipb_reg_number']);
if ( stristr( $acc_number, ',pass=' ) )
{
list( $acc_number, $pass ) = explode( ',pass=', $acc_number );
if ( md5(strtolower($pass)) == 'b1c4780a00e7d010b0eca0b695398c02' )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => $acc_number ), "conf_key='ipb_reg_number'" );
$settings->setting_rebuildcache();
$this->reg_config('new');
exit();
}
else
{
$this->ipsclass->admin->error("The override password was incorrect. Please <a href='http://www.invisionpower.com/?contact'>contact us</a> for assistance or start a new ticket from your <a href='http://customer.invisionpower.com'>IPS customer account</a>.");
}
}
if ( $acc_number == "" )
{
$this->ipsclass->admin->error("Sorry, that is not a valid IPB registration key, please hit 'back' in your browser and try again.");
}
$response = trim( implode ('', file( "http://customer.invisionpower.com/ipb/reg/?k=".urlencode($acc_number) ) ) );
if ( $response == "" )
{
$this->ipsclass->admin->error("There was no response back from the Invision Power Services registration server, this might be because of the following:
<ul>
<li>Your PHP version does not allow remote connections</li>
<li>The Invision Power Services registration server is offline</li>
<li>You are running this IPB on a server without an internet connection</li>
</ul>
<br />
Please <a href='http://www.invisionpower.com/?contact'>contact us</a> for assistance or start a new ticket from your <a href='http://customer.invisionpower.com'>IPS customer account</a>.
");
}
else if ( $response == '0' )
{
$this->ipsclass->admin->error("The registration key you entered is not valid, this might be because of the following:
<ul>
<li>You incorrectly entered the registration key</li>
<li>You mistakenly used your customer center password instead of the registration key</li>
<li>Your registration licence is no longer valid</li>
</ul>
<br />
Please <a href='http://www.invisionpower.com/?contact'>contact us</a> for assistance or start a new ticket from your <a href='http://customer.invisionpower.com'>IPS customer account</a>.
");
}
else if ( $response == '1' )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_value' => $acc_number ), "conf_key='ipb_reg_number'" );
$settings->setting_rebuildcache();
}
$this->reg_config('new');
}
/*-------------------------------------------------------------------------*/
// Show
/*-------------------------------------------------------------------------*/
function reg_config($type="")
{
$this->ipsclass->admin->page_detail = "You may edit the configuration below to suit";
$this->ipsclass->admin->page_title = "IPB Registration Configuration";
if ( $type == "new" )
{
$this->ipsclass->admin->page_detail .= "<br /><br /><b style='color:red'>Thank you for registering!</b>";
}
//-----------------------------------------
// Load libby-do-dah
//-----------------------------------------
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$adsettings = new ad_settings();
$adsettings->ipsclass =& $this->ipsclass;
//-----------------------------------------
// START THE FORM
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'doreg' ),
2 => array( 'act' , 'pin' ),
) );
//-----------------------------------------
// get group ID
//-----------------------------------------
$conf_group = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'conf_settings_titles', 'where' => "conf_title_keyword='ipbreg'" ) );
$this->ipsclass->DB->query("SELECT * FROM ibf_conf_settings WHERE conf_group='{$conf_group['conf_title_id']}' ORDER BY conf_position, conf_title");
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$conf_entry[ $r['conf_id'] ] = $r;
if ( $r['conf_end_group'] )
{
$in_g = 0;
}
if ( $in_g )
{
$adsettings->in_group[] = $r['conf_id'];
}
if ( $r['conf_start_group'] )
{
$in_g = 1;
}
}
$title = "Íàñòðîéêè äëÿ ãðóïïû: IPB Ðåãèñòðàöèÿ";
//-----------------------------------------
// start table
//-----------------------------------------
$this->ipsclass->html .= "<div class='tableborder'>
<div class='maintitle'>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr>
<td align='left' width='70%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>$title</td>
<td align='right' nowrap='nowrap' width='30%'>";
$this->ipsclass->html .= "&nbsp;&nbsp;</td>
</tr>
</table>
</div>
";
//-----------------------------------------
// Loopy loo
//-----------------------------------------
foreach( $conf_entry as $id => $r )
{
$this->ipsclass->html .= $adsettings->_setting_process_entry( $r );
}
$this->ipsclass->html .= "<input type='hidden' name='settings_save' value='".implode(",",$adsettings->key_array)."' />";
$this->ipsclass->html .= "<div class='pformstrip' align='center'><input type='submit' value='Update Settings' class='realdarkbutton' /></div></div></form>";
$this->ipsclass->admin->output();
}
/*-------------------------------------------------------------------------*/
// Save
/*-------------------------------------------------------------------------*/
function reg_config_save()
{
$this->ipsclass->input['id'] = 'ipbreg';
//-----------------------------------------
// Load libby-do-dah
//-----------------------------------------
require_once( ROOT_PATH.'sources/action_admin/settings.php' );
$adsettings = new ad_settings();
$adsettings->ipsclass =& $this->ipsclass;
$adsettings->setting_update( 1 );
$this->ipsclass->admin->done_screen("IPB Registration Configuration Updated", "IPB Registration Configuration Updated", "act=pin&code=reg", 'redirect' );
}
}
?>