Commit 1fbef097 authored by Nico Schallehn's avatar Nico Schallehn

Webapp in Api hinzugefügt

parent 59a5131c
......@@ -49,6 +49,7 @@ class MediaDBAPI{
private $StatiViews = array();
private $Update = FALSE;
private $DebugOutput = FALSE;
public $webapp = FALSE;
public $DB_Objekt;
......@@ -97,6 +98,7 @@ class MediaDBAPI{
$this->Update = ($value["Update"] OR $this->Update);
$this->DebugOutput = ($value["DebugO"] OR $this->Update);
$this->webapp = ($value["webapp"] OR $this->webapp);
}
}
}
......
......@@ -3,7 +3,7 @@ include ("./api.class.php");
if (isset ( $_POST ["anmelden"] )) {
$API = new MediaDBAPI ();
if ($API->APIinit($_POST["api-key"])) {
if($API->API_GetRightsLevel()>=10){
if($API->webapp){
//$ErrorBox = '<div class="alert alert-success">' . PHP_EOL . '<strong>Fehler!</strong> Alles Gut!' . PHP_EOL . '</div>' . PHP_EOL;
// Session Start bzw. Cookie setzen!!
$_SESSION['api-key'] = $_POST["api-key"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment