#154 mod check rewrite_module usable

This commit is contained in:
akasima 2013-12-09 21:09:07 +09:00
parent 23f858bef9
commit c62e2e6ed9

View file

@ -379,6 +379,9 @@ class installController extends install
$hostname = $_SERVER['SERVER_NAME'];
$port = $_SERVER['SERVER_PORT'];
$query = "/JUST/CHECK/REWRITE/" . $checkFilePath;
$currentPath = str_replace( $_SERVER['DOCUMENT_ROOT'], "", realpath(_XE_PATH_) );
if($currentPath != "")
$query = $currentPath . $query;
$fp = @fsockopen($hostname, $port, $errno, $errstr);
if(!$fp) return false;