repo init
This commit is contained in:
44
index.php
Normal file
44
index.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
$sSpotId = '0Y5LrvigElWeAieBGnFol0KBEuOTkFJmm';
|
||||
|
||||
https://api.findmespot.com/spot-main-web/consumer/rest-api/2.0/public/feed/0Y5LrvigElWeAieBGnFol0KBEuOTkFJmm/message.json
|
||||
|
||||
/* Requests Handler */
|
||||
|
||||
//Start buffering
|
||||
ob_start();
|
||||
require_once '../objects/class_management.php';
|
||||
$oClassManagement = new ClassManagement('spot');
|
||||
ToolBox::cleanPost($_POST);
|
||||
ToolBox::cleanPost($_GET);
|
||||
ToolBox::cleanPost($_REQUEST);
|
||||
ToolBox::fixGlobalVars(isset($argv)?$argv:array());
|
||||
|
||||
//Available variables
|
||||
$sAction = isset($_REQUEST['a'])?$_REQUEST['a']:'';
|
||||
$sPage = isset($_GET['p'])?$_GET['p']:'index';
|
||||
|
||||
//Initiate class
|
||||
$oSpot = new Spot($oClassManagement, __FILE__);
|
||||
|
||||
$sResult = '';
|
||||
if($sAction!='')
|
||||
{
|
||||
switch($sAction)
|
||||
{
|
||||
case '':
|
||||
//$sResult = $oSpot->
|
||||
break;
|
||||
default:
|
||||
$sResult = Pedidor::getJsonResult(false, Pedidor::NOT_FOUND);
|
||||
}
|
||||
}
|
||||
else $sResult = $oSpot->getMainPage();
|
||||
|
||||
$sDebug = ob_get_clean();
|
||||
if(Settings::DEBUG && $sDebug!='') $oSpot->addUncaughtError($sDebug);
|
||||
|
||||
echo $sResult;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user