|
Server : Apache System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 User : urbanovitalinoad ( 1001) PHP Version : 7.3.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/urbanovitalinoad/public_html/servicedesk/marketplace/mreporting/front/ |
Upload File : |
<?php
if (!isset($_POST['saveConfig']) && !isset($_POST['addReports'])) {
$USEDBREPLICATE = 1;
}
$DBCONNECTION_REQUIRED = 0; // Not really a big SQL request
include ("../../../inc/includes.php");
Session::checkLoginUser();
if (isset($_POST['saveConfig'])) {
PluginMreportingCommon::saveSelectors($_POST['f_name']);
$_REQUEST['f_name'] = $_POST['f_name'];
$_REQUEST['short_classname'] = $_POST['short_classname'];
PluginMreportingCommon::getSelectorValuesByUser();
Html::back();
} else if (isset($_POST['addReports'])) {
$dashboard = new PluginMreportingDashboard();
$post = ['users_id' => $_SESSION['glpiID'], 'reports_id' => $_POST['report']];
$dashboard->add($post);
Html::back();
} else {
if ($_SESSION['glpiactiveprofile']['interface'] == 'helpdesk') {
Html::helpHeader(
__("More Reporting", 'mreporting'),
$_SERVER['PHP_SELF']
);
} else {
Html::header(
__("More Reporting", 'mreporting'),
$_SERVER['PHP_SELF'],
'tools',
'PluginMreportingCommon',
'dashboard'
);
}
$dashboard = new PluginMreportingDashboard();
$dashboard->showDashBoard();
Html::footer();
}