Objects Administration
"; if (isset($_POST['action']) && $_POST['action'] == 'Create' && !empty($_POST['objectname'])) { pg_exec($this->database, "INSERT INTO object (objectname, log_count, parameter_count, notification_count) VALUES ('" . $_POST['objectname'] . "', '0', '0', '0')"); } if (isset($_POST['action']) && $_POST['action'] == 'Remove' && !empty($_POST['objectname'])) { pg_exec($this->database, "DELETE FROM object WHERE objectname='" . $_POST['objectname'] . "'"); } $res = pg_exec($this->database, "SELECT objectid,objectname, log_count, notification_count FROM object ORDER BY objectname"); ?> log_count; $count_logs = $count_logs + $nr_logs; $r = pg_exec ($this->database, "SELECT count(paramid) FROM parameter WHERE objectid=CAST('" . $u->objectid . "' AS BIGINT)"); $r = pg_fetch_object($r, 0); $nr_params = $r->count; $count_parameters = $count_parameters + $nr_params; $nr_notifications = $u->notification_count; $count_notifications = $count_notifications + $nr_notifications; ?> "; echo ""; echo ""; echo ""; echo "
ObjectLog entries ParametersNotifications

objectname ?>
objectid'> $nr_logs " ?> objectid'> $nr_params " ?> objectid'> $nr_notifications " ?>


TOTALS
$count_logs$count_parameters$count_notifications
"; ?>

Create new object:

Objects name (FQDN):

Showpage(); ?>