<?php
/*
* HelpCORE source file
* ====================
*
* CVS:
* ----
* $header$
*
* Purpose:
* --------
* Mananages escalation reasons for incidents
*
* Copyright:
* ----------
* Copyright (C) 2002-2003 Dennis Fleurbaaij <hide@address.com>
* Copyright (C) 2002-2005 IO Software <hide@address.com>
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software Foundation;
* either version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
* Cambridge, MA 02139, USA.
*
* Please note that this software is dual licensed. For the commercial use of this
* software you will need a Commercial License. Please see http://www.io-software.nl
* for the terms and conditions.
*
* For more information you can contact IO Software at http://www.io-software.nl
*/
if (! include('../coreapm/coreapm.php')) {
die('Cannot include CORE APM');
}
$GLOBALS['security']->secure();
$coreapm->start();
if( ! O_INC_USEESCALATION ) {
$GLOBALS['box']->add( text('warning'), text('administrator_disabled') );
$coreapm->finish();
die;
}
$limits = null;
if (! $GLOBALS['security']->is_admin) {
$limits = NO_ADD | NO_EDIT | NO_DELETE;
}
$GLOBALS['relational']->add_table_column('name', text('name'), TYPE_STRING(255) | REL_UNIQUE | REL_OBLIGATORY);
$GLOBALS['relational']->manage('escalation_reasons', text('escalation_reasons'), $limits);
$coreapm->finish();
?>