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
27 lines
540 B
PHP
27 lines
540 B
PHP
<?php
|
|
/**
|
|
* Author information.
|
|
* @package amo
|
|
* @subpackage docs
|
|
*/
|
|
|
|
// Get our addon ID.
|
|
$clean['UserID'] = intval($_GET['id']);
|
|
$sql['UserID'] =& $clean['UserID'];
|
|
|
|
$cacheId = $clean['UserID'];
|
|
|
|
startProcessing('author.tpl',$cacheId,$compileId);
|
|
require_once('includes.php');
|
|
|
|
$user = new User($sql['UserID']);
|
|
|
|
// Assign template variables.
|
|
$tpl->assign(
|
|
array( 'user' => $user,
|
|
'title' => $user->UserName,
|
|
'content' => 'author.tpl',
|
|
'sidebar' => 'inc/author-sidebar.tpl')
|
|
);
|
|
?>
|