function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    $boot = new boostrap_form();
    $mini = new miniadm();
    $users = new usersMenus();
    $ldap = new clladp();
    $tpl = new templates();
    if (isset($_GET["title"])) {
        $title = $tpl->_ENGINE_parse_body("<H3>{users_and_groups}</H3><p>{users_and_groups_system_explain}</p>");
    }
    if ($ldap->IsKerbAuth()) {
        $array["{activedirectory_members}"] = "miniadm.members.browse.php?section-search-ad=yes";
    }
    $array["{radius_members}"] = "miniadm.system.members.radius.php";
    if ($mini->IFItsProxy()) {
        $array["{hostpot_members}"] = "miniadmin.hotspot.php?tabs=yes&title=yes";
    }
    echo $title . $boot->build_tab($array);
}
function tabs()
{
    $page = CurrentPageName();
    $boot = new boostrap_form();
    $tpl = new templates();
    $arrayACLS = $_SESSION["ProxyCategoriesPermissions"];
    if (!is_array($arrayACLS)) {
        $miniadm = new miniadm();
        $arrayACLS = $miniadm->ProxyCategoriesPermissions(true);
    }
    $q = new mysql_squid_builder();
    while (list($category, $val) = each($arrayACLS)) {
        $table = $q->cat_totablename($category);
        if (!$q->TABLE_EXISTS($table)) {
            $q->QUERY_SQL("DELETE FROM webfilter_catprivs WHERE categorykey='{$category}'");
            continue;
        }
        $categoryenc = urlencode($category);
        $array[$category] = "{$page}?category-tab=yes&category={$categoryenc}";
    }
    echo $boot->build_tab($array);
}
function tabs()
{
    $page = CurrentPageName();
    $boot = new boostrap_form();
    $tpl = new templates();
    $arrayACLS = $_SESSION["SQUID_DYNAMIC_ACLS"];
    if (!is_array($arrayACLS)) {
        $miniadm = new miniadm();
        $miniadm->squid_load_dynamic_acls(true);
        $arrayACLS = $_SESSION["SQUID_DYNAMIC_ACLS"];
    }
    $q = new mysql_squid_builder();
    while (list($gpid, $val) = each($arrayACLS)) {
        $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT GroupName FROM webfilters_sqgroups WHERE ID={$gpid}"));
        $array[$ligne["GroupName"]] = "{$page}?tab-gpid={$gpid}";
    }
    echo $boot->build_tab($array);
}
Beispiel #4
0
function left_menu()
{
    //ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);
    $miniadm = new miniadm();
    writelogs("->leftmenu()", __FUNCTION__, __FILE__, __LINE__);
    echo $miniadm->leftmenu();
}