execute ("select * from admin where status=1 and name like '".$_POST["username"]."' and pwd like '".$_POST["password"]."' and type=2"); if ($com->EOF) { echo ""; } else { if ($com->fields["id"]!="") { $_SESSION["uid"]=$com->fields["id"]; $_SESSION["uname"]=$com->fields["name"]; $_SESSION["utype"]=$com->fields["type"]; if ($_SESSION["REF"]!="") { $ref=$_SESSION["REF"]; $_SESSION["REF"]=""; header("Location: ".$ref); } } } } if ($_GET["action"]=="Logout") { $_SESSION["uid"]=""; $_SESSION["uname"]=""; $_SESSION["utype"]=""; header("Location: ".$SURL."html\index.php"); } ?> <?=$WebSiteTitle;?>
   
 
   
execute($query); if ($com->RecordCount()>0) { ?>

 
Visitors :
"; } // output hits count image ?>