aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/setup.php
diff options
context:
space:
mode:
authorHorus32014-09-23 20:16:17 +0200
committerHorus32014-09-23 20:16:17 +0200
commit790524e3dee3ddcf5a8250adc8b38853d0014c9f (patch)
tree2965207a742727b3a10eb0b32dbca5c61b9ef372 /bootstrap/setup.php
parent3c94eb3f608f9bf0dc8d19583abe273b3a67e5ff (diff)
downloadjungegemeinde-790524e3dee3ddcf5a8250adc8b38853d0014c9f.tar.gz
rebuild with bootstrap
Diffstat (limited to 'bootstrap/setup.php')
-rw-r--r--bootstrap/setup.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap/setup.php b/bootstrap/setup.php
new file mode 100644
index 0000000..b984253
--- /dev/null
+++ b/bootstrap/setup.php
@@ -0,0 +1,12 @@
+<?php
+# init file to set up the database
+# TODO: pretty html
+
+$db = new db();
+$db->createTables();
+$db->close();
+
+echo "<p>Successfully created the database.</p>";
+
+# rename this file to avoid setting up the tables twice
+rename(ABSPATH . 'setup.php', ABSPATH . '_setup.php');