Ejemplo n.º 1
0
            <label for="User ID">
                <div class="filterLeft">
                    User ID
                </div>
                <div class="filterRight">
                    Not 
                    <?php 
if (isset($_SESSION['filter']['Not_userId']) and $_SESSION['filter']['Not_userId'] == 1) {
    print "<input type=\"checkbox\" name=\"Not_userId\" value=\"1\" class=\"text ui-widget-content ui-corner-all\" checked>";
} else {
    print "<input type=\"checkbox\" name=\"Not_userId\" value=\"1\" class=\"text ui-widget-content ui-corner-all\">";
}
?>
                 
                    <?php 
print "<input type=\"text\" name=\"userId\" value=\"" . headerprintnobr($_SESSION['filter']['userId']) . "\" size=\"20\" style=\"width: 160px\" class=\"text ui-widget-content ui-corner-all\" autocomplete=\"off\">";
?>
                </div>
            </label>
            <div class="filterClear"></div>
        </div>

        <div class="filterRow">
            <label for="Rule ID">
                <div class="filterLeft">
                    Rule ID
                </div>
                <div class="filterRight">
                    Not 
                    <?php 
if (isset($_SESSION['filter']['Not_ruleid']) and $_SESSION['filter']['Not_ruleid'] == 1) {
Ejemplo n.º 2
0
     if (isset($_SESSION['filter']['Not_webApp']) and $_SESSION['filter']['Not_webApp']) {
         $showFilter .= "| Web App Info: <span class=\"Negate\">" . $_SESSION['filter']['webApp'] . "</span>";
         $showFilter .= "<span class=\"filter_control\" > (<a href=\"{$thisPage}?webApp=" . $_SESSION['filter']['webApp'] . "&Not_webApp=0\" title=\"Exclude this Web App Infor from Filter\" class=\"filter_control\">Not</a>)";
     } else {
         $showFilter .= "| Web App Info: " . $_SESSION['filter']['webApp'];
         $showFilter .= "<span class=\"filter_control\" > (<a href=\"{$thisPage}?webApp=" . $_SESSION['filter']['webApp'] . "&Not_webApp=1\" title=\"Exclude this Web App Infor from Filter\" class=\"filter_control\">Not</a>)";
     }
     $showFilter .= " (<a href=\"{$thisPage}?webApp=x\" title=\"Clear Web App Info Filter\" class=\"filter_control\">Del</a>)</span> ";
 }
 if (isset($_SESSION['filter']['userId'])) {
     if (isset($_SESSION['filter']['Not_userId']) and $_SESSION['filter']['Not_userId']) {
         $showFilter .= "| User ID: <span class=\"Negate\">" . headerprintnobr($_SESSION['filter']['userId']) . "</span>";
         $showFilter .= "<span class=\"filter_control\" > (<a href=\"{$thisPage}?userId=" . headerprintnobr($_SESSION['filter']['userId']) . "&Not_userId=0\" title=\"Exclude this User ID from Filter\" class=\"filter_control\">Not</a>)";
     } else {
         $showFilter .= "| User ID: " . headerprintnobr($_SESSION['filter']['userId']);
         $showFilter .= "<span class=\"filter_control\" > (<a href=\"{$thisPage}?userId=" . headerprintnobr($_SESSION['filter']['userId']) . "&Not_userId=1\" title=\"Exclude this User ID from Filter\" class=\"filter_control\">Not</a>)";
     }
     $showFilter .= " (<a href=\"{$thisPage}?userId=x\" title=\"Clear User ID Filter\" class=\"filter_control\">Del</a>)</span> ";
 }
 // Tag
 if (isset($_SESSION['filter']['tag'])) {
     $tag_name = getTagName($_SESSION['filter']['tag']);
     if (isset($_SESSION['filter']['Not_tag']) and $_SESSION['filter']['Not_tag']) {
         $showFilter .= "| Tag: <span class=\"Negate\">{$tag_name}</span>";
         $showFilter .= "<span class=\"filter_control\" > (<a href=\"{$thisPage}?tag=" . $_SESSION['filter']['tag'] . "&Not_tag=0\" title=\"Exclude the Tag from Filter\" class=\"filter_control\">Not</a>)";
     } else {
         $showFilter .= "| Tag: {$tag_name}";
         $showFilter .= "<span class=\"filter_control\" > (<a href=\"{$thisPage}?tag=" . $_SESSION['filter']['tag'] . "&Not_tag=1\" title=\"Exclude the Tag from Filter\" class=\"filter_control\">Not</a>)";
     }
     $showFilter .= " (<a href=\"{$thisPage}?tag=x\" title=\"Clear Tag Filter\" class=\"filter_control\">Del</a>)</span> ";
 }
