Beispiel #1
0
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
/*
 * escalation.php
 * Author:	Taylor Dondich (tdondich at gmail.com)
 * Description:
 * 	Provides interface to maintain escalations
 *
*/
include_once 'includes/config.inc';
if (!isset($_GET['id'])) {
    header("Location: welcome.php");
    exit;
} else {
    $escalation = NagiosEscalationPeer::retrieveByPK($_GET['id']);
    if (!$escalation) {
        header("Location: welcome.php");
        exit;
    }
}
// Data preparation
if (!isset($_GET['section'])) {
    $_GET['section'] = 'general';
}
if (isset($_GET['temp_host_id'])) {
    $tempData['escalation_manage']['target_host_id'] = NULL;
}
if (isset($_GET['escalation_add'])) {
    $sublink = "?escalation_add=1";
    if (isset($_GET['host_id'])) {