. */ /** * @brief Process the add_grant.php form, update the session variables with the new grant data * * @file * @author Claire Figueras * @date $date$ * @version $Revision$ * @ingroup admin */ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_security.php"); $_SESSION['error'] = ""; if(!empty($_SESSION['m_admin']['group']['coll_id']) && isset($_SESSION['m_admin']['group']['coll_id'])) { $insert = 'N'; if(isset($_REQUEST['insert']) && count($_REQUEST['insert']) > 0) { $insert = 'Y'; } $update = 'N'; if (isset($_REQUEST['update']) && count($_REQUEST['update']) > 0) { $update = 'Y'; } $delete = 'N'; if(isset($_REQUEST['delete']) && count($_REQUEST['delete']) > 0) { $delete = 'Y'; } $comment = ""; if(isset($_REQUEST['comment'])) { $comment = $_REQUEST['comment']; } $mode = ''; if (isset($_REQUEST['mode'])) { $mode = $_REQUEST['mode']; } $sec = new security(); $sec->add_grouptmp_session($_SESSION['m_admin']['group']['coll_id'], $_REQUEST['where'], $comment, $insert, $update, $delete, $mode); } else { } ?>