if (!isset($gCms)) { exit; } // 0. Check cms version global $CMS_VERSION; if (version_compare($CMS_VERSION, '2.0-beta1') < 0) { // not CMS 2.0, don't go any further. return; } // 1. Get the content_id $content_id = $gCms->variables['content_id']; if ($content_id <= 0) { return; } // 2. Get the content object $content_obj = CmsContentOperations::load_content_from_id($content_id); if (!is_object($content_obj)) { return; } // 3. Get the properties. $content_obj->load_properties(); $feu_groups = $content_obj->get_property_value('feu_groups'); $feu_redirect = $content_obj->get_property_value('feu_redirect'); // if the groups list is empty, return. if ($feu_groups == '') { return; } // check this users member groups $passed = false; $uid = $this->LoggedInId(); if ($uid) {