	<?php
	/*
	Hezecom Email Solution
	Author: Hezecom Technologies (http://hezecom.com) info@hezecom.net
	COPYRIGHT 2014 ALL RIGHTS RESERVED
	
	You must have purchased a valid license from CodeCanyon.com in order to have 
	access this file.

	You may only use this file according to the respective licensing terms 
	you agreed to when purchasing this item.
	*/
	if(!defined('VALID_DIR')) die('You are not allowed to execute this file directly');
	$errors = array();
	if(post('Logme')){ 
	if (post('username')==ADMIN_USERNAME and post('password')==ADMIN_PASSWORD) 
	{
	$_SESSION['admin_user'] = ADMIN_USERNAME;
	$_SESSION['admin_pwd'] = ADMIN_PASSWORD;
	send_to(htmlspecialchars($_SERVER['PHP_SELF']));
	}else{
	$errors[] = LANG_ADMIN_ERROR;
	}
}
?>
	
    <div class="col-lg-6">
	
    <form method="post" action="<?php htmlspecialchars($_SERVER['PHP_SELF']);?>" name="admin" class="form-signin" role="form" id="hezecomform">
    <div class="form-group">
	<h2 class="form-signin-heading"><?php echo LANG_ADMIN_LOGIN;?></h2>
    <?php form_errors($errors)?>
    </div>
    
    <div class="form-group">
    <input type="text" name="username" class="form-control"  placeholder="<?php echo LANG_ADMIN_USERNAME;?>" required>
    </div>
    <div class="form-group">
    <input type="password" name="password" class="form-control"  placeholder="<?php echo LANG_ADMIN_PASSWORD;?>" required>
    </div>
    
      <div class="controls">
	 <div class="col-md-8" style="padding:0;">
	 <input name="Logme" class="btn btn-primary btn-lg " type="submit" value="<?php echo LANG_ADMIN_BUTTON;?>">
	 </div>
	 <div class="col-md-4" style="padding:0;">
	 <div id="output"></div>
	 </div>
	 </div>

    </form>
    
    </div>
