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
33 lines
800 B
PHP
33 lines
800 B
PHP
<?php
|
|
/**
|
|
* Addon history page. Displays all the previous releases for a particular
|
|
* addon or theme
|
|
*
|
|
* @package amo
|
|
* @subpackage docs
|
|
*
|
|
* @todo break this into a simpler design, probably a smaller table with an abbreviated desc.
|
|
* @todo do we still want to allow users access to old versions?
|
|
*/
|
|
|
|
// Get our addon ID.
|
|
$clean['ID'] = intval($_GET['id']);
|
|
$sql['ID'] =& $clean['ID'];
|
|
|
|
$cacheId = $clean['ID'];
|
|
|
|
startProcessing('history.tpl',$cacheId,$compileId);
|
|
require_once('includes.php');
|
|
|
|
$addon = new AddOn($sql['ID']);
|
|
$addon->getHistory();
|
|
|
|
// Assign template variables.
|
|
$tpl->assign(
|
|
array( 'addon' => $addon,
|
|
'title' => $addon->Name.' Version History',
|
|
'content' => 'history.tpl',
|
|
'sidebar' => 'inc/addon-sidebar.tpl')
|
|
);
|
|
?>
|