Version 2.2.2

This commit is contained in:
Neo committed 2025-12-19 00:24:35 -08:00
1 parent 22f1b963ee
commit a3bb603c96
858 files changed
+479463 -188140

No files matched your search

+33 -18
View File
@@ -1,17 +1,27 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board
| Invision Power Board 2.2.2
| =============================================
| by Matthew Mecham
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Monday 05th of March 2007 10:10:54 PM
| Release: e3790216629e5a2aaf37070b32237f06
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| > $Date: 2006-10-11 13:55:47 +0100 (Wed, 11 Oct 2006) $
| > $Revision: 624 $
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2006-12-05 09:12:45 -0600 (Tue, 05 Dec 2006) $
| > $Revision: 765 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
@@ -26,7 +36,7 @@
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -155,9 +165,9 @@ class display {
{
$copyright = "<!-- Copyright Information -->
<div align='center' style='background-color:#FFF;color:#000;font-size:11px;width:auto;'>
Powered by: <a href='http://www.invisionboard.com' target='_blank' style='color:#000'>Invision Power Board</a> (Free Trial)
Ðàáîòàåò íà <a href='http://www.ibresource.ru/' style='text-decoration:none' target='_blank'>ðóññêîé âåðñèè</a> <a href='http://www.invisionboard.com' target='_blank' style='color:#000'>Invision Power Board</a> (Free Trial)
{$version} &copy; ".date("Y")." &nbsp;<a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
<br /><strong>Get your free trial <a href='http://www.invisionboard.com' target='_blank' style='text-decoration:underline;color:#000'>here!</a></strong>
<br /><strong>Ñêà÷àéòå òðèàë-âåðñèþ <a href='http://www.invisionboard.com' target='_blank' style='text-decoration:underline;color:#000'>òóò!</a></strong>
</div>
<!-- / Copyright -->";
}
@@ -165,13 +175,13 @@ class display {
{
$copyright = "<!-- Copyright Information -->
<div align='center' class='copyright'>
<a href='http://www.invisionboard.com' style='text-decoration:none' target='_blank'>Invision Power Board</a>
{$version} &copy; ".date("Y")." &nbsp;IPS, Inc.
<a href='http://www.ibresource.ru/' style='text-decoration:none' target='_blank'>Ðóññêàÿ âåðñèÿ</a> <a href='http://www.invisionboard.com' style='text-decoration:none' target='_blank'>IP.Board</a>
{$version} &copy; ".date("Y")." &nbsp;<a href='http://www.invisionpower.com' style='text-decoration:none' target='_blank'>IPS, Inc</a>.
";
if ( $this->ipsclass->vars['ipb_reg_show'] and $this->ipsclass->vars['ipb_reg_name'] )
{
$copyright .= "<div>Licensed to: ". $this->ipsclass->vars['ipb_reg_name']."</div>";
$copyright .= "<div>".$this->ipsclass->lang['licensed_to']. $this->ipsclass->vars['ipb_reg_name']."</div>";
}
@@ -208,7 +218,7 @@ class display {
if ( $data['com_url_title'] AND $data['com_url_uri'] )
{
$data['com_url_uri'] = str_replace( '{ipb.base_url}' , $this->ipsclass->base_url , $data['com_url_uri'] );
$data['com_url_title'] = preg_replace_callback( '#{ipb.lang\[[\'"](.+?)[\'"]\]}#i', array( $this, '_return_lang_var' ), $data['com_url_title'] );
$data['com_url_title'] = preg_replace_callback( '#{ipb.lang\[[\'"](.+?)[\'"]\]}#i', array( &$this, '_return_lang_var' ), $data['com_url_title'] );
$components_links .= $this->ipsclass->compiled_templates['skin_global']->global_board_header_component_link( $data['com_url_uri'],$data['com_url_title'], $data );
}
@@ -301,6 +311,11 @@ class display {
// Basics
//-----------------------------------------
if( strstr( strtolower(PHP_OS), 'win' ) )
{
$this->ipsclass->server_load = $this->ipsclass->server_load . '%';
}
if ( $this->ipsclass->member['id'] and $this->ipsclass->vars['debug_level'] )
{
$quickstats = $this->ipsclass->compiled_templates['skin_global']->global_quick_stats($this->ex_time, $gzip_status, $this->ipsclass->server_load, $this->ipsclass->DB->get_query_cnt() );
@@ -1026,13 +1041,13 @@ class display {
{
$collapsed_ids = ','.$this->ipsclass->my_getcookie('collapseprefs').',';
$show['div_fo'] = 'show';
$show['div_fo'] = '';
$show['div_fc'] = 'none';
if ( strstr( $collapsed_ids, ',debug,' ) )
{
$show['div_fo'] = 'none';
$show['div_fc'] = 'show';
$show['div_fc'] = '';
}
$stats = "<div align='center' style='display:{$show['div_fc']}' id='fc_debug'>
@@ -1105,12 +1120,12 @@ class display {
{
$latest_version = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*', 'from' => 'upgrade_history', 'order' => 'upgrade_version_id DESC', 'limit' => array(0, 1) ) );
if ( $this->ipsclass->version == 'v<{%dyn.down.var.human.version%}>' )
if ( $this->ipsclass->version == 'v2.2.2' )
{
$this->ipsclass->version = 'v'.$latest_version['upgrade_version_human'];
}
if ( $this->ipsclass->acpversion == '<{%dyn.down.var.long_version_id%}>' )
if ( $this->ipsclass->acpversion == '22011' )
{
$this->ipsclass->acpversion = $latest_version['upgrade_version_id'];
}
@@ -1118,7 +1133,7 @@ class display {
list( $cust_number, $acc_number ) = explode( ',', $cust_number_tmp );
@header( "Content-type: text/xml" );
$out = '<?xml version="1.0" encoding="ISO-8859-1"?'.'>';
$out = '<?xml version="1.0" encoding="WINDOWS-1251"?'.'>';
$out .= "\n<ipscheck>\n\t<result>1</result>\n\t<customer_id>$cust_number</customer_id>\n\t<account_id>$acc_number</account_id>\n\t"
. "<version_id>{$this->ipsclass->acpversion}</version_id>\n\t<version_string>{$this->ipsclass->version}</version_string>\n\t<release_hash><![CDATA[<{%dyn.down.var.md5%}]]>></release_hash>"
. "\n</ipscheck>";
@@ -1129,12 +1144,12 @@ class display {
{
$latest_version = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*', 'from' => 'upgrade_history', 'order' => 'upgrade_version_id DESC', 'limit' => array(0, 1) ) );
if ( $this->ipsclass->version == 'v<{%dyn.down.var.human.version%}>' )
if ( $this->ipsclass->version == 'v2.2.2' )
{
$this->ipsclass->version = 'v'.$latest_version['upgrade_version_human'];
}
if ( $this->ipsclass->acpversion == '<{%dyn.down.var.long_version_id%}>' )
if ( $this->ipsclass->acpversion == '22011' )
{
$this->ipsclass->acpversion = $latest_version['upgrade_version_id'];
}
@@ -1146,7 +1161,7 @@ class display {
else
{
@header( "Content-type: text/plain" );
print "<result>0</result>\nYou do not have permission to view this page.";
print "<result>0</result>\nÂû íå èìååòå äîñòóïà ê ýòîé ñòðàíèöå.";
exit();
}
}