forked from MrTechno84/master-login-system
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfooter.php
More file actions
121 lines (99 loc) · 4.18 KB
/
footer.php
File metadata and controls
121 lines (99 loc) · 4.18 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
/**
* MASTER LOGIN SYSTEM
* @author Mihai Ionut Vilcu (ionutvmi@gmail.com)
* June 2013
*
*/
if(!isset($_SESSION['token']))
$_SESSION['token'] = sha1(rand()); // random token
echo "
<hr>
<div class='modal hide' id='loginModal'>
<div class='modal-header'>
<button type='button' class='close' data-dismiss='modal'>✕</button>
<h3>Login</h3>
</div>
<div class='modal-body' style='text-align:center;'>
<div class='row-fluid'>
<div class='span10 offset1'>
<div id='modalTab'>
<div class='tab-content'>
<div class='tab-pane active' id='login'>
<form method='post' action='$set->url/login.php' name='login_form'>
<p><input type='text' class='span12' name='name' placeholder='Username'></p>
<p><input type='password' class='span12' name='password' placeholder='Password'></p>
<p>
<input class='pull-left' type='checkbox' name='r' value='1' id='rm'>
<label class='pull-left' for='rm'>Remember Me</label>
</p>
<div class='clearfix'></div>
<input type='hidden' name='token' value='".$_SESSION['token']."'>
<p><button type='submit' class='btn btn-primary'>Sign in</button>
<a href='#forgotpassword' data-toggle='tab'>Forgot Password?</a>
</p>
</form>
</div>
<div class='tab-pane fade' id='forgotpassword'>
<form method='post' action='$set->url/login.php?forget=1' name='forgot_password'>
<p>Hey this stuff happens, send us your email and we'll reset it for you!</p>
<input type='text' class='span12' name='email' placeholder='Email'>
<p><button type='submit' class='btn btn-primary'>Submit</button>
<input type='hidden' name='token' value='".$_SESSION['token']."'>
<a href='#login' data-toggle='tab'>Wait, I remember it now!</a>
</p>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
?>
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="span2" style="width: 15%;">
<ul class="unstyled">
<li>Company Name<li>
<li><a href="#">About us</a></li>
</ul>
</div>
<div class="span2" style="width: 15%;">
<ul class="unstyled">
<li>Links<li>
<li><a href="<?php echo $set->url;?>/contact.php">Contact</a></li>
</ul>
</div>
</div>
</div>
<hr>
<div class="row-fluid">
<div class="span12">
<div class="span8">
<a href="#">Terms of Service</a>
<a href="#">Privacy</a>
<a href="#">Security</a>
</div>
<div class="span4">
<p class="muted pull-right">© 2013 Company Name. All rights reserved</p>
</div>
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php echo $set->url;?>/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="<?php echo $set->url;?>/js/vendor/bootstrap.min.js"></script>
<!-- Validate Plugin -->
<script src="<?php echo $set->url;?>/js/vendor/jquery.validate.min.js"></script>
<script src="<?php echo $set->url;?>/js/main.js"></script>
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>