Commit 2e31ef59 authored by Nico Schallehn's avatar Nico Schallehn

" eingefügt

parent 0060d1f0
...@@ -13,8 +13,7 @@ class MediaDBViewerAPI{ ...@@ -13,8 +13,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)) { 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.'"');
echo 'select * from Keys WHERE Schuessel = '.$KEY;
if($entry['Schluessel'] != null){ if($entry['Schluessel'] != null){
$entry = $result->fetchArray(); $entry = $result->fetchArray();
$this->DB_Server = $entry['Server']; $this->DB_Server = $entry['Server'];
......
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