-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
47 lines (42 loc) · 1.78 KB
/
index.php
File metadata and controls
47 lines (42 loc) · 1.78 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
<?php
include_once("lib/settings/config.php");
$title = "HELPME";
// check with cookie if is firsttime user if yes redirect to first_visit.php
$check = User::showNotif($_SESSION['id']);
try {
if(!empty($_POST)) {
Melding::makeHelpmeMelding($_POST['long'],$_POST['lat']);
}
}
catch(Exception $e){
}
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<?php include("lib/includes/head.inc.php"); ?>
<title><?php echo $title ?></title>
</head>
<body>
<div class="canvas">
<?php include_once("lib/includes/nav.inc.php"); ?>
<?php if($check = true): ?>
<?php include_once("lib/includes/notif.inc.php"); ?>
<?php endif; ?>
<img src="" alt="">
<div class="buttons">
<form class="form__main__helpmij" action="" method="post">
<input type="hidden" class="form__melding__long" name="long">
<input type="hidden" class="form__melding__lat" name="lat">
<button class="buttons__main__helpmij button" type="submit" name="submit">HELP MIJ<img src="images/helpmij.svg" alt="helpmij"></button>
</form>
<a href="map.php" class="buttons__main__hulpbieden" href="#">HULP BIEDEN <img src="images/hulpBieden.svg" alt="hulpbieden"></a>
<a class="buttons__main__melden" href="melding.php">MELD ONGEVAL <img src="images/meldOngeval.svg" alt="ongeval melden"></a>
<a class="buttons__main__ooggetuigen" href="ooggetuigen.php">OOGGETUIGEN <img src="images/ooggetuigen.svg" alt="ooggetuigen"></a>
</div>
<?php include_once("lib/includes/footer.inc.php"); ?>
</div>
</body>
</html>