diff --git a/admin/backups.php b/admin/backups.php
index 891b267..8940ff5 100644
--- a/admin/backups.php
+++ b/admin/backups.php
@@ -1,4 +1,4 @@
-
+
@@ -12,4 +12,4 @@
-
+
diff --git a/admin/commands.php b/admin/commands.php
index 1011f5c..5179d76 100644
--- a/admin/commands.php
+++ b/admin/commands.php
@@ -1,4 +1,4 @@
-
+
@@ -12,4 +12,4 @@
-
+
diff --git a/admin/common.php b/admin/common.php
index ee99f23..4ebbda8 100644
--- a/admin/common.php
+++ b/admin/common.php
@@ -19,8 +19,8 @@ function do_real_connect($hostname, $port, $username, $password)
$sqlitecloud = new SQLiteCloudClient();
$sqlitecloud->username = $username;
$sqlitecloud->password = $password;
- if (file_exists('assets/ca.pem')) {
- $sqlitecloud->tls_root_certificate = 'assets/ca.pem';
+ if (file_exists('./assets/ca.pem')) {
+ $sqlitecloud->tls_root_certificate = './assets/ca.pem';
}
$sqlitecloud->compression = false;
diff --git a/admin/connections.php b/admin/connections.php
index 543a99f..40e0527 100644
--- a/admin/connections.php
+++ b/admin/connections.php
@@ -1,4 +1,4 @@
-
+
@@ -12,4 +12,4 @@
-
+
diff --git a/admin/console.php b/admin/console.php
index d160e5b..327a4c2 100644
--- a/admin/console.php
+++ b/admin/console.php
@@ -1,4 +1,4 @@
-
+
@@ -34,4 +34,4 @@
global $jsinclude;
$jsinclude = "console.js";
?>
-
+
diff --git a/admin/console_action.php b/admin/console_action.php
index 9685f61..74c6970 100644
--- a/admin/console_action.php
+++ b/admin/console_action.php
@@ -2,8 +2,8 @@
use SQLiteCloud\SQLiteCloudRowset;
-include_once('auth.php');
-include_once('common.php');
+include_once(__DIR__ . '/auth.php');
+include_once(__DIR__ . '/common.php');
$data = json_decode(file_get_contents('php://input'), true);
$database = $data["database"];
diff --git a/admin/databases.php b/admin/databases.php
index f4865a0..96cf5fe 100644
--- a/admin/databases.php
+++ b/admin/databases.php
@@ -1,4 +1,4 @@
-
+
@@ -46,4 +46,4 @@ function on_column($value, $row, $col)
global $jsinclude;
$jsinclude = "upload.js";
?>
-
+
diff --git a/admin/download.php b/admin/download.php
index 57e4196..fe1a7f8 100644
--- a/admin/download.php
+++ b/admin/download.php
@@ -1,6 +1,6 @@
' . $jscript . '';
- }
- if (isset($jsinclude)) {
- echo '';
- }
- echo "\n";
- ?>
+ if (isset($jscript)) {
+ echo '';
+ }
+ if (isset($jsinclude)) {
+ echo '';
+ }
+ echo "\n";
+ ?>