$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);
$ok = @mysql_query("SELECT pswpsw FROM psw WHERE usrn='$usrn'");
if (!$ok) {
echo 'Security Check Error' . mysql_error();
exit;
}
$rowa = mysql_fetch_array($ok);
$pswchck = $rowa['pswpsw'];
if($pswchck != 'All'){
echo("Sorry. You have not been authorized to start New Agent Profiles.");
exit();
}
?>
Eco-$mart Administration
Agent Profile
New Agent Profile
| All fields are required.
|
Help
|