本文整理汇总了PHP中PluginMonitoringProfile::checkRight方法的典型用法代码示例。如果您正苦于以下问题:PHP PluginMonitoringProfile::checkRight方法的具体用法?PHP PluginMonitoringProfile::checkRight怎么用?PHP PluginMonitoringProfile::checkRight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginMonitoringProfile
的用法示例。
在下文中一共展示了PluginMonitoringProfile::checkRight方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Copyright
@package Plugin Monitoring for GLPI
@author David Durieux
@co-author
@comment
@copyright Copyright (c) 2011-2012 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
------------------------------------------------------------------------
*/
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
PluginMonitoringProfile::checkRight("config", "w");
commonHeader($LANG['plugin_monitoring']['title'][0], $_SERVER["PHP_SELF"], "plugins", "monitoring", "config");
$pmConfig = new PluginMonitoringConfig();
if (isset($_POST["update"])) {
$pmConfig->update($_POST);
glpi_header($_SERVER['HTTP_REFERER']);
} else {
if (isset($_POST['timezones_add'])) {
$input = array();
$pmConfig->getFromDB($_POST['id']);
$input['id'] = $_POST['id'];
$a_timezones = importArrayFromDB($pmConfig->fields['timezones']);
foreach ($_POST['timezones_to_add'] as $timezone) {
$a_timezones[] = $timezone;
}
$input['timezones'] = exportArrayToDB($a_timezones);
示例2: Copyright
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("servicescatalog", "w");
$dropdown = new PluginMonitoringServicescatalog();
if (isset($_GET['detail']) and isset($_GET['id'])) {
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "servicescatalog");
$dropdown->showBADetail($_GET['id']);
Html::footer();
} else {
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "servicescatalog");
include GLPI_ROOT . "/front/dropdown.common.form.php";
}
示例3: Copyright
------------------------------------------------------------------------
@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("weathermap", "w");
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "weathermaplink");
$pmWeathermaplink = new PluginMonitoringWeathermaplink();
if (isset($_POST["add"])) {
$split = explode("-", $_POST['linksource']);
$_POST['plugin_monitoring_weathermapnodes_id_1'] = $split[0];
$_POST['plugin_monitoring_services_id'] = $split[1];
$pmWeathermaplink->add($_POST);
Html::back();
} else {
if (isset($_POST["update"])) {
$_POST['id'] = $_POST['id_update'];
unset($_POST['plugin_monitoring_weathermapnodes_id_1']);
unset($_POST['plugin_monitoring_weathermapnodes_id_2']);
$_POST['bandwidth_in'] = $_POST['up_bandwidth_in'];
$_POST['bandwidth_out'] = $_POST['up_bandwidth_out'];
示例4: Copyright
@package Plugin Monitoring for GLPI
@author David Durieux
@co-author
@comment
@copyright Copyright (c) 2011-2012 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
------------------------------------------------------------------------
*/
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
PluginMonitoringProfile::checkRight("view", "w");
commonHeader($LANG['plugin_monitoring']['title'][0], $_SERVER["PHP_SELF"], "plugins", "monitoring", "displayview");
$pmDisplayview = new PluginMonitoringDisplayview();
if (isset($_POST['users_id'])) {
if ($_POST['users_id'] == 'public') {
$_POST['users_id'] = '0';
} else {
$_POST['users_id'] = $_SESSION['glpiID'];
}
}
if (isset($_POST["add"])) {
$pmDisplayview->add($_POST);
glpi_header($_SERVER['HTTP_REFERER']);
} else {
if (isset($_POST["update"])) {
$pmDisplayview->update($_POST);
示例5: Copyright
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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("check", "r");
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "checks");
Search::show('PluginMonitoringCheck');
Html::footer();
示例6: Copyright
------------------------------------------------------------------------
@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("command", "w");
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "command");
$pMonitoringCommand = new PluginMonitoringCommand();
if (isset($_POST["copy"])) {
$pMonitoringCommand->showForm("", array(), $_POST);
Html::footer();
exit;
} else {
if (isset($_POST["add"])) {
$_POST = $pMonitoringCommand->convertPostdata($_POST);
$pMonitoringCommand->add($_POST);
Html::back();
} else {
if (isset($_POST["update"])) {
$_POST = $pMonitoringCommand->convertPostdata($_POST);
$pMonitoringCommand->update($_POST);
示例7: Copyright
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::header(__('Monitoring', 'monitoring'),$_SERVER["PHP_SELF"], "plugins",
// "monitoring", "reports");
$pmComponentscatalog = new PluginMonitoringComponentscatalog();
if ($_POST['reporttype'] == 'simplereport') {
$pmComponentscatalog->generateReport($_POST);
} else {
$pmComponentscatalog->generateSyntheseReport($_POST);
}