Ejemplo n.º 1
0
 function hasAccess()
 {
     if (!zmgACL::check_defines()) {
         return false;
     }
     return true;
 }
Ejemplo n.º 2
0
 function groupsACLSelect($onchange = 0, $sel_name = "acl_gid", $sel = 0, $exclude = 0)
 {
     $html = "<select name=\"{$sel_name}\" id=\"{$sel_name}\" size=\"14\" class=\"inputbox\"";
     if ($onchange !== 0) {
         $html .= " onchange=\"{$onchange}\"";
     }
     $html .= " style=\"width: 200px;\">\n" . "\t<optgroup label=\"----- " . T_('Global') . " -----\">\n" . "\t<option value=\"0\">" . T_('Public Access') . "</option>\n" . "\t<option value=\"1\">" . T_('Registered Users Only') . "</option>\n" . "\t</optgroup>\n" . "\t<optgroup label=\"----- " . T_('Specific Group') . " -----\"";
     $list = zmgACL::getGroupList();
     foreach ($list as $group) {
         $html .= "\t<option value=\"" . $group->value . "\">" . $group->text . "</option>\n";
     }
     echo $html . "</optgroup>\n</select>\n";
 }
Ejemplo n.º 3
0
 function getGroupList()
 {
     $acl =& zmgACL::getACL();
     return $acl->get_group_children_tree(null, 'USERS', false);
 }