Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
$config["embedded"] = 0;
// try to figure out whether we are embedded (for example running from Wordpress)
// on windows/apache $_SERVER['PATH_TRANSLATED'] uses "/" for directory separators,
// __FILE__ has them the other way, realpath takes care of that.
if (dirname(__FILE__) != dirname(realpath($_SERVER["PATH_TRANSLATED"])) && strpos($_SERVER["PATH_TRANSLATED"],"admin") === false) {
$config["embedded"] = 1;
// disable our own cruft-free urls, because the URL has already been processed
// by WordPress
$config["use_mod_rewrite"] = 0;
} else {
// if mod_rewrite is on, make sure to remove the file basename
if ($config["use_mod_rewrite"] == 1) {
$config["baseurl"] = "http://".$_SERVER["HTTP_HOST"]. substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")) . "/";
}
}
$config["embedded"] = 0;
if ($config["use_mod_rewrite"] == 1)
$config["baseurl"] = "http://".$_SERVER["HTTP_HOST"]. substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")) . "/";
1 to 6 of 6