aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus32014-09-25 10:34:18 +0200
committerHorus32014-09-25 10:34:18 +0200
commit3c8bee64793332bf3fda6af3c57d881636ec35d6 (patch)
tree6b920dce09fbb085dde573387f4f2afa04e9d216
parent1fe76ba743a3418da9a0883b29756d442384d0bc (diff)
parent9032106051de1fa29903bc8da6b7104bea934c8c (diff)
downloadjungegemeinde-3c8bee64793332bf3fda6af3c57d881636ec35d6.tar.gz
Merge branch 'master' of git.iamfabulous.de:jungegemeinde
-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;