( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?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 = "";
}
?>
<?php require_once("includes/templates/header.tpl"); ?>
<script type="text/javascript">
var mimiServer = "http://thebrand.co.ke/real/";
var mimiServer = "http://localhost/mimix/real/";
function JoinExtraX() {
var form = $("#loginForm");
var formData = form.serialize();
var user_name = $("#user_name", form).val();
if($.trim($("#user_name").val()).length==0)
{
alert("Please Enter Phone");
return;
}
$('#msg2').html("Subscribing...");
$.get(mimiServer+'service/account/account.php?soon=trt&tel='+user_name+'', formData, function(data) {
var returnValue = data;
$('#msg2').html("<span style='color:#FC0'>Thank you for Joining .</span> <br>We shall notify you.");
}, 'html');
}
</script>
<br>
<br>
<br>
<div class="container fullrc">
<section id="main">
<?php echo output_message($message); ?>
<center>
<form method="get" name="loginForm" id="loginForm">
<input type="hidden" id="doLogin" value="Login">
<div class=" text-white text-center " id="msg2" style=" width:350px; margin-top:250px" > </div>
<div class="input-group input-group-lg m-t-lg" style=" width:350px; margin-top:10px;" id="one"> <input class="form-control input-lg no-border text-sm" style="font-size:12px" placeholder="Enter Phone to be notified " type="text" id="user_name"><span class="input-group-addon lt no-border bg-warning dk" onClick="JoinExtraX();"> <i class="icon-arrow-right"></i></span>
</div>
</form>
</center>
<div class="clear"></div><!--.clear end-->
</section><!--#main end-->
<div class="clear"></div>
</div><!--.container end-->
<?php require_once("includes/templates/footer.tpl"); ?>