From 429ba6d7ccfc53a5e882c2f600bd27d6c5061b0d Mon Sep 17 00:00:00 2001
From: root <root@orion.zcu.cz>
Date: Mon, 4 Feb 2013 09:40:36 +0100
Subject: [PATCH] nejaky upravy v produkci

---
 .../wardenweb/show_HostnameServiceTypeActivity.php        | 8 +++++++-
 .../contrib/wardenweb/show_SourceActivity.php             | 2 +-
 src/warden-server/contrib/wardenweb/stats.php             | 2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php b/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php
index 7f8956f..26dbd04 100644
--- a/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php
+++ b/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php
@@ -155,7 +155,13 @@ if( IsSet($_POST["btnSubmit"]) and !empty($where)) {
 
 </tr><tr>
 
-<td></td>
+<td>
+<?
+#	if( IsSet($_POST["btnSubmit"]) and !empty($where)) {
+#		print("<iframe src=\"graph_HostnameServiceTypeActivityStats_html.php?per=day&where=".base64_encode($where)."\" style=\"width:100%; height:500\"></iframe>");
+#	}
+?>
+</td>
 
 <td width=50%>
 <?
diff --git a/src/warden-server/contrib/wardenweb/show_SourceActivity.php b/src/warden-server/contrib/wardenweb/show_SourceActivity.php
index 33063fe..14d279f 100644
--- a/src/warden-server/contrib/wardenweb/show_SourceActivity.php
+++ b/src/warden-server/contrib/wardenweb/show_SourceActivity.php
@@ -55,7 +55,7 @@ $form->display();
 if( IsSet($_POST["btnSubmit"])) {
 
         if( ! empty($_POST['source'])) {
-		$where = "source='".$_POST['source']."'";
+		$where = "source like'".$_POST['source']."'";
 		//$where = "source like '".$_POST['source']."%'";
 		$q = "SELECT * FROM events WHERE $where ORDER BY detected DESC LIMIT ".$_POST['limit'];
                 $res = mysql_query($q, $db);
diff --git a/src/warden-server/contrib/wardenweb/stats.php b/src/warden-server/contrib/wardenweb/stats.php
index 210f9bf..361baf5 100644
--- a/src/warden-server/contrib/wardenweb/stats.php
+++ b/src/warden-server/contrib/wardenweb/stats.php
@@ -56,7 +56,7 @@ if(isset($_GET['c']))
 <tr>
 
 <td colspan=2>
-<iframe src="table_HostnameServiceType.html" style="width:100%; height:600"></iframe>
+<iframe src="table_HostnameServiceType.html" style="width:100%; height:800"></iframe>
 </td>
 
 </tr>
-- 
GitLab