Completed
Pull Request — master (#40)
by
unknown
04:13
created
ecrire/inc/couleurs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,8 @@
 block discarded – undo
119 119
 		$GLOBALS["couleur_lien_off"] = $couleurs_spip[$choix]['couleur_lien_off'];
120 120
 
121 121
 		return
122
-			"couleur_claire=" . substr($couleurs_spip[$choix]['couleur_claire'], 1) .
123
-			'&couleur_foncee=' . substr($couleurs_spip[$choix]['couleur_foncee'], 1);
122
+			"couleur_claire=".substr($couleurs_spip[$choix]['couleur_claire'], 1).
123
+			'&couleur_foncee='.substr($couleurs_spip[$choix]['couleur_foncee'], 1);
124 124
 	} else {
125 125
 		if (is_array($choix)) {
126 126
 			if ($ajouter) {
Please login to merge, or discard this patch.
ecrire/inc/notifications.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
 	if ($notification = charger_fonction($quoi, 'notifications', true)) {
41 41
 		spip_log("$notification($quoi,$id"
42
-			. ($options ? "," . serialize($options) : "")
42
+			. ($options ? ",".serialize($options) : "")
43 43
 			. ")", 'notifications');
44 44
 		$notification($quoi, $id, $options);
45 45
 	}
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$envoi = pipeline('notifications_envoyer_mails', array('email' => $email, 'sujet' => $sujet, 'texte' => $texte));
147 147
 		$email = $envoi['email'];
148 148
 
149
-		job_queue_add('envoyer_mail', ">$email : " . $envoi['sujet'],
149
+		job_queue_add('envoyer_mail', ">$email : ".$envoi['sujet'],
150 150
 			array($email, $envoi['sujet'], $envoi['texte'], $from, $headers), 'inc/');
151 151
 	}
152 152
 
Please login to merge, or discard this patch.
ecrire/inc/lang.php 1 patch
Spacing   +10 added lines, -12 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
  **/
38 38
 function changer_langue($lang) {
39 39
 
40
-	$liste_langues = ',' . @$GLOBALS['meta']['langues_proposees']
41
-		. ',' . @$GLOBALS['meta']['langues_multilingue'] . ',';
40
+	$liste_langues = ','.@$GLOBALS['meta']['langues_proposees']
41
+		. ','.@$GLOBALS['meta']['langues_multilingue'].',';
42 42
 
43 43
 	// Si la langue demandee n'existe pas, on essaie d'autres variantes
44 44
 	// Exemple : 'pt-br' => 'pt_br' => 'pt'
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	}
190 190
 	foreach ($langues as $l) {
191 191
 		$selected = ($l == $default) ? ' selected=\'selected\'' : '';
192
-		$ret .= "<option value='$l'$selected>[" . $l . "] " . traduire_nom_langue($l) . "</option>\n";
192
+		$ret .= "<option value='$l'$selected>[".$l."] ".traduire_nom_langue($l)."</option>\n";
193 193
 	}
194 194
 
195 195
 	if (!test_espace_prive()) {
@@ -204,23 +204,21 @@  discard block
 block discarded – undo
204 204
 
205 205
 	return generer_action_auteur('converser', $base, $cible,
206 206
 		(select_langues($nom_select, $change, $ret)
207
-			. "<noscript><div style='display:inline'><input type='submit' class='fondo' value='" . _T('bouton_changer') . "' /></div></noscript>"),
207
+			. "<noscript><div style='display:inline'><input type='submit' class='fondo' value='"._T('bouton_changer')."' /></div></noscript>"),
208 208
 		" method='post'");
209 209
 }
210 210
 
211 211
 // http://code.spip.net/@select_langues
212 212
 function select_langues($nom_select, $change, $options, $label = "") {
213 213
 	static $cpt = 0;
214
-	$id = "menu_langues" . $cpt++;
214
+	$id = "menu_langues".$cpt++;
215 215
 
216 216
 	return
217
-		"<label for='$id'>" . ($label ? $label : _T('info_langues')) . "</label> " .
217
+		"<label for='$id'>".($label ? $label : _T('info_langues'))."</label> ".
218 218
 		"<select name='$nom_select' id='$id' "
219 219
 		. ((!test_espace_prive()) ?
220
-			("class='forml menu_langues'") :
221
-			(($nom_select == 'var_lang_ecrire') ?
222
-				("class='lang_ecrire'") :
223
-				"class='fondl'"))
220
+			("class='forml menu_langues'") : (($nom_select == 'var_lang_ecrire') ?
221
+				("class='lang_ecrire'") : "class='fondl'"))
224 222
 		. $change
225 223
 		. ">\n"
226 224
 		. $options
@@ -342,7 +340,7 @@  discard block
 block discarded – undo
342 340
 		and (!isset($GLOBALS['spip_lang'])
343 341
 			or $GLOBALS['spip_lang'] != $GLOBALS['meta']['langue_site'])
344 342
 	) {
345
-		return changer_langue($GLOBALS['meta']['langue_site']);//@:install
343
+		return changer_langue($GLOBALS['meta']['langue_site']); //@:install
346 344
 	}
347 345
 	// en theorie là, la globale est définie, sinon c'est un problème.
348 346
 	if (!isset($GLOBALS['spip_lang'])) {
@@ -443,7 +441,7 @@  discard block
 block discarded – undo
443 441
 	if (!isset($GLOBALS['meta']['langue_site'])) {
444 442
 		// Initialisation : le francais si dispo, sinon la premiere langue trouvee
445 443
 		$GLOBALS['meta']['langue_site'] = $tout =
446
-			(!$all_langs or (strpos(',' . _LANGUE_PAR_DEFAUT . ',', ",$all_langs,") !== false))
444
+			(!$all_langs or (strpos(','._LANGUE_PAR_DEFAUT.',', ",$all_langs,") !== false))
447 445
 				? _LANGUE_PAR_DEFAUT : substr($all_langs, 0, strpos($all_langs, ','));
448 446
 		ecrire_meta('langue_site', $tout);
449 447
 	}
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/selectionner.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 	if ($aff_racine) {
56 56
 		$info = generer_url_ecrire('informer', "type=rubrique&rac=$idom&do=$do&id=");
57
-		$idom3 = $idom . "_selection";
57
+		$idom3 = $idom."_selection";
58 58
 
59 59
 		$onClick = "jQuery(this).parent().addClass('on');jQuery('#choix_parent_principal .on').removeClass('on'); aff_selection(0, '$idom3', '$info', event);return false;";
60 60
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 				textebrut(_T('info_racine_site')))),
64 64
 			"\n\r", "  ");
