update UGC logo

This commit is contained in:
2019-02-24 17:29:41 +01:00
parent 52cde4af12
commit 2b8a9118b8
6 changed files with 56 additions and 54 deletions

View File

@@ -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);
}