ok... so i have this located on searver A:
Switch($_GET['ty']){
//IPB 1.2 - 2.1.5
case 'ipb':
$config['include'] = "conf_global.php";
$config['server'] = "INFO['sql_host']";
$config['user'] = "INFO['sql_user']";
$config['pass'] = "INFO['sql_pass']";
$config['database'] = "INFO['sql_database']";
$config['prefix'] = "INFO['sql_tbl_prefix']";
$config['table'] = "members";
$config['login'] = "name";
$config['row'] = "posts";
break;
}
$i = '0';
foreach($config as $title => $data){
if($i >= '1') $sep = ":";
$kaboom .= $sep.$title."-".$data;
$i++;
}
echo($kaboom);
returnes
include-conf_global.php:server-INFO['sql_host']:user-INFO['sql_user']:pass-INFO['sql_pass']:database-INFO['sql_database']:prefix-INFO['sql_tbl_prefix']:table-members:login-name:row-posts
ok thats great and that works...
and on another server:
$config['forum_type'] = strtolower($config['forum_type']);
$config['license'] = strtolower($config['license']);
$lines = array();
$arrays = array();
$include = array();
$stuffz = file_get_contents("FILE THAT IS ABOVE!");
$lines = explode(':', $stuffz);
$include = explode('-', $lines[0]);
include($include[1]);
$INFO['sql_tbl_prefix'] = "TEST";
foreach($lines as $id => $line){
$arrays = explode('-',$line);
if($id != '0' && $id <= 5){
$config[ $arrays[0] ] = ${$arrays[1]};
}
else{
$config[ $arrays[0] ] = $arrays[1];
}
}
print_r($config);
When viewing the outputted arrays 1-5 are blank.
now lets explain what this is suposed to do.
The code is suposed to load a text blob from another website (does that!), then explode it into a new array and then load the varables that are needed into the values of said array sections...
well it doesnt load the varables into the values... insted it just outputs blankness...
help?