require("config.php");
require (rootdir()."scripts/main.php");
$domain = "@".get_domain_name();
if (strlen($_POST["username"]) > 0 && strlen($_POST["password"]) > 0)
{
$msg = loginUser($_POST["username"], $_POST["password"]);
}
elseif ($_POST["Submit"] == "Send")
{
reset_password($_POST["email"]);
$msg[] = "Username and password sent.";
}
if (isset($_GET["logout"]))
{
logout($_COOKIE["cid"]);
}
elseif (strlen($_COOKIE["cid"])>0)
{
header("Location: admin/manage.php");
}
?>
Ysurvey Login
showMsg($msg);
?>