/** * Print a nice HTML head with no controls * * @param $title title of the page * @param $url not used anymore (default '') **/ static function nullHeader($title, $url = '') { global $CFG_GLPI, $HEADER_LOADED; if ($HEADER_LOADED) { return; } $HEADER_LOADED = true; // Print a nice HTML-head with no controls // Detect root_doc in case of error Config::detectRootDoc(); // Send UTF8 Headers header("Content-Type: text/html; charset=UTF-8"); // Send extra expires header if configured self::header_nocache(); if (isCommandLine()) { return true; } self::includeHeader($title); // Body with configured stuff echo "<body>"; echo "<div id='page'>"; echo "<br><br>"; echo "<div id='bloc'>"; echo "<div id='logo_bloc'></div>"; }
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 */ define('GLPI_ROOT', realpath('..')); include_once GLPI_ROOT . "/inc/autoload.function.php"; include_once GLPI_ROOT . "/inc/db.function.php"; Config::detectRootDoc(); //Print a correct Html header for application function header_html($etape) { // Send UTF8 Headers header("Content-Type: text/html; charset=UTF-8"); echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'\n 'http://www.w3.org/TR/html4/loose.dtd'>"; echo "<html>"; echo "<head>"; echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>"; echo "<meta http-equiv='Content-Script-Type' content='text/javascript'> "; echo "<meta http-equiv='Content-Style-Type' content='text/css'> "; echo "<meta http-equiv='Content-Language' content='fr'> "; echo "<meta name='generator' content=''>"; echo "<meta name='DC.Language' content='fr' scheme='RFC1766'>"; echo "<title>Setup GLPI</title>";