/var/www/hkosl.com/e-ims/file_manager/login.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
<?php
require_once 'config.php';

// Is the user already logged in? Redirect him/her to the private page

if (($_SESSION['loginname']) && ($loggin == '1'))
{
header("Location: index.php");
exit;
}
require_once 
'function_login_block.php';
die_if_login_block();

if(isSet(
$_POST['loginname']))
{
$do_login true;

include_once 
'do_login.php';
}

?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>E-IMS</title>
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
</head>
<body style="background:#F0F0F0;border:none;">
    <div id="login_frame">
        <div class="login_title">E-IMS</div>
        <div class="login_subtitle">User Login</div>
        <?php
        
if(isSet($login_error))
        {
        echo 
'The submitted login info is incorrect.';
        }
        
?>
        <form name="login" method="post" action="login.php">
            <input type="text" name="loginname" style="background:url(images/username_icon.png) left no-repeat; padding: 2px 2px 2px 42px;">
            <input type="password" name="password" style="background:url(images/password_icon.png) left no-repeat; padding:2px 2px 2px 42px;">
            <div class="submit_btn">
                <input class="submit_btn" type="submit" value="Submit">
            </div>
        </form>
    </div>
</body>
</html>