public function deleteUserForced($uid)
    {
        $return['error'] = true;

        $query = "DELETE FROM {$this->config->table_users} WHERE id = :uid";
        $query_prepared = $this->dbh->prepare($query);

        if (!$query_prepared->execute(['uid' => $uid])) {
            $return['message'] = $this->__lang("system_error") . " #05";

            return $return;
        }

        $query = "DELETE FROM {$this->config->table_sessions} WHERE uid = :uid";
        $query_prepared = $this->dbh->prepare($query);

        if (!$query_prepared->execute(['uid' => $uid])) {
            $return['message'] = $this->__lang("system_error") . " #06";

            return $return;
        }

        $query = "DELETE FROM {$this->config->table_requests} WHERE uid = :uid";
        $query_prepared = $this->dbh->prepare($query);

        if (!$query_prepared->execute(['uid' => $uid])) {
            $return['message'] = $this->__lang("system_error") . " #07";

            return $return;
        }

        $return['error'] = false;
        $return['message'] = $this->__lang("account_deleted");

        return $return;
    }
public function deleteUserForced($uid)
    {
        $return['error'] = true;

        $query = "DELETE FROM {$this->config->table_users} WHERE id = :uid";
        $query_prepared = $this->dbh->prepare($query);

        if (!$query_prepared->execute(['uid' => $uid])) {
            $return['message'] = $this->__lang("system_error") . " #05";

            return $return;
        }

        $query = "DELETE FROM {$this->config->table_sessions} WHERE uid = :uid";
        $query_prepared = $this->dbh->prepare($query);

        if (!$query_prepared->execute(['uid' => $uid])) {
            $return['message'] = $this->__lang("system_error") . " #06";

            return $return;
        }

        $query = "DELETE FROM {$this->config->table_requests} WHERE uid = :uid";
        $query_prepared = $this->dbh->prepare($query);

        if (!$query_prepared->execute(['uid' => $uid])) {
            $return['message'] = $this->__lang("system_error") . " #07";

            return $return;
        }

        $return['error'] = false;
        $return['message'] = $this->__lang("account_deleted");

        return $return;
    }
public function deleteUserForced ( $ uid ) { $ return [ 'error' ] = true ; $ query = "DELETE FROM {$this->config->table_users} WHERE id = :uid" ; $ query_prepared = $ this -> dbh -> prepare ( $ query ) ; if ( ! $ query_prepared -> execute ( [ 'uid' => $ uid ] ) ) { $ return [ 'message' ] = $ this -> __lang ( "system_error" ) . " #05" ; return $ return ; } $ query = "DELETE FROM {$this->config->table_sessions} WHERE uid = :uid" ; $ query_prepared = $ this -> dbh -> prepare ( $ query ) ; if ( ! $ query_prepared -> execute ( [ 'uid' => $ uid ] ) ) { $ return [ 'message' ] = $ this -> __lang ( "system_error" ) . " #06" ; return $ return ; } $ query = "DELETE FROM {$this->config->table_requests} WHERE uid = :uid" ; $ query_prepared = $ this -> dbh -> prepare ( $ query ) ; if ( ! $ query_prepared -> execute ( [ 'uid' => $ uid ] ) ) { $ return [ 'message' ] = $ this -> __lang ( "system_error" ) . " #07" ; return $ return ; } $ return [ 'error' ] = false ; $ return [ 'message' ] = $ this -> __lang ( "account_deleted" ) ; return $ return ; }
Force delete user without password or captcha verification.

@param $uid
@return mixed
Force delete user without password or captcha verification .