summaryrefslogtreecommitdiff
path: root/public_html/setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/setup.php')
-rw-r--r--public_html/setup.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/public_html/setup.php b/public_html/setup.php
new file mode 100644
index 0000000..74b0e10
--- /dev/null
+++ b/public_html/setup.php
@@ -0,0 +1,12 @@
+<?php
+# init file to set up the database
+# TODO: pretty html
+
+$vfsdb = new vfsdb();
+$vfsdb->createTables();
+$vfsdb->close();
+
+echo "<p>Successfully created the database.";
+
+# rename this file to avoid setting up the tables twice
+rename(ABSPATH . 'setup.php', ABSPATH . '_setup.php');