Ocsinventoryng plugin 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. Ocsinventoryng 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 ocsinventoryng. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; Session::checkSeveralRightsOr(array("plugin_ocsinventoryng" => READ, "plugin_ocsinventoryng_clean" => READ)); Html::header('OCS Inventory NG', '', "tools", "pluginocsinventoryngmenu", "ocsinventoryng"); if (isset($_SESSION["ocs_import"])) { unset($_SESSION["ocs_import"]); } if (isset($_SESSION["ocs_link"])) { unset($_SESSION["ocs_link"]); } if (isset($_SESSION["ocs_update"])) { unset($_SESSION["ocs_update"]); } if (isset($_POST["plugin_ocsinventoryng_ocsservers_id"])) { $_SESSION["plugin_ocsinventoryng_ocsservers_id"] = $_POST["plugin_ocsinventoryng_ocsservers_id"]; } else { $_SESSION["plugin_ocsinventoryng_ocsservers_id"] = PluginOcsinventoryngOcsServer::getFirstServer(); }
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'; header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); if (!isset($_POST["itemtype"]) || !($item = getItemForItemtype($_POST['itemtype']))) { exit; } if (InfoCom::canApplyOn($_POST["itemtype"])) { Session::checkSeveralRightsOr(array($_POST["itemtype"] => UPDATE, "infocom" => UPDATE)); } else { $item->checkGlobal(UPDATE); } $inline = false; if (isset($_POST['inline']) && $_POST['inline']) { $inline = true; } $submitname = _sx('button', 'Post'); if (isset($_POST['submitname']) && $_POST['submitname']) { $submitname = stripslashes($_POST['submitname']); } if (isset($_POST["itemtype"]) && isset($_POST["id_field"]) && $_POST["id_field"]) { $search = Search::getOptions($_POST["itemtype"]); if (!isset($search[$_POST["id_field"]])) { exit;
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'; } if (!strpos($_SERVER['PHP_SELF'], "popup")) { Html::header(__('Setup'), $_SERVER['PHP_SELF'], "config", "display"); } Session::checkSeveralRightsOr(array("search_config_global" => "w", "search_config" => "w")); $setupdisplay = new DisplayPreference(); if (isset($_POST["activate"])) { $setupdisplay->activatePerso($_POST); } else { if (isset($_POST["add"])) { $setupdisplay->add($_POST); } else { if (isset($_POST["delete"]) || isset($_POST["delete_x"])) { $setupdisplay->delete($_POST); } else { if (isset($_POST["up"]) || isset($_POST["up_x"])) { $setupdisplay->orderItem($_POST, 'up'); } else { if (isset($_POST["down"]) || isset($_POST["down_x"])) { $setupdisplay->orderItem($_POST, 'down');
Copyright (C) 2003-2013 by the INDEPNET Development Team. 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::checkSeveralRightsOr(array('show_all_problem' => '1', 'show_my_problem' => '1')); Html::header(Problem::getTypeName(2), '', "maintain", "problem"); Search::show('Problem'); Html::footer();
(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::checkSeveralRightsOr(array('rule_dictionnary_dropdown' => READ, 'rule_dictionnary_software' => READ)); Html::header(__('Administration'), $_SERVER['PHP_SELF'], "admin", "dictionnary", -1); RuleCollection::titleBackup(); echo "<div class='center'><table class='tab_cadre'>"; echo "<tr><th colspan='4'>" . __('Dictionaries') . "</th></tr>"; echo "<tr class='tab_bg_1'><td class='top'><table class='tab_cadre'>"; echo "<tr><th>" . __('Global dictionary') . "</th></tr>"; if (Session::haveRight("rule_dictionnary_software", READ)) { echo "<tr class='tab_bg_1'><td class='center b'>"; echo "<a href=\"ruledictionnarysoftware.php\">" . _n('Software', 'Software', 2) . "</a></td></tr>"; } if (Session::haveRight("rule_dictionnary_dropdown", READ)) { echo "<tr class='tab_bg_1'><td class='center b'>"; echo "<a href=\"ruledictionnarymanufacturer.php\">" . _n('Manufacturer', 'Manufacturers', 2) . "</a></td></tr>"; } if (Session::haveRight("rule_dictionnary_printer", READ)) {
/** * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { global $CFG_GLPI; switch ($ma->getAction()) { case 'update': if (!isset($ma->POST['id_field'])) { $itemtypes = array_keys($ma->items); $options_per_type = array(); $options_counts = array(); foreach ($itemtypes as $itemtype) { $options_per_type[$itemtype] = array(); $group = ''; $show_all = true; $show_infocoms = true; $itemtable = getTableForItemType($itemtype); if (InfoCom::canApplyOn($itemtype) && (!$itemtype::canUpdate() || !Infocom::canUpdate())) { $show_all = false; $show_infocoms = Infocom::canUpdate(); } foreach (Search::getCleanedOptions($itemtype, UPDATE) as $index => $option) { if (!is_array($option)) { $group = $option; $options_per_type[$itemtype][$group] = array(); } else { if ($option['field'] != 'id' && $index != 1 && ($option["linkfield"] != 'entities_id' || isset($option['massiveaction']) && $option['massiveaction'])) { if (!isset($option['massiveaction']) || $option['massiveaction']) { if ($show_all || ($show_infocoms && Search::isInfocomOption($itemtype, $index) || !$show_infocoms && !Search::isInfocomOption($itemtype, $index))) { $options_per_type[$itemtype][$group][$itemtype . ':' . $index] = $option['name']; if ($itemtable == $option['table']) { $field_key = 'MAIN:' . $option['field'] . ':' . $index; } else { $field_key = $option['table'] . ':' . $option['field'] . ':' . $index; } if (!isset($options_count[$field_key])) { $options_count[$field_key] = array(); } $options_count[$field_key][] = $itemtype . ':' . $index . ':' . $group; if (isset($option['MA_common_field'])) { if (!isset($options_count[$option['MA_common_field']])) { $options_count[$option['MA_common_field']] = array(); } $options_count[$option['MA_common_field']][] = $itemtype . ':' . $index . ':' . $group; } } } } } } } if (count($itemtypes) > 1) { $common_options = array(); foreach ($options_count as $field => $users) { if (count($users) > 1) { $labels = array(); foreach ($users as $user) { $user = explode(':', $user); $itemtype = $user[0]; $index = $itemtype . ':' . $user[1]; $group = implode(':', array_slice($user, 2)); if (isset($options_per_type[$itemtype][$group][$index])) { if (!in_array($options_per_type[$itemtype][$group][$index], $labels)) { $labels[] = $options_per_type[$itemtype][$group][$index]; } } $common_options[$field][] = $index; } $options[$group][$field] = implode('/', $labels); } } $choose_itemtype = true; $itemtype_choices = array(-1 => Dropdown::EMPTY_VALUE); foreach ($itemtypes as $itemtype) { $itemtype_choices[$itemtype] = $itemtype::getTypeName(Session::getPluralNumber()); } } else { $options = $options_per_type[$itemtypes[0]]; $common_options = false; $choose_itemtype = false; } $choose_field = count($options) > 1; // Beware: "class='tab_cadre_fixe'" induce side effects ... echo "<table width='100%'><tr>"; $colspan = 0; if ($choose_field) { $colspan++; echo "<td>"; if ($common_options) { echo __('Select the common field that you want to update'); } else { echo __('Select the field that you want to update'); } echo "</td>"; if ($choose_itemtype) { $colspan++; echo "<td rowspan='2'>" . __('or') . "</td>"; } } if ($choose_itemtype) { $colspan++; echo "<td>" . __('Select the type of the item on which applying this action') . "</td>"; } echo "</tr><tr>"; if ($choose_field) { echo "<td>"; $field_rand = Dropdown::showFromArray('id_field', $options, array('display_emptychoice' => true)); echo "</td>"; } if ($choose_itemtype) { echo "<td>"; $itemtype_rand = Dropdown::showFromArray('specialize_itemtype', $itemtype_choices); echo "</td>"; } $next_step_rand = mt_rand(); echo "</tr></table>"; echo "<span id='update_next_step{$next_step_rand}'> </span>"; if ($choose_field) { $params = $ma->POST; $params['id_field'] = '__VALUE__'; $params['common_options'] = $common_options; Ajax::updateItemOnSelectEvent("dropdown_id_field{$field_rand}", "update_next_step{$next_step_rand}", $_SERVER['REQUEST_URI'], $params); } if ($choose_itemtype) { $params = $ma->POST; $params['specialize_itemtype'] = '__VALUE__'; $params['common_options'] = $common_options; Ajax::updateItemOnSelectEvent("dropdown_specialize_itemtype{$itemtype_rand}", "update_next_step{$next_step_rand}", $_SERVER['REQUEST_URI'], $params); } // Only display the form for this stage exit; } if (!isset($ma->POST['common_options'])) { echo "<div class='center'><img src='" . $CFG_GLPI["root_doc"] . "/pics/warning.png' alt='" . __s('Warning') . "'><br><br>"; echo "<span class='b'>" . __('Implementation error !') . "</span><br>"; echo "</div>"; exit; } if ($ma->POST['common_options'] == 'false') { $search_options = array($ma->POST['id_field']); } else { if (isset($ma->POST['common_options'][$ma->POST['id_field']])) { $search_options = $ma->POST['common_options'][$ma->POST['id_field']]; } else { $search_options = array(); } } $items = array(); foreach ($search_options as $search_option) { $search_option = explode(':', $search_option); $itemtype = $search_option[0]; $index = $search_option[1]; if (!($item = getItemForItemtype($itemtype))) { continue; } if (InfoCom::canApplyOn($itemtype)) { Session::checkSeveralRightsOr(array($itemtype => UPDATE, "infocom" => UPDATE)); } else { $item->checkGlobal(UPDATE); } $search = Search::getOptions($itemtype); if (!isset($search[$index])) { exit; } $item->search = $search[$index]; $items[] = $item; } if (count($items) == 0) { exit; } // TODO: ensure that all items are equivalent ... $item = $items[0]; $search = $item->search; $plugdisplay = false; if (($plug = isPluginItemType($item->getType())) || ($plug = isPluginItemType(getItemTypeForTable($item->search['table'])))) { $plugdisplay = Plugin::doOneHook($plug['plugin'], 'MassiveActionsFieldsDisplay', array('itemtype' => $item->getType(), 'options' => $item->search)); } if (empty($search["linkfield"]) || $search['table'] == 'glpi_infocoms') { $fieldname = $search["field"]; } else { $fieldname = $search["linkfield"]; } if (!$plugdisplay) { $options = array(); $values = array(); // For ticket template or aditional options of massive actions if (isset($ma->POST['options'])) { $options = $ma->POST['options']; } if (isset($ma->POST['additionalvalues'])) { $values = $ma->POST['additionalvalues']; } $values[$search["field"]] = ''; echo $item->getValueToSelect($search, $fieldname, $values, $options); } $items_index = array(); foreach ($search_options as $search_option) { $search_option = explode(':', $search_option); $items_index[$search_option[0]] = $search_option[1]; } echo Html::hidden('search_options', array('value' => $items_index)); echo Html::hidden('field', array('value' => $fieldname)); echo "<br>\n"; $submitname = _sx('button', 'Post'); if (isset($ma->POST['submitname']) && $ma->POST['submitname']) { $submitname = stripslashes($ma->POST['submitname']); } echo Html::submit($submitname, array('name' => 'massiveaction')); return true; } return false; }
(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::checkSeveralRightsOr(array('notification' => READ, 'config' => UPDATE)); Html::header(_n('Notification', 'Notifications', 2), $_SERVER['PHP_SELF'], "config", "notification"); if (isset($_POST['activate'])) { $config = new Config(); $tmp['id'] = 1; $tmp['use_mailing'] = 1; $config->update($tmp); Html::back(); } if (!$CFG_GLPI['use_mailing']) { if (Session::haveRight("config", UPDATE)) { echo "<div class='center'>"; Html::showSimpleForm($_SERVER['PHP_SELF'], 'activate', __('Enable followup via email')); echo "</div>"; } } else {
} } // Else check group if (!$canview && $_GET['gID']) { $group = new Group(); if ($group->getFromDB($_GET['gID'])) { if (in_array($group->getEntityID(), $entities)) { $canview = true; } } } } if ($ismine || $canview) { Planning::generateIcal($_GET["uID"], $_GET["gID"], $_GET["limititemtype"]); } } } } else { Html::header(__('Planning'), $_SERVER['PHP_SELF'], "maintain", "planning"); Session::checkSeveralRightsOr(array('show_all_planning' => '1', 'show_planning' => '1')); if (!isset($_GET["date"]) || empty($_GET["date"])) { $_GET["date"] = strftime("%Y-%m-%d"); } if (!isset($_GET["type"])) { $_GET["type"] = "week"; } $planning = new Planning(); $planning->show($_GET); Html::footer(); } }
(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::checkSeveralRightsOr(array("reservation_central" => "r", "reservation_helpdesk" => "1")); if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") { Html::helpHeader(__('Simplified interface'), $_SERVER['PHP_SELF'], $_SESSION["glpiname"]); } else { Html::header(Reservation::getTypeName(2), $_SERVER['PHP_SELF'], "utils", "reservation"); } if (!Session::haveRight("reservation_central", "r")) { ReservationItem::showListSimple(); } else { Search::show('ReservationItem'); } if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") { Html::helpFooter(); } else { Html::footer(); }
(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::checkSeveralRightsOr(array("networking" => "w", "internet" => "w")); if (!TableExists('glpi_networkportmigrations')) { Session::addMessageAfterRedirect(__('You don\'t need the "migration cleaner" tool anymore...')); Html::redirect($CFG_GLPI["root_doc"] . "/front/central.php"); } Html::header(__('Migration cleaner'), $_SERVER['PHP_SELF'], "utils", "migration"); echo "<div class='spaced' id='tabsbody'>"; echo "<table class='tab_cadre_fixe'>"; echo "<tr><th>" . __('"Migration cleaner" tool') . "</td></tr>"; if (Session::haveRight('internet', 'w') && Session::isViewAllEntities()) { echo "<tr class='tab_bg_1'><td class='center'>"; Html::showSimpleForm(IPNetwork::getFormURL(), 'reinit_network', __('Reinit the network topology')); echo "</td></tr>"; } if (Session::haveRight('networking', 'w')) { echo "<tr class='tab_bg_1'><td class='center'>";
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 * @since version 0.85 (change name before migration_cleaner) */ include '../inc/includes.php'; Session::checkSeveralRightsOr(array("networking" => UPDATE, "internet" => UPDATE)); if (!TableExists('glpi_networkportmigrations')) { Session::addMessageAfterRedirect(__('You don\'t need the "migration cleaner" tool anymore...')); Html::redirect($CFG_GLPI["root_doc"] . "/front/central.php"); } Html::header(__('Migration cleaner'), $_SERVER['PHP_SELF'], "tools", "migration"); echo "<div class='spaced' id='tabsbody'>"; echo "<table class='tab_cadre_fixe'>"; echo "<tr><th>" . __('"Migration cleaner" tool') . "</td></tr>"; if (Session::haveRight('internet', UPDATE) && Session::isViewAllEntities()) { echo "<tr class='tab_bg_1'><td class='center'>"; Html::showSimpleForm(IPNetwork::getFormURL(), 'reinit_network', __('Reinit the network topology')); echo "</td></tr>"; } if (Session::haveRight('networking', UPDATE)) { echo "<tr class='tab_bg_1'><td class='center'>";
Copyright (C) 2003-2014 by the INDEPNET Development Team. 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::checkSeveralRightsOr(array('show_all_change' => '1', 'show_my_change' => '1')); Html::header(Change::getTypeName(2), '', "maintain", "change"); Search::show('Change'); Html::footer();
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. reports 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 reports. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include_once "../../../inc/includes.php"; Plugin::load('reports'); Session::checkSeveralRightsOr(array("config" => "w", "profile" => "w")); Html::header(__('Setup'), $_SERVER['PHP_SELF'], "config", "plugins"); echo "<div class='center'>"; echo "<table class='tab_cadre'>"; echo "<tr><th>" . __('Reports plugin configuration', 'reports') . "</th></tr>"; if (Session::haveRight("profile", "w")) { echo "<tr class='tab_bg_1 center'><td>"; echo "<a href='report.form.php'>" . __('Reports plugin configuration', 'reports') . "</a>"; echo "</td/></tr>\n"; } if (Session::haveRight("config", "w")) { foreach (searchReport() as $report => $plug) { $url = getReportConfigPage($plug, $report); $file = GLPI_ROOT . getReportConfigPage($plug, $report); if (is_file($file)) { echo "<tr class='tab_bg_1 center'><td>";
(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::checkSeveralRightsOr(array('knowbase' => 'r', 'faq' => 'r')); if (isset($_GET["id"])) { Html::redirect($CFG_GLPI["root_doc"] . "/front/knowbaseitem.form.php?id=" . $_GET["id"]); } Html::header(KnowbaseItem::getTypeName(1), $_SERVER['PHP_SELF'], "utils", "knowbase"); // Search a solution if (!isset($_GET["contains"]) && isset($_GET["item_itemtype"]) && isset($_GET["item_items_id"])) { if ($item = getItemForItemtype($_GET["item_itemtype"])) { if ($item->getFromDB($_GET["item_items_id"])) { $_GET["contains"] = addslashes($item->getField('name')); } } } // Manage forcetab : non standard system (file name <> class name) if (isset($_GET['forcetab'])) { Session::setActiveTab('Knowbase', $_GET['forcetab']);
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'; header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); if (!isset($_POST["itemtype"]) || !($item = getItemForItemtype($_POST['itemtype']))) { exit; } if (in_array($_POST["itemtype"], $CFG_GLPI["infocom_types"])) { Session::checkSeveralRightsOr(array($_POST["itemtype"] => "w", "infocom" => "w")); } else { $item->checkGlobal("w"); } $inline = false; if (isset($_POST['inline']) && $_POST['inline']) { $inline = true; } $submitname = _sx('button', 'Post'); if (isset($_POST['submitname']) && $_POST['submitname']) { $submitname = stripslashes($_POST['submitname']); } if (isset($_POST["itemtype"]) && isset($_POST["id_field"]) && $_POST["id_field"]) { $search = Search::getOptions($_POST["itemtype"]); if (!isset($search[$_POST["id_field"]])) { exit;
(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::checkSeveralRightsOr(array('notification' => 'r', 'config' => 'w')); Html::header(_n('Notification', 'Notifications', 2), $_SERVER['PHP_SELF'], "config", "mailing", -1); if (isset($_POST['activate'])) { $config = new Config(); $tmp['id'] = $CFG_GLPI['id']; $tmp['use_mailing'] = 1; $config->update($tmp); Html::back(); } if (!$CFG_GLPI['use_mailing']) { if (Session::haveRight("config", "w")) { echo "<div class='center'>"; Html::showSimpleForm($_SERVER['PHP_SELF'], 'activate', __('Enable followup via email')); echo "</div>"; } } else {
You should have received a copy of the GNU Affero General Public License along with Reports. If not, see <http://www.gnu.org/licenses/>. @package reports @authors Nelly Mahu-Lasson, Remi Collet, Alexandre Delaunay @copyright Copyright (c) 2009-2015 Reports plugin 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/reports @link http://www.glpi-project.org/ @since 2009 -------------------------------------------------------------------------- */ include_once "../../../inc/includes.php"; Plugin::load('reports'); Session::checkSeveralRightsOr(array("config" => UPDATE, "profile" => UPDATE)); Html::header(__('Setup'), $_SERVER['PHP_SELF'], "config", "plugins"); echo "<div class='center'>"; echo "<table class='tab_cadre'>"; echo "<tr><th>" . __('Reports plugin configuration', 'reports') . "</th></tr>"; if (Session::haveRight("profile", UPDATE)) { echo "<tr class='tab_bg_1 center'><td>"; echo "<a href='report.form.php'>" . __('Reports plugin configuration', 'reports') . "</a>"; echo "</td/></tr>\n"; } if (Session::haveRight("config", UPDATE)) { foreach (searchReport() as $report => $plug) { $url = getReportConfigPage($plug, $report); $file = GLPI_ROOT . getReportConfigPage($plug, $report); if (is_file($file)) { echo "<tr class='tab_bg_1 center'><td>";