Spot v2: Project Management
This commit is contained in:
@@ -22,12 +22,14 @@ $sName = isset($_GET['name'])?$_GET['name']:'';
|
||||
$sContent = isset($_GET['content'])?$_GET['content']:'';
|
||||
$iChunk = isset($_GET['chunk'])?$_GET['chunk']:0;
|
||||
$sId = isset($_REQUEST['id'])?$_REQUEST['id']:'';
|
||||
$iProjectId = isset($_REQUEST['project_id'])?$_REQUEST['project_id']:'';
|
||||
$iX = isset($_GET['x'])?$_GET['x']:0;
|
||||
$iY = isset($_GET['y'])?$_GET['y']:0;
|
||||
$iZ = isset($_GET['z'])?$_GET['z']:0;
|
||||
|
||||
//Initiate class
|
||||
$oSpot = new Spot($oClassManagement, __FILE__);
|
||||
$oSpot->setProjectId($iProjectId);
|
||||
|
||||
$sResult = '';
|
||||
if($sAction!='')
|
||||
@@ -49,6 +51,9 @@ if($sAction!='')
|
||||
case 'tile':
|
||||
$sResult = $oSpot->getTile($sId, $iX, $iY, $iZ);
|
||||
break;
|
||||
/*case 'sql':
|
||||
$sResult = $oSpot->getDbBuildScript();
|
||||
break;*/
|
||||
default:
|
||||
$sResult = Spot::getJsonResult(false, Spot::NOT_FOUND);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user