=0) { set_include_path(get_include_path() . PATH_SEPARATOR . $incPath); } else { ini_set("include_path", $incPath); // include path the old way (note we don't have PATH_SEPARATOR before 4.3.0, so we're not appending to the existing include path.. it's an edge case at this point) } if (version_compare(phpversion(), "5.3") < 0) { @set_magic_quotes_runtime(0); // include_once the magic_quotes_gpc workaround include_once "quotes_stripper.inc.php"; } // include the html_entity_decode fake function :) if (!function_exists('html_entity_decode')) { function html_entity_decode ($string, $opt = ENT_COMPAT) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip ($trans_tbl); if ($opt & 1) { $trans_tbl["'"] = "'"; } if (!($opt & 2)) { unset($trans_tbl["""]); } return strtr ($string, $trans_tbl); } } if (!defined("ENT_COMPAT")) define("ENT_COMPAT", 2); if (!defined("ENT_NOQUOTES")) define("ENT_NOQUOTES", 0); if (!defined("ENT_QUOTES")) define("ENT_QUOTES", 3); // set the document_root :| if(!isset($_SERVER["DOCUMENT_ROOT"]) || empty($_SERVER["DOCUMENT_ROOT"])) { $_SERVER["DOCUMENT_ROOT"] = str_replace($_SERVER["PATH_INFO"], "", preg_replace("/\\\\/", "/", $_SERVER["PATH_TRANSLATED"]))."/"; } define("IN_ETOMITE_SYSTEM", "true"); // for backward compatibility with 0.6 // include_once config file $config_filename = "./includes/config.inc.php"; if (!file_exists($config_filename)) { echo "
".$_lang['functionnotimpl_message']."