<?php
if(isset($_SESSION["admin"]["admin"]) && $_SESSION["admin"]["admin"]=="Yes"){
	redirect("?src=Promote&page_id=users");
}
if($_POST){
	if($_POST["Password"]==$LinksDetails["settingPass"]){
		$_SESSION["admin"]["admin"]="Yes";
		redirect("?src=Promote&page_id=users");
	}
}
?>
<form class="form-signin form-horizontal" method="post">
    <div class="top-bar">
      <h3><i class="icon-leaf"></i> Avocado<b>Panel</b></h3>
    </div>
    <div class="well no-padding">

      <div class="control-group">
        <label class="control-label" for="inputUsername"><i class="icon-key"></i></label>
        <div class="controls">
          <input type="password" id="inputUsername" name="Password" placeholder="Password">
        </div>
      </div>

    <div class="padding">
      <button class="btn btn-primary" type="submit">Continue</button>
      </div>
    </div>
</form>