View Full Version : Last security patch for 4.5`
BennieBlanco
02.02.2005, 17:20
This means I need to change the mambo.php file but I alredy changed this file when I extendet the user grups.Now does anyone know what lines exactly do I need to change here so I don't have to replace the whole file
http://forum.mamboserver.com/showthread.php?t=29961
BennieBlanco
02.02.2005, 20:46
who else to help than my best friend :-)) :D
... I alredy changed this file when I extendet the user grups.
I used the fishermambs-v1.2 hack to include mamblefish in 45.109a and had the same questions as you
By comparing the 45.109b with the original 109 version I found 26 new lines at the very begin of the file. Inserting those lines into my actual mambo.php worked
Might be easy to merge into any hacked or extended mambo.php
Mero
// ensure this file is being included by a parent file
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
define( '_MOS_MAMBO_INCLUDED', 1 );
if (!function_exists( 'array_change_key_case' )) {
if (!defined('CASE_LOWER')) {
define('CASE_LOWER', 0);
}
if (!defined('CASE_UPPER')) {
define('CASE_UPPER', 1);
}
function array_change_key_case( $input, $case=CASE_LOWER ) {
if (!is_array( $input )) {
return false;
}
$array = array();
foreach ($input as $k=>$v) {
if ($case) {
$array[strtoupper( $k )] = $v;
} else {
$array[strtolower( $k )] = $v;
}
}
return $array;
}
}
if (in_array( 'globals', array_keys( array_change_key_case( $_REQUEST ) ) ) ) {
die( 'Fatal error. Global variable hack attempted.' );
}
if (@$mosConfig_error_reporting === 0) {
error_reporting( 0 );
} else if (@$mosConfig_error_reporting > 0) {
error_reporting( $mosConfig_error_reporting );
}
vBulletin® v3.8.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.