Completed
Push — master ( 7208c3...09b169 )
by cam
01:22
created
ecrire/inc/xml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 				while (
136 136
 					$p !== false
137 137
 					and ($morceau = substr($txt, $d, $p - $d))
138
-					and (($nopen += preg_match_all("{<" . preg_quote($closing_tag) . "(\s*>|\s[^>]*[^/>]>)}is", $morceau,
138
+					and (($nopen += preg_match_all("{<".preg_quote($closing_tag)."(\s*>|\s[^>]*[^/>]>)}is", $morceau,
139 139
 							$matches, PREG_SET_ORDER)) > $nclose)
140 140
 				) {
141 141
 					$nclose++;
Please login to merge, or discard this patch.
ecrire/inc/bandeau.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			$_id = $e['id_table_objet'];
51 51
 			if (isset($contexte[$_id]) and $id = intval($contexte[$_id])) {
52 52
 				$table = $e['table_objet_sql'];
53
-				$row = sql_fetsel('*', $table, "$_id=" . intval($id));
53
+				$row = sql_fetsel('*', $table, "$_id=".intval($id));
54 54
 				if (isset($row['id_rubrique'])) {
55 55
 					$contexte['id_rubrique'] = $row['id_rubrique'];
56 56
 					if (isset($row['id_secteur'])) {
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 				$boutons_admin[$parent]->sousmenu = array_slice($boutons_admin[$parent]->sousmenu, 0, $position)
112 112
 					+ array(
113 113
 						$id => new Bouton(
114
-							($icones and !empty($infos['icone'])) ? find_in_theme($infos['icone']) : '',  // icone
115
-							$infos['titre'],  // titre
114
+							($icones and !empty($infos['icone'])) ? find_in_theme($infos['icone']) : '', // icone
115
+							$infos['titre'], // titre
116 116
 							(isset($infos['action']) and $infos['action']) ? $infos['action'] : null,
117 117
 							(isset($infos['parametres']) and $infos['parametres']) ? $infos['parametres'] : null
118 118
 						)
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 				$boutons_admin = array_slice($boutons_admin, 0, $position)
129 129
 					+ array(
130 130
 						$id => new Bouton(
131
-							($icones and isset($infos['icone']) and $infos['icone']) ? find_in_theme($infos['icone']) : '',  // icone
132
-							$infos['titre'],  // titre
131
+							($icones and isset($infos['icone']) and $infos['icone']) ? find_in_theme($infos['icone']) : '', // icone
132
+							$infos['titre'], // titre
133 133
 							(isset($infos['action']) and $infos['action']) ? $infos['action'] : null,
134 134
 							(isset($infos['parametres']) and $infos['parametres']) ? $infos['parametres'] : null
135 135
 						)
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 			$libelles = $isfavoris = $favoris = array();
171 171
 			foreach ($menu->sousmenu as $key => $item) {
172 172
 				$libelles[$key] = strtolower(translitteration(_T($item->libelle)));
173
-				$isfavoris[$key] = (bool)$item->favori;
173
+				$isfavoris[$key] = (bool) $item->favori;
174 174
 				$favoris[$key] = $item->favori;
175 175
 			}
176 176
 			if ($avec_favoris) {
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 		$url = str_replace('&amp;', '&', $url);
213 213
 		while (preg_match(',[&?]([a-z_]+)=@([a-z_]+)@,i', $url, $matches)) {
214 214
 			if ($matches[2] == 'id_secteur' and !isset($contexte['id_secteur']) and isset($contexte['id_rubrique'])) {
215
-				$contexte['id_secteur'] = sql_getfetsel('id_secteur', 'spip_rubriques', 'id_rubrique=' . intval($contexte['id_rubrique']));
215
+				$contexte['id_secteur'] = sql_getfetsel('id_secteur', 'spip_rubriques', 'id_rubrique='.intval($contexte['id_rubrique']));
216 216
 			}
217 217
 			$val = _request($matches[2], $contexte);
218 218
 			$url = parametre_url($url, $matches[1], $val ? $val : '', '&');
Please login to merge, or discard this patch.
ecrire/inc/modifier.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
 	// Appels incomplets (sans $c)
115 115
 	if (!is_array($c)) {
116
-		spip_log('erreur appel objet_modifier_champs(' . $objet . '), manque $c');
116
+		spip_log('erreur appel objet_modifier_champs('.$objet.'), manque $c');
117 117
 
118 118
 		return _T('erreur_technique_enregistrement_impossible');
119 119
 	}
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
 	// Verifier si les mises a jour sont pertinentes, datees, en conflit etc
183 183
 	include_spip('inc/editer');
184
-	if (!isset($options['data']) or is_null($options['data'])){
184
+	if (!isset($options['data']) or is_null($options['data'])) {
185 185
 		$options['data'] = &$_POST;
186 186
 	}
187 187
 	$conflits = controler_md5($champs, $options['data'], $objet, $id_objet, $serveur);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 				$id_rubrique = 0;
200 200
 				if (isset($desc['field']['id_rubrique'])) {
201 201
 					$parent = ($objet == 'rubrique') ? 'id_parent' : 'id_rubrique';
202
-					$id_rubrique = sql_getfetsel($parent, $spip_table_objet, "$id_table_objet=" . intval($id_objet));
202
+					$id_rubrique = sql_getfetsel($parent, $spip_table_objet, "$id_table_objet=".intval($id_objet));
203 203
 				}
204 204
 				$instituer_langue_objet = charger_fonction('instituer_langue_objet', 'action');
205 205
 				$champs['lang'] = $instituer_langue_objet($objet, $id_objet, $id_rubrique, $changer_lang, $serveur);
@@ -220,10 +220,10 @@  discard block
 block discarded – undo
220 220
 		}
221 221
 
222 222
 		// allez on commit la modif
223
-		sql_updateq($spip_table_objet, $champs, "$id_table_objet=" . intval($id_objet), $serveur);
223
+		sql_updateq($spip_table_objet, $champs, "$id_table_objet=".intval($id_objet), $serveur);
224 224
 
225 225
 		// on verifie si elle est bien passee
226
-		$moof = sql_fetsel(array_keys($champs), $spip_table_objet, "$id_table_objet=" . intval($id_objet), array(), array(),
226
+		$moof = sql_fetsel(array_keys($champs), $spip_table_objet, "$id_table_objet=".intval($id_objet), array(), array(),
227 227
 			'', array(), $serveur);
228 228
 		// si difference entre les champs, reperer les champs mal enregistres
229 229
 		if ($moof != $champs) {
@@ -250,11 +250,11 @@  discard block
 block discarded – undo
250 250
 			// si un champ n'a pas ete correctement enregistre, loger et retourner une erreur
251 251
 			// c'est un cas exceptionnel
252 252
 			if (count($liste)) {
253
-				spip_log("Erreur enregistrement en base $objet/$id_objet champs :" . var_export($conflits, true),
254
-					'modifier.' . _LOG_CRITIQUE);
253
+				spip_log("Erreur enregistrement en base $objet/$id_objet champs :".var_export($conflits, true),
254
+					'modifier.'._LOG_CRITIQUE);
255 255
 
256 256
 				return _T('erreur_technique_enregistrement_champs',
257
-					array('champs' => "<i>'" . implode("'</i>,<i>'", $liste) . "'</i>"));
257
+					array('champs' => "<i>'".implode("'</i>,<i>'", $liste)."'</i>"));
258 258
 			}
259 259
 		}
260 260
 
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
 	// message a affiner :-)
292 292
 	include_spip('inc/filtres_mini');
293 293
 	$qui = isset($GLOBALS['visiteur_session']['nom']) and $GLOBALS['visiteur_session']['nom'] ? $GLOBALS['visiteur_session']['nom'] : $GLOBALS['ip'];
294
-	journal(_L($qui . ' a &#233;dit&#233; l&#8217;' . $objet . ' ' . $id_objet . ' (' . join('+',
295
-			array_diff(array_keys($champs), array('date_modif'))) . ')'), array(
294
+	journal(_L($qui.' a &#233;dit&#233; l&#8217;'.$objet.' '.$id_objet.' ('.join('+',
295
+			array_diff(array_keys($champs), array('date_modif'))).')'), array(
296 296
 		'faire' => 'modifier',
297 297
 		'quoi' => $objet,
298 298
 		'id' => $id_objet
Please login to merge, or discard this patch.
ecrire/inc/journal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 		return;
29 29
 	}
30 30
 	if ($opt) {
31
-		$phrase .= ' :: ' . str_replace("\n", ' ', join(', ', $opt));
31
+		$phrase .= ' :: '.str_replace("\n", ' ', join(', ', $opt));
32 32
 	}
33 33
 	spip_log($phrase, 'journal');
34 34
 }
Please login to merge, or discard this patch.
ecrire/inc/urls.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -211,9 +211,9 @@  discard block
 block discarded – undo
211 211
  */
212 212
 function nettoyer_url_page($url, $contexte = array()) {
213 213
 	$url_objets = urls_liste_objets();
214
-	$raccourci_url_page_html = ',^(?:[^?]*/)?(' . $url_objets . ')([0-9]+)(?:\.html)?([?&].*)?$,';
215
-	$raccourci_url_page_id = ',^(?:[^?]*/)?(' . $url_objets . ')\.php3?[?]id_\1=([0-9]+)([?&].*)?$,';
216
-	$raccourci_url_page_spip = ',^(?:[^?]*/)?(?:spip[.]php)?[?](' . $url_objets . ')([0-9]+)=?(&.*)?$,';
214
+	$raccourci_url_page_html = ',^(?:[^?]*/)?('.$url_objets.')([0-9]+)(?:\.html)?([?&].*)?$,';
215
+	$raccourci_url_page_id = ',^(?:[^?]*/)?('.$url_objets.')\.php3?[?]id_\1=([0-9]+)([?&].*)?$,';
216
+	$raccourci_url_page_spip = ',^(?:[^?]*/)?(?:spip[.]php)?[?]('.$url_objets.')([0-9]+)=?(&.*)?$,';
217 217
 
218 218
 	if (preg_match($raccourci_url_page_html, $url, $regs)
219 219
 		or preg_match($raccourci_url_page_id, $url, $regs)
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 function generer_url_ecrire_objet($objet, $id, $args = '', $ancre = '', $public = null, $connect = '') {
250 250
 	static $furls = array();
251 251
 	if (!isset($furls[$objet])) {
252
-		if (function_exists($f = 'generer_url_ecrire_' . $objet)
252
+		if (function_exists($f = 'generer_url_ecrire_'.$objet)
253 253
 			// ou definie par un plugin
254 254
 			or $f = charger_fonction($f, 'urls', true)
255 255
 		) {
@@ -269,10 +269,10 @@  discard block
 block discarded – undo
269 269
 	if ($public or $connect) {
270 270
 		return generer_url_entite_absolue($id, $objet, $args, $ancre, $connect);
271 271
 	}
272
-	$a = id_table_objet($objet) . "=" . intval($id);
272
+	$a = id_table_objet($objet)."=".intval($id);
273 273
 	if (!function_exists('objet_info')) {
274 274
 		include_spip('inc/filtres');
275 275
 	}
276 276
 
277
-	return generer_url_ecrire(objet_info($objet, 'url_voir'), $a . ($args ? "&$args" : '')) . ($ancre ? "#$ancre" : '');
277
+	return generer_url_ecrire(objet_info($objet, 'url_voir'), $a.($args ? "&$args" : '')).($ancre ? "#$ancre" : '');
278 278
 }
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
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 function surligner_mots($page, $surcharge_surligne = '') {
54 54
 	$surlignejs_engines = array(
55 55
 		array(
56
-			"," . str_replace(array("/", "."), array("\/", "\."), $GLOBALS['meta']['adresse_site']) . ",i",
56
+			",".str_replace(array("/", "."), array("\/", "\."), $GLOBALS['meta']['adresse_site']).",i",
57 57
 			",recherche=([^&]+),i"
58 58
 		), //SPIP
59 59
 		array(",^http://(www\.)?google\.,i", ",q=([^&]+),i"), // Google
@@ -89,20 +89,20 @@  discard block
 block discarded – undo
89 89
 			//good referrer found or var_recherche is not null
90 90
 			include_spip('inc/filtres');
91 91
 			$script = "
92
-      <script type='text/javascript' src='" . url_absolue(find_in_path('javascript/SearchHighlight.js')) . "'></script>
92
+      <script type='text/javascript' src='" . url_absolue(find_in_path('javascript/SearchHighlight.js'))."'></script>
93 93
       <script type='text/javascript'>/*<![CDATA[*/
94 94
       if (window.jQuery)
95 95
         (function(\$){\$(function(){
96 96
           \$(document).SearchHighlight({
97
-            tag_name:'" . (html5_permis() ? 'mark' : 'span') . "',
97
+            tag_name:'" . (html5_permis() ? 'mark' : 'span')."',
98 98
             style_name:'spip_surligne',
99 99
             exact:'whole',
100 100
             style_name_suffix:false,
101
-            engines:[/^" . str_replace(array("/", "."), array("\/", "\."), $GLOBALS['meta']['adresse_site']) . "/i,/recherche=([^&]+)/i],
101
+            engines:[/^" . str_replace(array("/", "."), array("\/", "\."), $GLOBALS['meta']['adresse_site'])."/i,/recherche=([^&]+)/i],
102 102
             highlight:'.surlignable',
103 103
             nohighlight:'.pas_surlignable'" .
104 104
 				($surcharge_surligne ? ",
105
-            keys:'$surcharge_surligne'" : "") . ",
105
+            keys:'$surcharge_surligne'" : "").",
106 106
             min_length: 3
107 107
           })
108 108
         });
Please login to merge, or discard this patch.
ecrire/inc/boutons.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
 			&& autoriser('onglet', "_$id")
102 102
 		) {
103 103
 			$onglets[$id] = new Bouton(
104
-				isset($infos['icone']) ? find_in_theme($infos['icone']) : '',  // icone
105
-				$infos['titre'],  // titre
104
+				isset($infos['icone']) ? find_in_theme($infos['icone']) : '', // icone
105
+				$infos['titre'], // titre
106 106
 				(isset($infos['action']) and $infos['action'])
107 107
 					? generer_url_ecrire($infos['action'],
108 108
 					(isset($infos['parametres']) and $infos['parametres']) ? $infos['parametres'] : '')
@@ -139,5 +139,5 @@  discard block
 block discarded – undo
139 139
 		$res .= onglet(_T($onglet->libelle), $url, $exec, $ongletCourant, $onglet->icone);
140 140
 	}
141 141
 
142
-	return !$res ? '' : (debut_onglet($class) . $res . fin_onglet());
142
+	return !$res ? '' : (debut_onglet($class).$res.fin_onglet());
143 143
 }
Please login to merge, or discard this patch.
ecrire/inc/cvt_configurer.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	) {
39 39
 		// Pour tous les formulaires CONFIGURER, ayant une fonction charger ou pas, on teste si autorisé
40 40
 		include_spip('inc/autoriser');
41
-		if (!autoriser('configurer', '_' . substr($form, 11))) {
41
+		if (!autoriser('configurer', '_'.substr($form, 11))) {
42 42
 			return false;
43 43
 		}
44 44
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		and !charger_fonction("traiter", "formulaires/$form/", true) // sans fonction traiter()
72 72
 	) {
73 73
 		$trace = cvtconf_formulaires_configurer_enregistre($form, $flux['args']['args']);
74
-		$flux['data'] = array('message_ok' => _T('config_info_enregistree') . $trace, 'editable' => true);
74
+		$flux['data'] = array('message_ok' => _T('config_info_enregistree').$trace, 'editable' => true);
75 75
 	}
76 76
 
77 77
 	return $flux;
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 		$prefixe = $valeurs['_meta_prefixe'];
146 146
 	}
147 147
 	if (isset($valeurs['_meta_stockage'])) {
148
-		$stockage = $valeurs['_meta_stockage'] . '::';
148
+		$stockage = $valeurs['_meta_stockage'].'::';
149 149
 	}
150 150
 
151 151
 	// si on indique juste une table, il faut vider les autres proprietes
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	$valeurs = array('editable' => ' ');
170 170
 
171 171
 	// sinon cas analyse du squelette
172
-	if ($f = find_in_path($form . '.' . _EXTENSION_SQUELETTES, 'formulaires/')
172
+	if ($f = find_in_path($form.'.'._EXTENSION_SQUELETTES, 'formulaires/')
173 173
 		and lire_fichier($f, $contenu)
174 174
 	) {
175 175
 
@@ -224,14 +224,14 @@  discard block
 block discarded – undo
224 224
 		lire_metas($table);
225 225
 	}
226 226
 
227
-	$prefixe = ($prefixe ? $prefixe . '_' : '');
227
+	$prefixe = ($prefixe ? $prefixe.'_' : '');
228 228
 	$table = ($table) ? "/$table/" : "";
229
-	$casier = ($casier) ? rtrim($casier, '/') . '/' : ""; // slash final, sinon rien
229
+	$casier = ($casier) ? rtrim($casier, '/').'/' : ""; // slash final, sinon rien
230 230
 
231 231
 	foreach ($store as $k => $v) {
232 232
 		ecrire_config("$stockage$table$prefixe$casier$k", $v);
233 233
 		if (_request('var_mode') == 'configurer' and autoriser('webmestre')) {
234
-			$trace .= "<br />table $table : " . $prefixe . $k . " = $v;";
234
+			$trace .= "<br />table $table : ".$prefixe.$k." = $v;";
235 235
 		}
236 236
 	}
237 237
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	list($table, $casier, $prefixe, $stockage) = cvtconf_definir_configurer_conteneur($form, $valeurs);
249 249
 
250 250
 	$table = ($table) ? "/$table/" : "";
251
-	$prefixe = ($prefixe ? $prefixe . '_' : '');
251
+	$prefixe = ($prefixe ? $prefixe.'_' : '');
252 252
 	if ($casier) {
253 253
 		$meta = lire_config("$stockage$table$prefixe$casier");
254 254
 		$prefixe = '';
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
 	foreach ($valeurs as $k => $v) {
261 261
 		if (substr($k, 0, 1) !== '_') {
262
-			$valeurs[$k] = (isset($meta[$prefixe . $k]) ? $meta[$prefixe . $k] : null);
262
+			$valeurs[$k] = (isset($meta[$prefixe.$k]) ? $meta[$prefixe.$k] : null);
263 263
 		}
264 264
 	}
265 265
 }
Please login to merge, or discard this patch.
ecrire/inc/auth.php 1 patch
Spacing   +14 added lines, -15 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	}
60 60
 
61 61
 	$n = intval(sql_errno());
62
-	spip_log("Erreur base de donnees $n " . sql_error());
62
+	spip_log("Erreur base de donnees $n ".sql_error());
63 63
 
64 64
 	return $n ? $n : 1;
65 65
 }
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
 		// erreur SQL a afficher
86 86
 		$raison = minipres(
87 87
 			_T('info_travaux_titre'),
88
-			_T('titre_probleme_technique') . '<p><tt>' . sql_errno() . ' ' . sql_error() . '</tt></p>'
88
+			_T('titre_probleme_technique').'<p><tt>'.sql_errno().' '.sql_error().'</tt></p>'
89 89
 		);
90 90
 	} elseif (@$raison['statut']) {
91 91
 		// un simple visiteur n'a pas acces a l'espace prive
92
-		spip_log('connexion refusee a ' . @$raison['id_auteur']);
92
+		spip_log('connexion refusee a '.@$raison['id_auteur']);
93 93
 		$raison = minipres(_T('avis_erreur_connexion'), _T('avis_erreur_visiteur'));
94 94
 	} else {
95 95
 		// auteur en fin de droits ...
@@ -178,8 +178,7 @@  discard block
 block discarded – undo
178 178
 	$where = (is_numeric($id_auteur)
179 179
 		/*AND $id_auteur>0*/ // reprise lors des restaurations
180 180
 	) ?
181
-		"id_auteur=$id_auteur" :
182
-		(!strlen($GLOBALS['connect_login']) ? '' : 'login=' . sql_quote($GLOBALS['connect_login'], '', 'text'));
181
+		"id_auteur=$id_auteur" : (!strlen($GLOBALS['connect_login']) ? '' : 'login='.sql_quote($GLOBALS['connect_login'], '', 'text'));
183 182
 
184 183
 	if (!$where) {
185 184
 		return '';
@@ -221,7 +220,7 @@  discard block
 block discarded – undo
221 220
 	$GLOBALS['connect_login'] = $row['login'];
222 221
 	$GLOBALS['connect_statut'] = $row['statut'];
223 222
 
224
-	$GLOBALS['visiteur_session'] = array_merge((array)$GLOBALS['visiteur_session'], $row);
223
+	$GLOBALS['visiteur_session'] = array_merge((array) $GLOBALS['visiteur_session'], $row);
225 224
 
226 225
 	// au cas ou : ne pas memoriser les champs sensibles
227 226
 	unset($GLOBALS['visiteur_session']['pass']);
@@ -290,7 +289,7 @@  discard block
 block discarded – undo
290 289
  * @return string
291 290
  */
292 291
 function auth_a_loger() {
293
-	$redirect = generer_url_public('login', 'url=' . rawurlencode(self('&', true)), '&');
292
+	$redirect = generer_url_public('login', 'url='.rawurlencode(self('&', true)), '&');
294 293
 
295 294
 	// un echec au "bonjour" (login initial) quand le statut est
296 295
 	// inconnu signale sans doute un probleme de cookies
@@ -328,7 +327,7 @@  discard block
 block discarded – undo
328 327
 	}
329 328
 
330 329
 	if (abs(strtotime($date) - $connect_quand) >= 60) {
331
-		sql_updateq('spip_auteurs', array('en_ligne' => $date), 'id_auteur=' . intval($row['id_auteur']));
330
+		sql_updateq('spip_auteurs', array('en_ligne' => $date), 'id_auteur='.intval($row['id_auteur']));
332 331
 		$row['en_ligne'] = $date;
333 332
 	}
334 333
 
@@ -435,14 +434,14 @@  discard block
 block discarded – undo
435 434
 function auth_informer_login($login, $serveur = '') {
436 435
 	if (!$login
437 436
 		or !$login_base = auth_retrouver_login($login, $serveur)
438
-		or !$row = sql_fetsel('*', 'spip_auteurs', 'login=' . sql_quote($login_base, $serveur, 'text'), '', '', '', '', $serveur)
437
+		or !$row = sql_fetsel('*', 'spip_auteurs', 'login='.sql_quote($login_base, $serveur, 'text'), '', '', '', '', $serveur)
439 438
 	) {
440 439
 
441 440
 		// generer de fausses infos, mais credibles, pour eviter une attaque
442 441
 		// https://core.spip.net/issues/1758 + https://core.spip.net/issues/3691
443 442
 		include_spip('inc/securiser_action');
444
-		$fauxalea1 = md5('fauxalea' . secret_du_site() . $login . floor(date('U') / 86400));
445
-		$fauxalea2 = md5('fauxalea' . secret_du_site() . $login . ceil(date('U') / 86400));
443
+		$fauxalea1 = md5('fauxalea'.secret_du_site().$login.floor(date('U') / 86400));
444
+		$fauxalea2 = md5('fauxalea'.secret_du_site().$login.ceil(date('U') / 86400));
446 445
 
447 446
 		$row = array(
448 447
 			'login' => $login,
@@ -564,7 +563,7 @@  discard block
 block discarded – undo
564 563
 	sql_updateq(
565 564
 		'spip_auteurs',
566 565
 		array('prefs' => serialize($p)),
567
-		'id_auteur=' . intval($auteur['id_auteur'])
566
+		'id_auteur='.intval($auteur['id_auteur'])
568 567
 	);
569 568
 
570 569
 	//  bloquer ici le visiteur qui tente d'abuser de ses droits
@@ -728,7 +727,7 @@  discard block
 block discarded – undo
728 727
 		return false;
729 728
 	}
730 729
 
731
-	$row = sql_fetsel('*', 'spip_auteurs', 'login=' . sql_quote($login, $serveur, 'text'), '', '', '', '', $serveur);
730
+	$row = sql_fetsel('*', 'spip_auteurs', 'login='.sql_quote($login, $serveur, 'text'), '', '', '', '', $serveur);
732 731
 
733 732
 	if (!$row) {
734 733
 		if (spip_connect_ldap($serveur)
@@ -780,11 +779,11 @@  discard block
 block discarded – undo
780 779
 	$retour = $retour ? $retour : _T('icone_retour');
781 780
 	$corps .= "<p>$raison</p>[<a href='$public'>$retour</a>] ";
782 781
 	if ($url) {
783
-		$corps .= "[<a href='" . generer_url_action('cookie', "essai_auth_http=oui&$url") . "'>$re</a>]";
782
+		$corps .= "[<a href='".generer_url_action('cookie', "essai_auth_http=oui&$url")."'>$re</a>]";
784 783
 	}
785 784
 
786 785
 	if ($lien) {
787
-		$corps .= " [<a href='$ecrire'>" . _T('login_espace_prive') . '</a>]';
786
+		$corps .= " [<a href='$ecrire'>"._T('login_espace_prive').'</a>]';
788 787
 	}
789 788
 	include_spip('inc/minipres');
790 789
 	echo minipres($pb, $corps);
Please login to merge, or discard this patch.