grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026.
--------------------------------------------------------------------------
*/
/** @file
* @brief
*/
// Check PHP version not to have trouble
if (version_compare(PHP_VERSION, "5.4.0") < 0) {
die("PHP >= 5.4.0 required");
}
define('DO_NOT_CHECK_HTTP_REFERER', 1);
// If config_db doesn't exist -> start installation
define('GLPI_ROOT', dirname(__FILE__));
include (GLPI_ROOT . "/config/based_config.php");
if (!file_exists(GLPI_CONFIG_DIR . "/config_db.php")) {
include_once (GLPI_ROOT . "/inc/autoload.function.php");
Html::redirect("install/install.php");
die();
} else {
$TRY_OLD_CONFIG_FIRST = true;
include (GLPI_ROOT . "/inc/includes.php");
$_SESSION["glpicookietest"] = 'testcookie';
// For compatibility reason
if (isset($_GET["noCAS"])) {
$_GET["noAUTO"] = $_GET["noCAS"];
}
Auth::checkAlternateAuthSystems(true, isset($_GET["redirect"])?$_GET["redirect"]:"");
// Send UTF8 Headers
header("Content-Type: text/html; charset=UTF-8");
// Start the page
echo ''."\n";
echo '';
echo '
'.__('GLPI - Authentication').' '."\n";
echo ' '."\n";
echo ' '."\n";
echo " \n";
echo ' ';
// auto desktop / mobile viewport
echo " ";
// Appel CSS
echo ' ';
// CSS theme link
echo Html::css($CFG_GLPI["root_doc"]."/css/palettes/".$CFG_GLPI["palette"].".css");
// surcharge CSS hack for IE
echo "";
// echo "";
echo "";
echo "";
echo "";
echo "
";
echo "
";
echo nl2br(Toolbox::unclean_html_cross_side_scripting_deep($CFG_GLPI['text_login']));
echo "
";
echo "
"; // end login box
echo "
";
echo "
";
_e('You must activate the JavaScript function of your browser');
echo "
";
if (isset($_GET['error']) && isset($_GET['redirect'])) {
switch ($_GET['error']) {
case 1 : // cookie error
_e('You must accept cookies to reach this application');
break;
case 2 : // GLPI_SESSION_DIR not writable
_e('Checking write permissions for session files');
break;
case 3 :
_e('Invalid use of session ID');
break;
}
}
echo "
";
// Display FAQ is enable
if ($CFG_GLPI["use_public_faq"]) {
echo '
';
}
echo "
";
Plugin::doHook('display_login');
echo "
";
echo "
"; // end contenu login
if (GLPI_DEMO_MODE) {
echo "";
Event::getCountLogin();
echo "
";
}
echo "";
}
// call cron
if (!GLPI_DEMO_MODE) {
CronTask::callCronForce();
}
echo "";
?>