コード例 #1
0
  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     2013

  ------------------------------------------------------------------------
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'], "updateWidgetDisplayview2.php")) {
    include "../../../inc/includes.php";
    header("Content-Type: text/html; charset=UTF-8");
    Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
    die("Can not acces directly to this file");
}
Session::checkLoginUser();
$pmDisplayview = new PluginMonitoringDisplayview();
$pmDisplayview->showWidget2Frame($_POST['id']);
コード例 #2
0
   @since     2013

   ------------------------------------------------------------------------
 */

session_id($_POST['sess_id']);
$_SESSION['glpiID'] = $_POST['glpiID'];
$_SESSION['plugin_monitoring_securekey'] = $_POST['plugin_monitoring_securekey'];
$_SESSION['plugin_monitoring_checktime'] = 1;

// Direct access to file
if (strpos($_SERVER['PHP_SELF'],"updateWidgetDisplayview2.php")) {
   include ("../../../inc/includes.php");
   header("Content-Type: text/html; charset=UTF-8");
   Html::header_nocache();
}

if (!defined('GLPI_ROOT')) {
   die("Can not acces directly to this file");
}

$pmSecurity = new PluginMonitoringSecurity();
$pmSecurity->isSecure();
PluginMonitoringSecurity::deleteCheckSessionTime();

Session::checkLoginUser();

$pmDisplayview = new PluginMonitoringDisplayview();
$pmDisplayview->showWidget2Frame($_POST['id'],$_POST['is_minemap']);

?>