X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Fexplain.php;h=1c15dd24325ed52d7cf4901fcc075bf7286c6ba1;hb=48f50311b96f41a3cd22f2832a225ccd1cd2131a;hp=e1852ab8acd293389a0d61484a1039607e5c1a99;hpb=5c967dabf5b7bef5b0471e61c9ada4a51d887cb6;p=brisk.git diff --git a/web/briskin5/explain.php b/web/briskin5/explain.php index e1852ab..1c15dd2 100644 --- a/web/briskin5/explain.php +++ b/web/briskin5/explain.php @@ -28,6 +28,12 @@ */ +foreach (array("HTTP_HOST", "DOCUMENT_ROOT") as $i) { + if (isset($_SERVER[$i])) { + $$i = $_SERVER[$i]; + } + } + $G_base = "../"; ini_set("max_execution_time", "240"); @@ -40,11 +46,11 @@ require_once("Obj/briskin5.phh"); require_once("Obj/placing.phh"); function main() { - - if (file_exists(LEGAL_PATH."/explain.log")) { - $ret .= file_get_contents(LEGAL_PATH."/explain.log"); - } - echo "$ret"; + $ret = ""; + if (file_exists(LEGAL_PATH."/explain.log")) { + $ret .= file_get_contents(LEGAL_PATH."/explain.log"); + } + echo "$ret"; } ?> @@ -54,7 +60,7 @@ function main() { - +