diff --git a/inc/functions.php b/inc/functions.php index 424045c..3c823ed 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -1,6 +1,8 @@ Service Temporarily Unavailable')) return getPage($sPath, $asVars, $sType); + if($bSavePage) file_put_contents($sFileName, $sContent); } - return $bSavePage?file_get_contents($sFileName):$sContent; + else $sContent = file_get_contents($sFileName); + + //Remove scripting & image source (avoid http request) + if($sType=='html') + { + $sContent = preg_replace('//sU', '', $sContent); + $sContent = preg_replace('//sU', '', $sContent); + } + + return $sContent; } function setPageMime($sType='html') diff --git a/index.php b/index.php index 863097c..dd69948 100755 --- a/index.php +++ b/index.php @@ -1,6 +1,5 @@