65 65
 
66
-		$js_func = $do . '_selection_titre';
66
+		$js_func = $do.'_selection_titre';
67 67
 		$ondbClick = "$js_func('$ondbClick',0,'selection_rubrique','id_parent');";
68 68
 
69 69
 		$aff_racine = "<div class='petite-racine item'>"
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
  **/
105 105
 function construire_selectionner_hierarchie($idom, $liste, $racine, $url, $name, $url_init = '') {
106 106
 
107
-	$idom1 = $idom . "_champ_recherche";
108
-	$idom2 = $idom . "_principal";
109
-	$idom3 = $idom . "_selection";
110
-	$idom4 = $idom . "_col_1";
111
-	$idom5 = 'img_' . $idom4;
112
-	$idom6 = $idom . "_fonc";
107
+	$idom1 = $idom."_champ_recherche";
108
+	$idom2 = $idom."_principal";
109
+	$idom3 = $idom."_selection";
110
+	$idom4 = $idom."_col_1";
111
+	$idom5 = 'img_'.$idom4;
112
+	$idom6 = $idom."_fonc";
113 113
 
114 114
 	return "<div id='$idom'>"
115 115
 	. "<a id='$idom6' style='visibility: hidden;'"
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
 	. "></a>"
118 118
 	. "<div class='recherche_rapide_parent'>"
119 119
 	. http_img_pack("searching.gif", "*",
120
-		"style='visibility: hidden;float:" . $GLOBALS['spip_lang_right'] . "' id='$idom5'")
120
+		"style='visibility: hidden;float:".$GLOBALS['spip_lang_right']."' id='$idom5'")
121 121
 	. ""
