'; function exec_ogp_module() { global $db; include 'util_config.php'; $userInfo = $db->getUserById($_SESSION['user_id']); $userRole = $userInfo['users_role']; $commands = array(); foreach($availableCommands as $command){ if($userRole == 'admin' && $command['admin'] === true){ $commands[] = ''; } if($userRole == 'user' && $command['user'] === true){ $commands[] = ''; } if($userRole == 'subuser' && $command['subuser'] === true){ $commands[] = ''; } } ?>