示例#1
0
/**
 * 移交权限
 * @return bool|int 成功返回1 其余返回0
 */
function deliver_privilege()
{
    if (!isset($_POST['now_uid']) || !isset($_POST['next_uid'])) {
        return 0;
    } else {
        $now_uid = $_POST['now_uid'];
        $next_uid = $_POST['next_uid'];
    }
    $userObj = new UserClass();
    return $userObj->deliver_privilege($now_uid, $next_uid);
}