simpleHeader() статический публичный Метод

Print a simple HTML head with links
static public simpleHeader ( $title, $links = [] )
$title title of the page
$links array of links to display
Пример #1
0
     }
     Html::popFooter();
 } else {
     // modifier un item dans la base de connaissance
     $kb->check($_GET["id"], READ);
     if (Session::getLoginUserID()) {
         if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
             Html::header(KnowbaseItem::getTypeName(1), $_SERVER['PHP_SELF'], "tools", "knowbaseitem");
         } else {
             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();
         }
Пример #2
0
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
/** @file
* @brief
*/
include '../inc/includes.php';
if (!$CFG_GLPI['use_mailing'] || !countElementsInTable('glpi_notifications', "`itemtype`='User' AND `event`='passwordforget' AND `is_active`=1")) {
    exit;
}
$user = new User();
// Manage lost password
Html::simpleHeader(__('Forgotten password?'));
// REQUEST needed : GET on first access / POST on submit form
if (isset($_REQUEST['password_forget_token'])) {
    if (isset($_POST['email'])) {
        $user->updateForgottenPassword($_REQUEST);
    } else {
        User::showPasswordForgetChangeForm($_REQUEST['password_forget_token']);
    }
} else {
    if (isset($_POST['email'])) {
        $user->forgetPassword($_POST['email']);
    } else {
        User::showPasswordForgetRequestForm();
    }
}
Html::nullFooter();
Пример #3
0
<?php

include '../../../inc/includes.php';
//anonyme or not ?
Session::checkLoginUser();
if (Session::getLoginUserID()) {
    Html::header($LANG['plugin_formcreator']['name'], $_SERVER['PHP_SELF'], "plugins", "formcreator", "form");
} else {
    //$_SESSION["glpilanguage"] = $CFG_GLPI['language'];
    Html::simpleHeader($LANG['plugin_formcreator']['name2'], array(__('Authentication') => "../../../index.php?co=1", __('FAQ') => "../../../front/helpdesk.faq.php", $LANG['plugin_formcreator']['name2'] => "./formlist.php"));
}
function getFullForm($questions, $question, $content)
{
    $out = '';
    foreach ($questions as $question_id => $question_value) {
        if ($question_value['type'] != 5 && $question_value['type'] != 6) {
            $question_name = "question_" . $question_id;
            $answer_name = "answer_" . $question_id;
            if (array_key_exists($question_name, $question)) {
                $out .= $question_value['name'] . ' : ' . $question[$question_name] . "\n";
            }
        }
    }
    return $out;
}
function processIfs($string, $question)
{
    if (preg_match_all("/##IF([a-z\\_0-9]*)[=]?(.*?)##/i", $string, $out)) {
        foreach ($out[1] as $key => $tag_infos) {
            $if_field = $tag_infos;
            preg_match("/([0-9]+)/i", $if_field, $matches);
Пример #4
0
include '../inc/includes.php';
// Redirect management
if (isset($_GET["redirect"])) {
    Toolbox::manageRedirect($_GET["redirect"]);
}
//*******************
// Affichage Module FAQ
//******************
$name = "";
Session::checkFaqAccess();
if (Session::getLoginUserID()) {
    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') => $_SERVER['PHP_SELF']));
}
if (isset($_GET["id"])) {
    $kb = new KnowbaseItem();
    if ($kb->getFromDB($_GET["id"])) {
        $kb->showFull(false);
    }
} else {
    // Manage forcetab : non standard system (file name <> class name)
    if (isset($_GET['forcetab'])) {
        Session::setActiveTab('Knowbase', $_GET['forcetab']);
        unset($_GET['forcetab']);
    }
    $kb = new Knowbase();
    $kb->show($_GET);
}
Пример #5
0
  Plugin Monitoring for GLPI is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  GNU Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with Monitoring. If not, see <http://www.gnu.org/licenses/>.

  ------------------------------------------------------------------------

  @package   Plugin Monitoring for GLPI
  @author    David Durieux
  @co-author 
  @comment   
  @copyright Copyright (c) 2011-2013 Plugin Monitoring for GLPI team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      https://forge.indepnet.net/projects/monitoring/
  @since     2011

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
PluginMonitoringProfile::checkRight("componentscatalog", 'w');
Html::simpleHeader(__('Monitoring', 'monitoring'));
if (isset($_POST['update'])) {
    $pmNetworkport = new PluginMonitoringNetworkport();
    $pmNetworkport->updateNetworkports();
    Html::back();
}
Html::footer();