forked from osTicket/osTicket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kb.php
33 lines (27 loc) · 1.05 KB
/
kb.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*********************************************************************
kb.php
Knowlegebase
Peter Rotich <[email protected]>
Copyright (c) 2006-2013 osTicket
https://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require('staff.inc.php');
require_once(INCLUDE_DIR.'class.faq.php');
$category=null;
if($_REQUEST['cid'] && !($category=Category::lookup($_REQUEST['cid'])))
$errors['err']=__('Unknown or invalid FAQ category');
$inc='faq-categories.inc.php'; //KB landing page.
if($category && $_REQUEST['a']!='search') {
$inc='faq-category.inc.php';
}
$nav->setTabActive('kbase');
$ost->addExtraHeader('<meta name="tip-namespace" content="knowledgebase.faqs" />',
"$('#content').data('tipNamespace', 'knowledgebase.faqs');");
require_once(STAFFINC_DIR.'header.inc.php');
require_once(STAFFINC_DIR.$inc);
require_once(STAFFINC_DIR.'footer.inc.php');
?>