-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate.php
More file actions
71 lines (62 loc) · 2.12 KB
/
template.php
File metadata and controls
71 lines (62 loc) · 2.12 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Web Security Commerce</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<base href="<?php echo BASENAME; ?>">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/layout.css">
<script src="js/modernizr-2.6.2.min.js"></script>
</head>
<body>
<header>
<h1><a href="index.php">Online Hack Commerce</a></h1>
<form id="search-form" method="get" action="search-products.php">
<input type="text" name="search" placeholder="search by product title">
<input type="submit" value="Search">
</form>
<?php if($user->isGuest): ?>
<form method="post" action="user-login.php">
<input type="text" name="email" placeholder="user-email@domain.com">
<input type="password" name="password" placeholder="My s3cr3t p4ssw0rD">
<input type="submit" value="login">
</form>
<?php else: ?>
<p>
Hi <strong><?php echo $user->email; ?></strong> -
<a href="user-logout.php"><i class="fa fa-user fa-lg"></i> Logout</a>
</p>
<?php endif; ?>
</header>
<?php if(isset($_GET['message'])): ?>
<div class="notice">
<p><?php echo base64_decode($_GET['message']); ?></p>
</div>
<?php endif; ?> <!-- ./notice -->
<?php if(Session::hasFlashMessage()): ?>
<div class="notice">
<p><?php echo Session::getFlashMessage(); ?></p>
</div>
<?php endif; ?> <!-- ./notice -->
<div id="module-wrapper" class="module">
<?php if(isset($module)): ?>
<?php echo utf8_encode($module); ?>
<?php endif; ?>
</div> <!-- ./module-wrapper -->
<footer>
© Vulnerable app for fun & no profit - Jose Mato
<div style="display:none">
<?php require_once 'test-ads.php'; ?>
</div>
</footer>
<script src="js/vendor/jquery-1.11.0.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>