Exemplo n.º 1
0
                                Html::helpHeader(__('FAQ'), $_SERVER['PHP_SELF']);
                            }
                            Html::helpHeader(__('FAQ'), $_SERVER['PHP_SELF'], $_SESSION["glpiname"]);
                        } else {
                            $_SESSION["glpilanguage"] = $CFG_GLPI['language'];
                            // Anonymous FAQ
                            Html::simpleHeader(__('FAQ'), array(__('Authentication') => $CFG_GLPI['root_doc'] . '/', __('FAQ') => $CFG_GLPI['root_doc'] . '/front/helpdesk.faq.php'));
                        }
                        $available_options = array('item_itemtype', 'item_items_id', 'id');
                        $options = array();
                        foreach ($available_options as $key) {
                            if (isset($_GET[$key])) {
                                $options[$key] = $_GET[$key];
                            }
                        }
                        $kb->display($options);
                        if (Session::getLoginUserID()) {
                            if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
                                Html::footer();
                            } else {
                                Html::helpFooter();
                            }
                        } else {
                            Html::helpFooter();
                        }
                    }
                }
            }
        }
    }
}