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;
|
|
|
|
}
|
|
|
|
|
|
|
|
page_head("Computer summary");
|
|
|
|
show_host($host, $private, $ipprivate);
|
|
|
|
page_tail();
|
2003-06-17 22:28:01 +00:00
|
|
|
|
2002-12-06 21:37:30 +00:00
|
|
|
?>
|