Completed
Push — master ( c3f20e...6d7580 )
by cam
01:15
created
ecrire/plugins/verifie_conformite.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 		}
49 49
 	}
50 50
 	if (is_null($p)) {
51
-		$arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent') . " : $plug"]];
51
+		$arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent')." : $plug"]];
52 52
 		$silence = true;
53 53
 	} else {
54 54
 		$arbre = $p;
@@ -83,15 +83,15 @@  discard block
 block discarded – undo
83 83
 		if (isset($arbre['etat'])) {
84 84
 			$etat = trim(end($arbre['etat']));
85 85
 			if (!in_array($etat, $etats)) {
86
-				$arbre['erreur'][] = _T('erreur_plugin_etat_inconnu') . " : '$etat'";
86
+				$arbre['erreur'][] = _T('erreur_plugin_etat_inconnu')." : '$etat'";
87 87
 			}
88 88
 		}
89 89
 		if (isset($arbre['options'])) {
90 90
 			foreach ($arbre['options'] as $optfile) {
91 91
 				$optfile = trim($optfile);
92
-				if (!@is_readable($dir_plugins . "$plug/$optfile")) {
92
+				if (!@is_readable($dir_plugins."$plug/$optfile")) {
93 93
 					if (!$silence) {
94
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile";
94
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile";
95 95
 					}
96 96
 				}
97 97
 			}
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
 		if (isset($arbre['fonctions'])) {
100 100
 			foreach ($arbre['fonctions'] as $optfile) {
101 101
 				$optfile = trim($optfile);
102
-				if (!@is_readable($dir_plugins . "$plug/$optfile")) {
102
+				if (!@is_readable($dir_plugins."$plug/$optfile")) {
103 103
 					if (!$silence) {
104
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile";
104
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile";
105 105
 					}
106 106
 				}
107 107
 			}
@@ -135,14 +135,14 @@  discard block
 block discarded – undo
135 135
 			// verif que la methode a un nom autorise
136 136
 			if (in_array(strtolower($action), $liste_methodes_reservees)) {
137 137
 				if (!$silence) {
138
-					$arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit') . " : $action";
138
+					$arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit')." : $action";
139 139
 				}
140 140
 			}
141 141
 			if (isset($pipe['inclure'])) {
142
-				$inclure = $dir_plugins . "$plug/" . $pipe['inclure'];
142
+				$inclure = $dir_plugins."$plug/".$pipe['inclure'];
143 143
 				if (!@is_readable($inclure)) {
144 144
 					if (!$silence) {
145
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $inclure";
145
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $inclure";
146 146
 					}
147 147
 				}
148 148
 			}
@@ -212,9 +212,9 @@  discard block
 block discarded – undo
212 212
 			foreach ($arbre['noisette'] as $k => $nut) {
213 213
 				$nut = preg_replace(',[.]html$,uims', '', trim($nut));
214 214
 				$arbre['noisette'][$k] = $nut;
215
-				if (!@is_readable($dir_plugins . "$plug/$nut.html")) {
215
+				if (!@is_readable($dir_plugins."$plug/$nut.html")) {
216 216
 					if (!$silence) {
217
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $nut";
217
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $nut";
218 218
 					}
219 219
 				}
220 220
 			}
Please login to merge, or discard this patch.
ecrire/plugins/afficher_repertoires.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 				$id = substr(md5($plug), 0, 16);
61 61
 				$res .= $ligne_plug(
62 62
 					$url_page,
63
-					str_replace(_DIR_PLUGINS, '', _DIR_RACINE . $plug),
63
+					str_replace(_DIR_PLUGINS, '', _DIR_RACINE.$plug),
64 64
 					$actif,
65 65
 					'menu-entree'
66
-				) . "\n";
66
+				)."\n";
67 67
 				unset($liste_plugins[$key]);
68 68
 			}
69 69
 		}
@@ -105,12 +105,12 @@  discard block
 block discarded – undo
105 105
 	}
106 106
 	$chemin = '';
107 107
 	if (count($tcom)) {
108
-		$chemin .= implode('/', $tcom) . '/';
108
+		$chemin .= implode('/', $tcom).'/';
109 109
 	}
110 110
 	// ouvrir les repertoires jusqu'a la cible
111 111
 	while ($open = array_shift($ttarg)) {
112
-		$visible = @isset($deplie[$chemin . $open]);
113
-		$chemin .= $open . '/';
112
+		$visible = @isset($deplie[$chemin.$open]);
113
+		$chemin .= $open.'/';
114 114
 		$output .= '<li>';
115 115
 		$output .= bouton_block_depliable($chemin, $visible);
116 116
 		$output .= debut_block_depliable($visible);
Please login to merge, or discard this patch.
ecrire/plugins/infos_paquet.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @return array
26 26
  */
27 27
 function plugins_infos_paquet($desc, $plug = '', $dir_plugins = _DIR_PLUGINS) {
28
-	static $process = [ // tableau constant
28
+	static $process = [// tableau constant
29 29
 		'debut' => 'paquet_debutElement',
30 30
 		'fin' => 'paquet_finElement',
31 31
 		'text' => 'paquet_textElement'
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 			unset($tree['']);
48 48
 		}
49 49
 
50
-		$tree['slogan'] = $tree['prefix'] . '_slogan';
51
-		$tree['description'] = $tree['prefix'] . '_description';
50
+		$tree['slogan'] = $tree['prefix'].'_slogan';
51
+		$tree['description'] = $tree['prefix'].'_description';
52 52
 		paquet_readable_files($tree, "$dir_plugins$plug/");
53 53
 		if (!$tree['chemin']) {
54 54
 			$tree['chemin'] = [];
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	// Prendre les messages d'erreur sans les numeros de lignes
81 81
 	$msg = array_column($vxml->err, 0);
82 82
 	$t = _T('plugins_erreur', ['plugins' => $plug]);
83
-	array_unshift($msg, $t . " <ul class='erreur_xml'><li>" . reset($msg) . '</li></ul>');
83
+	array_unshift($msg, $t." <ul class='erreur_xml'><li>".reset($msg).'</li></ul>');
84 84
 
85 85
 	return ['erreur' => $msg];
86 86
 }
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 function paquet_readable_files(&$tree, $dir) {
97 97
 	$prefix = strtolower($tree['prefix']);
98 98
 
99
-	$tree['options'] = (is_readable($dir . $f = ($prefix . '_options.php'))) ? [$f] : [];
100
-	$tree['fonctions'] = (is_readable($dir . $f = ($prefix . '_fonctions.php'))) ? [$f] : [];
101
-	$tree['install'] = (is_readable($dir . $f = ($prefix . '_administrations.php'))) ? [$f] : [];
99
+	$tree['options'] = (is_readable($dir.$f = ($prefix.'_options.php'))) ? [$f] : [];
100
+	$tree['fonctions'] = (is_readable($dir.$f = ($prefix.'_fonctions.php'))) ? [$f] : [];
101
+	$tree['install'] = (is_readable($dir.$f = ($prefix.'_administrations.php'))) ? [$f] : [];
102 102
 }
103 103
 
104 104
 /**
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	$texte = trim($phraseur->versions[$n]['']);
187 187
 	$phraseur->versions[$n][''] = '';
188 188
 
189
-	$f = 'info_paquet_' . $name;
189
+	$f = 'info_paquet_'.$name;
190 190
 	if (function_exists($f)) {
191 191
 		$f($phraseur, $attrs, $texte);
192 192
 	} elseif (!$attrs) {
Please login to merge, or discard this patch.
ecrire/plugins/afficher_nom_plugin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 	// numerotons les occurences d'un meme prefix
40 40
 	$versions[$info['prefix']] = isset($versions[$info['prefix']]) ? $versions[$info['prefix']] + 1 : '';
41
-	$id = $info['prefix'] . $versions[$info['prefix']];
41
+	$id = $info['prefix'].$versions[$info['prefix']];
42 42
 
43 43
 	$class = $class_li;
44 44
 	$class .= $actif ? ' actif' : '';
@@ -55,15 +55,15 @@  discard block
 block discarded – undo
55 55
 	$prefix = $info['prefix'];
56 56
 	$dir = "$dir_plugins$plug_file/lang/$prefix";
57 57
 	$desc = plugin_propre($info['description'], $dir);
58
-	$url_stat = parametre_url($url_page, 'plugin', $dir_plugins . $plug_file);
58
+	$url_stat = parametre_url($url_page, 'plugin', $dir_plugins.$plug_file);
59 59
 
60
-	$s .= "<strong class='nom'>" . typo($info['nom']) . '</strong>';
61
-	$s .= " <span class='version'>" . $info['version'] . '</span>';
62
-	$s .= " <span class='etat'> - " . plugin_etat_en_clair($info['etat']) . '</span>';
60
+	$s .= "<strong class='nom'>".typo($info['nom']).'</strong>';
61
+	$s .= " <span class='version'>".$info['version'].'</span>';
62
+	$s .= " <span class='etat'> - ".plugin_etat_en_clair($info['etat']).'</span>';
63 63
 	$s .= '</div>';
64 64
 
65 65
 	if ($erreur) {
66
-		$s .= "<div class='erreur'>" . join('<br >', $info['erreur']) . '</div>';
66
+		$s .= "<div class='erreur'>".join('<br >', $info['erreur']).'</div>';
67 67
 	}
68 68
 
69 69
 	$s .= '</li>';
Please login to merge, or discard this patch.
ecrire/plugins/get_infos.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	static $filecache = '';
38 38
 
39 39
 	if ($cache === '') {
40
-		$filecache = _DIR_TMP . 'plugin_xml_cache.gz';
40
+		$filecache = _DIR_TMP.'plugin_xml_cache.gz';
41 41
 		if (is_file($filecache)) {
42 42
 			lire_fichier($filecache, $contenu);
43 43
 			$cache = unserialize($contenu);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	if (isset($ret['prefix']) and $ret['prefix'] == 'spip') {
129 129
 		$ret['procure']['php'] = ['nom' => 'php', 'version' => phpversion()];
130 130
 		foreach (get_loaded_extensions() as $ext) {
131
-			$ret['procure']['php:' . $ext] = ['nom' => 'php:' . $ext, 'version' => phpversion($ext)];
131
+			$ret['procure']['php:'.$ext] = ['nom' => 'php:'.$ext, 'version' => phpversion($ext)];
132 132
 		}
133 133
 	}
134 134
 	$diff = ($ret != $pcache);
Please login to merge, or discard this patch.
ecrire/inc/headers.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -79,20 +79,20 @@  discard block
 block discarded – undo
79 79
 		(!$equiv and !spip_cookie_envoye()) or (
80 80
 			   (!empty($_SERVER['SERVER_SOFTWARE'])
81 81
 				   and _SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE
82
-				   and preg_match('/' . _SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE . '/i', $_SERVER['SERVER_SOFTWARE']))
82
+				   and preg_match('/'._SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE.'/i', $_SERVER['SERVER_SOFTWARE']))
83 83
 			or (!empty($_SERVER['SERVER_SIGNATURE'])
84 84
 				   and _SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE
85
-				   and preg_match('/' . _SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE . '/i', $_SERVER['SERVER_SIGNATURE']))
85
+				   and preg_match('/'._SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE.'/i', $_SERVER['SERVER_SIGNATURE']))
86 86
 			or function_exists('apache_getenv')
87 87
 			or defined('_SERVER_APACHE')
88 88
 		)
89 89
 	) {
90
-		@header('Location: ' . $url);
90
+		@header('Location: '.$url);
91 91
 		$equiv = '';
92 92
 	} else {
93
-		@header('Refresh: 0; url=' . $url);
93
+		@header('Refresh: 0; url='.$url);
94 94
 		if (isset($GLOBALS['meta']['charset'])) {
95
-			@header('Content-Type: text/html; charset=' . $GLOBALS['meta']['charset']);
95
+			@header('Content-Type: text/html; charset='.$GLOBALS['meta']['charset']);
96 96
 		}
97 97
 		$equiv = "<meta http-equiv='Refresh' content='0; url=$url'>";
98 98
 	}
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
 	html_lang_attributes(), '
105 105
 <head>',
106 106
 	$equiv, '
107
-<title>HTTP ' . $status . '</title>
108
-' . ((isset($GLOBALS['meta']['charset'])) ? '<meta http-equiv="Content-Type" content="text/html;charset=' . $GLOBALS['meta']['charset'] . '">' : '') . '
107
+<title>HTTP ' . $status.'</title>
108
+' . ((isset($GLOBALS['meta']['charset'])) ? '<meta http-equiv="Content-Type" content="text/html;charset='.$GLOBALS['meta']['charset'].'">' : '').'
109 109
 </head>
110 110
 <body>
111
-<h1>HTTP ' . $status . '</h1>
111
+<h1>HTTP ' . $status.'</h1>
112 112
 <a href="',
113 113
 	quote_amp($url),
114 114
 	'">',
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		# en theorie on devrait faire ca tout le temps, mais quand la chaine
145 145
 		# commence par ? c'est imperatif, sinon l'url finale n'est pas la bonne
146 146
 		if ($url[0] == '?') {
147
-			$url = url_de_base() . $url;
147
+			$url = url_de_base().$url;
148 148
 		}
149 149
 		$url = str_replace('&amp;', '&', $url);
150 150
 		spip_log("redirige formulaire ajax: $url");
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
 		if ($format == 'ajaxform') {
153 153
 			return [
154 154
 				// on renvoie un lien masque qui sera traite par ajaxCallback.js
155
-				'<a href="' . quote_amp($url) . '" name="ajax_redirect"  style="display:none;">' . _T('navigateur_pas_redirige') . '</a>',
155
+				'<a href="'.quote_amp($url).'" name="ajax_redirect"  style="display:none;">'._T('navigateur_pas_redirige').'</a>',
156 156
 				// et un message au cas ou
157
-				'<br /><a href="' . quote_amp($url) . '">' . _T('navigateur_pas_redirige') . '</a>'
157
+				'<br /><a href="'.quote_amp($url).'">'._T('navigateur_pas_redirige').'</a>'
158 158
 			];
159 159
 		} else // format message texte, tout en js inline
160 160
 		{
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 				"<script type='text/javascript'>if (parent.window){parent.window.document.location.replace(\"$url\");} else {document.location.replace(\"$url\");}</script>"
164 164
 				. http_img_pack('loader.svg', '', " class='loader'")
165 165
 				. '<br />'
166
-				. '<a href="' . quote_amp($url) . '">' . _T('navigateur_pas_redirige') . '</a>';
166
+				. '<a href="'.quote_amp($url).'">'._T('navigateur_pas_redirige').'</a>';
167 167
 		}
168 168
 	}
169 169
 }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
 	header("Content-Type: text/html; charset=$charset");
224 224
 	header('Expires: 0');
225
-	header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
225
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
226 226
 	header('Cache-Control: no-cache, must-revalidate');
227 227
 	header('Pragma: no-cache');
228 228
 }
Please login to merge, or discard this patch.
ecrire/public/cacher.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 function generer_nom_fichier_cache($contexte, $page) {
30 30
 	$u = md5(var_export([$contexte, $page], true));
31 31
 
32
-	return $u . '.cache';
32
+	return $u.'.cache';
33 33
 }
34 34
 
35 35
 /**
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 	}
62 62
 	else {
63 63
 		// en lecture on essaye pas de creer les repertoires, on va au plus vite
64
-		$rep = _DIR_CACHE . "calcul/$d/";
64
+		$rep = _DIR_CACHE."calcul/$d/";
65 65
 	}
66 66
 
67
-	return $rep . $u . '.cache';
67
+	return $rep.$u.'.cache';
68 68
 }
69 69
 
70 70
 /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		);
116 116
 	}
117 117
 
118
-	return crc32($GLOBALS['meta']['cache_signature'] . $page['texte']);
118
+	return crc32($GLOBALS['meta']['cache_signature'].$page['texte']);
119 119
 }
120 120
 
121 121
 /**
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 		// "cache sessionne" ; sa date indique la date de validite
272 272
 		// des caches sessionnes
273 273
 		if (!$tmp = lire_cache($chemin_cache)) {
274
-			spip_log('Creation cache sessionne ' . $chemin_cache);
274
+			spip_log('Creation cache sessionne '.$chemin_cache);
275 275
 			$tmp = [
276 276
 				'invalideurs' => ['session' => ''],
277 277
 				'lastmodified' => $_SERVER['REQUEST_TIME']
@@ -297,8 +297,8 @@  discard block
 block discarded – undo
297 297
 	// l'enregistrer, compresse ou non...
298 298
 	$ok = ecrire_cache($chemin_cache, $pagez);
299 299
 
300
-	spip_log((_IS_BOT ? 'Bot:' : '') . "Creation du cache $chemin_cache pour "
301
-		. $page['entetes']['X-Spip-Cache'] . ' secondes' . ($ok ? '' : ' (erreur!)'), _LOG_INFO);
300
+	spip_log((_IS_BOT ? 'Bot:' : '')."Creation du cache $chemin_cache pour "
301
+		. $page['entetes']['X-Spip-Cache'].' secondes'.($ok ? '' : ' (erreur!)'), _LOG_INFO);
302 302
 
303 303
 	// Inserer ses invalideurs
304 304
 	include_spip('inc/invalideur');
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 function nettoyer_petit_cache($prefix, $duree = 300) {
320 320
 	// determiner le repertoire a purger : 'tmp/CACHE/rech/'
321 321
 	$dircache = sous_repertoire(_DIR_CACHE, $prefix);
322
-	if (spip_touch($dircache . 'purger_' . $prefix, $duree, true)) {
322
+	if (spip_touch($dircache.'purger_'.$prefix, $duree, true)) {
323 323
 		foreach (preg_files($dircache, '[.]txt$') as $f) {
324 324
 			if ($_SERVER['REQUEST_TIME'] - (@file_exists($f) ? @filemtime($f) : 0) > $duree) {
325 325
 				spip_unlink($f);
@@ -414,9 +414,9 @@  discard block
 block discarded – undo
414 414
 		if (spip_connect()) {
415 415
 			include_spip('inc/invalideur');
416 416
 			retire_caches($chemin_cache); # API invalideur inutile
417
-			supprimer_fichier(_DIR_CACHE . $chemin_cache);
417
+			supprimer_fichier(_DIR_CACHE.$chemin_cache);
418 418
 			if (isset($chemin_cache_session) and $chemin_cache_session) {
419
-				supprimer_fichier(_DIR_CACHE . $chemin_cache_session);
419
+				supprimer_fichier(_DIR_CACHE.$chemin_cache_session);
420 420
 			}
421 421
 		}
422 422
 	}
@@ -433,9 +433,9 @@  discard block
 block discarded – undo
433 433
 		$page = ['contexte_implicite' => $contexte_implicite]; // ignorer le cache deja lu
434 434
 		include_spip('inc/invalideur');
435 435
 		retire_caches($chemin_cache); # API invalideur inutile
436
-		supprimer_fichier(_DIR_CACHE . $chemin_cache);
436
+		supprimer_fichier(_DIR_CACHE.$chemin_cache);
437 437
 		if (isset($chemin_cache_session) and $chemin_cache_session) {
438
-			supprimer_fichier(_DIR_CACHE . $chemin_cache_session);
438
+			supprimer_fichier(_DIR_CACHE.$chemin_cache_session);
439 439
 		}
440 440
 	}
441 441
 
Please login to merge, or discard this patch.
ecrire/public/aiguiller.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	) {
29 29
 		// si l'url est une url du site, on la laisse passer sans rien faire
30 30
 		// c'est encore le plus simple
31
-		$base = $GLOBALS['meta']['adresse_site'] . '/';
31
+		$base = $GLOBALS['meta']['adresse_site'].'/';
32 32
 		if (strlen($base) and strncmp($redirect, $base, strlen($base)) == 0) {
33 33
 			return $redirect;
34 34
 		}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 			if ($ancre = _request('var_ajax_ancre')) {
157 157
 				// pas n'importe quoi quand meme dans la variable !
158 158
 				$ancre = str_replace(['<', '"', "'"], ['&lt;', '&quot;', ''], $ancre);
159
-				$texte = "<a href='#$ancre' name='ajax_ancre' style='display:none;'>anchor</a>" . $texte;
159
+				$texte = "<a href='#$ancre' name='ajax_ancre' style='display:none;'>anchor</a>".$texte;
160 160
 			}
161 161
 		} else {
162 162
 			include_spip('inc/headers');
@@ -199,26 +199,26 @@  discard block
 block discarded – undo
199 199
 	$sign = _request('formulaire_action_sign');
200 200
 	if (!empty($GLOBALS['visiteur_session']['id_auteur'])) {
201 201
 		if (empty($sign)) {
202
-			spip_log("signature ajax form incorrecte : $form (formulaire non signe mais on a une session)", 'formulaires' . _LOG_ERREUR);
202
+			spip_log("signature ajax form incorrecte : $form (formulaire non signe mais on a une session)", 'formulaires'._LOG_ERREUR);
203 203
 			return false;
204 204
 		}
205 205
 		$securiser_action = charger_fonction('securiser_action', 'inc');
206 206
 		$secu = $securiser_action($form, $args, '', -1);
207 207
 		if ($sign !== $secu['hash']) {
208
-			spip_log("signature ajax form incorrecte : $form (formulaire signe mais ne correspond pas a la session)", 'formulaires' . _LOG_ERREUR);
208
+			spip_log("signature ajax form incorrecte : $form (formulaire signe mais ne correspond pas a la session)", 'formulaires'._LOG_ERREUR);
209 209
 			return false;
210 210
 		}
211 211
 	}
212 212
 	else {
213 213
 		if (!empty($sign)) {
214
-			spip_log("signature ajax form incorrecte : $form (formulaire signe mais pas de session)", 'formulaires' . _LOG_ERREUR);
214
+			spip_log("signature ajax form incorrecte : $form (formulaire signe mais pas de session)", 'formulaires'._LOG_ERREUR);
215 215
 			return false;
216 216
 		}
217 217
 	}
218 218
 
219 219
 	include_spip('inc/filtres');
220 220
 	if (($args = decoder_contexte_ajax($args, $form)) === false) {
221
-		spip_log("signature ajax form incorrecte : $form (encodage corrompu)", 'formulaires' . _LOG_ERREUR);
221
+		spip_log("signature ajax form incorrecte : $form (encodage corrompu)", 'formulaires'._LOG_ERREUR);
222 222
 
223 223
 		return false; // continuons le hit comme si de rien etait
224 224
 	} else {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 				// on ajoute un br en display none en tete du retour ajax pour regler un bug dans IE6/7
336 336
 				// sans cela le formulaire n'est pas actif apres le hit ajax
337 337
 				// la classe ajax-form-is-ok sert a s'assurer que le retour ajax s'est bien passe
338
-				$retour = "<br class='bugajaxie ajax-form-is-ok' style='display:none;'/>" . $retour;
338
+				$retour = "<br class='bugajaxie ajax-form-is-ok' style='display:none;'/>".$retour;
339 339
 				ajax_retour($retour, false);
340 340
 
341 341
 				return true; // on a fini le hit
Please login to merge, or discard this patch.
ecrire/inc/surligne.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 function surligner_mots($page, $surcharge_surligne = '') {
38 38
 	$surlignejs_engines = [
39 39
 		[
40
-			',' . str_replace(['/', '.'], ['\/', '\.'], $GLOBALS['meta']['adresse_site']) . ',i',
40
+			','.str_replace(['/', '.'], ['\/', '\.'], $GLOBALS['meta']['adresse_site']).',i',
41 41
 			',recherche=([^&]+),i'
42 42
 		], //SPIP
43 43
 		[',^http://(www\.)?google\.,i', ',q=([^&]+),i'], // Google
@@ -72,19 +72,19 @@  discard block
 block discarded – undo
72 72
 			//good referrer found or var_recherche is not null
73 73
 			include_spip('inc/filtres');
74 74
 			$script = "
75
-      <script type='text/javascript' src='" . url_absolue(find_in_path('javascript/SearchHighlight.js')) . "'></script>
75
+      <script type='text/javascript' src='" . url_absolue(find_in_path('javascript/SearchHighlight.js'))."'></script>
76 76
       <script type='text/javascript'>
77 77
        var highlighter = function() {
78 78
 		  jQuery(this).SearchHighlight({
79
-            tag_name:'" . (html5_permis() ? 'mark' : 'span') . "',
79
+            tag_name:'" . (html5_permis() ? 'mark' : 'span')."',
80 80
             style_name:'spip_surligne',
81 81
             exact:'whole',
82 82
             style_name_suffix:false,
83
-            engines:[/^" . str_replace(['/', '.'], ['\/', '\.'], $GLOBALS['meta']['adresse_site']) . "/i,/recherche=([^&]+)/i],
83
+            engines:[/^" . str_replace(['/', '.'], ['\/', '\.'], $GLOBALS['meta']['adresse_site'])."/i,/recherche=([^&]+)/i],
84 84
             highlight:'.surlignable',
85 85
             nohighlight:'.pas_surlignable'" .
86 86
 				($surcharge_surligne ? ",
87
-            keys:'$surcharge_surligne'" : '') . ',
87
+            keys:'$surcharge_surligne'" : '').',
88 88
             min_length: 3
89 89
           });
90 90
 	  }
Please login to merge, or discard this patch.