?> </table> <?php if ($permAll) { echo '<div id="grouptable" style="display:none">'; } else { echo '<div id="grouptable">'; } ?> <table> <?php if ($_GET["action"] == "add") { $acls = array(array(), array()); } else { $acls = getACLOnShare($share); if ($shareGroup != 'root') { $acls[0][] = $shareGroup; } } setVar("tpl_groups", $acls[0]); global $__TPLref; $__TPLref["autocomplete"] = "group"; renderTPL("groups"); ?> </table> <div id="expertMode" class="expertMode" <?php displayExpertCss(); ?> >
$av = False; $browseable = True; $customParameters = array(""); $perms = array("rwx" => array("@all")); $permAll = true; } else { $share = urldecode($_GET["share"]); $title = _T("Properties of share {$share}"); $activeItem = "index"; $shareInfos = share_infos($share); $customParameters = share_custom_parameters($share); $shareDesc = $shareInfos["desc"]; $sharePath = $shareInfos["sharePath"]; $av = $shareInfos["antivirus"]; $browseable = $shareInfos["browseable"]; $perms = getACLOnShare($share); $permAll = in_array('@all', $perms['rwx']); } $p = new PageGenerator($title); $sidemenu->forceActiveItem($activeItem); $p->setSideMenu($sidemenu); $p->display(); ?> <?php if ($_GET["action"] == "add") { ?> <p> <?php echo _T("The share name can only contains letters (lowercase and uppercase) and numbers, and must begin with a letter."); ?>