Skip to content
Snippets Groups Projects
Commit 0ba7b3b8 authored by root's avatar root
Browse files

uprava

parent 1a508563
No related branches found
No related tags found
No related merge requests found
<?
$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;
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment