src/OwpUsers.inc.php
public function updateUserAdminRights($userID, $is_admin = 0, $hide_ads = 0, $is_dev = 0)
    {
        $this->OwpDBMySQLi->query(
            "
            REPLACE INTO tbl_users_rights
            SET tbl_users_rights.userID = " . (int)$userID . ",
                tbl_users_rights.is_admin = " . (int)$is_admin . ",
                tbl_users_rights.hide_ads = " . (int)$hide_ads . ",
                tbl_users_rights.is_dev = " . (int)$is_dev . "
            "
        );

    }
public function updateUserAdminRights($userID, $is_admin = 0, $hide_ads = 0, $is_dev = 0)
    {
        $this->OwpDBMySQLi->query(
            "
            REPLACE INTO tbl_users_rights
            SET tbl_users_rights.userID = " . (int)$userID . ",
                tbl_users_rights.is_admin = " . (int)$is_admin . ",
                tbl_users_rights.hide_ads = " . (int)$hide_ads . ",
                tbl_users_rights.is_dev = " . (int)$is_dev . "
            "
        );

    }
updateUserAdminRights

@method updateUserAdminRights($userID, $is_admin = 0, $hide_ads = 0, $is_dev = 0) Updating the login counter as well as the user's current IP address
@access public

@param     $userID
@param int $is_admin
@param int $hide_ads
@param int $is_dev
@throws Exception

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0