-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·51 lines (36 loc) · 910 Bytes
/
index.php
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
<?php
include("cgi-bin/lib/config.php");
$config_obj = new config();
$CONFIG = $config_obj->get_config_file();
$page = isset($_GET["pg"]) ? $_GET["pg"] : '';
//Go to the page that was selected
if($page == "home" || $page == ""){
include("./cgi-bin/home.php");
}elseif($page == "family_origin"){
include("./cgi-bin/family_origin.php");
}
elseif($page == "family_history"){
include("./cgi-bin/family_history.php");
}
elseif($page == "family_tree"){
include("./cgi-bin/family_tree.php");
}
elseif($page == "profile"){
include("./cgi-bin/profile.php");
}
elseif($page == "forum"){
include("./cgi-bin/forum.php");
}
elseif($page == "about"){
include("./cgi-bin/about.php");
}
elseif($page == "profile_edit"){
include("./cgi-bin/profile_edit.php");
}
elseif($page == "upload_profile_image"){
include("./cgi-bin/upload_profile_image.php");
}
else{
include("./cgi-bin/not_found.php");
}
?>