Commit 481590de authored by Nico Schallehn's avatar Nico Schallehn

test

parent b6b97a68
...@@ -12,7 +12,7 @@ class MediaDBViewerAPI{ ...@@ -12,7 +12,7 @@ class MediaDBViewerAPI{
function APIinit($KEY) { function APIinit($KEY) {
if(isset($KEY) AND strlen($KEY) == API_KEY_LEN){ if(isset($KEY) AND strlen($KEY) == API_KEY_LEN){
if ($db = new SQLite3(API_KEY_DB, SQLITE3_OPEN_READONLY)) { if ($db = new SQLite3(API_KEY_DB)) {
$result = $db->query('select * from Keys WHERE Schuessel = '.$KEY); $result = $db->query('select * from Keys WHERE Schuessel = '.$KEY);
if($result != null){ if($result != null){
......
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