Example #1
0
							<?php 
        }
        ?>
						</td>
						<td>
							<?php 
        if (isset($alias['dstport'])) {
            ?>
								<a href="/firewall_aliases_edit.php?id=<?php 
            echo $alias['dstport'];
            ?>
" data-toggle="popover" data-trigger="hover focus" title="<?php 
            echo gettext('Alias details');
            ?>
" data-content="<?php 
            echo alias_info_popup($alias['dstport']);
            ?>
" data-html="true">
									<?php 
            echo htmlspecialchars(pprint_port($filterent['destination']['port']));
            ?>
								</a>
							<?php 
        } else {
            ?>
								<?php 
            echo htmlspecialchars(pprint_port($filterent['destination']['port']));
            ?>
							<?php 
        }
        ?>
Example #2
0
<?php 
    }
    ?>
						</td>
						<td>
<?php 
    if (isset($alias['targetport'])) {
        ?>
							<a href="/firewall_aliases_edit.php?id=<?php 
        echo $alias['targetport'];
        ?>
" data-toggle="popover" data-trigger="hover focus" title="<?php 
        echo gettext('Alias details');
        ?>
" data-content="<?php 
        echo alias_info_popup($alias['targetport']);
        ?>
" data-html="true">
<?php 
    }
    ?>
							<?php 
    echo str_replace('_', ' ', htmlspecialchars(pprint_port($localport)));
    if (isset($alias['targetport'])) {
        ?>
							</a>
<?php 
    }
    ?>
						</td>
Example #3
0
// Turn on buffering to speed up rendering
ini_set('output_buffering', 'true');
// Start buffering with a cache size of 100000
ob_start(null, "1000");
## Load Essential Includes
require_once 'guiconfig.inc';
require_once 'functions.inc';
require_once 'notices.inc';
require_once "pkg-utils.inc";
if (isset($_REQUEST['closenotice'])) {
    close_notice($_REQUEST['closenotice']);
    echo get_menu_messages();
    exit;
}
if ($_REQUEST['act'] == 'alias_info_popup' && !preg_match("/\\D/", $_REQUEST['aliasid'])) {
    alias_info_popup($_REQUEST['aliasid']);
    exit;
}
if ($g['disablecrashreporter'] != true) {
    // Check to see if we have a crash report
    $x = 0;
    if (file_exists("/tmp/PHP_errors.log")) {
        $total = `/usr/bin/grep -vi warning /tmp/PHP_errors.log | /usr/bin/wc -l | /usr/bin/awk '{ print \$1 }'`;
        if ($total > 0) {
            $x++;
        }
    }
    $crash = glob("/var/crash/*");
    $skip_files = array(".", "..", "minfree", "");
    if (is_array($crash)) {
        foreach ($crash as $c) {
    foreach ($a_vs as $a_v) {
        ?>
					<tr>
						<td><?php 
        echo htmlspecialchars($a_v['name']);
        ?>
</td>
						<td><?php 
        echo htmlspecialchars($a_v['relay_protocol']);
        ?>
</td>
<?php 
        $aidx = alias_idx($a_v['ipaddr'], "host");
        if ($aidx >= 0) {
            print "<td>\n";
            print '<a href="/firewall_aliases_edit.php?id=' . $aidx . '" data-toggle="popover" data-trigger="hover focus" title="Alias details" data-content="' . alias_info_popup($aidx) . '" data-html="true">';
            print htmlspecialchars($a_v['ipaddr']) . '</a></td>';
        } else {
            print '<td>' . htmlspecialchars($a_v['ipaddr']) . '</td>';
        }
        ?>
						<td><?php 
        echo htmlspecialchars($a_v['port']);
        ?>
</td>
						<td><?php 
        echo $a_v['poolname'];
        ?>
</td>
						<td><?php 
        echo $a_v['sitedown'];