コード例 #1
0
    }
}
//msg_updateuser
if ($action == msg_updateuser) {
    if (application_userisvalid()) {
        $usr = application_gevaliduser();
        if ($usr != null) {
            if ($usr->itemid == $userid) {
                $uf = new UserFactory();
                if ($usr->itemname != $username) {
                    if ($uf->userNameExists($username)) {
                        echo application_getMessage(msg_failed);
                        exit;
                    }
                }
                if ($uf->updateUser($userid, $username, $lat, $lon, $zoomlevel, $htmltext, $tagname, $email, $picture)) {
                    $usr = $uf->getUserById($userid);
                    if ($usr != null) {
                        application_activateuser($usr);
                        echo application_getMessage($usr);
                    }
                } else {
                    echo application_getMessage(msg_failed);
                }
            }
        }
    }
}
//msg_changepassword
if ($action == msg_changepassword) {
    if (application_userisvalid()) {