示例#1
0
<?php

require "class.loginsys.php";
$LS = new LoginSystem();
$LS->init();
if (isset($_POST['act_login'])) {
    $user = $_POST['login'];
    $pass = $_POST['pass'];
    if ($user == "" || $pass == "") {
        $msg = array("Error", "Username / Password Wrong !");
    } else {
        if (!$LS->login($user, $pass)) {
            $msg = array("Error", "Username / Password Wrong !");
        }
    }
}
?>
<html>
 <head>
  <title>Log In</title>
 </head>
 <body>
  <div class="content">
   <h2>Log In</h2>
   <form action="login.php" method="POST" style="margin:0px auto;display:table;">
    <label>Username / E-Mail</label><br/>
    <input name="login" type="text"/><br/>
    <label>Password</label><br/>
    <input name="pass" type="password"/><br/>
    <label>
     <input type="checkbox" name="remember_me"/> Remember Me