Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: rastamate - maaliskuu 05, 2006, 07:24:31 AP

Otsikko: Code in Threads
Kirjoitti: rastamate - maaliskuu 05, 2006, 07:24:31 AP
Well here I wanna try if the following code really shows up or not, due in my board it just doesn't:

<?php
/**
* @version $Id: globals.php,v 1.7 2005/01/24 17:48:18 troozers Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/

$raw phpversion();
list(
$v_Upper,$v_Major,$v_Minor) = explode(".",$raw);

if ((
$v_Upper == && $v_Major 1) || $v_Upper 4) {
$_FILES $HTTP_POST_FILES;
$_ENV $HTTP_ENV_VARS;
$_GET $HTTP_GET_VARS;
$_POST $HTTP_POST_VARS;
$_COOKIE $HTTP_COOKIE_VARS;
$_SERVER $HTTP_SERVER_VARS;
$_SESSION $HTTP_SESSION_VARS;
$_FILES $HTTP_POST_FILES;
}

if (!
ini_get('register_globals')) {
while(list($key,$value)=each($_FILES)) $GLOBALS[$key]=$value;
while(list($key,$value)=each($_ENV)) $GLOBALS[$key]=$value;
while(list($key,$value)=each($_GET)) $GLOBALS[$key]=$value;
while(list($key,$value)=each($_POST)) $GLOBALS[$key]=$value;
while(list($key,$value)=each($_COOKIE)) $GLOBALS[$key]=$value;
while(list($key,$value)=each($_SERVER)) $GLOBALS[$key]=$value;
while(list($key,$value)=@each($_SESSION)) $GLOBALS[$key]=$value;
foreach($_FILES as $key => $value){
$GLOBALS[$key]=$_FILES[$key]['tmp_name'];
foreach($value as $ext => $value2){
$key2 $key '_' $ext;
$GLOBALS[$key2] = $value2;
}
}
}
?>

Otsikko: Re: Code in Threads
Kirjoitti: rastamate - maaliskuu 05, 2006, 07:26:43 AP
Just see that the code shows up correctly.

Can anyone tell me, why such code just get absorbed in our forum at http://www.joomlaportal.ch ?

You can try with the same code above in our forum to see for yourself.

Any help will be appreciated!
Otsikko: Re: Code in Threads
Kirjoitti: rastamate - maaliskuu 05, 2006, 07:34:37 AP
Well I just noticed, that the problem is not within SMF.
It might be a problem with the bridge to our old Mambo Site....

It will work with the new Bridge in Joomla. We are migrating soon so this problem is obsolete.

Thank you for reading.