<?php
include('../includes/cp-ar.php');
if(isset($_COOKIE['userid']) AND isset($_COOKIE['pass'])){
echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html dir='rtl' xmlns='http://www.w3.org/1999/xhtml' xml:lang='ar' lang='ar'>

<head>

<meta http-equiv='Content-Type' content='text/html; charset=windows-1256' />
<META HTTP-EQUIV='refresh' CONTENT='1; URL=stats.php' />
<link rel='stylesheet' href='style.css' type='text/css' />
<title>لوحة التحكم</title>

</head>

<body>

<br /><br /><br />
".$LANGAUGE_CP[2]."
<br /><br /><br />

</body>
</html>";

}else{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="rtl" xmlns="http://www.w3.org/1999/xhtml" xml:lang="ar" lang="ar">

<head>

<meta http-equiv='Content-Type' content='text/html; charset=windows-1256' />
<link rel="stylesheet" href="style.css" type="text/css" />
<title><?php echo $LANGAUGE_CP[1];?></title>

</head>

<body>
<br /><br /><br />

<div id="logindivx">
<div class="divx">
        <form name="memberLogin" action="admin.php" method="post">
<table border=0>
<tr>
<td><?php echo $LANGAUGE_CP[3];?></td>
<td><input type="text" name="user" class="txtBox" /></td>
</tr>

<tr>
<td><?php echo $LANGAUGE_CP[4];?></td>
<td><input type="password" name="pass" class="txtBox" /></td>
</tr>

<tr>
<td colspan=2 align="center"><br /><input type="submit" src="images/b.jpg" name="login" value="" class="login" /></td>
</tr>

</table>

</form>
</div>
</div>

</body>
</html>
<?php
}
?>