/
admin.php
84 lines (70 loc) · 2.69 KB
/
admin.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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
<title>Login liveConCMS</title>
<link rel="stylesheet" type="text/css" href="liveConCMS/skins/reset.css">
<link rel="stylesheet" type="text/css" href="liveConCMS/skins/styles.php">
<script type="text/javascript" src="liveConCMS/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="liveConCMS/js/jquery-ui.1.8.11-min.js"></script>
<script type="text/javascript">
//Function to center a object on screen.
(function($){
$.fn.extend({
center: function () {
return this.each(function() {
var top = ($(window).height() - $(this).outerHeight()) / 2;
var left = ($(window).width() - $(this).outerWidth()) / 2;
$(this).css({position:'absolute', margin:0, top: (top > 0 ? top : 0)+'px', left: (left > 0 ? left : 0)+'px'});
});
}
});
})(jQuery);
$(document).ready(function(){
//Center .bodywrapper
$('.bodywrapper').center();
//Execute UI button layout
$("input:submit, input:reset").button();
});
</script>
</head>
<body id="lc-login" class="lc-body">
<div class="bodywrapper">
<div class="ui-widget ui-widget-content ui-corner-all ui-box-shadow" id="lc-loginbox">
<span class="ui-widget-header ui-corner-top ui-helper-clearfix"><h3>Login</h3></span>
<div class="ui-widget-content">
<p>Please enter your username and password to login.</p>
<?PHP
if (isset($_GET['badlogin']))
{
echo "
<div class='ui-state-error ui-corner-all'>
<span class='ui-icon ui-icon-alert'></span>
<span class='ui-state-error-text'>Wrong username or password.</span>
</div>
";
}
?>
<form method='post' action='liveConCMS/liveconcms_login.php'>
<fieldset>
<b>Username:</b>
<input name='username' type='text' />
</fieldset>
<fieldset>
<b>Password:</b>
<input name='password' type='password' />
</fieldset>
<fieldset>
<input name='submit' type='submit' value='Login'>
<input name='reset' type='reset' value='Reset'>
</fieldset>
</form>
</div>
</div>
<span class="lc-copyright">
<p>liveCon CMS by <a href="http://www.sthlmwebb.se" target="_blank">STHLM Webbproduktion</a></p>
<p>© Copyright 2012 STHLM Webbproduktion AB</p>
</span>
</div>
</body>
</html>