2002-12-06 21:37:30 +00:00
|
|
|
<?php
|
|
|
|
|
2005-02-19 08:06:53 +00:00
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/user.inc");
|
|
|
|
require_once("../inc/host.inc");
|
|
|
|
|
|
|
|
db_init();
|
|
|
|
$hostid = get_int("hostid");
|
2005-05-11 09:44:41 +00:00
|
|
|
$ipprivate=null;
|
|
|
|
if (isset($_GET["ipprivate"])) $ipprivate = $_GET["ipprivate"];
|
2005-02-19 08:06:53 +00:00
|
|
|
$host = lookup_host($hostid);
|
|
|
|
if (!$host) {
|
|
|
|
echo "Couldn't find computer";
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
$private = false;
|
|
|
|
$user = get_logged_in_user(false);
|
|
|
|
if ($user && $user->id == $host->userid) {
|
|
|
|
$private = true;
|
2007-01-29 18:15:16 +00:00
|
|
|
} else {
|
|
|
|
$user = null;
|
2005-02-19 08:06:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
page_head("Computer summary");
|
2007-01-29 18:15:16 +00:00
|
|
|
show_host($host, $private, $ipprivate, $user);
|
2005-02-19 08:06:53 +00:00
|
|
|
page_tail();
|
2003-06-17 22:28:01 +00:00
|
|
|
|
2002-12-06 21:37:30 +00:00
|
|
|
?>
|