Completed
Pull Request — master (#40)
by
unknown
04:13
created
ecrire/exec/demande_mise_a_jour.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
 
47 47
 	echo debut_grand_cadre(true);
48 48
 	echo boite_ouvrir(_T('info_message_technique'), 'notice');
49
-	echo "<p>" . _T('info_procedure_maj_version') . "</p>",
50
-		"<p>" . _T('info_administrateur_site_01') . "</p>";
49
+	echo "<p>"._T('info_procedure_maj_version')."</p>",
50
+		"<p>"._T('info_administrateur_site_01')."</p>";
51 51
 	echo bouton_action(_T('bouton_mettre_a_jour_base'), generer_url_ecrire("upgrade", "reinstall=non"));
52 52
 	echo boite_fermer();
53 53
 	// masquer les erreurs sql sur cette page car proviennent de la base pas a jour !
Please login to merge, or discard this patch.
ecrire/exec/rechercher.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -67,15 +67,15 @@  discard block
 block discarded – undo
67 67
 	$where = preg_split(",\s+,", $type);
68 68
 	if ($where) {
69 69
 		foreach ($where as $k => $v) {
70
-			$where[$k] = "'%" . substr(str_replace("%", "\%", sql_quote($v, '', 'string')), 1, -1) . "%'";
70
+			$where[$k] = "'%".substr(str_replace("%", "\%", sql_quote($v, '', 'string')), 1, -1)."%'";
71 71
 		}
72
-		$where_titre = ("(titre LIKE " . join(" AND titre LIKE ", $where) . ")");
73
-		$where_desc = ("(descriptif LIKE " . join(" AND descriptif LIKE ", $where) . ")");
74
-		$where_id = ("(id_rubrique = " . intval($type) . ")");
72
+		$where_titre = ("(titre LIKE ".join(" AND titre LIKE ", $where).")");
73
+		$where_desc = ("(descriptif LIKE ".join(" AND descriptif LIKE ", $where).")");
74
+		$where_id = ("(id_rubrique = ".intval($type).")");
75 75
 
76 76
 		if ($exclus) {
77 77
 			include_spip('inc/rubriques');
78
-			$where_exclus = " AND " . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT');
78
+			$where_exclus = " AND ".sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT');
79 79
 		} else {
80 80
 			$where_exclus = '';
81 81
 		}
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 	if ($points) {
105 105
 		arsort($points);
106
-		$style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'";
106
+		$style = " style='background-image: url(".chemin_image('secteur-12.png').")'";
107 107
 		foreach ($rub as $k => $v) {
108 108
 			$rub[$k]['atts'] = ($v["id_parent"] ? $style : '')
109 109
 				. " class='petite-rubrique'";
@@ -136,13 +136,13 @@  discard block
 block discarded – undo
136 136
 	if (!$ids) {
137 137
 		return "<br /><br /><div style='padding: 5px; color: red;'><b>"
138 138
 		. spip_htmlentities($type)
139
-		. "</b> :  " . _T('avis_aucun_resultat') . "</div>";
139
+		. "</b> :  "._T('avis_aucun_resultat')."</div>";
140 140
 	}
141 141
 
142 142
 	$ret = '';
143 143
 	$info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id=");
144 144
 
145
-	$onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)";
145
+	$onClick = "aff_selection(this.firstChild.title,'$rac"."_selection','$info', event)";
146 146
 
147 147
 	$ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');";
148 148
 
Please login to merge, or discard this patch.
ecrire/exec/fond.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
 
28 28
 $fond = _request('exec');
29
-$GLOBALS['delais'] = 0;// pas de cache !
29
+$GLOBALS['delais'] = 0; // pas de cache !
30 30
 // Securite
31 31
 if (strstr($fond, '/')) {
32 32
 	if (!include_spip('inc/autoriser')
Please login to merge, or discard this patch.
ecrire/exec/admin_plugin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
 	if ($quoi !== 'actifs') {
140 140
 		$lpf = liste_plugin_files();
141 141
 		if ($lpf) {
142
-			echo "<p>" . _T('texte_presente_plugin') . "</p>";
142
+			echo "<p>"._T('texte_presente_plugin')."</p>";
143 143
 		} else {
144 144
 			if (!@is_dir(_DIR_PLUGINS)) {
145
-				echo "<p>" . _T('plugin_info_automatique_ftp', array('rep' => joli_repertoire(_DIR_PLUGINS)))
146
-					. " &mdash; " . _T('plugin_info_automatique_creer') . "</p>";
145
+				echo "<p>"._T('plugin_info_automatique_ftp', array('rep' => joli_repertoire(_DIR_PLUGINS)))
146
+					. " &mdash; "._T('plugin_info_automatique_creer')."</p>";
147 147
 			}
148 148
 		}
149 149
 		$lcpaffiche = $lpf;
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
 		if (defined('_DIR_PLUGINS_SUPPL')) {
165 165
 			$nb += count($lcpas);
166 166
 		}
167
-		echo "<h3>" . sinon(singulier_ou_pluriel($nb, 'plugins_actif_un', 'plugins_actifs', 'count'),
168
-				_T('plugins_actif_aucun')) . "</h3>";
167
+		echo "<h3>".sinon(singulier_ou_pluriel($nb, 'plugins_actif_un', 'plugins_actifs', 'count'),
168
+				_T('plugins_actif_aucun'))."</h3>";
169 169
 	}
170 170
 
171 171
 	if (empty($format)) {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
 	if ($corps) {
184 184
 		$corps .= "\n<div class='boutons' style='display:none;'>"
185
-			. "<input type='submit' class='submit save' value='" . _T('bouton_enregistrer')
185
+			. "<input type='submit' class='submit save' value='"._T('bouton_enregistrer')
186 186
 			. "' />"
187 187
 			. "</div>";
188 188
 	}
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 		. debut_cadre_trait_couleur('', true, '', _T('plugins_liste_dist'), 'liste_plugins_dist')
256 256
 		. "<p>"
257 257
 		. _T('plugin_info_plugins_dist_1', array('plugins_dist' => joli_repertoire(_DIR_PLUGINS_DIST)))
258
-		. '<br />' . _T('plugin_info_plugins_dist_2')
258
+		. '<br />'._T('plugin_info_plugins_dist_2')
259 259
 		. "</p>"
260 260
 		. $liste
261 261
 		. fin_cadre_trait_couleur(true)
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 	$res = debut_cadre_enfonce('', true, '', _T('plugin_librairies_installees'));
279 279
 	$res .= '<dl>';
280 280
 	foreach ($libs as $lib => $rep) {
281
-		$res .= "<dt>$lib</dt><dd>" . joli_repertoire($rep) . "</dd>\n";
281
+		$res .= "<dt>$lib</dt><dd>".joli_repertoire($rep)."</dd>\n";
282 282
 	}
283 283
 	$res .= '</dl>';
284 284
 	$res .= fin_cadre_enfonce(true);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 function liste_librairies() {
297 297
 	$libs = array();
298 298
 	foreach (array_reverse(creer_chemin()) as $d) {
299
-		if (is_dir($dir = $d . 'lib/')
299
+		if (is_dir($dir = $d.'lib/')
300 300
 			and $t = opendir($dir)
301 301
 		) {
302 302
 			while (($f = readdir($t)) !== false) {
Please login to merge, or discard this patch.
ecrire/inc/pipelines.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		}
65 65
 	}
66 66
 
67
-	$texte = $x . $texte;
67
+	$texte = $x.$texte;
68 68
 
69 69
 	return $texte;
70 70
 }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	if (isset($_SERVER['HTTP_REFERER'])) {
102 102
 		$_SERVER['HTTP_REFERER'] = preg_replace(',[^\w\,/#&;-]+,', ' ', $_SERVER['HTTP_REFERER']);
103 103
 	}
104
-	if ($rech){
104
+	if ($rech) {
105 105
 		$rech = preg_replace(',[^\w\,/#&;-]+,', ' ', $rech);
106 106
 	}
107 107
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	|| ($pos = 0);
177 177
 
178 178
 	if (false === strpos(substr($texte, 0, $pos), '<!-- insert_head -->')) {
179
-		$insert = "\n" . pipeline('insert_head', '<!-- f_insert_head -->') . "\n";
179
+		$insert = "\n".pipeline('insert_head', '<!-- f_insert_head -->')."\n";
180 180
 		$texte = substr_replace($texte, $insert, $pos, 0);
181 181
 	}
182 182
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
 	// inserer avant le </body> fermant si on peut, a la fin de la page sinon
274 274
 	if (($p = strpos($texte, '</body>')) !== false) {
275
-		$texte = substr($texte, 0, $p) . $code . substr($texte, $p);
275
+		$texte = substr($texte, 0, $p).$code.substr($texte, $p);
276 276
 	} else {
277 277
 		$texte .= $code;
278 278
 	}
Please login to merge, or discard this patch.
ecrire/inc/cvt_multietapes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,9 +298,9 @@
 block discarded – undo
298 298
 		and ($e = $flux['args']['contexte']['_etape']) > 1
299 299
 		and $ext = $flux['args']['ext']
300 300
 		and $f = $flux['data']
301
-		and file_exists($f . "_$e.$ext")
301
+		and file_exists($f."_$e.$ext")
302 302
 	) {
303
-		$flux['data'] = $f . "_$e";
303
+		$flux['data'] = $f."_$e";
304 304
 	}
305 305
 
306 306
 	return $flux;
Please login to merge, or discard this patch.
ecrire/inc/puce_statut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -420,7 +420,7 @@
 block discarded – undo
420 420
 	$h = "selec_statut('$id', '$type', $n, jQuery('img',this).attr('src'), '$h');return false;";
421 421
 	$t = supprimer_tags($titre);
422 422
 
423
-	return "<a href=\"#\" onclick=\"$h\" title=\"$t\"$act>" . http_img_pack($img, $t) . "</a>";
423
+	return "<a href=\"#\" onclick=\"$h\" title=\"$t\"$act>".http_img_pack($img, $t)."</a>";
424 424
 }
425 425
 
426 426
 // compat
Please login to merge, or discard this patch.
ecrire/inc/envoyer_mail.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
 	// ceci est la RegExp NO_REAL_NAME faisant hurler SpamAssassin
136 136
 	if (preg_match('/^["\s]*\<?\S+\@\S+\>?\s*$/', $from)) {
137
-		$from .= ' (' . str_replace(')', '', translitteration(str_replace('@', ' at ', $from))) . ')';
137
+		$from .= ' ('.str_replace(')', '', translitteration(str_replace('@', ' at ', $from))).')';
138 138
 	}
139 139
 
140 140
 	// nettoyer les &eacute; &#8217, &emdash; etc...
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		if (!_TEST_EMAIL_DEST) {
172 172
 			return false;
173 173
 		} else {
174
-			$texte = "Dest : $destinataire\r\n" . $texte;
174
+			$texte = "Dest : $destinataire\r\n".$texte;
175 175
 			$destinataire = _TEST_EMAIL_DEST;
176 176
 		}
177 177
 	}
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	// Ajouter le Content-Type et consort s'il n'y est pas deja
196 196
 	if (strpos($headers, 'Content-Type: ') === false) {
197 197
 		$type =
198
-			"Content-Type: text/plain;charset=\"$charset\";\n" .
198
+			"Content-Type: text/plain;charset=\"$charset\";\n".
199 199
 			"Content-Transfer-Encoding: 8bit\n";
200 200
 	} else {
201 201
 		$type = '';
@@ -203,15 +203,15 @@  discard block
 block discarded – undo
203 203
 
204 204
 	// calculer un identifiant unique
205 205
 	preg_match('/@\S+/', $from, $domain);
206
-	$uniq = rand() . '_' . md5($to . $texte) . $domain[0];
206
+	$uniq = rand().'_'.md5($to.$texte).$domain[0];
207 207
 
208 208
 	// Si multi-part, s'en servir comme borne ...
209 209
 	if ($parts) {
210
-		$texte = "--$uniq\n$type\n" . $texte . "\n";
210
+		$texte = "--$uniq\n$type\n".$texte."\n";
211 211
 		foreach ($parts as $part) {
212
-			$n = strlen($part[1]) . ($part[0] ? "\n" : '');
212
+			$n = strlen($part[1]).($part[0] ? "\n" : '');
213 213
 			$e = join("\n", $part[0]);
214
-			$texte .= "\n--$uniq\nContent-Length: $n$e\n\n" . $part[1];
214
+			$texte .= "\n--$uniq\nContent-Length: $n$e\n\n".$part[1];
215 215
 		}
216 216
 		$texte .= "\n\n--$uniq--\n";
217 217
 		// Si boundary n'est pas entre guillemets,
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
 	// .. et s'en servir pour plaire a SpamAssassin
223 223
 
224
-	$mid = 'Message-Id: <' . $uniq . '>';
224
+	$mid = 'Message-Id: <'.$uniq.'>';
225 225
 
226 226
 	// indispensable pour les sites qui collent d'office From: serveur-http
227 227
 	// sauf si deja mis par l'envoyeur
Please login to merge, or discard this patch.
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.