Skip to content
Snippets Groups Projects
kb.php 923 B
Newer Older
  • Learn to ignore specific revisions
  • Jared Hancock's avatar
    Jared Hancock committed
    <?php
    /*********************************************************************
        kb.php
    
        Knowlegebase 
    
        Peter Rotich <peter@osticket.com>
    
        Copyright (c)  2006-2013 osTicket
    
    Jared Hancock's avatar
    Jared Hancock committed
        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('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.
    
    Jared Hancock's avatar
    Jared Hancock committed
    if($category && $_REQUEST['a']!='search') {
    
        $inc='faq-category.inc.php';
    
    Jared Hancock's avatar
    Jared Hancock committed
    }
    $nav->setTabActive('kbase');
    require_once(STAFFINC_DIR.'header.inc.php');
    require_once(STAFFINC_DIR.$inc);
    require_once(STAFFINC_DIR.'footer.inc.php');
    ?>