$dnum = date(Ymd)*4;
$from = $_GET['fr'];
if($from == ""){
$from = $_POST['fr'];
}
if($from != $dnum){
echo("<<<<Restricted Area>>>>" .
"
Sorry, you must Log In to view this Page
");
exit();
}
$usrn = $_GET['usrn'];
if($usrn == ""){
$usrn = $_POST['usrn'];
}
if($usrn == ""){
echo("<<<<Restricted Area>>>>" .
"
Problem with your username. Please Log In again.
");
exit();
}
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_website', $dbcnx);
$passem = @mysql_query("SELECT ID,pswcon FROM psw WHERE usrn='$usrn'");
if (!$passem) {
die("Error checking password.
" . "Error: " . mysql_error(). "
");
}
$row = mysql_fetch_array($passem);
$pswcon = $row[1];
if($pswcon != 'All'){
echo("<<<<Restricted Area>>>>" .
"
Sorry, you must have clearance to view All Invoices
");
exit();
}
?>
Eco-$mart Invoices
All Invoices
©2006 - Data Base Interface - Custom Built at:
|