interface upgrade

This commit is contained in:
2015-08-15 15:23:24 +02:00
parent 61d37c748d
commit d231658b60
6 changed files with 197 additions and 40 deletions

View File

@@ -1,5 +1,8 @@
<?php
//Debug
$bDebug = false;
require_once 'inc/functions.php';
$sAction = isset($_REQUEST['a'])?$_REQUEST['a']:'';
@@ -9,7 +12,10 @@ $sType = isset($_REQUEST['type'])?$_REQUEST['type']:'html';
switch($sAction)
{
case 'get_page':
$sResult = getPage($asData['path'], $asData['vars']);
$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');