You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
<?php
|
|
/*********************************************************************
|
|
faq.php
|
|
|
|
FAQs Clients' interface..
|
|
|
|
Peter Rotich <peter@osticket.com>
|
|
Copyright (c) 2006-2013 osTicket
|
|
http://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('kb.inc.php');
|
|
require_once(INCLUDE_DIR.'class.faq.php');
|
|
|
|
$faq=$category=null;
|
|
if($_REQUEST['id'] && !($faq=FAQ::lookup($_REQUEST['id'])))
|
|
$errors['err']=sprintf(__('%s: Unknown or invalid'), __('FAQ article'));
|
|
|
|
if(!$faq && $_REQUEST['cid'] && !($category=Category::lookup($_REQUEST['cid'])))
|
|
$errors['err']=sprintf(__('%s: Unknown or invalid'), __('FAQ category'));
|
|
|
|
|
|
$inc='knowledgebase.inc.php'; //FAQs landing page.
|
|
if($faq && $faq->isPublished()) {
|
|
$inc='faq.inc.php';
|
|
} elseif($category && $category->isPublic() && $_REQUEST['a']!='search') {
|
|
$inc='faq-category.inc.php';
|
|
}
|
|
require_once(CLIENTINC_DIR.'header.inc.php');
|
|
require_once(CLIENTINC_DIR.$inc);
|
|
require_once(CLIENTINC_DIR.'footer.inc.php');
|
|
?>
|