Check http request on server side + remove image source in html pages

This commit is contained in:
2015-08-29 16:18:22 +02:00
parent 3e69ae7199
commit 304c31d870
3 changed files with 21 additions and 7 deletions

View File

@@ -1,6 +1,5 @@
<?php
require_once 'inc/settings.php';
require_once 'inc/functions.php';
$sAction = isset($_REQUEST['a'])?$_REQUEST['a']:'';
@@ -10,7 +9,7 @@ $sType = isset($_REQUEST['type'])?$_REQUEST['type']:'html';
switch($sAction)
{
case 'get_page':
$sResult = getPage($asData['path'], $asData['vars']);
$sResult = getPage($asData['path'], $asData['vars'], $sType);
break;
case 'get_poster':
$sResult = getTrimImage($asData['id'], $asData['size'], $asData['url'], $sType);