Commit 5d639679 authored by Nico Schallehn's avatar Nico Schallehn

test

parent dddae4fe
<?php
<?php include("../api.class.php");
if(isset($_POST["anmelden"])){
if(!(strlen($_POST["api-key"])==10)){
$API = new MediaDBAPI();
if($API->APIinit($_POST["api-key"])){
$ErrorBox = '<div class="alert alert-success">'.PHP_EOL.
'<strong>Fehler!</strong> Alles Gut!'.PHP_EOL.
'</div>'.PHP_EOL;
}
else {
$ErrorBox = '<div class="alert alert-danger">'.PHP_EOL.
'<strong>Fehler!</strong> Die Angegebene API-Key '.$_POST["api-key"].' ist ungültig!'.PHP_EOL.
'<strong>Fehler!</strong> '.$API->error(1002).PHP_EOL.
'</div>'.PHP_EOL;
}
}
?>
......
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