Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/pre/add_submit.pre.inc.php
<?php
require_once("{$options['buginLibBase']}notify.inc.php");
require_once("{$options['buginLibBase']}trigger.inc.php");

// Check to see if we do ticket duplication checking/modifications
if ($options['ticketSubmitMatch'] && $ticket = ticketByShortDesc($mod['short_desc'])) {
	$oldMod = $mod;
	$mod = array();
	$mod['modification'] = $oldMod['long_desc'];
	$mod['num'] = $ticket;
	$area = "modify";
	// Silent update since the ticket is already there.
	$noEmail = 1;
	include("inc/pre/modify.pre.inc.php");
}
elseif (!$options['norefresh']) {
	if (isset($_SESSION['loggedin']) && $_SESSION['loggedin']) {
		if ($userinfo['options'] & OPTION_FRAMES) {
			$bodyOptions = "onLoad=\"parent.frames[2].location.href='{$options['baseURL']}?area=message'\" ";
		}
		else {
			$bodyOptions = "onLoad=\"location.href='{$options['baseURL']}?area=list'\" ";
		}
	}
	else  {
		header("Location: {$options['baseURL']}");
	}
}

// Proxy submit shizzy
if (isset($_REQUEST['mod']['proxy'])) {
	if (($_REQUEST['mod']['proxy'] != -1) && isset($bugDatabase->lists['user'][$_REQUEST['mod']['proxy']])) {
		$mod['creator'] = $_REQUEST['mod']['proxy'];
	}
}

?>
Return current item: BugIn and Ticketing System