-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
56 lines (38 loc) · 1.1 KB
/
install.php
File metadata and controls
56 lines (38 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
include 'libraries/bootstrap.inc.php';
// Confirm this is a fresh install.
GLOBAL $db;
if (!file_exists(DB_PATH))
{
if (!is_writable(dirname(DB_PATH)))
{
die(DB_PATH . ' is not writable. Unable to perform install.');
}
// Create the database and it's tables.
$db = new SQLite(DB_PATH);
// Interface tables.
installUser();
installSession();
// Dependencies.
installSource();
installAbility();
installSkill(); // Depends on ability.
installBackground(); // Depends on Source.
installBackgroundCharacteristics(); // Depends on Source, Background.
installCharacter();
installClass(); // Depends on ability, Source
installSubclass(); // Depends on Class, Source
installScript(); // Depends on Source.
installLanguage(); // Depends on Script, Source
installRace(); // Depends on Source
installSubrace(); // Depends on Race, Source
installPlayer();
installSpell();
installItem(); // Depends on Source.
installItemMagic();
installItemWeapon();
installItemArmor();
installItemDamage();
// installMonster(); // Depends on Source.
}
redirect('/');