Version 2.2.2
This commit is contained in:
1 parent
22f1b963ee
commit
a3bb603c96
858 files changed
+479463
-188140
No files matched your search
+72
-23
@@ -1,18 +1,28 @@
|
||||
<?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:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-16 14:09:47 +0100 (Mon, 16 Oct 2006) $
|
||||
| > $Revision: 650 $
|
||||
| > $Author: matt $
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-11-15 16:28:37 -0600 (Wed, 15 Nov 2006) $
|
||||
| > $Revision: 730 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > INIT (Yes, it is)
|
||||
@@ -52,15 +62,48 @@ define( 'ROOT_PATH', dirname( __FILE__ ) ."/" );
|
||||
|
||||
/**
|
||||
* Directory name for the admin folder
|
||||
* @since 2.2.0.2006-06-30
|
||||
* @since 2.2.0.2006-11-06
|
||||
*/
|
||||
define( 'IPB_ACP_DIRECTORY', 'admin' );
|
||||
|
||||
/**
|
||||
* DEV MODE
|
||||
*
|
||||
* Turns IPB into 'developers' mode which enables
|
||||
* some debugging and other tools. This is NOT recommended
|
||||
* as it opens your board up to potential security risks
|
||||
* @since 2.0.0.2005-01-01
|
||||
*/
|
||||
define ( 'IN_DEV', 0 );
|
||||
|
||||
/**
|
||||
* SQL DEBUG MODE
|
||||
*
|
||||
* Turns on SQL debugging mode. This is NOT recommended
|
||||
* as it opens your board up to potential security risks
|
||||
* @since 2.2.0.2006-11-06
|
||||
*/
|
||||
define ( 'IPS_SQL_DEBUG_MODE', 0 );
|
||||
|
||||
/**
|
||||
* Write to debug file?
|
||||
* Enter relative / full path into the constant below
|
||||
* Remove contents to turn off debugging.
|
||||
* WARNING: If you are passing passwords and such via XML_RPC
|
||||
* AND wish to debug, ensure that the debug file ends with .php
|
||||
* to prevent it loading as plain text via HTTP which would show
|
||||
* the entire contents of the file.
|
||||
* @since 2.2.0.2006-11-06
|
||||
*/
|
||||
define( 'IPS_XML_RPC_DEBUG_ON' , 0 );
|
||||
define( 'IPS_XML_RPC_DEBUG_FILE', ROOT_PATH . 'cache/xmlrpc_debug.cgi' );
|
||||
|
||||
|
||||
/**
|
||||
* Allow IP address matching when dealing with ACP sessions
|
||||
* @since 2.2.0.2006-06-30
|
||||
*/
|
||||
define( 'IPB_ACP_IP_MATCH', '1' );
|
||||
define( 'IPB_ACP_IP_MATCH', 1 );
|
||||
|
||||
/**
|
||||
* Allow exec.url="" tags
|
||||
@@ -80,6 +123,12 @@ define( 'IPB_ACP_ALLOW_EXEC_URL', 0 );
|
||||
*/
|
||||
define( 'IPB_ACP_ALLOW_TEMPLATE_PHP', 0 );
|
||||
|
||||
/**
|
||||
* Allow UTF charset convertations for AJAX-based tools
|
||||
* @since 2.2.2.2007-02-25
|
||||
*/
|
||||
define( 'IPB_ACP_AJAX_UTF_CONVERT', 1 );
|
||||
|
||||
/**
|
||||
* Make the IPB portal your default forum page?
|
||||
*/
|
||||
@@ -89,7 +138,7 @@ define( 'IPB_MAKE_PORTAL_HOMEPAGE', 0 );
|
||||
* Use GZIP page compression in the ACP
|
||||
* @since 2.2.0.2006-06-30
|
||||
*/
|
||||
define( 'IPB_ACP_USE_GZIP', '1' );
|
||||
define( 'IPB_ACP_USE_GZIP', 1 );
|
||||
|
||||
//-----------------------------------------------
|
||||
// Other
|
||||
@@ -152,8 +201,8 @@ define( 'TRIAL_VERSION', 0 );
|
||||
*
|
||||
* @since 2.0.0.2005-01-01
|
||||
*/
|
||||
define ( 'IPBVERSION', '2.2.0 RC 1' );
|
||||
define ( 'IPB_LONG_VERSION', '22006' );
|
||||
define ( 'IPBVERSION', '2.2.2' );
|
||||
define ( 'IPB_LONG_VERSION', '22011' );
|
||||
|
||||
//-----------------------------------------------
|
||||
// NO USER EDITABLE SECTIONS BELOW
|
||||
@@ -179,14 +228,6 @@ define ( 'IN_IPB', 1 );
|
||||
*/
|
||||
define ( 'IN_ACP', 1 );
|
||||
|
||||
/**
|
||||
* DEV MODE
|
||||
*
|
||||
* Seriously, like, leave this alone too
|
||||
* @since 2.0.0.2005-01-01
|
||||
*/
|
||||
define ( 'IN_DEV', 0 );
|
||||
|
||||
/**
|
||||
* SAFE MODE
|
||||
*
|
||||
@@ -297,6 +338,8 @@ function fatal_error($message="", $help="")
|
||||
*/
|
||||
function my_error_handler( $errno, $errstr, $errfile, $errline )
|
||||
{
|
||||
global $ipsclass;
|
||||
|
||||
// Did we turn off errors with @?
|
||||
|
||||
if ( ! error_reporting() )
|
||||
@@ -309,7 +352,13 @@ function my_error_handler( $errno, $errstr, $errfile, $errline )
|
||||
switch ($errno)
|
||||
{
|
||||
case E_ERROR:
|
||||
echo "<b>IPB ERROR</b> [$errno] $errstr (Line: $errline of $errfile)<br />\n";
|
||||
echo "<b>ÎØÈÁÊÀ Â ÊÎÄÅ:</b> [$errno] $errstr (Ñòðîêà: $errline ôàéëà $errfile)<br />\n";
|
||||
|
||||
if( is_object($ipsclass) )
|
||||
{
|
||||
$ipsclass->DB->close_db();
|
||||
}
|
||||
|
||||
exit(1);
|
||||
break;
|
||||
case E_WARNING:
|
||||
@@ -317,10 +366,10 @@ function my_error_handler( $errno, $errstr, $errfile, $errline )
|
||||
{
|
||||
if ( IPB_THIS_SCRIPT != 'admin' )
|
||||
{
|
||||
echo "<div style='font-family:sans-serif'><b>IPB TEMPLATE ERROR:</b> Could not load the required template.
|
||||
<br /><br />First, try and remove any custom skin settings by clicking <a href='index.php?setskin&id=0'>here</a>
|
||||
<br /><br />Then, please visit your <a href='admin.php'>Admin Control Panel</a> to repair this template.
|
||||
<br /><br /><span style='font-size:90%;color:gray'>Error: $errstr</span></div>";
|
||||
echo "<div style='font-family:sans-serif'><b>ÎØÈÁÊÀ Â ØÀÁËÎÍÅ:</b> Íåâîçìîæíî çàãðóçèòü òðåáóåìûé øàáëîí.
|
||||
<br /><br />Âî-ïåðâûõ, ïðîâåðüòå è óäàëèòå ëþáûå äðóãèå ñòèëåâûå íàñòðîéêè, íàæàâ <a href='index.php?setskin&id=0'>ñþäà</a>
|
||||
<br /><br />Ïîòîì, ïîæàëóéñòà, çàéäèòå â <a href='admin.php'>àäìèíöåíòð ôîðóìà</a> è èñïðàâüòå øàáëîí, âûçûâàþùèé îøèáêó.
|
||||
<br /><br /><span style='font-size:90%;color:gray'>Îøèáêà: $errstr</span></div>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -329,7 +378,7 @@ function my_error_handler( $errno, $errstr, $errfile, $errline )
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<b>IPB WARNING</b> [$errno] $errstr (Line: $errline of $errfile)<br />\n";
|
||||
echo "<b>ÏÐÅÄÓÏÐÅÆÄÅÍÈÅ:</b> [$errno] $errstr (Ñòðîêà: $errline ôàéëà $errfile)<br />\n";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user