Location: PHPKode > projects > Arab Cart > arabCart/admincp/index.php
<?php
/*
  ArabCart, Free E-Commerce Solutions
  http://www.arabcart.info

  Copyright (c) 2005 Mhd Zaher Ghaibeh

  Released under the GNU General Public License
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
  USA.
*/


session_start();

include("../includes/lang-eng.php");

echo('

<html>

<head>

<title>Arab-Bazar Web Control Panel</title>

<meta http-equiv="Content-Type" content="text/html; charset='.charset.'">');



if( (isset($admin))|| (isset($upass)))

{

	echo('<meta http-equiv="Refresh" content="0; URL=/ammar/admincp/admin.php?'.$PHPSESSID.'">');

}

echo('

<link rel="stylesheet" href="../style/style.css" type="text/css">

<script language="javascript">

function check()

{

	if((document.myForm.usrname.value==" ")||(this.myForm.usrname.value==""))

	{

		alert("you miss the user name");

		return false;

	}

	else

		if((this.myForm.upassword.value==" ")||(this.myForm.upassword.value==""))

	{

		alert("you miss the password");

		return false;

	}



}

</script>

</head>

<body>

<div align="center">

	<br><br>

	<form name="myForm" action="cpanel.php?SID='.$PHPSESSID.'" method="post" onsubmit="return check();">

	<table width="50%" border="1" class="border">

		<tr><td class="border">

		<table border="0" width="100%" id="table1" cellpadding="5" cellspacing="0" class="grand">

	<caption>Please Provide your User Name and Password To Login </caption>

		<tr>

			<td><b>User Name</b></td>

			<td><input type="text" name="usrname" size="46" style="font-weight: 700"></td>

		</tr>

		<tr>

			<td><b>Password</b></td>

			<td><input type="password" name="upassword" size="46" style="font-weight: 700"></td>

		</tr>

		<tr>

			<td>&nbsp;</td>

			<td>

			<input type="submit" value="LOGIN" name="B1"></td>

		</tr>

	</table>

	</td></tr>

	</table>

	</form>

</div>



</body>

</html>

');

?>
Return current item: Arab Cart