@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $row = sql_fetsel( |
| 57 | 57 | 'alea_actuel, alea_futur', |
| 58 | 58 | 'spip_auteurs', |
| 59 | - 'login=' . sql_quote($login, $serveur, 'text'), |
|
| 59 | + 'login='.sql_quote($login, $serveur, 'text'), |
|
| 60 | 60 | '', |
| 61 | 61 | '', |
| 62 | 62 | '', |
@@ -66,9 +66,9 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | if ($row) { |
| 68 | 68 | include_spip('auth/sha256.inc'); |
| 69 | - $shapass = spip_sha256($row['alea_actuel'] . $pass); |
|
| 70 | - $shanext = spip_sha256($row['alea_futur'] . $pass); |
|
| 71 | - $md5pass = md5($row['alea_actuel'] . $pass); |
|
| 69 | + $shapass = spip_sha256($row['alea_actuel'].$pass); |
|
| 70 | + $shanext = spip_sha256($row['alea_futur'].$pass); |
|
| 71 | + $md5pass = md5($row['alea_actuel'].$pass); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | $row = sql_fetsel( |
| 81 | 81 | '*', |
| 82 | 82 | 'spip_auteurs', |
| 83 | - 'login=' . sql_quote($login, $serveur, 'text') . ' AND pass=' . sql_quote( |
|
| 83 | + 'login='.sql_quote($login, $serveur, 'text').' AND pass='.sql_quote( |
|
| 84 | 84 | $shapass, |
| 85 | 85 | $serveur, |
| 86 | 86 | 'text' |
| 87 | - ) . " AND statut<>'5poubelle'", |
|
| 87 | + )." AND statut<>'5poubelle'", |
|
| 88 | 88 | '', |
| 89 | 89 | '', |
| 90 | 90 | '', |
@@ -97,11 +97,11 @@ discard block |
||
| 97 | 97 | $row = sql_fetsel( |
| 98 | 98 | '*', |
| 99 | 99 | 'spip_auteurs', |
| 100 | - 'login=' . sql_quote($login, $serveur, 'text') . ' AND pass=' . sql_quote( |
|
| 100 | + 'login='.sql_quote($login, $serveur, 'text').' AND pass='.sql_quote( |
|
| 101 | 101 | $md5pass, |
| 102 | 102 | $serveur, |
| 103 | 103 | 'text' |
| 104 | - ) . " AND statut<>'5poubelle'", |
|
| 104 | + )." AND statut<>'5poubelle'", |
|
| 105 | 105 | '', |
| 106 | 106 | '', |
| 107 | 107 | '', |
@@ -123,11 +123,11 @@ discard block |
||
| 123 | 123 | 'alea_actuel' => 'alea_futur', |
| 124 | 124 | 'pass' => sql_quote($shanext, $serveur, 'text'), |
| 125 | 125 | 'alea_futur' => sql_quote(creer_uniqid(), $serveur, 'text') |
| 126 | - ], 'id_auteur=' . $row['id_auteur'] . ' AND pass IN (' . sql_quote( |
|
| 126 | + ], 'id_auteur='.$row['id_auteur'].' AND pass IN ('.sql_quote( |
|
| 127 | 127 | $shapass, |
| 128 | 128 | $serveur, |
| 129 | 129 | 'text' |
| 130 | - ) . ', ' . sql_quote($md5pass, $serveur, 'text') . ')', '', $serveur); |
|
| 130 | + ).', '.sql_quote($md5pass, $serveur, 'text').')', '', $serveur); |
|
| 131 | 131 | // En profiter pour verifier la securite de tmp/ |
| 132 | 132 | // Si elle ne fonctionne pas a l'installation, prevenir |
| 133 | 133 | if (!verifier_htaccess(_DIR_TMP) and defined('_ECRIRE_INSTALL')) { |
@@ -163,16 +163,16 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | // javascript qui gere la securite du login en evitant de faire circuler le pass en clair |
| 165 | 165 | $flux['data'] .= |
| 166 | - ($compat_md5 ? '<script type="text/javascript" src="' . _DIR_JAVASCRIPT . 'md5.js"></script>' : '') |
|
| 167 | - . '<script type="text/javascript" src="' . _DIR_JAVASCRIPT . 'login-sha-min.js"></script>' |
|
| 166 | + ($compat_md5 ? '<script type="text/javascript" src="'._DIR_JAVASCRIPT.'md5.js"></script>' : '') |
|
| 167 | + . '<script type="text/javascript" src="'._DIR_JAVASCRIPT.'login-sha-min.js"></script>' |
|
| 168 | 168 | . '<script type="text/javascript">/*<![CDATA[*/' |
| 169 | - . "var login_info={'alea_actuel':'" . $flux['args']['contexte']['_alea_actuel'] . "'," |
|
| 170 | - . "'alea_futur':'" . $flux['args']['contexte']['_alea_futur'] . "'," |
|
| 171 | - . "'login':'" . $flux['args']['contexte']['var_login'] . "'," |
|
| 172 | - . "'page_auteur': '" . generer_url_public('informer_auteur') . "'," |
|
| 169 | + . "var login_info={'alea_actuel':'".$flux['args']['contexte']['_alea_actuel']."'," |
|
| 170 | + . "'alea_futur':'".$flux['args']['contexte']['_alea_futur']."'," |
|
| 171 | + . "'login':'".$flux['args']['contexte']['var_login']."'," |
|
| 172 | + . "'page_auteur': '".generer_url_public('informer_auteur')."'," |
|
| 173 | 173 | . "'informe_auteur_en_cours':false," |
| 174 | 174 | . "'attente_informe':0," |
| 175 | - . "'compat_md5':" . ($compat_md5 ? 'true' : 'false') . '};' |
|
| 175 | + . "'compat_md5':".($compat_md5 ? 'true' : 'false').'};' |
|
| 176 | 176 | . "jQuery(function(){ |
| 177 | 177 | jQuery('#var_login').change(actualise_auteur); |
| 178 | 178 | jQuery('form#formulaire_login').submit(login_submit); |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } else { |
| 216 | 216 | $n = sql_countsel( |
| 217 | 217 | 'spip_auteurs', |
| 218 | - 'login=' . sql_quote($new_login) . ' AND id_auteur!=' . intval($id_auteur) . " AND statut!='5poubelle'", |
|
| 218 | + 'login='.sql_quote($new_login).' AND id_auteur!='.intval($id_auteur)." AND statut!='5poubelle'", |
|
| 219 | 219 | '', |
| 220 | 220 | '', |
| 221 | 221 | $serveur |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | if ( |
| 245 | 245 | !$id_auteur = intval($id_auteur) |
| 246 | - or !$auteur = sql_fetsel('login', 'spip_auteurs', 'id_auteur=' . intval($id_auteur), '', '', '', '', $serveur) |
|
| 246 | + or !$auteur = sql_fetsel('login', 'spip_auteurs', 'id_auteur='.intval($id_auteur), '', '', '', '', $serveur) |
|
| 247 | 247 | ) { |
| 248 | 248 | return false; |
| 249 | 249 | } |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | $anciens = sql_allfetsel( |
| 259 | 259 | 'id_auteur', |
| 260 | 260 | 'spip_auteurs', |
| 261 | - 'login=' . sql_quote($new_login, $serveur, 'text') . " AND statut='5poubelle'", |
|
| 261 | + 'login='.sql_quote($new_login, $serveur, 'text')." AND statut='5poubelle'", |
|
| 262 | 262 | '', |
| 263 | 263 | '', |
| 264 | 264 | '', |
@@ -292,8 +292,8 @@ discard block |
||
| 292 | 292 | $r = sql_getfetsel( |
| 293 | 293 | 'login', |
| 294 | 294 | 'spip_auteurs', |
| 295 | - "statut<>'5poubelle'" . |
|
| 296 | - ' AND (length(pass)>0)' . |
|
| 295 | + "statut<>'5poubelle'". |
|
| 296 | + ' AND (length(pass)>0)'. |
|
| 297 | 297 | " AND (login=$l)", |
| 298 | 298 | '', |
| 299 | 299 | '', |
@@ -312,8 +312,8 @@ discard block |
||
| 312 | 312 | return sql_getfetsel( |
| 313 | 313 | 'login', |
| 314 | 314 | 'spip_auteurs', |
| 315 | - "statut<>'5poubelle'" . |
|
| 316 | - ' AND (length(pass)>0)' . |
|
| 315 | + "statut<>'5poubelle'". |
|
| 316 | + ' AND (length(pass)>0)'. |
|
| 317 | 317 | " AND (login<>'' AND (nom=$l OR email=$l))", |
| 318 | 318 | '', |
| 319 | 319 | '', |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | |
| 404 | 404 | if ( |
| 405 | 405 | !$id_auteur = intval($id_auteur) |
| 406 | - or !sql_fetsel('login', 'spip_auteurs', 'id_auteur=' . intval($id_auteur), '', '', '', '', $serveur) |
|
| 406 | + or !sql_fetsel('login', 'spip_auteurs', 'id_auteur='.intval($id_auteur), '', '', '', '', $serveur) |
|
| 407 | 407 | ) { |
| 408 | 408 | return false; |
| 409 | 409 | } |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | $htpass = generer_htpass($new_pass); |
| 415 | 415 | $alea_actuel = creer_uniqid(); |
| 416 | 416 | $alea_futur = creer_uniqid(); |
| 417 | - $pass = spip_sha256($alea_actuel . $new_pass); |
|
| 417 | + $pass = spip_sha256($alea_actuel.$new_pass); |
|
| 418 | 418 | $c['pass'] = $pass; |
| 419 | 419 | $c['htpass'] = $htpass; |
| 420 | 420 | $c['alea_actuel'] = $alea_actuel; |
@@ -450,8 +450,8 @@ discard block |
||
| 450 | 450 | or isset($champs['statut']) |
| 451 | 451 | or (isset($options['all']) and $options['all']) |
| 452 | 452 | ) { |
| 453 | - $htaccess = _DIR_RESTREINT . _ACCESS_FILE_NAME; |
|
| 454 | - $htpasswd = _DIR_TMP . _AUTH_USER_FILE; |
|
| 453 | + $htaccess = _DIR_RESTREINT._ACCESS_FILE_NAME; |
|
| 454 | + $htpasswd = _DIR_TMP._AUTH_USER_FILE; |
|
| 455 | 455 | |
| 456 | 456 | // Cette variable de configuration peut etre posee par un plugin |
| 457 | 457 | // par exemple acces_restreint ; |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | and !@file_exists($htaccess) |
| 462 | 462 | ) { |
| 463 | 463 | spip_unlink($htpasswd); |
| 464 | - spip_unlink($htpasswd . '-admin'); |
|
| 464 | + spip_unlink($htpasswd.'-admin'); |
|
| 465 | 465 | |
| 466 | 466 | return; |
| 467 | 467 | } |
@@ -479,16 +479,16 @@ discard block |
||
| 479 | 479 | ); |
| 480 | 480 | while ($t = sql_fetch($s)) { |
| 481 | 481 | if (strlen($t['login']) and strlen($t['htpass'])) { |
| 482 | - $p1 .= $t['login'] . ':' . $t['htpass'] . "\n"; |
|
| 482 | + $p1 .= $t['login'].':'.$t['htpass']."\n"; |
|
| 483 | 483 | if ($t['statut'] == '0minirezo') { |
| 484 | - $p2 .= $t['login'] . ':' . $t['htpass'] . "\n"; |
|
| 484 | + $p2 .= $t['login'].':'.$t['htpass']."\n"; |
|
| 485 | 485 | } |
| 486 | 486 | } |
| 487 | 487 | } |
| 488 | 488 | sql_free($s); |
| 489 | 489 | if ($p1) { |
| 490 | 490 | ecrire_fichier($htpasswd, $p1); |
| 491 | - ecrire_fichier($htpasswd . '-admin', $p2); |
|
| 491 | + ecrire_fichier($htpasswd.'-admin', $p2); |
|
| 492 | 492 | spip_log("Ecriture de $htpasswd et $htpasswd-admin"); |
| 493 | 493 | } |
| 494 | 494 | } |
@@ -99,9 +99,9 @@ discard block |
||
| 99 | 99 | include_spip('inc/lang'); |
| 100 | 100 | |
| 101 | 101 | if ($GLOBALS['spip_lang'] <> $default) { |
| 102 | - $opt = lang_select($default); # et remplace |
|
| 102 | + $opt = lang_select($default); # et remplace |
|
| 103 | 103 | if ($GLOBALS['spip_lang'] <> $default) { |
| 104 | - $default = ''; # annule tout choix par defaut |
|
| 104 | + $default = ''; # annule tout choix par defaut |
|
| 105 | 105 | if ($opt) { |
| 106 | 106 | lang_select(); |
| 107 | 107 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | # lien a partir de / |
| 112 | 112 | $cible = parametre_url(self(), 'lang', '', '&'); |
| 113 | - $post = generer_url_action('converser', 'redirect=' . rawurlencode($cible), '&'); |
|
| 113 | + $post = generer_url_action('converser', 'redirect='.rawurlencode($cible), '&'); |
|
| 114 | 114 | |
| 115 | 115 | return [ |
| 116 | 116 | 'formulaires/menu_lang', |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | function generer_generer_url_arg($type, $p, $_id) { |
| 76 | 76 | if ($s = trouver_nom_serveur_distant($p)) { |
| 77 | 77 | // si une fonction de generation des url a ete definie pour ce connect l'utiliser |
| 78 | - if (function_exists($f = 'generer_generer_url_' . $s)) { |
|
| 78 | + if (function_exists($f = 'generer_generer_url_'.$s)) { |
|
| 79 | 79 | return $f($type, $_id, $s); |
| 80 | 80 | } |
| 81 | 81 | if (!$GLOBALS['connexions'][strtolower($s)]['spip_connect_version']) { |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | # exception des urls de documents sur un serveur distant... |
| 86 | 86 | if ($type == 'document') { |
| 87 | 87 | return |
| 88 | - "quete_meta('adresse_site', $s) . '/' .\n\t" . |
|
| 89 | - "quete_meta('dir_img', $s) . \n\t" . |
|
| 88 | + "quete_meta('adresse_site', $s) . '/' .\n\t". |
|
| 89 | + "quete_meta('dir_img', $s) . \n\t". |
|
| 90 | 90 | "quete_fichier($_id,$s)"; |
| 91 | 91 | } |
| 92 | 92 | $s = ", '', '', $s, quete_meta('type_urls', $s)"; |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | */ |
| 231 | 231 | function balise_URL_SITE_SPIP_dist($p) { |
| 232 | 232 | $p->code = "sinon(\$GLOBALS['meta']['adresse_site'],'.')"; |
| 233 | - $p->code = 'spip_htmlspecialchars(' . $p->code . ')'; |
|
| 233 | + $p->code = 'spip_htmlspecialchars('.$p->code.')'; |
|
| 234 | 234 | $p->interdire_scripts = false; |
| 235 | 235 | |
| 236 | 236 | return $p; |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | if ($s = trouver_nom_serveur_distant($p)) { |
| 272 | 272 | // si une fonction de generation des url a ete definie pour ce connect l'utiliser |
| 273 | 273 | // elle devra aussi traiter le cas derogatoire type=page |
| 274 | - if (function_exists($f = 'generer_generer_url_' . $s)) { |
|
| 274 | + if (function_exists($f = 'generer_generer_url_'.$s)) { |
|
| 275 | 275 | if ($args and $args !== "''") { |
| 276 | 276 | $code .= ", $args"; |
| 277 | 277 | } |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | $p->code = $code; |
| 280 | 280 | return $p; |
| 281 | 281 | } |
| 282 | - $s = 'connect=' . addslashes($s); |
|
| 282 | + $s = 'connect='.addslashes($s); |
|
| 283 | 283 | $args = (($args and $args !== "''") ? "$args . '&$s'" : "'$s'"); |
| 284 | 284 | } |
| 285 | 285 | |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | $code = "generer_url_public($code, $args$noentities)"; |
| 295 | 295 | } |
| 296 | 296 | $p->code = $code; |
| 297 | - spip_log("Calcul url page : connect vaut $s ca donne :" . $p->code . " args $args", _LOG_INFO); |
|
| 297 | + spip_log("Calcul url page : connect vaut $s ca donne :".$p->code." args $args", _LOG_INFO); |
|
| 298 | 298 | |
| 299 | 299 | #$p->interdire_scripts = true; |
| 300 | 300 | return $p; |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | $fonc .= ",$args$noentities"; |
| 339 | 339 | } |
| 340 | 340 | } |
| 341 | - $p->code = 'generer_url_ecrire(' . $fonc . ')'; |
|
| 341 | + $p->code = 'generer_url_ecrire('.$fonc.')'; |
|
| 342 | 342 | $p->interdire_scripts = false; |
| 343 | 343 | |
| 344 | 344 | return $p; |
@@ -373,17 +373,17 @@ discard block |
||
| 373 | 373 | |
| 374 | 374 | $args = interprete_argument_balise(2, $p); |
| 375 | 375 | if ($args != "''" && $args !== null) { |
| 376 | - $p->code .= ',' . $args; |
|
| 376 | + $p->code .= ','.$args; |
|
| 377 | 377 | } |
| 378 | 378 | $redirect = interprete_argument_balise(3, $p); |
| 379 | 379 | if ($redirect != "''" && $redirect !== null) { |
| 380 | 380 | if ($args == "''" || $args === null) { |
| 381 | 381 | $p->code .= ",''"; |
| 382 | 382 | } |
| 383 | - $p->code .= ',' . $redirect; |
|
| 383 | + $p->code .= ','.$redirect; |
|
| 384 | 384 | } |
| 385 | 385 | |
| 386 | - $p->code = 'generer_action_auteur(' . $p->code . ')'; |
|
| 386 | + $p->code = 'generer_action_auteur('.$p->code.')'; |
|
| 387 | 387 | $p->interdire_scripts = false; |
| 388 | 388 | |
| 389 | 389 | return $p; |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | ); |
| 87 | 87 | foreach ($s as $row) { |
| 88 | 88 | if (email_valide($row['email'])) { |
| 89 | - $r .= ', ' . $row['email']; |
|
| 89 | + $r .= ', '.$row['email']; |
|
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | $args[2] = substr($r, 2); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | include_spip('inc/minipres'); |
| 26 | 26 | echo minipres(); |
| 27 | 27 | } else { |
| 28 | - $plug = _DIR_RACINE . htmlspecialchars(_request('plugin')); |
|
| 28 | + $plug = _DIR_RACINE.htmlspecialchars(_request('plugin')); |
|
| 29 | 29 | $get_infos = charger_fonction('get_infos', 'plugins'); |
| 30 | 30 | $dir = ''; |
| 31 | 31 | if (strncmp($plug, _DIR_PLUGINS, strlen(_DIR_PLUGINS)) == 0) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $message = _T('avis_acces_interdit_prive', ['exec' => _request('exec')]); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - $contenu = "<h1 class='grostitre'>" . _T('info_acces_interdit') . '</h1>' . $message; |
|
| 40 | + $contenu = "<h1 class='grostitre'>"._T('info_acces_interdit').'</h1>'.$message; |
|
| 41 | 41 | |
| 42 | 42 | if (_request('var_zajax')) { |
| 43 | 43 | include_spip('inc/actions'); |
@@ -68,15 +68,15 @@ discard block |
||
| 68 | 68 | $where = preg_split(',\s+,', $type); |
| 69 | 69 | if ($where) { |
| 70 | 70 | foreach ($where as $k => $v) { |
| 71 | - $where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'"; |
|
| 71 | + $where[$k] = "'%".substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1)."%'"; |
|
| 72 | 72 | } |
| 73 | - $where_titre = ('(titre LIKE ' . join(' AND titre LIKE ', $where) . ')'); |
|
| 74 | - $where_desc = ('(descriptif LIKE ' . join(' AND descriptif LIKE ', $where) . ')'); |
|
| 75 | - $where_id = ('(id_rubrique = ' . intval($type) . ')'); |
|
| 73 | + $where_titre = ('(titre LIKE '.join(' AND titre LIKE ', $where).')'); |
|
| 74 | + $where_desc = ('(descriptif LIKE '.join(' AND descriptif LIKE ', $where).')'); |
|
| 75 | + $where_id = ('(id_rubrique = '.intval($type).')'); |
|
| 76 | 76 | |
| 77 | 77 | if ($exclus) { |
| 78 | 78 | include_spip('inc/rubriques'); |
| 79 | - $where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 79 | + $where_exclus = ' AND '.sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 80 | 80 | } else { |
| 81 | 81 | $where_exclus = ''; |
| 82 | 82 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | if ($points) { |
| 108 | 108 | arsort($points); |
| 109 | - $style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'"; |
|
| 109 | + $style = " style='background-image: url(".chemin_image('secteur-12.png').")'"; |
|
| 110 | 110 | foreach ($rub as $k => $v) { |
| 111 | 111 | $rub[$k]['atts'] = ($v['id_parent'] ? $style : '') |
| 112 | 112 | . " class='petite-rubrique'"; |
@@ -139,13 +139,13 @@ discard block |
||
| 139 | 139 | if (!$ids) { |
| 140 | 140 | return "<br /><br /><div style='padding: 5px; color: red;'><b>" |
| 141 | 141 | . spip_htmlentities($type) |
| 142 | - . '</b> : ' . _T('avis_aucun_resultat') . '</div>'; |
|
| 142 | + . '</b> : '._T('avis_aucun_resultat').'</div>'; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | $ret = ''; |
| 146 | 146 | $info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id="); |
| 147 | 147 | |
| 148 | - $onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)"; |
|
| 148 | + $onClick = "aff_selection(this.firstChild.title,'$rac"."_selection','$info', event)"; |
|
| 149 | 149 | |
| 150 | 150 | $ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');"; |
| 151 | 151 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | . '</b><p> ' |
| 45 | 45 | . _T( |
| 46 | 46 | 'texte_nouvelle_version_spip_2', |
| 47 | - ['connect' => '<tt>' . _FILE_CONNECT . '</tt>'] |
|
| 47 | + ['connect' => '<tt>'._FILE_CONNECT.'</tt>'] |
|
| 48 | 48 | ) |
| 49 | 49 | . generer_form_ecrire( |
| 50 | 50 | 'upgrade', |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $GLOBALS['meta']['version_installee'] = 0.0; |
| 66 | 66 | } else { |
| 67 | 67 | $GLOBALS['meta']['version_installee'] = |
| 68 | - (double)str_replace(',', '.', $GLOBALS['meta']['version_installee']); |
|
| 68 | + (double) str_replace(',', '.', $GLOBALS['meta']['version_installee']); |
|
| 69 | 69 | } |
| 70 | 70 | # NB: str_replace car, sur club-internet, il semble que version_installe soit |
| 71 | 71 | # enregistree au format '1,812' et non '1.812' |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $commentaire = _T('texte_mise_a_niveau_base_1'); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - $commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']'; |
|
| 82 | + $commentaire .= '<br />['.$GLOBALS['meta']['version_installee'].'/'.$GLOBALS['spip_version_base'].']'; |
|
| 83 | 83 | |
| 84 | 84 | $_POST['reinstall'] = 'non'; // pour copy_request dans admin |
| 85 | 85 | include_spip('inc/headers'); |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | spip_log('Erreur base de donnees'); |
| 37 | 37 | echo minipres( |
| 38 | 38 | _T('info_travaux_titre'), |
| 39 | - _T('titre_probleme_technique') . '<p><tt>' . sql_errno() . ' ' . sql_error() . '</tt></p>' |
|
| 39 | + _T('titre_probleme_technique').'<p><tt>'.sql_errno().' '.sql_error().'</tt></p>' |
|
| 40 | 40 | ); |
| 41 | 41 | } else { |
| 42 | 42 | $res = base_saisie_tables('delete', $res); |
| 43 | 43 | include_spip('inc/headers'); |
| 44 | - $res = "\n<ol style='text-align:left'><li>\n" . |
|
| 45 | - join("</li>\n<li>", $res) . |
|
| 44 | + $res = "\n<ol style='text-align:left'><li>\n". |
|
| 45 | + join("</li>\n<li>", $res). |
|
| 46 | 46 | '</li></ol>'; |
| 47 | 47 | $admin = charger_fonction('admin', 'inc'); |
| 48 | 48 | $res = $admin('delete_all', _T('titre_page_delete_all'), $res); |