I've got it working in 7.3, but I did not implement group checking yet. I only need it in one homemade script, and just made a query in that specific script.
PHP Code
$query = " select count(USER_ID) from ubbt_USER_GROUPS where USER_ID = ? and GROUP_ID in ( SELECT GROUP_ID FROM ubbt_FORUM_PERMISSIONS WHERE FORUM_ID = ? AND READ_TOPICS > 0 ) "; $sth = $dbh -> do_placeholder_query($query,array($myuserid,$board),__LINE__,__FILE__); list($access) = $dbh->fetch_array($sth);
if (!$access) { echo "SeeYa";exit; }
I am converting most of my scripts to the ubb environment where authentication and group checking is done for me
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.