-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
100 lines (72 loc) · 2.86 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
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
<?php
/*************************************************************************************
Created by G. Papaioannou
You can contact with me at [email protected]
Paradox Interactive (c) 2011,Greece
http://www.paradoxinteractive.gr
**************************************************************************************/
session_start();
include_once 'includes/config.php';
include_once 'includes/functions.php';
include_once 'translations/'.$g_language;
include_once 'includes/login.php';
global $LoginMsg;
$LoginMsg = getTranslationString('Please write your username and password to login.');
if ($_POST['submittedlogform']=='yes') {
OpenDB();
if (check_login() ) {
header( 'Location: home.php' ) ;
}
CloseDB();
}
?>
<!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">
<title>Paradox Interactive, ADManager Login Page</title>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link href="css/styleform.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">
<div id="top-menu">
<h1><a href="index.php"></a></h1>
<div class="clear" ></div>
</div>
</div>
<?php include 'includes/header.php' ?>
<div id="content">
<div id="content-wrap">
<div class="welcome">
<h3><?php getTranslation('Welcome to our website!') ?></h3>
<p></p>
<p><?php echo $LoginMsg ?></p>
</div>
<div class="cols">
<div id="login-form">
<form action="index.php" method="post">
<input type="hidden" id="submittedlogform" name="submittedlogform" value="yes" />
<fieldset>
<legend>Log in</legend>
<label for="login"><?php getTranslation('user') ?></label>
<input type="text" id="login_name" name="login_name"/>
<div class="clear"></div>
<label for="password"><?php getTranslation('password') ?></label>
<input type="password" id="login_pass" name="login_pass"/>
<div class="clear"></div>
<label for="remember_me" style="padding: 0;"><?php getTranslation('password') ?></label>
<input type="checkbox" id="remember_me" style="position: relative; top: 3px; margin: 0; " name="remember_me"/>
<div class="clear"></div>
<br />
<input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="Log in"/>
</fieldset>
</form>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php include 'includes/footer.php' ?>
</body>
</html>