-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
46 lines (45 loc) · 1.4 KB
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WebRocks - Database of Rocks</title>
<meta name="author" content="elidioxg" >
<meta name="keywords"
content="geology, geoscience, software, open, source, rock, rocks, database">
</head>
<body>
<table>
<tr>
<td colspan="2">
<?php include './public_html/header.php'; ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
$rock_type = $_SESSION['rock_type'];
echo "Rock Session: $rock_type";
switch ($rock_type) {
case 'magmatic':
include './public_html/index_magmatic.php';
break;
case 'metamorphic':
include './public_html/index_metamorphic.php';
break;
default:
break;
}
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php include './public_html/footer.php'; ?>
</td>
</tr>
</table>
<?php
// put your code here
?>
</body>
</html>