122
-	. "<input style='width: 100px;float:" . $GLOBALS['spip_lang_right'] . ";' type='search' id='$idom1'"
122
+	. "<input style='width: 100px;float:".$GLOBALS['spip_lang_right'].";' type='search' id='$idom1'"
123 123
 	// eliminer Return car il provoque la soumission (balise unique)
124 124
 	// et eliminer Tab pour la navigation au clavier
125 125
 	// ce serait encore mieux de ne le faire que s'il y a encore plusieurs
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
 
167 167
 	$liste = $id_rubrique;
168 168
 	$id_rubrique = intval($id_rubrique);
169
-	while ($id_rubrique = sql_getfetsel("id_parent", "spip_rubriques", "id_rubrique = " . $id_rubrique)) {
170
-		$liste = $id_rubrique . ",$liste";
169
+	while ($id_rubrique = sql_getfetsel("id_parent", "spip_rubriques", "id_rubrique = ".$id_rubrique)) {
170
+		$liste = $id_rubrique.",$liste";
171 171
 	}
172 172
 
173 173
 	return explode(',', "0,$liste");
Please login to merge, or discard this patch.
ecrire/inc/admin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		if ($res) {
55 55
 			return $res;
56 56
 		}
57
-		spip_log("meta: $script " . join(',', $_POST));
57
+		spip_log("meta: $script ".join(',', $_POST));
58 58
 		ecrire_meta($script, serialize($_POST));
59 59
 	}
60 60
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	}
123 123
 	// on pourrait statuer automatiquement les webmestres a l'init d'une action auth par ftp ... ?
124 124
 
125
-	spip_log("admin $pref" . ($valeur ? ' (reprise)' : ' (init)'), $journal);
125
+	spip_log("admin $pref".($valeur ? ' (reprise)' : ' (init)'), $journal);
126 126
 
127 127
 	return '';
128 128
 }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	if (autoriser('configurer')) {
141 141
 		return _DIR_TMP;
142 142
 	} else {
143
-		return _DIR_TRANSFERT . $GLOBALS['visiteur_session']['login'] . '/';
143
+		return _DIR_TRANSFERT.$GLOBALS['visiteur_session']['login'].'/';
144 144
 	}
145 145
 }
146 146
 
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
  *     Nom du fichier
159 159
  **/
160 160
 function fichier_admin($action, $pref = 'admin_') {
161
-	return $pref .
162
-	substr(md5($action . (time() & ~2047) . $GLOBALS['visiteur_session']['login']), 0, 10);
161
+	return $pref.
162
+	substr(md5($action.(time() & ~2047).$GLOBALS['visiteur_session']['login']), 0, 10);
163 163
 }
164 164
 
