<?
require_once("cUser.class.php");
$usernamex = $_GET[usernamex];
$passwordx = $_GET[passwordx];
$logout = $_GET[logout];
$cUser = new cUser("config.cfg.php","myhost.tld");
if ($passwordx != "")
{
echo "Login in!: ".$cUser->Login($usernamex,$passwordx);
}else if ($logout != "1")
{
echo "Logged in?" . $cUser->CheckUser();
}else{
echo "Login Out! ".$cUser->Logout();
}
?>
|