Location: PHPKode > projects > Viscacha > admin/packages_admin.php
<?php
if (defined('VISCACHA_CORE') == false) { die('Error: Hacking Attempt'); }

$lang->group("modules");

$cid = $gpc->get('cid', int);
$result = $db->query("
	SELECT p.id AS cid, c.id, p.internal
	FROM {$db->pre}packages AS p
		LEFT JOIN {$db->pre}plugins AS c ON c.module = p.id
	WHERE c.position = CONCAT('admin_component_', p.internal)
");

if ($db->num_rows($result) == 0) {
	echo head();
	error('admin.php?action=cms&job=package',$lang->phrase('admin_requested_page_doesnot_exist'));
}
else {
	$cache = $db->fetch_assoc($result);
	DEFINE('PACKAGE_ID', $cache['cid']);
	DEFINE('PACKAGE_INTERNAL', $cache['internal']);
	DEFINE('PACKAGE_DIR', 'modules/'.PACKAGE_ID.'/');
	DEFINE('PLUGIN_ID', $cache['id']);
	unset($cache);

	($code = $plugins->load('admin_component_'.PACKAGE_INTERNAL)) ? eval($code) : null;
}
?>
Return current item: Viscacha