update UGC logo
This commit is contained in:
@@ -7,7 +7,7 @@ define('UGC_URL', 'https://www.ugc.fr');
|
||||
|
||||
function getPage($sPath, $asVars, $sType)
|
||||
{
|
||||
$bSavePage = Settings::DEBUG;
|
||||
$bSavePage = !Settings::DEBUG;
|
||||
if($bSavePage)
|
||||
{
|
||||
$asFileIds = array_filter($asVars);
|
||||
@@ -34,10 +34,11 @@ function getPage($sPath, $asVars, $sType)
|
||||
}
|
||||
else $sContent = file_get_contents($sFileName);
|
||||
|
||||
//Remove scripting & image source (avoid http request)
|
||||
//Remove scripting, header & image source (avoid http request)
|
||||
if($sType=='html')
|
||||
{
|
||||
$sContent = preg_replace('/<script(.*)<\/script>/sU', '', $sContent);
|
||||
$sContent = preg_replace('/<head>(.*)<\/head>/sU', '', $sContent);
|
||||
$sContent = preg_replace('/src=("|\')(.*)("|\')/sU', 'source="$2"', $sContent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user