示例#1
0
# print admin menu if admin user and don't die!
if (checkAdmin(false)) {
    # if adminId is not set
    if (!isset($_REQUEST['adminId'])) {
        $_REQUEST['adminId'] = "";
    }
    print '<td class="fixed">';
    print "<ul class='nav nav-tabs pull-right' style='margin-right:0px;'>";
    print "\t<li class='dropdown'>";
    # title
    print "\t<a class='dropdown-toggle btn-danger' data-toggle='dropdown' href='administration/' id='admin' rel='tooltip' data-placement='bottom' title='" . _('Show Administration menu') . "'><i class='icon-cog icon-white'></i> " . _('Administration') . " <b class='caret'></b></a>";
    # dropdown
    print "\t\t<ul class='dropdown-menu admin'>";
    # show IP request link if enabled in config file!
    if ($settings['enableIPrequests'] == 1) {
        $requestNum = countRequestedIPaddresses();
        if ($requestNum != 0) {
            print "<li class='nav-header'>IP address requests</li>";
            print "<li ";
            if ($_REQUEST['adminId'] == "manageRequests") {
                print "class='active'";
            }
            print "><a href='administration/manageRequests/'>" . _('IP requests') . " ({$requestNum})</a></li>";
            print "<li class='divider'></li>";
        }
    }
    print "\t\t<li class='nav-header'>" . _('Server management') . "</li>";
    print "\t\t<li ";
    if ($_REQUEST['adminId'] == "manageRequests") {
        print "class='active'";
    }
示例#2
0
if ($settings['enableIPrequests'] == 1) {
    ?>
	    <li class="list-group-item <?php 
    if ($_GET['section'] == "manageRequests") {
        print "active";
    }
    ?>
">
			<a href="<?php 
    print create_link("administration", "manageRequests");
    ?>
"><i class="fa fa-angle-right pull-right"></i> <?php 
    print _('IP requests');
    ?>
 <?php 
    if (($requestNum = countRequestedIPaddresses()) != 0) {
        print "<span class='ipreqMenu'>{$requestNum}</span>";
    }
    ?>
</a>
		</li> 
	    <?php 
}
?>
	    <li class="list-group-item <?php 
if ($_GET['section'] == "filterIPFields") {
    print "active";
}
?>
">
			<a href="<?php