1
function Login($Email, $Password) {
    global $DBConnection;
    if ((isset($UserName) && !empty($UserName)) || (isset($Password) && !empty($Password))) {
        $Email = addslashes(htmlspecialchars(strip_tags($Email)));
        if ($DBConnection->row("select * from db_Users where Users_Email = '".$Email."' and Users_Password = '".$Password."'") <= 0) {
            return "FAILED";
        }
        else {
            $UserLogin = $DBConnection->object("select * from db_Users where Users_Email = '".$Email."' and Users_Password = '".$Password."'");
            $_SESSION['UserLogin'] = true;
            $_SESSION['UserID'] = $UserLogin->Users_ID;
            return "SUCCESS";
        }
    }
    else {
        return "ERROR";
    }
}

私の機能は、webservice 部分でこれです.sessionid を取得する必要があります..soapobject を使用しています。前もって感謝します...

4

0 に答える 0