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
48 lines
896 B
PHP
48 lines
896 B
PHP
<?php
|
|
/**
|
|
* FAQ page.
|
|
*
|
|
* @package amo
|
|
* @subpackage docs
|
|
*
|
|
* @todo FAQ search?
|
|
*/
|
|
|
|
startProcessing('faq.tpl',null,$compileId);
|
|
require_once('includes.php');
|
|
|
|
$db->query("
|
|
SELECT
|
|
`title`,
|
|
`text`
|
|
FROM
|
|
`faq`
|
|
WHERE
|
|
`active` = 'YES'
|
|
ORDER BY
|
|
`index` ASC,
|
|
`title` ASC
|
|
",SQL_ALL, SQL_ASSOC);
|
|
|
|
$faq = $db->record;
|
|
|
|
$links = array(
|
|
array( 'href' => './faq.php',
|
|
'title' => 'Frequently Asked Questions',
|
|
'text' => 'FAQ'),
|
|
|
|
array( 'href' => './policy.php',
|
|
'title' => 'Addons Policies',
|
|
'text' => 'Policy')
|
|
);
|
|
|
|
// Send FAQ data to Smarty object.
|
|
$tpl->assign(
|
|
array( 'faq' => $faq,
|
|
'links' => $links,
|
|
'sidebar' => 'inc/nav.tpl',
|
|
'content' => 'faq.tpl',
|
|
'title' => 'Frequently Asked Questions')
|
|
);
|
|
?>
|