27 lines
570 B
PHP
Executable File
27 lines
570 B
PHP
Executable File
<?php
|
|
|
|
require_once 'inc/settings.php';
|
|
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']);
|
|
break;
|
|
case 'get_poster':
|
|
$sResult = getTrimImage($asData['id'], $asData['size'], $asData['url'], $sType);
|
|
break;
|
|
default:
|
|
$sResult = file_get_contents('masks/index.html');
|
|
}
|
|
|
|
setPageMime($sType);
|
|
|
|
echo $sResult;
|
|
|
|
?>
|