Skip to content
Extraits de code Groupes Projets
Valider 06b742e7 rédigé par Fil's avatar Fil
Parcourir les fichiers

erreur de syntaxe (merci marcimat)

parent 6c8213d2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -34,7 +34,7 @@ if (!defined('_IS_BOT')){ ...@@ -34,7 +34,7 @@ if (!defined('_IS_BOT')){
define('_IS_BOT', define('_IS_BOT',
isset($_SERVER['HTTP_USER_AGENT']) isset($_SERVER['HTTP_USER_AGENT'])
and preg_match(',' and preg_match(','
. array( . implode ('|', array(
// mots generiques // mots generiques
'bot', 'bot',
'slurp', 'slurp',
...@@ -175,17 +175,17 @@ if (!defined('_IS_BOT')){ ...@@ -175,17 +175,17 @@ if (!defined('_IS_BOT')){
'yats', 'yats',
'yeti', 'yeti',
'zeerch' 'zeerch'
).join('|') . ',i', )) . ',i',
(string)$_SERVER['HTTP_USER_AGENT']) (string)$_SERVER['HTTP_USER_AGENT'])
); );
} }
if (!defined('_IS_BOT_FRIEND')){ if (!defined('_IS_BOT_FRIEND')){
define('_IS_BOT_FRIEND', define('_IS_BOT_FRIEND',
isset($_SERVER['HTTP_USER_AGENT']) isset($_SERVER['HTTP_USER_AGENT'])
and preg_match(',' . array( and preg_match(',' . implode ('|', array(
'facebookexternalhit', 'facebookexternalhit',
'flipboardproxy' 'flipboardproxy'
).join('|') . ',i', )) . ',i',
(string)$_SERVER['HTTP_USER_AGENT']) (string)$_SERVER['HTTP_USER_AGENT'])
); );
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter