( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
require_once("includes/inc_files.php");
if($session->is_logged_in()) {
redirect_to("index.php");
}
// Remember to give your form's submit tag a name="submit" attribute!
if (isset($_POST['submit'])) { // Form has been submitted.
$user_email = trim($_POST['user_email']);
$password = trim($_POST['password']);
if ((!$user_email == '') && (!$password == '')) {
$current_ip = $_SERVER['REMOTE_ADDR'];
User::check_login($user_email, $password, $current_ip);
} else {
$message = "<div class='text-white'><p>Please fill in all required fields.</p><a href='#' class='notification-close warning-notification-close'>x</a></div><!--.notification-box .notification-box-warning end-->";
}
} else { // Form has not been submitted.
$user_email = "";
$password = "";
}
include("../const.inc.php");
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Express How You Feel | Startag </title>
<link href="css/welcome.css" rel="stylesheet" type="text/css" media="all" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div class="wrap">
<!-- strat-contact-form -->
<div class="contact-form">
<img src="loginsplash.png" width="100%" style="max-width:400px; clear:both " ><!-- start-form -->
<form class="contact_form" action="login.php" method="post" name="contact_form">
<h1>Sign in</h1>
<ul>
<?php echo output_message($message); ?>
<li>
<input type="text" name="user_email" required="required" placeholder="Email/Phone" value="<?php echo htmlentities($user_email); ?>" />
<span class="form_hint">Enter a valid phone</span>
<p><img src="images/contact.png" alt=""></p>
</li>
<li>
<input type="password" class="password" name="password" required="required" placeholder="Password" value="<?php echo htmlentities($password); ?>" />
<p><img src="images/lock.png" alt=""></p>
</li>
</ul>
<input type="submit" name="submit" value="Sign In"/>
<div class="clear"></div>
<label class="checkbox"><input type="checkbox" name="checkbox" checked><i></i>Remember </label>
<div class="forgot">
<a href="reset_password.php">Password?</a>
</div>
<div class="clear"></div>
</form>
<!-- end-form -->
<!-- start-account -->
<div class="account">
<h2><a href="register.php">Don' have an account? Sign Up!</a></h2>
<div class="span"><a href="#"><img src="images/facebook.png" alt=""/><i>Sign In with Facebook</i><div class="clear"></div></a></div>
<div class="span1"><a href="#"><img src="images/twitter.png" alt=""/><i>Sign In with Twitter</i><div class="clear"></div></a></div>
<div class="span2"><a href="#"><img src="images/gplus.png" alt=""/><i>Sign In with Google+</i><div class="clear"></div></a></div>
</div>
<!-- end-account -->
<div class="clear"></div>
</div>
<!-- end-contact-form -->
<div class="footer">
<p>Watch How Startag Works | <a target="_new" style="color:#FC0" href="https://www.youtube.com/watch?v=BiKHaxfs9i8">Video</a></p>
</div>
</div>
</body>
</html>