<?php
session_start();
if ( isset($_POST['username']) && isset($_POST['username']) )
{
include "config.php";
if ( ($_POST['username'] == $adminuser) && ($_POST['username'] == $adminpass) )
{
$_SESSION['user'] = $_POST['username'];
header ("Location: home.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<title>Login - ورود به مدیریت</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="fa" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<meta name="description" content="لینک,کوتاه کننده لینک,پی لینک,پرشین لینک,کوتاه,ساب دامین,link,plink,plink.ir,persian,url,short url,کوتاه کننده آدرس,url shortener,آدرس سایت" />
<meta name="keywords" content="لینک,کوتاه کننده لینک,پی لینک,پرشین لینک,کوتاه,ساب دامین,link,plink,plink.ir,persian,url,short url,کوتاه کننده آدرس,url shortener,آدرس سایت" />
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<form name="login-form" class="login-form" action="" method="post">
<div class="header">
<h1>ورود به مدیریت</h1>
<span>برای ورود به مدیریت، اطلاعات کاربری خود را درج نمایید :</span>
</div>
<div class="content">
<input name="email" type="text" dir="ltr" class="input username" placeholder="Email or Username" />
<div class="user-icon"></div>
<input name="password" type="password" dir="ltr" class="input password" placeholder="Password" />
<div class="pass-icon"></div>
<br/><br/>
<input type="submit" name="submit" value="ورود" class="button" />
</div>
</form>
</div>
<div class="gradient"></div>
</body>
</html>