Files
ugc/index.php
2015-08-15 15:23:24 +02:00

29 lines
555 B
PHP
Executable File

<?php
//Debug
$bDebug = false;
require_once 'inc/functions.php';
$sAction = isset($_REQUEST['a'])?$_REQUEST['a']:'';
$asData = isset($_REQUEST['data'])?$_REQUEST['data']:array();
$sType = isset($_REQUEST['type'])?$_REQUEST['type']:'html';
switch($sAction)
{
case 'get_page':
$sResult = getPage($asData['path'], $asData['vars'], $bDebug);
break;
case 'get_poster':
$sResult = getTrimImage($asData['id'], $asData['url'], $sType);
break;
default:
$sResult = file_get_contents('masks/index.html');
}
setPageMime($sType);
echo $sResult;
?>