define("IN_MYBB", 1);
define('THIS_SCRIPT', 'test.php');
include_once 'getlogs.php';
require_once "./global.php";
if (in_array($mybb->user['Premium'] , array(1,7)))error_no_permission();
eval("\$memberlist = \"".$templates->get("test")."\";");
How do i make it so the page only shows for users in group: Premium
if (in_array($mybb->user['Premium'] , array(1,7)))error_no_permission();
can be changed to
if (!in_array($mybb->user['usergroup'] , array(4,X)))error_no_permission();
if
user group is
not equal to 4 (administrator) or
X (premium group - id number should be used for X)
then
error is shown
(2016-06-03, 04:19 PM).m. Wrote: [ -> ]if (in_array($mybb->user['Premium'] , array(1,7)))error_no_permission();
can be changed to
if (!in_array($mybb->user['usergroup'] , array(4,X)))error_no_permission();
if user group is not equal to 4 (administrator) or X (premium group - id number should be used for X)
then error is shown
Amazing, it works! But how do you know X means premium group?