Location: PHPKode > projects > Content*Builder > contentbuilder/plugins/media_manager/mediaTypes.inc.php
<?php
	$display = "overview";
	
	if (isset($_POST[delbox])) {
		$delbox2 = $_POST[delbox];
		unset($delbox);
		reset($delbox2);
		while (list($k, $v) = each($delbox2)) {
			$delbox[$k] = $v;
		} 
		reset($delbox);
		while (list($k, $v) = each($delbox)) {
			$dquery = mysql_query("DELETE FROM ".TABLE."_mm_type WHERE typeID='$v'");
			$dquery = mysql_query("DELETE FROM ".TABLE."_options WHERE module = 'media' AND parameter = '$v'");
		} 
	} 
	
	if($typeSub == 1) {
		include($pluginLocation."/mediaTypesGeneral.inc.php");
	}
	
	if($typeSub == 2) {
		include($pluginLocation."/mediaTypesDetails.inc.php");
	}
	
	if ($display == "overview") {
		$tQuery = mysql_query("SELECT * FROM ".TABLE."_mm_type");
		while ($tQueryRow = mysql_fetch_array($tQuery)) {
			$oviewTypeName[] = $tQueryRow['name'];
			$oviewTypeExt[]  = $tQueryRow['extension'];
			$oviewTypeID[]   = $tQueryRow['typeID'];
		} 

		$tpl->assign("type_oview_row",
			array ( "NAME"              => $oviewTypeName,
					"EXTENSION"         => $oviewTypeExt,
					"TID"               => $oviewTypeID
			)
		);
		$tpl->assign("type_oview_set", "1");
	} 
	
	$mainPluginContent[]  = $tpl->fetch($config['templates']."mediaTypes.template", null, "pluginMedia".$cbUserID);
	$mainMessageContent[] = $tpl->fetch($config['templates']."messages.template", null, "pluginMedia".$cbUserID);
?>
Return current item: Content*Builder