This piece of code isn't working anymore.. it's included in the config.inc.php and when I delete it and go to the cpg site I'll get
Please, enter relative path to e107
Please, check out if this is relative path to e107 (from Coppermine folder).
Installing Coppermine not into e107 subfolder is not recommend, so don't complain if it will not work
?>
<?php //e107
// this block was added by e107 CPG bridge
define("CPG_E107_CLASS_INCLUDED", 1);
$register_globals = true;
if(function_exists("ini_get")) {
$register_globals = ini_get("register_globals");
}
if ($register_globals) //evil e107... kills all globals :(
$HTTP___cpg = array ("cpg_time_start" => $cpg_time_start,
"queries" => $queries,
"query_stats" => $query_stats,
"CONFIG" => $CONFIG,
"ORIGINAL_PHP_SELF" => $ORIGINAL_PHP_SELF,
"PHP_SELF" => $PHP_SELF,
"REFERER" => $REFERER,
"ALBUM_SET" => $ALBUM_SET,
"META_ALBUM_SET" => $META_ALBUM_SET,
"FORBIDDEN_SET" => $FORBIDDEN_SET,
"FORBIDDEN_SET_DATA" => $FORBIDDEN_SET_DATA,
"CURRENT_CAT_NAME" => $CURRENT_CAT_NAME,
"CAT_LIST" => $CAT_LIST,
"raw_ip" => $raw_ip,
"hdr_ip" => $hdr_ip,
"cpgdebugger" => $cpgdebugger,
"file" => $file);
$HTTP___e107_coppermine_self = $_SERVER["PHP_SELF"];
$PHP_SELF = $_SERVER["PHP_SELF"] = $_SERVER["SCRIPT_NAME"] = $ORIGINAL_PHP_SELF;
@include_once "../class2.php";
$PHP_SELF = $_SERVER["PHP_SELF"] = $_SERVER["SCRIPT_NAME"] = $HTTP___e107_coppermine_self;
unset($HTTP___e107_coppermine_self);
if (@isset($HTTP___cpg)) {
extract($HTTP___cpg);
unset($HTTP___cpg);
}
?>