Exemplo n.º 1
0
function main_members()
{
    $users = new usersMenus();
    if ($_GET["hostname"] == null) {
        $hostname = $users->hostname;
        $_GET["hostname"] = $hostname;
    } else {
        $hostname = $_GET["hostname"];
    }
    $dans = new dansguardian_rules($hostname, 0);
    $members = $dans->BuildMembersList();
    $members = htmlentities($members);
    $members = nl2br($members);
    $html = main_tabs() . "<br>\n\t<h5>{members}</H5>\n\t<form name='FFM_DANS2'>\n\t<input type='hidden' name='hostname' value='{$hostname}'>\n\t<input type='hidden' name='SaveGeneralSettings' value='yes'>";
    $conf = $members;
    $table = explode("\n", $conf);
    $html = $html . "\n\t\n\t<br>\n\t<div style='padding:5px;margin:5px'>\n\t<table style='width:100%'>\n\t\n\t";
    while (list($num, $val) = each($table)) {
        $linenumber = $num + 1;
        $html = $html . "<tr><td width=1% style='background-color:#CCCCCCC'><strong>{$linenumber}</strong></td><td width=99%'><code>{$val}</code></td></tr>";
    }
    $html = $html . "</table>\n\t\n\t</div>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'squid.index.php');
}