aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorroot2014-09-25 10:32:11 +0200
committerroot2014-09-25 10:32:11 +0200
commit9032106051de1fa29903bc8da6b7104bea934c8c (patch)
tree6056f3bf75d423f135d79d39f53e73834b22a109 /bootstrap
parent2036626b560f22efd59673187a2de3b1319fcf8a (diff)
downloadjungegemeinde-9032106051de1fa29903bc8da6b7104bea934c8c.tar.gz
setup.php
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/setup.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/bootstrap/setup.php b/bootstrap/setup.php
new file mode 100755
index 0000000..018781d
--- /dev/null
+++ b/bootstrap/setup.php
@@ -0,0 +1,13 @@
+<?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');
+exit;