<?php
/*
* HelpCORE source file
* ====================
*
* CVS:
* ----
* $header$
*
* Purpose:
* --------
* Mananages brands
*
* Copyright:
* ----------
* 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' );
}
if( ! include( 'user_actions_callbacks.php' ) ) {
__FATAL__( __FILE__, __LINE__, __CLASS__, __FUNCTION__, 'Cannot load callbacks' );
}
$GLOBALS['security']->secure();
$coreapm->start();
if( ! USE_INCIDENTS )
{
$GLOBALS['box']->add( text( 'warning' ), text( 'administrator_disabled' ) );
$coreapm->finish();
die;
}
if ( ! O_INC_USEDETAILS )
{
$GLOBALS['box']->add( text( 'warning' ), text( 'administrator_disabled' ) );
$GLOBALS['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']->add_table_column( 'description', text( 'description' ), TYPE_STRING( 255 ) );
$GLOBALS['relational']->manage( 'user_actions', text('user_actions'), $limits );
$coreapm->finish();
?>