Added global variables:
cacheId
compileId
currentTab
clean
sql
Moved trusted var arrays into init -- since they are always there, and if they are not used it'll just be a null array.
git-svn-id: svn://10.0.0.236/trunk@186693 18797224-902f-48f8-a5cc-f745e15eee43
31 lines
695 B
PHP
31 lines
695 B
PHP
<?php
|
|
/**
|
|
* Addon summary page. Displays a top-down view of all Addon properties.
|
|
*
|
|
* @package amo
|
|
* @subpackage docs
|
|
*/
|
|
|
|
// Get the int value of our addon ID.
|
|
$clean['ID'] = intval($_GET['id']);
|
|
$sql['ID'] =& $clean['ID'];
|
|
|
|
// Set the cachId so we have a unique cache for each AddOn ID.
|
|
$cacheId = $clean['ID'];
|
|
|
|
startProcessing('addon.tpl',$cacheId,$compileId);
|
|
require_once('includes.php');
|
|
|
|
|
|
// Create our AddOn object using the ID.
|
|
$addon = new AddOn($sql['ID']);
|
|
|
|
// Assign template variables.
|
|
$tpl->assign(
|
|
array( 'addon' => $addon,
|
|
'title' => $addon->Name,
|
|
'content' => 'addon.tpl',
|
|
'sidebar' => 'inc/addon-sidebar.tpl')
|
|
);
|
|
?>
|