admin page v1

This commit is contained in:
2019-03-31 22:07:21 +02:00
parent e4a8cc7dbb
commit a9956a6a2e
10 changed files with 180 additions and 15 deletions

View File

@@ -17,6 +17,8 @@ $sName = isset($_GET['name'])?$_GET['name']:'';
$sContent = isset($_GET['content'])?$_GET['content']:'';
$iChunk = isset($_GET['chunk'])?$_GET['chunk']:0;
$iProjectId = isset($_REQUEST['project_id'])?$_REQUEST['project_id']:0;
$sField = isset($_REQUEST['field'])?$_REQUEST['field']:'';
$oValue = isset($_REQUEST['value'])?$_REQUEST['value']:'';
//Initiate class
$oSpot = new Spot($oClassManagement, __FILE__);
@@ -45,6 +47,12 @@ if($sAction!='')
case 'sync_pics':
$sResult = $oSpot->syncPics();
break;
case 'get_admin':
$sResult = $oSpot->getAdminSettings();
break;
case 'set_admin':
$sResult = $oSpot->setAdminSettings($sField, $oValue);
break;
default:
$sResult = Main::getJsonResult(false, Main::NOT_FOUND);
}