1.0
This commit is contained in:
22
index.php
Executable file
22
index.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?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;
|
||||
default:
|
||||
$sResult = file_get_contents('masks/index.html');
|
||||
}
|
||||
|
||||
setPageMime($sType);
|
||||
|
||||
echo $sResult;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user