mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Security updates + a few updates for chopped up functions compatibility
git-svn-id: file:///svn/phpbb/trunk@2310 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a30d780877
commit
9ec9adec4d
19 changed files with 51 additions and 2 deletions
|
@ -11,6 +11,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$file = basename(__FILE__);
|
$file = basename(__FILE__);
|
||||||
|
@ -23,9 +25,10 @@ if( !empty($setmodules) )
|
||||||
//
|
//
|
||||||
$phpbb_root_dir = "./../";
|
$phpbb_root_dir = "./../";
|
||||||
require('pagestart.inc');
|
require('pagestart.inc');
|
||||||
|
include($phpbb_root_dir . 'includes/functions_selects.'.$phpEx);
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
// Pull all config data
|
||||||
//
|
//
|
||||||
$sql = "SELECT *
|
$sql = "SELECT *
|
||||||
FROM " . CONFIG_TABLE;
|
FROM " . CONFIG_TABLE;
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
* adapted from the unoficial phpMyAdmin 2.2.0.
|
* adapted from the unoficial phpMyAdmin 2.2.0.
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$file = basename(__FILE__);
|
$file = basename(__FILE__);
|
||||||
|
@ -32,6 +34,7 @@ if( !empty($setmodules) )
|
||||||
//
|
//
|
||||||
$phpbb_root_dir = "./../";
|
$phpbb_root_dir = "./../";
|
||||||
require('pagestart.inc');
|
require('pagestart.inc');
|
||||||
|
include($phpbb_root_dir . 'includes/functions_admin.'.$phpEx);
|
||||||
|
|
||||||
$forum_auth_ary = array(
|
$forum_auth_ary = array(
|
||||||
"auth_view" => AUTH_ALL,
|
"auth_view" => AUTH_ALL,
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$file = basename(__FILE__);
|
$file = basename(__FILE__);
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
* This file will be used for modifying the smiley settings for a board.
|
* This file will be used for modifying the smiley settings for a board.
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
//
|
//
|
||||||
// First we do the setmodules stuff for the admin cp.
|
// First we do the setmodules stuff for the admin cp.
|
||||||
//
|
//
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$file = basename(__FILE__);
|
$file = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
if( !empty($setmodules) )
|
if( !empty($setmodules) )
|
||||||
{
|
{
|
||||||
$file = basename(__FILE__);
|
$file = basename(__FILE__);
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
define('IN_PHPBB', 1);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Load default header
|
// Load default header
|
||||||
//
|
//
|
||||||
|
|
|
@ -20,6 +20,11 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
if ( !defined('IN_PHPBB') )
|
||||||
|
{
|
||||||
|
die("Hacking attempt");
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Show the overall footer.
|
// Show the overall footer.
|
||||||
//
|
//
|
||||||
|
|
|
@ -20,7 +20,12 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
define(HEADER_INC, TRUE);
|
if ( !defined('IN_PHPBB') )
|
||||||
|
{
|
||||||
|
die("Hacking attempt");
|
||||||
|
}
|
||||||
|
|
||||||
|
define('HEADER_INC', true);
|
||||||
|
|
||||||
//
|
//
|
||||||
// gzip_compression
|
// gzip_compression
|
||||||
|
|
|
@ -20,6 +20,11 @@
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
if ( !defined('IN_PHPBB') )
|
||||||
|
{
|
||||||
|
die("Hacking attempt");
|
||||||
|
}
|
||||||
|
|
||||||
define('IN_ADMIN', true);
|
define('IN_ADMIN', true);
|
||||||
|
|
||||||
$phpbb_root_path = "../";
|
$phpbb_root_path = "../";
|
||||||
|
|
Loading…
Add table
Reference in a new issue