Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+91 -26
View File
@@ -1,28 +1,17 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| Invision Power Board
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2006 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 $
| > $Date: 2006-10-16 14:09:47 +0100 (Mon, 16 Oct 2006) $
| > $Revision: 650 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
@@ -57,6 +46,55 @@
*/
define( 'ROOT_PATH', dirname( __FILE__ ) ."/" );
//-----------------------------------------------
// Security features
//-----------------------------------------------
/**
* Directory name for the admin folder
* @since 2.2.0.2006-06-30
*/
define( 'IPB_ACP_DIRECTORY', 'admin' );
/**
* Allow IP address matching when dealing with ACP sessions
* @since 2.2.0.2006-06-30
*/
define( 'IPB_ACP_IP_MATCH', '1' );
/**
* Allow exec.url="" tags
* Turning this on is a potential security risk as a malicious user
* could, with access to your ACP, add in an executable
* shell script which would allow root access to your
* server!
*/
define( 'IPB_ACP_ALLOW_EXEC_URL', 0 );
/**
* Allow PHP tags in template HTML?
* Turning this on is a potential security risk as a malicious user
* could, with access to your ACP, add in an executable
* shell script which would allow root access to your
* server!
*/
define( 'IPB_ACP_ALLOW_TEMPLATE_PHP', 0 );
/**
* Make the IPB portal your default forum page?
*/
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' );
//-----------------------------------------------
// Other
//-----------------------------------------------
/**
* USE SHUT DOWN
*
@@ -109,6 +147,14 @@ define( 'CUSTOM_ERROR', 1 );
*/
define( 'TRIAL_VERSION', 0 );
/**
* Version numbers
*
* @since 2.0.0.2005-01-01
*/
define ( 'IPBVERSION', '2.2.0 RC 1' );
define ( 'IPB_LONG_VERSION', '22006' );
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
@@ -116,6 +162,9 @@ define( 'TRIAL_VERSION', 0 );
@set_magic_quotes_runtime(0);
error_reporting (E_ERROR | E_WARNING | E_PARSE);
// This is for developing to catch notices - leave OFF!
//error_reporting( E_ALL | E_NOTICE);
/**
* IN IPB
*
@@ -168,15 +217,20 @@ else
*/
define ( 'IPB_INIT_DONE', 1 );
//-----------------------------------------------
// Use custom handler?
//-----------------------------------------------
if ( CUSTOM_ERROR )
/**
* Fix for PHP 5.1.x warning
*
* Sets default time zone to server time zone
* @since 2.2.0.2006-05-19
*/
if ( function_exists( 'date_default_timezone_set' ) )
{
set_error_handler("my_error_handler");
date_default_timezone_set( date_default_timezone_get() );
}
//===========================================================================
// DEBUG CLASS
//===========================================================================
@@ -227,6 +281,7 @@ function fatal_error($message="", $help="")
exit;
}
/*-------------------------------------------------------------------------*/
// Custom error handler
/*-------------------------------------------------------------------------*/
@@ -254,7 +309,7 @@ function my_error_handler( $errno, $errstr, $errfile, $errline )
switch ($errno)
{
case E_ERROR:
echo "<b>IPB Îøèáêà</b> [$errno] $errstr (Ñòðîêà: $errline ôàéëà $errfile)<br />\n";
echo "<b>IPB ERROR</b> [$errno] $errstr (Line: $errline of $errfile)<br />\n";
exit(1);
break;
case E_WARNING:
@@ -262,10 +317,10 @@ function my_error_handler( $errno, $errstr, $errfile, $errline )
{
if ( IPB_THIS_SCRIPT != 'admin' )
{
echo "<div style='font-family:sans-serif'><b>IPB Îøèáêà øàáëîíà:</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>";
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>";
}
else
{
@@ -274,7 +329,7 @@ function my_error_handler( $errno, $errstr, $errfile, $errline )
}
else
{
echo "<b>IPB Ïðåäóïðåæäåíèå</b> [$errno] $errstr (Ñòðîêà: $errline ôàéëà $errfile)<br />\n";
echo "<b>IPB WARNING</b> [$errno] $errstr (Line: $errline of $errfile)<br />\n";
}
break;
default:
@@ -283,5 +338,15 @@ function my_error_handler( $errno, $errstr, $errfile, $errline )
}
}
//-----------------------------------------------
// Use custom handler?
// Moved due to possible php bug? Bug id# 1245
//-----------------------------------------------
if ( CUSTOM_ERROR )
{
set_error_handler("my_error_handler");
}
?>