예제 #1
0
파일: logs.php 프로젝트: skdong/nfs-ovd
        $res = ShellExec::exec_clean_logs();
    }
}
if (isset($_GET["warn"])) {
    $severity[] = "WARN";
    $warn = 1;
}
if (isset($_GET["info"])) {
    $severity[] = "info";
    $info = 1;
}
page_header();
echo '<div>';
echo '<h1>' . _('High Availability logs') . '</h1>';
echo '<link rel="stylesheet" type="text/css" href="media/style/media-ha.css" />';
$res = ShellExec::exec_view_logs($severity);
echo '<table cellpadding="0" cellspacing="3" border="0"><tr><td>';
echo '<form name="mod_ha_logs" action="logs.php" method="get">';
if ($warn) {
    echo '<input type="checkbox" name="warn" value="1" checked="checked" /> ' . _('Show alerts') . ' ';
} else {
    echo '<input type="checkbox" name="warn" value="1" /> ' . _('Show alerts') . ' ';
}
if ($info) {
    echo '<input type="checkbox" name="info" value="1" checked="checked" /> ' . _('Show information') . ' ';
} else {
    echo '<input type="checkbox" name="info" value="1" /> ' . _('Show informations') . ' ';
}
echo '<input type="submit" value="reload" /> ';
echo '</form></td><td>';
echo '<form name="mod_ha_logs" action="logs.php" method="post">';