Print a nice HTML head for modal window (nothing to display)
static public popHeader ( $title, $url = '', $iframed = false ) | ||
$title | title of the page | |
$url | not used anymore (default '') | |
$iframed | indicate if page loaded in iframe - css target (default false) |
------------------------------------------------------------------------ */ include "../../../inc/includes.php"; Session::checkLoginUser(); if (isset($_GET["popup"])) { $_SESSION["glpipopup"]["name"] = $_GET["popup"]; } if (isset($_SESSION["glpipopup"]["name"])) { switch ($_SESSION["glpipopup"]["name"]) { case "test_rule": Html::popHeader(__('Test'), $_SERVER['PHP_SELF']); include "../../../front/rule.test.php"; break; case "test_all_rules": Html::popHeader(__('Test rules engine'), $_SERVER['PHP_SELF']); include "../../../front/rulesengine.test.php"; break; case "show_cache": Html::popHeader(__('Cache informations', 'fusioninventory'), $_SERVER['PHP_SELF']); include "../../../front/rule.cache.php"; break; case "pluginfusioninventory_networkport_display_options": Html::popHeader(__('Network ports display options', 'fusioninventory'), $_SERVER['PHP_SELF']); include "networkport.display.php"; break; } echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Back') . "</a>"; echo "</div>"; Html::popFooter(); }
} break; case 'Entity': $item = new Entity_KnowbaseItem(); break; } if (!is_null($item)) { $item->add($_POST); Event::log($_POST["knowbaseitems_id"], "knowbaseitem", 4, "tools", sprintf(__('%s adds a target'), $_SESSION["glpiname"])); } } Html::back(); } else { if (isset($_GET["id"])) { if (isset($_GET["_in_modal"])) { Html::popHeader(__('Knowledge base'), $_SERVER['PHP_SELF']); $kb = new KnowbaseItem(); if ($_GET['id']) { $kb->check($_GET["id"], READ); $kb->showFull(); } else { // New item $kb->showForm($_GET["id"], $_GET); } 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");
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 * @since version 0.85 */ if (!defined('GLPI_ROOT')) { include '../inc/includes.php'; } $link = new Supplier_Ticket(); Session::checkLoginUser(); Html::popHeader(__('Email followup'), $_SERVER['PHP_SELF']); if (isset($_POST["update"])) { $link->check($_POST["id"], UPDATE); $link->update($_POST); echo "<script type='text/javascript' >\n"; echo "window.parent.location.reload();"; echo "</script>"; } else { if (isset($_POST['delete'])) { $link->check($_POST['id'], DELETE); $link->delete($_POST); Event::log($link->fields['tickets_id'], "ticket", 4, "tracking", sprintf(__('%s deletes an actor'), $_SESSION["glpiname"])); Html::redirect($CFG_GLPI["root_doc"] . "/front/ticket.form.php?id=" . $link->fields['tickets_id']); } else { if (isset($_GET["id"])) { $link->showSupplierNotificationForm($_GET["id"]);
/** * Launch export of datas * * @param $opt */ function export($opt) { global $LANG; switch ($opt['switchto']) { default: case 'png': $graph = new PluginMreportingGraphpng(); //check the format display charts configured in glpi $opt = $this->initParams($opt, true); $opt['export'] = 'png'; $opt['withdata'] = 1; break; case 'csv': $graph = new PluginMreportingGraphcsv(); $opt['export'] = 'csv'; $opt['withdata'] = 1; break; case 'odt': $graph = new PluginMreportingGraphpng(); $opt = $this->initParams($opt, true); $opt['export'] = 'odt'; break; case 'odtall': $graph = new PluginMreportingGraphpng(); $opt = $this->initParams($opt, true); $opt['export'] = 'odtall'; break; } //export all with odt if (isset($opt['classname'])) { if (isset($opt['check'])) { unset($_SESSION['glpi_plugin_mreporting_odtarray']); $reports = $this->getAllReports(false, $opt); foreach ($reports as $classname => $report) { foreach ($report['functions'] as $func) { foreach ($opt['check'] as $do => $to) { if ($do == $func['function'] . $classname) { //dynamic instanciation of class passed by 'short_classname' GET parameter $class = 'PluginMreporting' . $func['short_classname']; $obj = new $class(); $randname = $classname . $func['function']; if (isset($opt['date1']) && isset($opt['date2'])) { $s = strtotime($opt['date2']) - strtotime($opt['date1']); // If customExportDates exists in class : we configure the dates if (method_exists($obj, 'customExportDates')) { $opt = $obj->customExportDates($opt, $func['function']); } $_REQUEST['date1' . $randname] = $opt['date1']; $_REQUEST['date2' . $randname] = $opt['date2']; } //dynamic call of method passed by 'f_name' //GET parameter with previously instancied class $datas = $obj->{$func}['function'](); //show graph (pgrah type determined by //first entry of explode of camelcase of function name $title_func = $LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['title']; $des_func = ""; if (isset($LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['desc'])) { $des_func = $LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['desc']; } if (isset($LANG['plugin_mreporting'][$func['short_classname']][$func['function']]['desc']) && isset($opt['date1']) && isset($opt['date2'])) { $des_func .= " - "; } if (isset($opt['date1']) && isset($opt['date2'])) { $des_func .= Html::convdate($opt['date1']) . " / " . Html::convdate($opt['date2']); } $options = array("short_classname" => $func['short_classname'], "f_name" => $func['function'], "class" => $opt['classname'], "gtype" => $func['gtype'], "randname" => $randname, "withdata" => $opt['withdata']); $show_label = 'always'; $params = array("raw_datas" => $datas, "title" => $title_func, "desc" => $des_func, "export" => $opt['export'], "opt" => $options); $graph->{'show' . $func['gtype']}($params); } } } } if (isset($_SESSION['glpi_plugin_mreporting_odtarray']) && !empty($_SESSION['glpi_plugin_mreporting_odtarray'])) { if (PluginMreportingPreference::atLeastOneTemplateExists()) { $template = PluginMreportingPreference::checkPreferenceTemplateValue(Session::getLoginUserID()); if ($template) { self::generateOdt($_SESSION['glpi_plugin_mreporting_odtarray']); } else { Html::popHeader($LANG['plugin_mreporting']["export"][0], $_SERVER['PHP_SELF']); echo "<div class='center'><br>" . $LANG['plugin_mreporting']["parser"][2] . "<br><br>"; Html::displayBackLink(); echo "</div>"; Html::popFooter(); } } else { Html::popHeader($LANG['plugin_mreporting']["export"][0], $_SERVER['PHP_SELF']); echo "<div class='center'><br>" . $LANG['plugin_mreporting']["parser"][3] . "<br><br>"; Html::displayBackLink(); echo "</div>"; Html::popFooter(); } } } else { //no selected data Html::popHeader($LANG['plugin_mreporting']["export"][0], $_SERVER['PHP_SELF']); echo "<div class='center'><br>" . $LANG['plugin_mreporting']["error"][3] . "<br><br>"; Html::displayBackLink(); echo "</div>"; Html::popFooter(); } } else { //dynamic instanciation of class passed by 'short_classname' GET parameter $classname = 'PluginMreporting' . $opt['short_classname']; $obj = new $classname(); //dynamic call of method passed by 'f_name' GET parameter with previously instancied class $datas = $obj->{$opt}['f_name'](); //show graph (pgrah type determined by first entry of explode of camelcase of function name $title_func = $LANG['plugin_mreporting'][$opt['short_classname']][$opt['f_name']]['title']; $des_func = ""; if (isset($LANG['plugin_mreporting'][$opt['short_classname']][$opt['f_name']]['desc'])) { $des_func = $LANG['plugin_mreporting'][$opt['short_classname']][$opt['f_name']]['desc']; } if (isset($LANG['plugin_mreporting'][$opt['short_classname']][$opt['f_name']]['desc']) && isset($_REQUEST['date1' . $opt['randname']]) && isset($_REQUEST['date2' . $opt['randname']])) { $des_func .= " - "; } if (isset($_REQUEST['date1' . $opt['randname']]) && isset($_REQUEST['date2' . $opt['randname']])) { $des_func .= Html::convdate($_REQUEST['date1' . $opt['randname']]) . " / " . Html::convdate($_REQUEST['date2' . $opt['randname']]); } $show_label = 'always'; $opt['class'] = $classname; $params = array("raw_datas" => $datas, "title" => $title_func, "desc" => $des_func, "export" => $opt['export'], "opt" => $opt); $graph->{'show' . $opt['gtype']}($params); } }
Html::back(); } else { if (isset($_POST["purge"])) { $ic->check($_POST["id"], PURGE); $ic->delete($_POST, 1); Event::log($_POST["id"], "infocom", 4, "financial", sprintf(__('%s purges an item'), $_SESSION["glpiname"])); Html::back(); } else { if (isset($_POST["update"])) { $ic->check($_POST["id"], UPDATE); $ic->update($_POST); Event::log($_POST["id"], "infocom", 4, "financial", sprintf(__('%s updates an item'), $_SESSION["glpiname"])); Html::back(); } else { Session::checkRight("infocom", READ); Html::popHeader(Infocom::getTypeName(), $_SERVER['PHP_SELF']); if (isset($_GET["id"])) { $ic->getFromDB($_GET["id"]); $_GET["itemtype"] = $ic->fields["itemtype"]; $_GET["items_id"] = $ic->fields["items_id"]; } $item = false; if (isset($_GET["itemtype"]) && ($item = getItemForItemtype($_GET["itemtype"]))) { if (!isset($_GET["items_id"]) || !$item->getFromDB($_GET["items_id"])) { $item = false; } } Infocom::showForItem($item, 0); Html::popFooter(); } }
include '../inc/includes.php'; Session::checkCentralAccess(); header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); try { $ma = new MassiveAction($_POST, $_GET, 'process'); } catch (Exception $e) { Html::popHeader(__('Bulk modification error'), $_SERVER['PHP_SELF']); echo "<div class='center'><img src='" . $CFG_GLPI["root_doc"] . "/pics/warning.png' alt='" . __s('Warning') . "'><br><br>"; echo "<span class='b'>" . $e->getMessage() . "</span><br>"; Html::displayBackLink(); echo "</div>"; Html::popFooter(); exit; } Html::popHeader(__('Bulk modification'), $_SERVER['PHP_SELF']); $results = $ma->process(); $nbok = $results['ok']; $nbko = $results['ko']; $nbnoright = $results['noright']; if ($nbok == 0) { $message = __('Failed operation'); } else { if ($nbnoright || $nbko) { $message = __('Operation performed partially successful'); } else { $message = __('Operation successful'); } } if ($nbnoright || $nbko) { //TRANS: %$1d and %$2d are numbers
@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"; Session::checkCentralAccess(); if (isset($_GET['mobile'])) { Html::popHeader('display'); } else { Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "display"); } if (isset($_POST['sessionupdate'])) { $_SESSION['glpi_plugin_monitoring']['_refresh'] = $_POST['_refresh']; Html::back(); exit; } if (isset($_POST["plugin_monitoring_timezone"])) { $_SESSION['plugin_monitoring_timezone'] = $_POST["plugin_monitoring_timezone"]; Html::back(); } if (isset($_POST['updateperfdata'])) { $pmComponent = new PluginMonitoringComponent(); if (isset($_POST["perfname"])) {
case 'Ticket': include "ticket_user.form.php"; break; case 'Problem': include "problem_user.form.php"; break; } break; case "add_ldapuser": Html::popHeader(__('Import a user'), $_SERVER['PHP_SELF']); include "ldap.import.php"; break; case "list_notificationtags": Html::popHeader(__('List of available tags'), $_SERVER['PHP_SELF']); include "notification.tags.php"; break; case "show_kb": Html::popHeader(__('Knowledge base'), $_SERVER['PHP_SELF']); $kb = new KnowbaseItem(); $kb->check($_GET["id"], 'r'); $kb->showFull(true); break; case "display_options": Html::popHeader(__('Display options'), $_SERVER['PHP_SELF']); include "display.options.php"; break; } echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Close') . "</a>"; echo "</div>"; Html::popFooter(); }
$_POST["locations_id"] = $_GET["locations_id"]; } if (!isset($_POST["download"])) { $_POST["download"] = $_GET["download"]; } $types = PluginPositionsPosition::getTypes(); if (!isset($_POST["itemtype"])) { $_POST["itemtype"] = $types; } $locations_id = $_POST["locations_id"]; $id = $_GET["positions_id"]; $itemtype = $_POST['itemtype']; $menuoff = 1; $download = $_POST['download']; } $plugin = new Plugin(); if (isset($_GET['from_treeview']) && $plugin->isActivated("treeview")) { Html::header(PluginPositionsPosition::getTypeName(), '', "plugins", "positions"); } else { Html::popHeader(PluginPositionsPosition::getTypeName(), $_SERVER['PHP_SELF']); } if (isset($locations_id) && !empty($locations_id)) { $target = $_SERVER['PHP_SELF'] . "?id=" . $id; $options = array('id' => $id, 'locations_id' => $locations_id, 'itemtype' => $itemtype, 'target' => $target, 'menuoff' => $menuoff, 'download' => $download); PluginPositionsPosition::showMap($options); } else { echo "<div class='center'><br><br>"; echo "<img src='" . $CFG_GLPI["root_doc"] . "/pics/warning.png' alt='warning'><br><br>"; echo "<span class='b'>" . __('The selected object is not located on a map', 'positions') . "</span></div>"; } Html::popFooter();
(at your option) any later version. Typology 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 General Public License for more details. You should have received a copy of the GNU General Public License along with Typology. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; Session::checkLoginUser(); if (isset($_GET["popup"])) { $_SESSION["glpipopup"]["name"] = $_GET["popup"]; } if (isset($_SESSION["glpipopup"]["name"])) { switch ($_SESSION["glpipopup"]["name"]) { case "test_rule": Html::popHeader(__('Test'), $_SERVER['PHP_SELF']); include GLPI_ROOT . "/front/rule.test.php"; break; case "test_all_rules": Html::popHeader(__('Test rules engine'), $_SERVER['PHP_SELF']); include GLPI_ROOT . "/front/rulesengine.test.php"; break; } echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Close') . "</a>"; echo "</div>"; Html::popFooter(); }
Datainjection plugin 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 General Public License for more details. You should have received a copy of the GNU General Public License along with datainjection. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- @package datainjection @author the datainjection plugin team @copyright Copyright (c) 2010-2013 Datainjection plugin team @license GPLv2+ http://www.gnu.org/licenses/gpl.txt @link https://forge.indepnet.net/projects/datainjection @link http://www.glpi-project.org/ @since 2009 ---------------------------------------------------------------------- */ include '../../../inc/includes.php'; Session::checkLoginUser(); switch ($_GET["popup"]) { case "preview": Html::popHeader(__('See the file', 'datainjection'), $_SERVER['PHP_SELF']); PluginDatainjectionModel::showPreviewMappings($_GET['models_id']); Html::popFooter(); break; case "log": Html::popHeader(__('File injection report', 'datainjection'), $_SERVER['PHP_SELF']); PluginDatainjectionModel::showLogResults($_GET['models_id']); Html::popFooter(); break; }
------------------------------------------------------------------------- LICENSE This file is part of mreporting. mreporting is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mreporting 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 General Public License for more details. You should have received a copy of the GNU General Public License along with mreporting. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include "../../../inc/includes.php"; Session::checkLoginUser(); if (isset($_GET["classname"])) { $_POST["classname"] = $_GET["classname"]; } Html::popHeader($LANG['plugin_mreporting']["export"][0], $_SERVER['PHP_SELF']); $common = new PluginMreportingCommon(); $common->showExportForm($_POST); echo "<div class='center'><br><a href='javascript:window.close()'>" . __("Close") . "</a>"; echo "</div>"; Html::popFooter();
<?php include "../../../inc/includes.php"; Html::popHeader(__("full assignation history", "escalade"), $_SERVER['PHP_SELF']); echo "<div class='center'><br><a href='javascript:window.close()'>" . __("Close") . "</a>"; echo "</div>"; echo "<div id='page'>"; PluginEscaladeHistory::getHistory($_REQUEST['tickets_id'], true); echo "</div>"; Html::popFooter();
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 */ if (!defined('GLPI_ROOT')) { include '../inc/includes.php'; } Session::checkRight("import_externalauth_users", 'w'); // Need REQUEST to manage initial walues and posted ones AuthLdap::manageValuesInSession($_REQUEST); if (isset($_SESSION['ldap_import']['popup']) && $_SESSION['ldap_import']['popup']) { Html::popHeader(__('LDAP directory link'), $_SERVER['PHP_SELF']); } else { Html::header(__('LDAP directory link'), $_SERVER['PHP_SELF'], "admin", "user", "ldap"); } if (isset($_GET['start'])) { $_SESSION['ldap_import']['start'] = $_GET['start']; } if (isset($_GET['order'])) { $_SESSION['ldap_import']['order'] = $_GET['order']; } if ($_SESSION['ldap_import']['action'] == 'show') { $authldap = new AuthLDAP(); $authldap->getFromDB($_SESSION['ldap_import']['authldaps_id']); AuthLdap::showUserImportForm($authldap); if (isset($_SESSION['ldap_import']['authldaps_id']) && $_SESSION['ldap_import']['authldaps_id'] != NOT_AVAILABLE && isset($_SESSION['ldap_import']['criterias']) && !empty($_SESSION['ldap_import']['criterias'])) { echo "<br />";
Html::back(); } else { if (isset($_POST["delete"])) { $group->check($_POST["id"], 'd'); $group->delete($_POST); Event::log($_POST["id"], "groups", 4, "setup", sprintf(__('%s purges an item'), $_SESSION["glpiname"])); $group->redirectToList(); } else { if (isset($_POST["update"])) { $group->check($_POST["id"], 'w'); $group->update($_POST); Event::log($_POST["id"], "groups", 4, "setup", sprintf(__('%s updates an item'), $_SESSION["glpiname"])); Html::back(); } else { if (isset($_GET['popup'])) { Html::popHeader(Group::getTypeName(2), $_SERVER['PHP_SELF']); if (isset($_GET["rand"])) { $_SESSION["glpipopup"]["rand"] = $_GET["rand"]; } $group->showForm($_GET["id"]); echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Back') . "</a>"; echo "</div>"; Html::popFooter(); } else { Html::header(Group::getTypeName(2), $_SERVER['PHP_SELF'], "admin", "group"); $group->showForm($_GET["id"]); Html::footer(); } } } }
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; Session::checkLoginUser(); if (isset($_GET["popup"])) { $_SESSION["glpipopup"]["name"] = $_GET["popup"]; } if (isset($_SESSION["glpipopup"]["name"])) { switch ($_SESSION["glpipopup"]["name"]) { case "test_rule": Html::popHeader(__('Test'), $_SERVER['PHP_SELF']); include "../../../front/rule.test.php"; break; case "test_all_rules": Html::popHeader(__('Test rules engine'), $_SERVER['PHP_SELF']); include "../../../front/rulesengine.test.php"; break; case "show_cache": Html::popHeader(__('Cache information'), $_SERVER['PHP_SELF']); include "../../../front/rule.cache.php"; break; } echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Back') . "</a>"; echo "</div>"; Html::popFooter(); }
if (!isset($_GET["uID"])) { if (($uid = Session::getLoginUserID()) && !Session::haveRight("planning", Planning::READALL)) { $_GET["uID"] = $uid; } else { $_GET["uID"] = 0; } } if (!isset($_GET["gID"])) { $_GET["gID"] = 0; } if (!isset($_GET["limititemtype"])) { $_GET["limititemtype"] = ""; } // Normal call via $_GET if (isset($_GET['checkavailability'])) { Html::popHeader(__('Availability')); Planning::checkAvailability($_GET); Html::popFooter(); } else { if (isset($_GET['genical'])) { if (isset($_GET['token'])) { // Check user token $user = new User(); if ($user->getFromDBByToken($_GET['token'])) { if (isset($_GET['entities_id']) && isset($_GET['is_recursive'])) { $user->loadMinimalSession($_GET['entities_id'], $_GET['is_recursive']); } //// check if the request is valid: rights on uID / gID // First check mine : user then groups $ismine = false; if ($user->getID() == $_GET["uID"]) {
$alias->delete($_POST); Event::log($_POST["id"], $alias->getType(), 4, "setup", sprintf(__('%s purges an item'), $_SESSION["glpiname"])); if ($item) { Html::redirect($item->getLinkURL()); } else { Html::redirect($CFG_GLPI['root_doc'] . "/front/central.php"); } } else { if (isset($_POST["update"])) { $alias->check($_POST["id"], 'w'); $alias->update($_POST); Ajax::refreshPopupMainWindow(); Event::log($_POST["id"], $alias->getType(), 4, "setup", sprintf(__('%s updates an item'), $_SESSION["glpiname"])); Html::back(); } } } if (isset($_GET['popup'])) { Html::popHeader(NetworkAlias::getTypeName(1), $_SERVER['PHP_SELF']); if (isset($_GET["rand"])) { $_SESSION["glpipopup"]["rand"] = $_GET["rand"]; } $alias->showForm($_GET["id"], $_GET); echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Back') . "</a>"; echo "</div>"; Html::popFooter(); } else { Html::header(NetworkAlias::getTypeName(2), $_SERVER['PHP_SELF'], 'inventory'); $alias->showForm($_GET["id"], $_GET); Html::footer(); }
$group->showDeleteConfirmForm($_SERVER['PHP_SELF']); Html::footer(); } else { $group->delete($_POST, 1); Event::log($_POST["id"], "groups", 4, "setup", sprintf(__('%s purges an item'), $_SESSION["glpiname"])); $group->redirectToList(); } } else { if (isset($_POST["update"])) { $group->check($_POST["id"], UPDATE); $group->update($_POST); Event::log($_POST["id"], "groups", 4, "setup", sprintf(__('%s updates an item'), $_SESSION["glpiname"])); Html::back(); } else { if (isset($_GET['_in_modal'])) { Html::popHeader(Group::getTypeName(Session::getPluralNumber()), $_SERVER['PHP_SELF']); $group->showForm($_GET["id"]); Html::popFooter(); } else { if (isset($_POST["replace"])) { $group->check($_POST["id"], PURGE); $group->delete($_POST, 1); Event::log($_POST["id"], "groups", 4, "setup", sprintf(__('%s replaces an item'), $_SESSION["glpiname"])); $group->redirectToList(); } else { Html::header(Group::getTypeName(Session::getPluralNumber()), $_SERVER['PHP_SELF'], "admin", "group"); $group->display(array('id' => $_GET["id"])); Html::footer(); } } }
} $budget->redirectToList(); } else { if (isset($_POST["purge"])) { $budget->check($_POST["id"], PURGE); if ($budget->delete($_POST, 1)) { Event::log($_POST["id"], "budget", 4, "financial", sprintf(__('%s purges an item'), $_SESSION["glpiname"])); } $budget->redirectToList(); } else { if (isset($_POST["update"])) { $budget->check($_POST["id"], UPDATE); if ($budget->update($_POST)) { Event::log($_POST["id"], "budget", 4, "financial", sprintf(__('%s updates an item'), $_SESSION["glpiname"])); } Html::back(); } else { if (isset($_GET['_in_modal'])) { Html::popHeader(Budget::getTypeName(1), $_SERVER['PHP_SELF']); $budget->showForm($_GET["id"], array('withtemplate' => $_GET["withtemplate"])); Html::popFooter(); } else { Html::header(Budget::getTypeName(1), $_SERVER['PHP_SELF'], "management", "budget"); $budget->display(array('id' => $_GET["id"], 'withtemplate' => $_GET["withtemplate"])); Html::footer(); } } } } } }
------------------------------------------------------------------------ @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"; Html::popHeader("weathermap"); PluginMonitoringProfile::checkRight("weathermap", "r"); if (!isset($_GET['id'])) { exit; } $id = $_GET['id']; $pmWeathermap = new PluginMonitoringWeathermap(); $pmWeathermap->generateWeathermap($id); echo '<div id="custom_date" style="display:none"></div>'; echo '<div id="custom_time" style="display:none"></div>'; //$pmWeathermap->generateAllGraphs($id); $html = file_get_contents(GLPI_PLUGIN_DOC_DIR . "/monitoring/weathermap-" . $id . ".html"); $html = str_replace(GLPI_PLUGIN_DOC_DIR . "/monitoring/weathermap-" . $id . ".png", $CFG_GLPI['root_doc'] . "/plugins/monitoring/front/send.php?file=weathermap-" . $id . ".png", $html); PluginMonitoringServicegraph::loadLib(); echo $html; echo '<meta http-equiv ="refresh" content="150">';
This file is part of GLPI. GLPI is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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 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 */ if (!defined('GLPI_ROOT')) { include '../inc/includes.php'; } Html::popHeader(__('List of available tags'), $_SERVER['PHP_SELF']); if (isset($_GET["sub_type"])) { Session::checkCentralAccess(); NotificationTemplateTranslation::showAvailableTags($_GET["sub_type"]); Html::ajaxFooter(); } else { Html::displayErrorAndDie("lost"); } Html::popFooter();
$dropdown->update($_POST); $dropdown->refreshParentInfos(); Event::log($_POST["id"], get_class($dropdown), 4, "setup", sprintf(__('%s updates an item'), $_SESSION["glpiname"])); Html::back(); } else { if (isset($_POST['execute']) && isset($_POST['_method'])) { $method = 'execute' . $_POST['_method']; if (method_exists($dropdown, $method)) { call_user_func(array(&$dropdown, $method), $_POST); Html::back(); } else { Html::displayErrorAndDie(__('No selected element or badly defined operation')); } } else { if (isset($_GET['popup'])) { Html::popHeader($dropdown->getTypeName(1), $_SERVER['PHP_SELF']); if (isset($_GET["rand"])) { $_SESSION["glpipopup"]["rand"] = $_GET["rand"]; } $dropdown->showForm($_GET["id"]); echo "<div class='center'><br><a href='javascript:window.close()'>" . __('Back') . "</a>"; echo "</div>"; Html::popFooter(); } else { $dropdown->displayHeader(); if (!isset($options)) { $options = array(); } $dropdown->showForm($_GET["id"], $options); Html::footer(); }
http://indepnet.net/ http://glpi-project.org ------------------------------------------------------------------------- LICENSE This file is part of GLPI. GLPI is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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 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'; Session::checkLoginUser(); Html::popHeader(__('Setup'), $_SERVER['PHP_SELF']); Search::manageGetValues('DocumentType'); Search::showList('DocumentType', $_GET); Html::popFooter();
Shellcommands plugin for GLPI Copyright (C) 2003-2011 by the Shellcommands Development Team. https://forge.indepnet.net/projects/shellcommands ------------------------------------------------------------------------- LICENSE This file is part of Shellcommands. Shellcommands is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Shellcommands 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 General Public License for more details. You should have received a copy of the GNU General Public License along with shellcommands. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; Html::popHeader(PluginShellcommandsShellcommand::getTypeName(2)); $command = new PluginShellcommandsShellcommand(); $command_item = new PluginShellcommandsShellcommand_Item(); $command->checkGlobal("r"); PluginShellcommandsShellcommand_Item::lauchCommand($_GET); Html::popFooter();