aboutsummaryrefslogtreecommitdiff
path: root/_setup.php
blob: 8494d89f6ec6a36deb1df2cc9238be138bf6cc24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
# init file to set up the database
# rename this file in "setup.php"
# 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
if ( ! rename(ABSPATH . 'setup.php', ABSPATH . '_setup.php') )
	echo "Please remove setup.php from your webserver root directory.";
else
	echo "Renamed this file to '_setup.php'.";
exit;