diff --git a/src/warden-server/contrib/wardenweb/db.php.public b/src/warden-server/contrib/wardenweb/db.php.public
index c35b7baf8557b2d8f4349cc34651be7b23dd284f..a7d20ca54229d943b04f1cb6554eea0e6d82557c 100644
--- a/src/warden-server/contrib/wardenweb/db.php.public
+++ b/src/warden-server/contrib/wardenweb/db.php.public
@@ -1,12 +1,11 @@
 <?
-$host = "localhost"; 
-$dbname = "warden";
-$user = ""; 
-$pass = "";
-
-$db = mysql_pconnect($host, $user, $pass);
-if (!$db) { die('Could not connect: ' . mysql_error()); }
-mysql_select_db($dbname);
+#$host = "localhost"; 
+#$dbname = "warden";
+#$user = ""; 
+#$pass = "";
+#$db = mysql_pconnect($host, $user, $pass);
+#if (!$db) { die('Could not connect: ' . mysql_error()); }
+#mysql_select_db($dbname);
 
 function ownnetwhere2() {
 	#nacist seznam ownnet
@@ -45,5 +44,23 @@ function ownnetwhere() {
 	return $where;
 }
 
+function view_recode($tmp) {
+	$tmp['target_port'] = sprintf('<a href=show_TargetportActivity.php?port=%d>%d<a>',
+		$tmp['target_port'],$tmp['target_port']);
+	$tmp['source'] = sprintf('<a href=show_SourceActivity.php?source=%s>%s<a>',
+		$tmp['source'],$tmp['source']);
+
+	$tmp['h'] = $tmp['hostname'];
+	unset($tmp['hostname']);
+
+	$tmp['s'] = $tmp['service'];
+	unset($tmp['service']);
+
+	$tmp['t'] = $tmp['type'];
+	unset($tmp['type']);
+
+	return $tmp;
+}
+
 
 ?>