if (!$item->can($_GET["id"], READ)) { exit; } } } } } $notvalidoptions = array('_glpi_tab', '_itemtype', 'sort', 'order', 'withtemplate'); $options = $_GET; foreach ($notvalidoptions as $key) { if (isset($options[$key])) { unset($options[$key]); } } if (isset($options['locked'])) { ObjectLock::setReadOnlyProfile(); } CommonGLPI::displayStandardTab($item, $_GET['_glpi_tab'], $_GET["withtemplate"], $options); if (isset($_GET['full_page_tab'])) { echo "<div class='center' id='debugajax'>"; echo "<a href='" . htmlentities($_SERVER['REQUEST_URI']) . "' class='vsubmit'>Reload</a>"; echo "</div>"; // I think that we should display this warning, because tabs are not prepare // for being used full space ... if (!isset($_SESSION['glpi_warned_about_full_page_tab'])) { // Debug string : not really need translation. $msg = 'WARNING: full page tabs are only for debug/validation purpose !\\n'; $msg .= 'Actions on this page may have undefined result.'; echo "<script type='text/javascript' >\n"; echo "alert('{$msg}')"; echo "</script>";