Ejemplo n.º 3
0
} else {
    print headerprintnobr($event_detail['h_wa_info_sess_id']);
}
?>
          
   </td>
	</tr>   

	<tr>
	<td valign="top">User ID</td>
	<td>
   <?php 
if ($event_detail['h_wa_info_user_id'] == "") {
    print "-";
} else {
    print "<a href=\"events.php?userId=\"" . headerprintnobr($event_detail['h_wa_info_user_id']) . "\" title=\"Filter by this User ID\">" . headerprintnobr($event_detail['h_wa_info_user_id']);
}
?>
   </td>
	</tr>      
   
	<tr>
   <td valign="top">Timestamp</td>
   <td>
   <?php 
print $event_detail['a_timestamp'] . " " . $event_detail['a_timezone'];
?>
   <span><br />
   <?php 
print "(received at " . $event_detail['received_at'] . ")";
?>
Ejemplo n.º 4
0
if ($page > 2) {
    print "<strong><a href=\"events.php?p=1\" id=\"linkOverDark\"  class=\"linkOverDark\"><< Start</a>&nbsp;</strong>&nbsp;";
}
if ($page > 1) {
    print "<strong><a href=\"events.php?p=" . headerprintnobr($page - 1) . "\" id=\"linkOverDark\"  class=\"linkOverDark\">< Previous</a>&nbsp;</strong>&nbsp;";
}
if ($current_page == $pmax) {
    print "Events <strong>" . headerprintnobr(number_format($max_event_number * ($current_page - 1) + 1)) . " - " . headerprintnobr(number_format($max_event_number * ($current_page - 1) + $events_count)) . "</strong> of <strong>" . headerprintnobr(number_format($total_events)) . "</strong>&nbsp;&nbsp;\n";
} else {
    print "<strong>" . headerprintnobr(number_format($current_page * $events_count - $events_count + 1)) . " - " . headerprintnobr(number_format($current_page * $events_count)) . "</strong> of <strong>" . number_format($total_events) . "</strong>&nbsp;&nbsp;\n";
}
if ($page < $pmax) {
    print "<strong><a id=\"linkOverDark\" class=\"linkOverDark\" href=\"events.php?p=" . headerprintnobr($page + 1) . "\"> Next > </a>&nbsp;</strong>";
}
if ($page < $pmax - 1) {
    print "<strong><a id=\"linkOverDark\" class=\"linkOverDark\" href=\"events.php?p=" . headerprintnobr($pmax) . "\">Last >> </a>&nbsp;</strong>";
}
?>

                  </td>
               </tr>
            </tbody></table>
         </div>
         </div>
        </div>
    </div>

<script type="text/javascript">
        $('.flexEvents').flexigrid({
            resizable: false,
            height: 'auto', //default height
Ejemplo n.º 5
0
                </div>
                <div id="tabs-4">
                    <p><b>Create the directories to hold <?php 
        print headerprintnobr($_GET['feeder']);
        ?>
 logs, and create the directories to store ModSecurity audit log files. </b></p><br />
                    <p><pre># mkdir -p <?php 
        print headerprintnobr($_GET['logdir']);
        ?>
</pre></p>
                    <br>Remember: You will need to give ownership to user that run Apache server (ie. nobody, www-data etc) in <?php 
        print headerprintnobr($_GET['logdir']);
        ?>
. ie. <br />
                    <p><pre># chown nobody <?php 
        print headerprintnobr($_GET['logdir']);
        ?>
</pre></p>
                </div>

            </div>

        <?php 
    } else {
        ?>
        <div id="management_content_bg">
        <div id="management_content">
                
        <br />
        <p class="title">Choose the options bellow to create the event feeder configuration template.</p>
        <br />
Ejemplo n.º 6
0
         <div class="gridDashLarge">
            <?php 
$topCC = statsTopCC();
?>
            <div class="gridColumn">
                <div class="gridBodyLarge" id="countryTable">
                    <table class="flexCountry">
                    <tbody>
                        <?php 
foreach ($topCC as $CC) {
    print "<tr>";
    if ($CC['client_cc'] == "") {
        print "<td>Unknow</td>";
    } else {
        $countryName = geoip_record_by_name($CC['client_cc']);
        print "<td><a href=\"?ipcc=" . $CC['client_cc'] . "\"> <img src=\"images/flags/png/" . strtolower(headerprintnobr($CC['client_cc'])) . ".png\" alt=\"" . headerprintnobr($CC['client_cc']) . "\" style=\"border-style: none\"> " . headerprintnobr($CC['client_cc']) . "</a></td>";
    }
    $ccPercentual = round($CC['client_cc_count'] * 100 / $eventsCount, 2);
    print "<td>{$ccPercentual}</td>";
    print "<td>" . number_format($CC['client_cc_count']) . "</td>";
    print "</tr>";
}
?>
                        </tbody>
                    </table>
                </div>
            </div>
            
            <?php 
$topASN = statsTopASN();
?>