Commit 8a937e3c authored by Nico Schallehn's avatar Nico Schallehn

test

parent 14f2d4be
...@@ -14,11 +14,13 @@ if((isset($_SESSION['api-key']) OR (isset($_COOKIE['api-key']) AND isset($_COOKI ...@@ -14,11 +14,13 @@ if((isset($_SESSION['api-key']) OR (isset($_COOKIE['api-key']) AND isset($_COOKI
if($dologin){ if($dologin){
$API = new MediaDBAPI (); $API = new MediaDBAPI ();
if (!$API->APIinit($_SESSION['api-key'])) { if (!$API->APIinit($_SESSION['api-key'])) {
header('location: /'); //header('location: /');
echo"1";
} }
} }
}else{ }else{
header('location: /'); //header('location: /');
echo"2";
} }
?><!--A Design by W3layouts ?><!--A Design by W3layouts
......
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