<?php
include '/config/config_ucenter.php';
include "/uc_client/client.php";
if($_GET['act']=='log'){
list($uid, $username, $password, $email) = uc_user_login($_POST['username'], $_POST['password']);
if($uid > 0) {
echo '登录成功';
} elseif($uid == -1) {
echo '用户不存在,或者被删除';
} elseif($uid == -2) {
echo '密码错';
} else {
echo '未定义';
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<form action="?act=log" method="post">
Username:<input type="text" name="username" />
password:<input type="password" name="password" />
<input type="submit" value="submit" />
</form>
</body>
</html>