Skip to content
Extraits de code Groupes Projets
Valider 8f980379 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

le define _IS_BOT de fallback est fait apres l'inclusion de l'eventuel ecran...

le define _IS_BOT de fallback est fait apres l'inclusion de l'eventuel ecran de securite, qui est toujours plus a jour
parent 0388f926
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -81,19 +81,6 @@ if (!defined('_NOM_PERMANENTS_INACCESSIBLES')) define('_NOM_PERMANENTS_INACCESSI ...@@ -81,19 +81,6 @@ if (!defined('_NOM_PERMANENTS_INACCESSIBLES')) define('_NOM_PERMANENTS_INACCESSI
if (!defined('_NOM_PERMANENTS_ACCESSIBLES')) define('_NOM_PERMANENTS_ACCESSIBLES', "IMG/"); if (!defined('_NOM_PERMANENTS_ACCESSIBLES')) define('_NOM_PERMANENTS_ACCESSIBLES', "IMG/");
if (!defined('_IS_BOT')) {
/**
* Détecteur de robot d'indexation
*
* Utilisé en divers endroits, centralisé ici
*/
define('_IS_BOT',
isset($_SERVER['HTTP_USER_AGENT'])
AND preg_match(',bot|slurp|crawler|spider|webvac|yandex|INA dlweb|EC2LinkFinder|80legs,i',
$_SERVER['HTTP_USER_AGENT'])
);
}
/** Le nom du fichier de personnalisation */ /** Le nom du fichier de personnalisation */
if (!defined('_NOM_CONFIG')) define('_NOM_CONFIG', 'mes_options'); if (!defined('_NOM_CONFIG')) define('_NOM_CONFIG', 'mes_options');
...@@ -123,6 +110,19 @@ AND @file_exists($f = _ROOT_RACINE . _NOM_PERMANENTS_INACCESSIBLES . 'ecran_secu ...@@ -123,6 +110,19 @@ AND @file_exists($f = _ROOT_RACINE . _NOM_PERMANENTS_INACCESSIBLES . 'ecran_secu
include $f; include $f;
if (!defined('_IS_BOT')) {
/**
* Détecteur de robot d'indexation
*
* Utilisé en divers endroits, centralisé ici
*/
define('_IS_BOT',
isset($_SERVER['HTTP_USER_AGENT'])
AND preg_match(',bot|slurp|crawler|spider|webvac|yandex|INA dlweb|EC2LinkFinder|80legs,i',
$_SERVER['HTTP_USER_AGENT'])
);
}
// //
// *** Parametrage par defaut de SPIP *** // *** Parametrage par defaut de SPIP ***
// //
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter