summaryrefslogtreecommitdiff
path: root/public_html/setup.php
diff options
context:
space:
mode:
authorHorus32014-09-18 16:40:44 +0200
committerHorus32014-09-18 16:40:44 +0200
commit11d8a116c70cd5eb49edb8afce34a0aaac49f35e (patch)
treec94e0be77677e77e6f0c3131c0e8a4810471013f /public_html/setup.php
parentf39735adc85901a3a2db83d16334ffff66960f65 (diff)
downloadvfs-11d8a116c70cd5eb49edb8afce34a0aaac49f35e.tar.gz
setup.php
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');