$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();
}
$thisday = date("l - F j, Y");
$ProjID = $_GET['ProjID'];
$ProjCon = $_GET['ProjCon'];
if($ProjID != ""){
$ProjPage = "http://ecosmartinc.com/ecos/com/com1_project.php?usrn=$usrn&ID=$ProjID";
}elseif($ProjCon != ""){
$ProjPage = "http://ecosmartinc.com/ecos/com/com1_project_new.php?usrn=$usrn&ProjCon=$ProjCon";
}else{
$ProjPage = "http://ecosmartinc.com/ecos/com/com1_projects.php?usrn=$usrn";
}
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_website', $dbcnx);
$ok = @mysql_query("SELECT first_name,last_name,psw_rd FROM psw WHERE usrn='$usrn'");
if (!$ok) {
echo 'Could not retrieve Rep Name: ' . mysql_error();
exit;
}
$rowa = mysql_fetch_array($ok);
$repname1 = $rowa[0];
$repname2 = $rowa[1];
$reg = $rowa[2];
?>
|
Eco-$mart, Inc. On-line Administration
|
©2007 - Data Base Interface - Custom Built at:
|