165 165
 /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 	} else {
193 193
 		$dir = dir_admin();
194 194
 		$signal = fichier_admin($script);
195
-		if (@file_exists($dir . $signal)) {
195
+		if (@file_exists($dir.$signal)) {
196 196
 			spip_log("Action admin: $action");
197 197
 
198 198
 			return '';
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
 				return '';
211 211
 			}
212
-			$corps .= '<input type="hidden" name="validation_admin" value="' . $signal . '" />';
212
+			$corps .= '<input type="hidden" name="validation_admin" value="'.$signal.'" />';
213 213
 			$suivant = _T('bouton_valider');
214 214
 			$js = '';
215 215
 		} else {
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 				. "</legend>\n<label for='fichier'>"
225 225
 				. _T('info_creer_repertoire')
226 226
 				. "</label>\n"
227
-				. "<span id='signal' class='formo'>" . $signal . '</span>'
227
+				. "<span id='signal' class='formo'>".$signal.'</span>'
228 228
 				. "<input type='hidden' id='fichier' name='fichier' value='"
229 229
 				. $signal
230 230
 				. "' />"
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
  *     Nom de l'action (en base) qui a été exécutée
262 262
  **/
263 263
 function fin_admin($action) {
264
-	$signal = dir_admin() . fichier_admin($action);
264
+	$signal = dir_admin().fichier_admin($action);
265 265
 	spip_unlink($signal);
266 266
 	if ($action != 'delete_all') {
267 267
 		effacer_meta($action);
@@ -289,8 +289,8 @@  discard block
 block discarded – undo
289 289
 	include_spip('inc/filtres');
290 290
 	foreach (array_merge($_POST, $_GET) as $n => $c) {
291 291
 		if (!in_array($n, array('fichier', 'exec', 'validation_admin')) and !is_array($c)) {
292
-			$suite .= "\n<input type='hidden' name='" . spip_htmlspecialchars($n) . "' value='" .
293
-				entites_html($c) .
292
+			$suite .= "\n<input type='hidden' name='".spip_htmlspecialchars($n)."' value='".
293
+				entites_html($c).
294 294
 				"'  />";
295 295
 		}
296 296
 	}
Please login to merge, or discard this patch.
ecrire/inc/acces.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
  *     Mot de passe
32 32
  **/
33 33
 function creer_pass_aleatoire($longueur = 8, $sel = '') {
34
-	$seed = (int)round(((float)microtime() + 1) * time());
34
+	$seed = (int) round(((float) microtime() + 1) * time());
35 35
 
36 36
 	mt_srand($seed);
37 37
 	srand($seed);
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 			if (!$s) {
44 44
 				$s = rand();
45 45
 			}
46
-			$s = substr(md5(uniqid($s) . $sel), 0, 16);
46
+			$s = substr(md5(uniqid($s).$sel), 0, 16);
47 47
 		}
48
-		$r = unpack('Cr', pack('H2', $s . $s));
48
+		$r = unpack('Cr', pack('H2', $s.$s));
49 49
 		$x = $r['r'] & 63;
50 50
 		if ($x < 10) {
51 51
 			$x = chr($x + 48);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	static $seeded;
84 84
 
85 85
 	if (!$seeded) {
86
-		$seed = (int)round(((float)microtime() + 1) * time());
86
+		$seed = (int) round(((float) microtime() + 1) * time());
87 87
 		mt_srand($seed);
88 88
 		srand($seed);
89 89
 		$seeded = true;
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
 	foreach ($args as $val => $var) {
193 193
 		if ($var) {
194 194
 			if ($val <> 'statut') {
195
-				$a .= ':' . $val . '-' . $var;
195
+				$a .= ':'.$val.'-'.$var;
196 196
 			}
197
-			$b .= $val . '=' . $var . '&';
197
+			$b .= $val.'='.$var.'&';
198 198
 		}
199 199
 	}
200 200
 	$a = substr($a, 1);
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
  *     Clé
225 225
  **/
226 226
 function afficher_low_sec($id_auteur, $action = '') {
227
-	return substr(md5($action . low_sec($id_auteur)), 0, 8);
227
+	return substr(md5($action.low_sec($id_auteur)), 0, 8);
228 228
 }
229 229
 
230 230
 /**
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
  */
266 266
 function initialiser_sel() {
267 267
 	if (CRYPT_MD5) {
268
-		$GLOBALS['htsalt'] = '$1$' . creer_pass_aleatoire();
268
+		$GLOBALS['htsalt'] = '$1$'.creer_pass_aleatoire();
269 269
 	} else {
270 270
 		return '';
271 271
 	}
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
  *     - void sinon.
286 286
  **/
287 287
 function ecrire_acces() {
288
-	$htaccess = _DIR_RESTREINT . _ACCESS_FILE_NAME;
289
-	$htpasswd = _DIR_TMP . _AUTH_USER_FILE;
288
+	$htaccess = _DIR_RESTREINT._ACCESS_FILE_NAME;
289
+	$htpasswd = _DIR_TMP._AUTH_USER_FILE;
290 290
 
291 291
 	// Cette variable de configuration peut etre posee par un plugin
292 292
 	// par exemple acces_restreint ;
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 		and !@file_exists($htaccess)
297 297
 	) {
298 298
 		spip_unlink($htpasswd);
299
-		spip_unlink($htpasswd . '-admin');
299
+		spip_unlink($htpasswd.'-admin');
300 300
 		return;
301 301
 	}
302 302
 
@@ -313,15 +313,15 @@  discard block
 block discarded – undo
313 313
 	$s = sql_select('login, htpass, statut', 'spip_auteurs', sql_in('statut', array('1comite', '0minirezo', 'nouveau')));
314 314
 	while ($t = sql_fetch($s)) {
315 315
 		if (strlen($t['login']) and strlen($t['htpass'])) {
316
-			$p1 .= $t['login'] . ':' . $t['htpass'] . "\n";
316
+			$p1 .= $t['login'].':'.$t['htpass']."\n";
317 317
 			if ($t['statut'] == '0minirezo') {
318
-				$p2 .= $t['login'] . ':' . $t['htpass'] . "\n";
318
+				$p2 .= $t['login'].':'.$t['htpass']."\n";
319 319
 			}
320 320
 		}
321 321
 	}
322 322
 	if ($p1) {
323 323
 		ecrire_fichier($htpasswd, $p1);
324
-		ecrire_fichier($htpasswd . '-admin', $p2);
324
+		ecrire_fichier($htpasswd.'-admin', $p2);
325 325
 		spip_log("Ecriture de $htpasswd et $htpasswd-admin");
326 326
 	}
327 327
 }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
  * @return boolean
355 355
  */
356 356
 function verifier_htaccess($rep, $force = false) {
357
-	$htaccess = rtrim($rep, '/') . '/' . _ACCESS_FILE_NAME;
357
+	$htaccess = rtrim($rep, '/').'/'._ACCESS_FILE_NAME;
358 358
 	if (((@file_exists($htaccess)) or defined('_TEST_DIRS')) and !$force) {
359 359
 		return true;
360 360
 	}
@@ -381,19 +381,19 @@  discard block
 block discarded – undo
381 381
 		fputs($ht, $deny);
382 382
 		fclose($ht);
383 383
 		@chmod($htaccess, _SPIP_CHMOD & 0666);
384
-		$t = rtrim($rep, '/') . '/.ok';
384
+		$t = rtrim($rep, '/').'/.ok';
385 385
 		if ($ht = @fopen($t, 'w')) {
386 386
 			@fclose($ht);
387 387
 			include_spip('inc/distant');
388 388
 			$t = substr($t, strlen(_DIR_RACINE));
389
-			$t = url_de_base() . $t;
389
+			$t = url_de_base().$t;
390 390
 			$ht = recuperer_lapage($t, false, 'HEAD', 0);
391 391
 			// htaccess inoperant si on a recupere des entetes HTTP
392 392
 			// (ignorer la reussite si connexion par fopen)
393 393
 			$ht = !(isset($ht[0]) and $ht[0]);
394 394
 		}
395 395
 	}
396
-	spip_log("Creation de $htaccess " . ($ht ? ' reussie' : ' manquee'));
396
+	spip_log("Creation de $htaccess ".($ht ? ' reussie' : ' manquee'));
397 397
 
398 398
 	return $ht;
399 399
 }
@@ -419,11 +419,11 @@  discard block
 block discarded – undo
419 419
 	$dirs = sql_allfetsel('extension', 'spip_types_documents');
420 420
 	$dirs[] = array('extension' => 'distant');
421 421
 	foreach ($dirs as $e) {
422
-		if (is_dir($dir = _DIR_IMG . $e['extension'])) {
422
+		if (is_dir($dir = _DIR_IMG.$e['extension'])) {
423 423
 			if ($f) {
424 424
 				verifier_htaccess($dir);
425 425
 			} else {
426
-				spip_unlink($dir . '/' . _ACCESS_FILE_NAME);
426
+				spip_unlink($dir.'/'._ACCESS_FILE_NAME);
427 427
 			}
428 428
 		}
429 429
 	}
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.