@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } else { |
| 80 | 80 | // Preparer l'appel de la fonction principale du squelette |
| 81 | 81 | |
| 82 | - spip_timer($a = 'calcul page ' . random_int(0, 1000)); |
|
| 82 | + spip_timer($a = 'calcul page '.random_int(0, 1000)); |
|
| 83 | 83 | |
| 84 | 84 | // On cree un marqueur de notes unique lie a cette composition |
| 85 | 85 | // et on enregistre l'etat courant des globales de notes... |
@@ -111,8 +111,8 @@ discard block |
||
| 111 | 111 | try { |
| 112 | 112 | $page = $fonc(['cache' => $cache], [$contexte]); |
| 113 | 113 | } catch (Throwable $e) { |
| 114 | - $msg = _T('zbug_erreur_execution_page') . " $sourcefile"; |
|
| 115 | - $full_msg = $msg . ' | File ' . $e->getFile() . ' Line ' . $e->getLine() . ' : ' . $e->getMessage(); |
|
| 114 | + $msg = _T('zbug_erreur_execution_page')." $sourcefile"; |
|
| 115 | + $full_msg = $msg.' | File '.$e->getFile().' Line '.$e->getLine().' : '.$e->getMessage(); |
|
| 116 | 116 | $full_msg = str_replace(_ROOT_RACINE, '[…]/', $full_msg); |
| 117 | 117 | $corps = "<pre>$msg</pre>"; |
| 118 | 118 | $page = analyse_resultat_skel($fond, ['cache' => $cache], $corps, $sourcefile); |
@@ -143,17 +143,17 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | $profile = spip_timer($a); |
| 145 | 145 | spip_logger()->info("calcul ($profile) [$skel] $infos" |
| 146 | - . ' (' . strlen((string) $page['texte']) . ' octets)'); |
|
| 146 | + . ' ('.strlen((string) $page['texte']).' octets)'); |
|
| 147 | 147 | |
| 148 | 148 | if (defined('_CALCUL_PROFILER') && (int) $profile > _CALCUL_PROFILER) { |
| 149 | 149 | spip_logger('profiler')->notice("calcul ($profile) [$skel] $infos" |
| 150 | - . ' (' . strlen((string) $page['texte']) . ' octets) | ' . $_SERVER['REQUEST_URI']); |
|
| 150 | + . ' ('.strlen((string) $page['texte']).' octets) | '.$_SERVER['REQUEST_URI']); |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | if ($debug) { |
| 154 | 154 | // si c'est ce que demande le debusqueur, lui passer la main |
| 155 | 155 | $t = strlen((string) $page['texte']) ? $page['texte'] : ' '; |
| 156 | - $GLOBALS['debug_objets']['resultat'][$fonc . 'tout'] = $t; |
|
| 156 | + $GLOBALS['debug_objets']['resultat'][$fonc.'tout'] = $t; |
|
| 157 | 157 | $GLOBALS['debug_objets']['courant'] = $courant; |
| 158 | 158 | $GLOBALS['debug_objets']['profile'][$sourcefile] = $profile; |
| 159 | 159 | if ( |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | if (defined('_VAR_INCLURE') && _VAR_INCLURE) { |
| 185 | 185 | $page['sourcefile'] = $sourcefile; |
| 186 | 186 | $page['texte'] = |
| 187 | - "<div class='inclure_blocs'><h6>" . $page['sourcefile'] . '</h6>' . $page['texte'] . '</div>' |
|
| 187 | + "<div class='inclure_blocs'><h6>".$page['sourcefile'].'</h6>'.$page['texte'].'</div>' |
|
| 188 | 188 | . ($js_inclus ? '' : "<script type='text/javascript'>jQuery(function(){jQuery('.inclure_blocs > h6:first-child').hover(function(){jQuery(this).parent().addClass('hover')},function(){jQuery(this).parent().removeClass('hover')})});</script>"); |
| 189 | 189 | $js_inclus = true; |
| 190 | 190 | } |
@@ -221,14 +221,14 @@ discard block |
||
| 221 | 221 | $val = ''; |
| 222 | 222 | } elseif (is_array($val)) { |
| 223 | 223 | if ($profondeur_max > 0) { |
| 224 | - $val = 'array:' . count($val) . '(' . presenter_contexte($val, $profondeur_max - 1, 3) . ')'; |
|
| 224 | + $val = 'array:'.count($val).'('.presenter_contexte($val, $profondeur_max - 1, 3).')'; |
|
| 225 | 225 | } else { |
| 226 | - $val = 'array:' . count($val); |
|
| 226 | + $val = 'array:'.count($val); |
|
| 227 | 227 | } |
| 228 | 228 | } elseif (is_object($val)) { |
| 229 | 229 | $val = $val::class; |
| 230 | 230 | } elseif (strlen("$val") > 30) { |
| 231 | - $val = substr("$val", 0, 29) . '…'; |
|
| 231 | + $val = substr("$val", 0, 29).'…'; |
|
| 232 | 232 | if (strstr($val, ' ')) { |
| 233 | 233 | $val = "'$val'"; |
| 234 | 234 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | } elseif (!strlen((string) $val)) { |
| 238 | 238 | $val = "''"; |
| 239 | 239 | } |
| 240 | - $infos[] = $var . '=' . $val; |
|
| 240 | + $infos[] = $var.'='.$val; |
|
| 241 | 241 | } |
| 242 | 242 | return implode(', ', $infos); |
| 243 | 243 | } |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | . "?php include_spip('inc/headers');redirige_par_entete('" |
| 306 | 306 | . texte_script($url) |
| 307 | 307 | . "','',$status);" |
| 308 | - . '?' . '>', |
|
| 308 | + . '?'.'>', |
|
| 309 | 309 | 'process_ins' => 'php', |
| 310 | 310 | 'status' => $status |
| 311 | 311 | ]; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $select = true |
| 127 | 127 | ) { |
| 128 | 128 | if (!is_string($defaut)) { |
| 129 | - $defaut = '($Pile[0][\'' . strtolower($nom_champ) . '\'] ?? null)'; |
|
| 129 | + $defaut = '($Pile[0][\''.strtolower($nom_champ).'\'] ?? null)'; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | $idb_origine = $idb; |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | // renseigner la boucle source de ce champ pour les traitements |
| 161 | 161 | $boucles[$idb_origine]->index_champ[$nom_champ_origine] = $idb; |
| 162 | - $champ = '$Pile[$SP' . ($i ? "-$i" : '') . '][\'' . $c . '\']'; |
|
| 162 | + $champ = '$Pile[$SP'.($i ? "-$i" : '').'][\''.$c.'\']'; |
|
| 163 | 163 | if (!$joker) { |
| 164 | 164 | return index_compose($conditionnel, $champ); |
| 165 | 165 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | function index_compose($conditionnel, $defaut) { |
| 201 | 201 | while ($c = array_pop($conditionnel)) { |
| 202 | 202 | // si on passe defaut = '', ne pas générer d'erreur de compilation. |
| 203 | - $defaut = "($c:(" . ($defaut ?: "''") . '))'; |
|
| 203 | + $defaut = "($c:(".($defaut ?: "''").'))'; |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | return $defaut; |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | if (!$r) { |
| 248 | 248 | $joker = false; // indiquer a l'appelant |
| 249 | 249 | # continuer pour chercher l'erreur suivante |
| 250 | - return ["'#" . $r . ':' . $nom_champ . "'", '']; |
|
| 250 | + return ["'#".$r.':'.$nom_champ."'", '']; |
|
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | $desc = $boucles[$idb]->show; |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | if (preg_match('/^(.*)\.(.*)$/', $nom_champ, $r)) { |
| 291 | 291 | [, $_table, $_nom_champ] = $r; |
| 292 | 292 | if ($cle = trouver_jointure_champ($_nom_champ, $boucles[$idb], [$_table])) { |
| 293 | - $_alias = $cle . '_' . $_nom_champ; |
|
| 293 | + $_alias = $cle.'_'.$_nom_champ; |
|
| 294 | 294 | return index_exception( |
| 295 | 295 | $boucles[$idb], |
| 296 | 296 | $desc, |
@@ -371,8 +371,8 @@ discard block |
||
| 371 | 371 | $t = $index_exception_derogatoire($boucle, $desc, $nom_champ, $excep); |
| 372 | 372 | } |
| 373 | 373 | if ($t == null) { |
| 374 | - [$e, $x] = $excep; #PHP4 affecte de gauche a droite |
|
| 375 | - $excep = $x; #PHP5 de droite a gauche ! |
|
| 374 | + [$e, $x] = $excep; #PHP4 affecte de gauche a droite |
|
| 375 | + $excep = $x; #PHP5 de droite a gauche ! |
|
| 376 | 376 | $j = $trouver_table($e, $boucle->sql_serveur); |
| 377 | 377 | if (!$j) { |
| 378 | 378 | return ['', '']; |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $l = (preg_split('/\s*,\s*/', $k)); |
| 385 | 385 | $k = $desc['key']['PRIMARY KEY']; |
| 386 | 386 | if (!in_array($k, $l)) { |
| 387 | - spip_logger()->info("jointure impossible $e " . implode(',', $l)); |
|
| 387 | + spip_logger()->info("jointure impossible $e ".implode(',', $l)); |
|
| 388 | 388 | |
| 389 | 389 | return ['', '']; |
| 390 | 390 | } |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | // demander a SQL de gerer le synonyme |
| 401 | 401 | // ca permet que excep soit dynamique (Cedric, 2/3/06) |
| 402 | 402 | if ($excep != $nom_champ) { |
| 403 | - $excep .= ' AS ' . $nom_champ; |
|
| 403 | + $excep .= ' AS '.$nom_champ; |
|
| 404 | 404 | } |
| 405 | 405 | |
| 406 | 406 | return ["$t.$excep", $nom_champ]; |
@@ -648,7 +648,7 @@ discard block |
||
| 648 | 648 | implode(',', $collecte), |
| 649 | 649 | ($collecte ? $param : substr($param, 1)), # virer la virgule |
| 650 | 650 | memoriser_contexte_compil($p), |
| 651 | - ($supp ? ', ' . implode(',', $supp) : ('')) |
|
| 651 | + ($supp ? ', '.implode(',', $supp) : ('')) |
|
| 652 | 652 | ); |
| 653 | 653 | |
| 654 | 654 | $p->interdire_scripts = false; |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | * @return array |
| 683 | 683 | * Liste des codes PHP d'éxecution des balises collectées |
| 684 | 684 | **/ |
| 685 | -function collecter_balise_dynamique(array $l, Champ &$p, string $nom): array { |
|
| 685 | +function collecter_balise_dynamique(array $l, Champ & $p, string $nom): array { |
|
| 686 | 686 | $args = []; |
| 687 | 687 | foreach ($l as $c) { |
| 688 | 688 | if ($c === null) { |
@@ -747,7 +747,7 @@ discard block |
||
| 747 | 747 | $nom = $p->id_boucle; |
| 748 | 748 | |
| 749 | 749 | if ($nom && trouver_nom_serveur_distant($p)) { |
| 750 | - spip_logger()->info($nom . ':' . $p->nom_champ . ' ' . _T('zbug_distant_interdit')); |
|
| 750 | + spip_logger()->info($nom.':'.$p->nom_champ.' '._T('zbug_distant_interdit')); |
|
| 751 | 751 | |
| 752 | 752 | return false; |
| 753 | 753 | } |
@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | && $p->descr['documents'] |
| 824 | 824 | && (str_contains($ps, 'propre') || str_contains($ps, 'typo')) |
| 825 | 825 | ) { |
| 826 | - $ps = 'traiter_doublons_documents($doublons, ' . $ps . ')'; |
|
| 826 | + $ps = 'traiter_doublons_documents($doublons, '.$ps.')'; |
|
| 827 | 827 | } |
| 828 | 828 | |
| 829 | 829 | // La protection des champs par |safehtml est assuree par les extensions |
@@ -926,7 +926,7 @@ discard block |
||
| 926 | 926 | function compose_filtres_args($p, $args, $sep) { |
| 927 | 927 | $arglist = ''; |
| 928 | 928 | foreach ($args as $arg) { |
| 929 | - $arglist .= $sep . |
|
| 929 | + $arglist .= $sep. |
|
| 930 | 930 | calculer_liste($arg, $p->descr, $p->boucles, $p->id_boucle); |
| 931 | 931 | } |
| 932 | 932 | |
@@ -976,7 +976,7 @@ discard block |
||
| 976 | 976 | while ($b != '') { |
| 977 | 977 | foreach ($p->boucles[$b]->criteres as $critere) { |
| 978 | 978 | if ($critere->op == $motif) { |
| 979 | - $p->code = '$Pile[$SP' . (($n == 0) ? '' : "-$n") . |
|
| 979 | + $p->code = '$Pile[$SP'.(($n == 0) ? '' : "-$n"). |
|
| 980 | 980 | "]['$champ']"; |
| 981 | 981 | $b = ''; |
| 982 | 982 | break 2; |
@@ -1004,6 +1004,6 @@ discard block |
||
| 1004 | 1004 | */ |
| 1005 | 1005 | function zbug_presenter_champ($p, $champ = '') { |
| 1006 | 1006 | $balise = $champ ?: $p->nom_champ; |
| 1007 | - $explicite = $p->nom_boucle ? $p->nom_boucle . ':' : ''; |
|
| 1007 | + $explicite = $p->nom_boucle ? $p->nom_boucle.':' : ''; |
|
| 1008 | 1008 | return "#{$explicite}{$balise}"; |
| 1009 | 1009 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | function cache_key(array $contexte, array $page): string { |
| 34 | 34 | static $hasher = null; |
| 35 | 35 | $hasher ??= new Hash32(); |
| 36 | - return $hasher->hash([$contexte, $page]) . '.cache'; |
|
| 36 | + return $hasher->hash([$contexte, $page]).'.cache'; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -62,12 +62,12 @@ discard block |
||
| 62 | 62 | include_spip('inc/acces'); |
| 63 | 63 | ecrire_meta( |
| 64 | 64 | 'cache_signature', |
| 65 | - hash('sha256', $_SERVER['DOCUMENT_ROOT'] . ($_SERVER['SERVER_SIGNATURE'] ?? '') . creer_uniqid()), |
|
| 65 | + hash('sha256', $_SERVER['DOCUMENT_ROOT'].($_SERVER['SERVER_SIGNATURE'] ?? '').creer_uniqid()), |
|
| 66 | 66 | 'non' |
| 67 | 67 | ); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - return (new Hash32())->hash($GLOBALS['meta']['cache_signature'] . $page['texte']); |
|
| 70 | + return (new Hash32())->hash($GLOBALS['meta']['cache_signature'].$page['texte']); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | // "cache sessionne" ; sa date indique la date de validite |
| 214 | 214 | // des caches sessionnes |
| 215 | 215 | if (!$tmp = lire_cache($cache_key)) { |
| 216 | - spip_logger()->info('Creation cache sessionne ' . $cache_key); |
|
| 216 | + spip_logger()->info('Creation cache sessionne '.$cache_key); |
|
| 217 | 217 | $tmp = [ |
| 218 | 218 | 'invalideurs' => ['session' => ''], |
| 219 | 219 | 'lastmodified' => $_SERVER['REQUEST_TIME'] |
@@ -239,8 +239,8 @@ discard block |
||
| 239 | 239 | // l'enregistrer, compresse ou non... |
| 240 | 240 | $ok = ecrire_cache($cache_key, $pagez); |
| 241 | 241 | |
| 242 | - spip_logger()->info((_IS_BOT ? 'Bot:' : '') . "Creation du cache $cache_key pour " |
|
| 243 | - . $page['entetes']['X-Spip-Cache'] . ' secondes' . ($ok ? '' : ' (erreur!)')); |
|
| 242 | + spip_logger()->info((_IS_BOT ? 'Bot:' : '')."Creation du cache $cache_key pour " |
|
| 243 | + . $page['entetes']['X-Spip-Cache'].' secondes'.($ok ? '' : ' (erreur!)')); |
|
| 244 | 244 | |
| 245 | 245 | // Inserer ses invalideurs |
| 246 | 246 | include_spip('inc/invalideur'); |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | if (!$fonc) { |
| 147 | 147 | $fonc = $GLOBALS['debug_objets']['principal']; |
| 148 | 148 | } |
| 149 | - $titre = $mode ? $mode . (isset($GLOBALS['debug_objets']['sourcefile'][$fonc]) ? ' ' . $GLOBALS['debug_objets']['sourcefile'][$fonc] : '') : ($fonc); |
|
| 149 | + $titre = $mode ? $mode.(isset($GLOBALS['debug_objets']['sourcefile'][$fonc]) ? ' '.$GLOBALS['debug_objets']['sourcefile'][$fonc] : '') : ($fonc); |
|
| 150 | 150 | } |
| 151 | 151 | if ($message === false) { |
| 152 | 152 | lang_select(); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $fond = $GLOBALS['fond'] ?? ''; |
| 170 | 170 | // une erreur critique sort $message en array |
| 171 | 171 | $debug = is_array($msg) ? $msg[1] : $msg; |
| 172 | - spip_logger()->info('Debug: ' . $debug . ' (' . $fond . ')'); |
|
| 172 | + spip_logger()->info('Debug: '.$debug.' ('.$fond.')'); |
|
| 173 | 173 | |
| 174 | 174 | return $msg; |
| 175 | 175 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | function debusquer_bandeau($erreurs) { |
| 178 | 178 | |
| 179 | 179 | if (!empty($erreurs)) { |
| 180 | - $n = [(is_countable($erreurs) ? count($erreurs) : 0) . ' ' . _T('zbug_erreur_squelette')]; |
|
| 180 | + $n = [(is_countable($erreurs) ? count($erreurs) : 0).' '._T('zbug_erreur_squelette')]; |
|
| 181 | 181 | |
| 182 | 182 | return debusquer_navigation($erreurs, $n); |
| 183 | 183 | } elseif (!empty($GLOBALS['tableau_des_temps'])) { |
@@ -210,25 +210,25 @@ discard block |
||
| 210 | 210 | $valeur_simple = []; |
| 211 | 211 | foreach ($valeur as $v) { |
| 212 | 212 | if (is_array($v)) { |
| 213 | - $valeur_simple[] = 'array:' . count($v); |
|
| 213 | + $valeur_simple[] = 'array:'.count($v); |
|
| 214 | 214 | } elseif (is_object($v)) { |
| 215 | 215 | $valeur_simple[] = $v::class; |
| 216 | 216 | } elseif (is_string($v)) { |
| 217 | - $valeur_simple[] = "'" . $v . "'"; |
|
| 217 | + $valeur_simple[] = "'".$v."'"; |
|
| 218 | 218 | } else { |
| 219 | 219 | $valeur_simple[] = $v; |
| 220 | 220 | } |
| 221 | 221 | } |
| 222 | 222 | $n = count($valeur); |
| 223 | - $valeur = (($n > 3) ? 'array:' . $n . ' ' : ''); |
|
| 224 | - $valeur .= '[' . implode(', ', $valeur_simple) . ']'; |
|
| 223 | + $valeur = (($n > 3) ? 'array:'.$n.' ' : ''); |
|
| 224 | + $valeur .= '['.implode(', ', $valeur_simple).']'; |
|
| 225 | 225 | } elseif (is_object($valeur)) { |
| 226 | 226 | $valeur = $valeur::class; |
| 227 | 227 | } elseif (is_string($valeur)) { |
| 228 | - $valeur = "'" . $valeur . "'"; |
|
| 228 | + $valeur = "'".$valeur."'"; |
|
| 229 | 229 | } |
| 230 | - $res .= "\n<tr><td><strong>" . nl2br((string) entites_html($nom)) |
|
| 231 | - . '</strong></td><td>: ' . nl2br((string) entites_html($valeur)) |
|
| 230 | + $res .= "\n<tr><td><strong>".nl2br((string) entites_html($nom)) |
|
| 231 | + . '</strong></td><td>: '.nl2br((string) entites_html($valeur)) |
|
| 232 | 232 | . "</td></tr>\n"; |
| 233 | 233 | } |
| 234 | 234 | |
@@ -278,10 +278,10 @@ discard block |
||
| 278 | 278 | $nom_code = $lieu->descr['nom']; |
| 279 | 279 | $skel = $lieu->descr['sourcefile']; |
| 280 | 280 | $h2 = parametre_url($href, 'var_mode_objet', $nom_code); |
| 281 | - $h3 = parametre_url($h2, 'var_mode_affiche', 'squelette') . '#L' . $ligne; |
|
| 281 | + $h3 = parametre_url($h2, 'var_mode_affiche', 'squelette').'#L'.$ligne; |
|
| 282 | 282 | $skel = "<a href='$h3'><b>$skel</b></a>"; |
| 283 | 283 | if ($boucle) { |
| 284 | - $h3 = parametre_url($h2 . $boucle, 'var_mode_affiche', 'boucle'); |
|
| 284 | + $h3 = parametre_url($h2.$boucle, 'var_mode_affiche', 'boucle'); |
|
| 285 | 285 | $boucle = "<a href='$h3'><b>$boucle</b></a>"; |
| 286 | 286 | } |
| 287 | 287 | } |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | // Requete erronee |
| 373 | - $err = '<b>' . _T('avis_erreur_mysql') . " $errno</b><br /><tt>\n" |
|
| 373 | + $err = '<b>'._T('avis_erreur_mysql')." $errno</b><br /><tt>\n" |
|
| 374 | 374 | . spip_htmlspecialchars($msg) |
| 375 | 375 | . "\n<br /><span style='color: red'><b>" |
| 376 | 376 | . spip_htmlspecialchars($query) |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | |
| 385 | 385 | function trouve_boucle_debug($n, $nom, $debut = 0, $boucle = '') { |
| 386 | 386 | |
| 387 | - $id = $nom . $boucle; |
|
| 387 | + $id = $nom.$boucle; |
|
| 388 | 388 | if (is_array($GLOBALS['debug_objets']['sequence'][$id])) { |
| 389 | 389 | foreach ($GLOBALS['debug_objets']['sequence'][$id] as $v) { |
| 390 | 390 | if (!preg_match('/^(.*)(<\?.*\?>)(.*)$/s', (string) $v[0], $r)) { |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | ) { |
| 433 | 433 | $reg[1] = 'inconnu'; |
| 434 | 434 | } |
| 435 | - $incl = ',' . $reg[1] . '[.]\w$,'; |
|
| 435 | + $incl = ','.$reg[1].'[.]\w$,'; |
|
| 436 | 436 | |
| 437 | 437 | foreach ($GLOBALS['debug_objets']['sourcefile'] as $k => $v) { |
| 438 | 438 | if (preg_match($incl, (string) $v)) { |
@@ -448,16 +448,14 @@ discard block |
||
| 448 | 448 | |
| 449 | 449 | if (!$boucle) { |
| 450 | 450 | return $ligne |
| 451 | - ? ' (' . |
|
| 452 | - (($nom != $skel) ? _T('squelette_inclus_ligne') : |
|
| 453 | - _T('squelette_ligne')) . |
|
| 451 | + ? ' ('. |
|
| 452 | + (($nom != $skel) ? _T('squelette_inclus_ligne') : _T('squelette_ligne')). |
|
| 454 | 453 | " <a href='$self&var_mode_objet=$skel&var_mode_affiche=squelette&var_mode_ligne=$ligne#L$ligne'>$ligne</a>)" |
| 455 | 454 | : ''; |
| 456 | 455 | } else { |
| 457 | 456 | $self .= "&var_mode_objet=$skel$boucle&var_mode_affiche=boucle"; |
| 458 | 457 | |
| 459 | - return $ligne ? " (boucle $boucle ligne\n<a href='$self&var_mode_ligne=$ligne#L$ligne'>$ligne</a>)" : |
|
| 460 | - " (boucle\n<a href='$self#$skel$boucle'>$boucle</a>)"; |
|
| 458 | + return $ligne ? " (boucle $boucle ligne\n<a href='$self&var_mode_ligne=$ligne#L$ligne'>$ligne</a>)" : " (boucle\n<a href='$self#$skel$boucle'>$boucle</a>)"; |
|
| 461 | 459 | } |
| 462 | 460 | } |
| 463 | 461 | |
@@ -479,14 +477,14 @@ discard block |
||
| 479 | 477 | |
| 480 | 478 | $s = preg_replace( |
| 481 | 479 | ',<(\w[^<>]*)>([^<]*)<br />([^<]*)</\1>,', |
| 482 | - '<\1>\2</\1><br />' . "\n" . '<\1>\3</\1>', |
|
| 480 | + '<\1>\2</\1><br />'."\n".'<\1>\3</\1>', |
|
| 483 | 481 | $s |
| 484 | 482 | ); |
| 485 | 483 | |
| 486 | 484 | |
| 487 | 485 | $tableau = explode('<br />', $s); |
| 488 | 486 | |
| 489 | - $format = "<span style='float:left;display:block;width:50px;height:1px'><a id='L%d' style='background-color: white; visibility: " . ($nocpt ? 'hidden' : 'visible') . ";%s' href='#T%s' title=\"%s\">%0" . (string) @strlen(count($tableau)) . "d</a></span> %s<br />\n"; |
|
| 487 | + $format = "<span style='float:left;display:block;width:50px;height:1px'><a id='L%d' style='background-color: white; visibility: ".($nocpt ? 'hidden' : 'visible').";%s' href='#T%s' title=\"%s\">%0".(string) @strlen(count($tableau))."d</a></span> %s<br />\n"; |
|
| 490 | 488 | |
| 491 | 489 | $format10 = str_replace('white', 'lightgrey', $format); |
| 492 | 490 | $formaterr = 'color: red;'; |
@@ -530,7 +528,7 @@ discard block |
||
| 530 | 528 | . '" style="cursor: pointer;">' |
| 531 | 529 | . ($nocpt ? '' : _T('info_numero_abbreviation')) |
| 532 | 530 | . '</div> |
| 533 | - ' . $res . "</div>\n"; |
|
| 531 | + ' . $res."</div>\n"; |
|
| 534 | 532 | } |
| 535 | 533 | |
| 536 | 534 | // l'environnement graphique du debuggueur |
@@ -552,14 +550,14 @@ discard block |
||
| 552 | 550 | if (!empty($GLOBALS['debug_objets'][$mode][$fonc])) { |
| 553 | 551 | [$legend, $texte, $res2] = debusquer_source($fonc, $mode); |
| 554 | 552 | $texte .= $res2; |
| 555 | - } elseif (!empty($GLOBALS['debug_objets'][$mode][$fonc . 'tout'])) { |
|
| 556 | - $legend = _T('zbug_' . $mode); |
|
| 557 | - $texte = $GLOBALS['debug_objets'][$mode][$fonc . 'tout']; |
|
| 553 | + } elseif (!empty($GLOBALS['debug_objets'][$mode][$fonc.'tout'])) { |
|
| 554 | + $legend = _T('zbug_'.$mode); |
|
| 555 | + $texte = $GLOBALS['debug_objets'][$mode][$fonc.'tout']; |
|
| 558 | 556 | $texte = ancre_texte($texte, ['', '']); |
| 559 | 557 | } |
| 560 | 558 | } else { |
| 561 | 559 | if (strlen(trim($res))) { |
| 562 | - return "<img src='" . chemin_image('debug-xx.svg') . "' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res</div>"; |
|
| 560 | + return "<img src='".chemin_image('debug-xx.svg')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res</div>"; |
|
| 563 | 561 | } else { |
| 564 | 562 | // cas de l'appel sur erreur: montre la page |
| 565 | 563 | return $GLOBALS['debug_objets']['resultat']['tout'] ?? ''; |
@@ -567,7 +565,7 @@ discard block |
||
| 567 | 565 | } |
| 568 | 566 | } else { |
| 569 | 567 | $valider = charger_fonction('valider', 'xml'); |
| 570 | - $val = $valider($GLOBALS['debug_objets']['validation'][$fonc . 'tout']); |
|
| 568 | + $val = $valider($GLOBALS['debug_objets']['validation'][$fonc.'tout']); |
|
| 571 | 569 | // Si erreur, signaler leur nombre dans le formulaire admin |
| 572 | 570 | $GLOBALS['debug_objets']['validation'] = $val->err ? count($val->err) : ''; |
| 573 | 571 | [$texte, $err] = emboite_texte($val, $fonc, $self); |
@@ -578,14 +576,14 @@ discard block |
||
| 578 | 576 | } else { |
| 579 | 577 | $err = ": $err"; |
| 580 | 578 | } |
| 581 | - $legend = _T('validation') . ' ' . $err; |
|
| 579 | + $legend = _T('validation').' '.$err; |
|
| 582 | 580 | $res = $id = ''; |
| 583 | 581 | } |
| 584 | 582 | |
| 585 | 583 | return trim((string) $texte) |
| 586 | - ? "<img src='" . chemin_image('debug-xx.svg') . "' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res" |
|
| 584 | + ? "<img src='".chemin_image('debug-xx.svg')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res" |
|
| 587 | 585 | . "<div id='debug_boucle'><fieldset$id><legend>" |
| 588 | - . "<a href='" . $self . '#f_' . substr((string) $fonc, 0, 37) . "'> ↑ " |
|
| 586 | + . "<a href='".$self.'#f_'.substr((string) $fonc, 0, 37)."'> ↑ " |
|
| 589 | 587 | . ($legend ?: $mode) |
| 590 | 588 | . '</a></legend>' |
| 591 | 589 | . $texte |
@@ -597,7 +595,7 @@ discard block |
||
| 597 | 595 | |
| 598 | 596 | function emboite_texte($res, $fonc = '', $self = '') { |
| 599 | 597 | $errs = $res->err; |
| 600 | - $texte = $res->entete . ($errs ? '' : $res->page); |
|
| 598 | + $texte = $res->entete.($errs ? '' : $res->page); |
|
| 601 | 599 | |
| 602 | 600 | if (!$texte && !$errs) { |
| 603 | 601 | return [ancre_texte('', ['', '']), false]; |
@@ -653,7 +651,7 @@ discard block |
||
| 653 | 651 | $err = "<h2 style='text-align: center'>" |
| 654 | 652 | . $i |
| 655 | 653 | . "<a href='#fin_err'>" |
| 656 | - . ' ' . _T('erreur_texte') |
|
| 654 | + . ' '._T('erreur_texte') |
|
| 657 | 655 | . "</a></h2><table id='debut_err' style='width: 100%'>" |
| 658 | 656 | . $err |
| 659 | 657 | . " </table><a id='fin_err'></a>"; |
@@ -663,9 +661,9 @@ discard block |
||
| 663 | 661 | [$msg, $fermant, $ouvrant] = $errs[0]; |
| 664 | 662 | $rf = reference_boucle_debug($fermant, $fonc, $self); |
| 665 | 663 | $ro = reference_boucle_debug($ouvrant, $fonc, $self); |
| 666 | - $err = $msg . |
|
| 667 | - "<a href='#L" . $fermant . "'>$fermant</a>$rf<br />" . |
|
| 668 | - "<a href='#L" . $ouvrant . "'>$ouvrant</a>$ro"; |
|
| 664 | + $err = $msg. |
|
| 665 | + "<a href='#L".$fermant."'>$fermant</a>$rf<br />". |
|
| 666 | + "<a href='#L".$ouvrant."'>$ouvrant</a>$ro"; |
|
| 669 | 667 | |
| 670 | 668 | return [ancre_texte($texte, [[$ouvrant], [$fermant]]), $err]; |
| 671 | 669 | } |
@@ -698,7 +696,7 @@ discard block |
||
| 698 | 696 | ['time' => $GLOBALS['debug_objets']['profile'][$sourcefile]] |
| 699 | 697 | ) : ''; |
| 700 | 698 | |
| 701 | - $res .= "<fieldset id='f_" . $nom . "'><legend>" |
|
| 699 | + $res .= "<fieldset id='f_".$nom."'><legend>" |
|
| 702 | 700 | . $t_skel |
| 703 | 701 | . ' ' |
| 704 | 702 | . $sourcefile |
@@ -713,7 +711,7 @@ discard block |
||
| 713 | 711 | . "'>" |
| 714 | 712 | . _T('zbug_calcul') |
| 715 | 713 | . '</a></legend>' |
| 716 | - . ($temps ? "\n<span style='display:block;float:" . $GLOBALS['spip_lang_right'] . "'>$temps</span><br />" : ('')) |
|
| 714 | + . ($temps ? "\n<span style='display:block;float:".$GLOBALS['spip_lang_right']."'>$temps</span><br />" : ('')) |
|
| 717 | 715 | . debusquer_contexte($contexte[$sourcefile]) |
| 718 | 716 | . ($nav ? "<table width='100%'>\n$nav</table>\n" : ('')) |
| 719 | 717 | . "</fieldset>\n"; |
@@ -734,33 +732,33 @@ discard block |
||
| 734 | 732 | $nom = $boucle->id_boucle; |
| 735 | 733 | $req = $boucle->type_requete; |
| 736 | 734 | $crit = public_decompiler($boucle, $gram, 0, 'criteres'); |
| 737 | - $self2 = $self . '&var_mode_objet=' . $objet; |
|
| 738 | - |
|
| 739 | - $res .= "\n<tr style='background-color: " . |
|
| 740 | - ($i % 2 ? '#e0e0f0' : '#f8f8ff') . |
|
| 741 | - "'><td align='right'>$i</td><td>\n" . |
|
| 742 | - "<a class='debug_link_boucle' href='" . |
|
| 743 | - $self2 . |
|
| 744 | - "&var_mode_affiche=boucle#f_$nom_skel'>" . |
|
| 745 | - _T('zbug_boucle') . |
|
| 746 | - "</a></td><td>\n<a class='debug_link_boucle' href='" . |
|
| 747 | - $self2 . |
|
| 748 | - "&var_mode_affiche=resultat#f_$nom_skel'>" . |
|
| 749 | - _T('zbug_resultat') . |
|
| 750 | - "</a></td><td>\n<a class='debug_link_resultat' href='" . |
|
| 751 | - $self2 . |
|
| 752 | - "&var_mode_affiche=code#f_$nom_skel'>" . |
|
| 753 | - _T('zbug_code') . |
|
| 754 | - "</a></td><td>\n<a class='debug_link_resultat' href='" . |
|
| 755 | - str_replace('var_mode=', 'var_profile=', $self2) . |
|
| 756 | - "'>" . |
|
| 757 | - _T('zbug_calcul') . |
|
| 758 | - "</a></td><td>\n" . |
|
| 759 | - (($var_mode_objet == $objet) ? "<b>$nom</b>" : $nom) . |
|
| 760 | - "</td><td>\n" . |
|
| 761 | - $req . |
|
| 762 | - "</td><td>\n" . |
|
| 763 | - spip_htmlspecialchars($crit) . |
|
| 735 | + $self2 = $self.'&var_mode_objet='.$objet; |
|
| 736 | + |
|
| 737 | + $res .= "\n<tr style='background-color: ". |
|
| 738 | + ($i % 2 ? '#e0e0f0' : '#f8f8ff'). |
|
| 739 | + "'><td align='right'>$i</td><td>\n". |
|
| 740 | + "<a class='debug_link_boucle' href='". |
|
| 741 | + $self2. |
|
| 742 | + "&var_mode_affiche=boucle#f_$nom_skel'>". |
|
| 743 | + _T('zbug_boucle'). |
|
| 744 | + "</a></td><td>\n<a class='debug_link_boucle' href='". |
|
| 745 | + $self2. |
|
| 746 | + "&var_mode_affiche=resultat#f_$nom_skel'>". |
|
| 747 | + _T('zbug_resultat'). |
|
| 748 | + "</a></td><td>\n<a class='debug_link_resultat' href='". |
|
| 749 | + $self2. |
|
| 750 | + "&var_mode_affiche=code#f_$nom_skel'>". |
|
| 751 | + _T('zbug_code'). |
|
| 752 | + "</a></td><td>\n<a class='debug_link_resultat' href='". |
|
| 753 | + str_replace('var_mode=', 'var_profile=', $self2). |
|
| 754 | + "'>". |
|
| 755 | + _T('zbug_calcul'). |
|
| 756 | + "</a></td><td>\n". |
|
| 757 | + (($var_mode_objet == $objet) ? "<b>$nom</b>" : $nom). |
|
| 758 | + "</td><td>\n". |
|
| 759 | + $req. |
|
| 760 | + "</td><td>\n". |
|
| 761 | + spip_htmlspecialchars($crit). |
|
| 764 | 762 | '</td></tr>'; |
| 765 | 763 | } |
| 766 | 764 | } |
@@ -787,7 +785,7 @@ discard block |
||
| 787 | 785 | } |
| 788 | 786 | // permettre le copier/coller facile |
| 789 | 787 | // $res = ancre_texte($req, array(), true); |
| 790 | - $res = "<div id='T" . md5((string) $req) . "'>\n<pre>\n" . $req . "</pre>\n</div>\n"; |
|
| 788 | + $res = "<div id='T".md5((string) $req)."'>\n<pre>\n".$req."</pre>\n</div>\n"; |
|
| 791 | 789 | // formatage et affichage des resultats bruts de la requete |
| 792 | 790 | $ress_req = spip_query($req); |
| 793 | 791 | $brut_sql = ''; |
@@ -797,10 +795,10 @@ discard block |
||
| 797 | 795 | $max_aff = defined('_MAX_DEBUG_AFF') ? _MAX_DEBUG_AFF : 50; |
| 798 | 796 | while ($retours_sql = sql_fetch($ress_req)) { |
| 799 | 797 | if ($num <= $max_aff) { |
| 800 | - $brut_sql .= '<h3>' . ($num == 1 ? $num . ' sur ' . sql_count($ress_req) : $num) . '</h3>'; |
|
| 798 | + $brut_sql .= '<h3>'.($num == 1 ? $num.' sur '.sql_count($ress_req) : $num).'</h3>'; |
|
| 801 | 799 | $brut_sql .= '<p>'; |
| 802 | 800 | foreach ($retours_sql as $key => $val) { |
| 803 | - $brut_sql .= '<strong>' . $key . '</strong> => ' . spip_htmlspecialchars(couper($val, 150)) . "<br />\n"; |
|
| 801 | + $brut_sql .= '<strong>'.$key.'</strong> => '.spip_htmlspecialchars(couper($val, 150))."<br />\n"; |
|
| 804 | 802 | } |
| 805 | 803 | $brut_sql .= '</p>'; |
| 806 | 804 | } |
@@ -811,14 +809,14 @@ discard block |
||
| 811 | 809 | // ne pas afficher les $contexte_inclus |
| 812 | 810 | $view = preg_replace(',<\?php.+\?[>],Uims', '', (string) $view); |
| 813 | 811 | if ($view) { |
| 814 | - $res2 .= "\n<br /><fieldset>" . interdire_scripts($view) . '</fieldset>'; |
|
| 812 | + $res2 .= "\n<br /><fieldset>".interdire_scripts($view).'</fieldset>'; |
|
| 815 | 813 | } |
| 816 | 814 | } |
| 817 | 815 | } elseif ($affiche == 'code') { |
| 818 | 816 | $legend = $nom; |
| 819 | - $res = ancre_texte('<' . "?php\n" . $quoi . "\n?" . '>'); |
|
| 817 | + $res = ancre_texte('<'."?php\n".$quoi."\n?".'>'); |
|
| 820 | 818 | } elseif ($affiche == 'boucle') { |
| 821 | - $legend = _T('zbug_boucle') . ' ' . $nom; |
|
| 819 | + $legend = _T('zbug_boucle').' '.$nom; |
|
| 822 | 820 | // Le compilateur prefixe le nom des boucles par l'extension du fichier source. |
| 823 | 821 | $gram = preg_match('/^([^_]+)_/', (string) $objet, $r) ? $r[1] : ''; |
| 824 | 822 | $res = ancre_texte(public_decompiler($quoi, $gram, 0, 'boucle')); |
@@ -836,23 +834,23 @@ discard block |
||
| 836 | 834 | include_spip('public/assembler'); // pour inclure_balise_dynamique |
| 837 | 835 | include_spip('inc/texte'); // pour corriger_typo |
| 838 | 836 | |
| 839 | - return _DOCTYPE_ECRIRE . |
|
| 840 | - html_lang_attributes() . |
|
| 841 | - "<head>\n<title>" . |
|
| 842 | - ('SPIP ' . $GLOBALS['spip_version_affichee'] . ' ' . |
|
| 843 | - _T('admin_debug') . ' ' . spip_htmlspecialchars($titre) . ' (' . |
|
| 844 | - supprimer_tags(corriger_typo($GLOBALS['meta']['nom_site']))) . |
|
| 845 | - ")</title>\n" . |
|
| 846 | - "<meta http-equiv='Content-Type' content='text/html" . |
|
| 847 | - (($c = $GLOBALS['meta']['charset']) ? "; charset=$c" : '') . |
|
| 848 | - "' />\n" . |
|
| 837 | + return _DOCTYPE_ECRIRE. |
|
| 838 | + html_lang_attributes(). |
|
| 839 | + "<head>\n<title>". |
|
| 840 | + ('SPIP '.$GLOBALS['spip_version_affichee'].' '. |
|
| 841 | + _T('admin_debug').' '.spip_htmlspecialchars($titre).' ('. |
|
| 842 | + supprimer_tags(corriger_typo($GLOBALS['meta']['nom_site']))). |
|
| 843 | + ")</title>\n". |
|
| 844 | + "<meta http-equiv='Content-Type' content='text/html". |
|
| 845 | + (($c = $GLOBALS['meta']['charset']) ? "; charset=$c" : ''). |
|
| 846 | + "' />\n". |
|
| 849 | 847 | http_script('', 'jquery.js') |
| 850 | - . "<link rel='stylesheet' href='" . url_absolue(find_in_path('spip_admin.css')) |
|
| 851 | - . "' type='text/css' />" . |
|
| 852 | - "</head>\n" . |
|
| 853 | - "<body style='margin:0 10px;'>\n" . |
|
| 854 | - "<div id='spip-debug-header'>" . |
|
| 855 | - $corps . |
|
| 856 | - inclure_balise_dynamique(balise_FORMULAIRE_ADMIN_dyn('spip-admin-float', $GLOBALS['debug_objets']), false) . |
|
| 848 | + . "<link rel='stylesheet' href='".url_absolue(find_in_path('spip_admin.css')) |
|
| 849 | + . "' type='text/css' />". |
|
| 850 | + "</head>\n". |
|
| 851 | + "<body style='margin:0 10px;'>\n". |
|
| 852 | + "<div id='spip-debug-header'>". |
|
| 853 | + $corps. |
|
| 854 | + inclure_balise_dynamique(balise_FORMULAIRE_ADMIN_dyn('spip-admin-float', $GLOBALS['debug_objets']), false). |
|
| 857 | 855 | '</div></body></html>'; |
| 858 | 856 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | ) { |
| 33 | 33 | // si l'url est une url du site, on la laisse passer sans rien faire |
| 34 | 34 | // c'est encore le plus simple |
| 35 | - $base = $GLOBALS['meta']['adresse_site'] . '/'; |
|
| 35 | + $base = $GLOBALS['meta']['adresse_site'].'/'; |
|
| 36 | 36 | if (strlen($base) && str_starts_with($redirect, $base)) { |
| 37 | 37 | return $redirect; |
| 38 | 38 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | if ($ancre = _request('var_ajax_ancre')) { |
| 154 | 154 | // pas n'importe quoi quand meme dans la variable ! |
| 155 | 155 | $ancre = str_replace(['<', '"', "'"], ['<', '"', ''], $ancre); |
| 156 | - $texte = "<a href='#$ancre' name='ajax_ancre' style='display:none;'>anchor</a>" . $texte; |
|
| 156 | + $texte = "<a href='#$ancre' name='ajax_ancre' style='display:none;'>anchor</a>".$texte; |
|
| 157 | 157 | } |
| 158 | 158 | } else { |
| 159 | 159 | include_spip('inc/headers'); |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | // on ajoute un br en display none en tete du retour ajax pour regler un bug dans IE6/7 |
| 335 | 335 | // sans cela le formulaire n'est pas actif apres le hit ajax |
| 336 | 336 | // la classe ajax-form-is-ok sert a s'assurer que le retour ajax s'est bien passe |
| 337 | - $retour = "<br class='bugajaxie ajax-form-is-ok' style='display:none;'/>" . $retour; |
|
| 337 | + $retour = "<br class='bugajaxie ajax-form-is-ok' style='display:none;'/>".$retour; |
|
| 338 | 338 | ajax_retour($retour, false); |
| 339 | 339 | |
| 340 | 340 | return true; // on a fini le hit |
@@ -22,22 +22,22 @@ discard block |
||
| 22 | 22 | return; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -require_once __DIR__ . '/bootstrap/config/initial.php'; |
|
| 25 | +require_once __DIR__.'/bootstrap/config/initial.php'; |
|
| 26 | 26 | |
| 27 | 27 | // inclure l'ecran de securite si il n'a pas été inclus en prepend php |
| 28 | 28 | if ( |
| 29 | 29 | !defined('_ECRAN_SECURITE') |
| 30 | - && @file_exists($f = _ROOT_RACINE . _NOM_PERMANENTS_INACCESSIBLES . 'ecran_securite.php') |
|
| 30 | + && @file_exists($f = _ROOT_RACINE._NOM_PERMANENTS_INACCESSIBLES.'ecran_securite.php') |
|
| 31 | 31 | ) { |
| 32 | 32 | include $f; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // et on peut lancer l'autoloader |
| 36 | -require_once dirname(__DIR__) . '/vendor/autoload.php'; |
|
| 36 | +require_once dirname(__DIR__).'/vendor/autoload.php'; |
|
| 37 | 37 | |
| 38 | -require_once __DIR__ . '/bootstrap/config/globals.php'; |
|
| 39 | -require_once __DIR__ . '/bootstrap/proxy.php'; |
|
| 40 | -require_once __DIR__ . '/bootstrap/mitigation.php'; |
|
| 38 | +require_once __DIR__.'/bootstrap/config/globals.php'; |
|
| 39 | +require_once __DIR__.'/bootstrap/proxy.php'; |
|
| 40 | +require_once __DIR__.'/bootstrap/mitigation.php'; |
|
| 41 | 41 | |
| 42 | 42 | // numero de branche, utilise par les plugins |
| 43 | 43 | // pour specifier les versions de SPIP necessaires |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | // |
| 72 | 72 | // Charger les fonctions liees aux serveurs Http et Sql. |
| 73 | 73 | // |
| 74 | -require_once __DIR__ . '/bootstrap/functions.php'; |
|
| 74 | +require_once __DIR__.'/bootstrap/functions.php'; |
|
| 75 | 75 | |
| 76 | 76 | // Definition personnelles eventuelles |
| 77 | 77 | |
@@ -95,10 +95,10 @@ discard block |
||
| 95 | 95 | // ===> on execute en neutralisant les messages d'erreur |
| 96 | 96 | |
| 97 | 97 | spip_initialisation_core( |
| 98 | - (_DIR_RACINE . _NOM_PERMANENTS_INACCESSIBLES), |
|
| 99 | - (_DIR_RACINE . _NOM_PERMANENTS_ACCESSIBLES), |
|
| 100 | - (_DIR_RACINE . _NOM_TEMPORAIRES_INACCESSIBLES), |
|
| 101 | - (_DIR_RACINE . _NOM_TEMPORAIRES_ACCESSIBLES) |
|
| 98 | + (_DIR_RACINE._NOM_PERMANENTS_INACCESSIBLES), |
|
| 99 | + (_DIR_RACINE._NOM_PERMANENTS_ACCESSIBLES), |
|
| 100 | + (_DIR_RACINE._NOM_TEMPORAIRES_INACCESSIBLES), |
|
| 101 | + (_DIR_RACINE._NOM_TEMPORAIRES_ACCESSIBLES) |
|
| 102 | 102 | ); |
| 103 | 103 | |
| 104 | 104 | // chargement des plugins : doit arriver en dernier |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | include_spip('inc/lang'); |
| 158 | 158 | utiliser_langue_visiteur(); |
| 159 | 159 | include_spip('inc/minipres'); |
| 160 | - echo minipres(_T('info_travaux_titre'), "<p style='text-align: center;'>" . _T('info_travaux_texte') . '</p>', ['status' => 503]); |
|
| 160 | + echo minipres(_T('info_travaux_titre'), "<p style='text-align: center;'>"._T('info_travaux_texte').'</p>', ['status' => 503]); |
|
| 161 | 161 | exit; |
| 162 | 162 | } |
| 163 | 163 | // autrement c'est une install ad hoc (spikini...), on sait pas faire |
@@ -196,12 +196,12 @@ discard block |
||
| 196 | 196 | } |
| 197 | 197 | if (!isset($GLOBALS['spip_header_silencieux']) || !$GLOBALS['spip_header_silencieux']) { |
| 198 | 198 | include_spip('inc/filtres_mini'); |
| 199 | - header(_HEADER_COMPOSED_BY . " $spip_version_affichee @ www.spip.net + " . url_absolue(_DIR_VAR . 'config.txt')); |
|
| 199 | + header(_HEADER_COMPOSED_BY." $spip_version_affichee @ www.spip.net + ".url_absolue(_DIR_VAR.'config.txt')); |
|
| 200 | 200 | } else { |
| 201 | 201 | // header minimal |
| 202 | - header(_HEADER_COMPOSED_BY . ' @ www.spip.net'); |
|
| 202 | + header(_HEADER_COMPOSED_BY.' @ www.spip.net'); |
|
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | $methode = ($_SERVER['REQUEST_METHOD'] ?? ((php_sapi_name() == 'cli') ? 'cli' : '')); |
| 207 | -spip_logger()->debug($methode . ' ' . self() . ' - ' . _FILE_CONNECT); |
|
| 207 | +spip_logger()->debug($methode.' '.self().' - '._FILE_CONNECT); |
|
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $value = interdire_scripts($value, -1); |
| 130 | 130 | } |
| 131 | 131 | if (!empty($options['class'])) { |
| 132 | - $value = "<span class='" . $options['class'] . "'>$value</span>"; |
|
| 132 | + $value = "<span class='".$options['class']."'>$value</span>"; |
|
| 133 | 133 | } |
| 134 | 134 | $text = str_replace("@$name@", (string) $value, (string) $text); |
| 135 | 135 | unset($args[$name]); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | // Si des variables n'ont pas ete inserees, le signaler |
| 139 | 139 | // (chaines de langues pas a jour) |
| 140 | 140 | if ($args) { |
| 141 | - spip_logger()->debug("$f: variables inutilisees " . join(', ', array_keys($args))); |
|
| 141 | + spip_logger()->debug("$f: variables inutilisees ".join(', ', array_keys($args))); |
|
| 142 | 142 | } |
| 143 | 143 | } |
| 144 | 144 | |
@@ -32,12 +32,12 @@ discard block |
||
| 32 | 32 | if (strlen($dossier) && !str_ends_with($dossier, '/')) { |
| 33 | 33 | $dossier .= '/'; |
| 34 | 34 | } |
| 35 | - $f = str_replace('/', '_', $dossier) . $nom; |
|
| 35 | + $f = str_replace('/', '_', $dossier).$nom; |
|
| 36 | 36 | |
| 37 | 37 | if (function_exists($f)) { |
| 38 | 38 | return $f; |
| 39 | 39 | } |
| 40 | - if (function_exists($g = $f . '_dist')) { |
|
| 40 | + if (function_exists($g = $f.'_dist')) { |
|
| 41 | 41 | return $g; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | // passer en minuscules (cf les balises de formulaires) |
| 59 | 59 | // et inclure le fichier |
| 60 | 60 | if ( |
| 61 | - !($inc = include_spip($dossier . ($d = strtolower($nom)))) |
|
| 61 | + !($inc = include_spip($dossier.($d = strtolower($nom)))) |
|
| 62 | 62 | && strlen(dirname($dossier)) |
| 63 | 63 | && dirname($dossier) != '.' |
| 64 | 64 | ) { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | // Echec : message d'erreur |
| 79 | - spip_logger()->info("fonction $nom ($f ou $g) indisponible" . |
|
| 79 | + spip_logger()->info("fonction $nom ($f ou $g) indisponible". |
|
| 80 | 80 | ($inc ? '' : " (fichier $d absent de $dossier)")); |
| 81 | 81 | |
| 82 | 82 | include_spip('inc/minipres'); |
@@ -84,12 +84,12 @@ discard block |
||
| 84 | 84 | echo minipres( |
| 85 | 85 | _T('forum_titre_erreur'), |
| 86 | 86 | $inc ? |
| 87 | - _T('fonction_introuvable', ['fonction' => '<code>' . spip_htmlentities($f) . '</code>']) |
|
| 87 | + _T('fonction_introuvable', ['fonction' => '<code>'.spip_htmlentities($f).'</code>']) |
|
| 88 | 88 | . '<br />' |
| 89 | - . _T('fonction_introuvable', ['fonction' => '<code>' . spip_htmlentities($g) . '</code>']) |
|
| 89 | + . _T('fonction_introuvable', ['fonction' => '<code>'.spip_htmlentities($g).'</code>']) |
|
| 90 | 90 | : |
| 91 | - _T('fichier_introuvable', ['fichier' => '<code>' . spip_htmlentities($d) . '</code>']), |
|
| 92 | - ['all_inline' => true,'status' => 404] |
|
| 91 | + _T('fichier_introuvable', ['fichier' => '<code>'.spip_htmlentities($d).'</code>']), |
|
| 92 | + ['all_inline' => true, 'status' => 404] |
|
| 93 | 93 | ); |
| 94 | 94 | exit; |
| 95 | 95 | } |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * - string : chemin du fichier trouvé |
| 136 | 136 | **/ |
| 137 | 137 | function include_spip($f, $include = true) { |
| 138 | - return find_in_path($f . '.php', '', $include); |
|
| 138 | + return find_in_path($f.'.php', '', $include); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * - string : chemin du fichier trouvé |
| 156 | 156 | **/ |
| 157 | 157 | function require_spip($f) { |
| 158 | - return find_in_path($f . '.php', '', 'required'); |
|
| 158 | + return find_in_path($f.'.php', '', 'required'); |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | // donc il faut l'inclure "en globals" |
| 174 | 174 | if ($f = find_in_path('mes_fonctions.php')) { |
| 175 | 175 | global $dossier_squelettes; |
| 176 | - include_once(_ROOT_CWD . $f); |
|
| 176 | + include_once(_ROOT_CWD.$f); |
|
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | if (@is_readable(_CACHE_PLUGINS_FCT)) { |
@@ -201,8 +201,8 @@ discard block |
||
| 201 | 201 | if ($type === 'defaut') { |
| 202 | 202 | $objet = objet_type($quoi); |
| 203 | 203 | if ( |
| 204 | - ($f = charger_fonction('generer_' . $objet . '_url', 'urls', true)) |
|
| 205 | - || ($f = charger_fonction('generer_url_' . $objet, 'urls', true)) // deprecated |
|
| 204 | + ($f = charger_fonction('generer_'.$objet.'_url', 'urls', true)) |
|
| 205 | + || ($f = charger_fonction('generer_url_'.$objet, 'urls', true)) // deprecated |
|
| 206 | 206 | ) { |
| 207 | 207 | return $f; |
| 208 | 208 | } |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | // inclure le module d'url |
| 218 | - include_spip('urls/' . $url_type); |
|
| 218 | + include_spip('urls/'.$url_type); |
|
| 219 | 219 | |
| 220 | 220 | switch ($quoi) { |
| 221 | 221 | case 'page': |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * @return array|string |
| 278 | 278 | */ |
| 279 | 279 | function trouver_fond($nom, $dir = '', $pathinfo = false) { |
| 280 | - $f = find_in_path($nom . '.' . _EXTENSION_SQUELETTES, $dir ? rtrim($dir, '/') . '/' : ''); |
|
| 280 | + $f = find_in_path($nom.'.'._EXTENSION_SQUELETTES, $dir ? rtrim($dir, '/').'/' : ''); |
|
| 281 | 281 | if (!$pathinfo) { |
| 282 | 282 | return $f; |
| 283 | 283 | } |
@@ -39,22 +39,22 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | // le nom du repertoire plugins/ activables/desactivables |
| 41 | 41 | if (!defined('_DIR_PLUGINS')) { |
| 42 | - define('_DIR_PLUGINS', _DIR_RACINE . 'plugins/'); |
|
| 42 | + define('_DIR_PLUGINS', _DIR_RACINE.'plugins/'); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | // le nom du repertoire des extensions/ permanentes du core, toujours actives |
| 46 | 46 | if (!defined('_DIR_PLUGINS_DIST')) { |
| 47 | - define('_DIR_PLUGINS_DIST', _DIR_RACINE . 'plugins-dist/'); |
|
| 47 | + define('_DIR_PLUGINS_DIST', _DIR_RACINE.'plugins-dist/'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | // le nom du repertoire des librairies |
| 51 | 51 | if (!defined('_DIR_LIB')) { |
| 52 | - define('_DIR_LIB', _DIR_RACINE . 'lib/'); |
|
| 52 | + define('_DIR_LIB', _DIR_RACINE.'lib/'); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | // répertoire des libs via Composer |
| 56 | 56 | if (!defined('_DIR_VENDOR')) { |
| 57 | - define('_DIR_VENDOR', _DIR_RACINE . 'vendor/'); |
|
| 57 | + define('_DIR_VENDOR', _DIR_RACINE.'vendor/'); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | if (!defined('_DIR_IMG')) { |
@@ -64,29 +64,29 @@ discard block |
||
| 64 | 64 | define('_DIR_LOGOS', $pa); |
| 65 | 65 | } |
| 66 | 66 | if (!defined('_DIR_IMG_ICONES')) { |
| 67 | - define('_DIR_IMG_ICONES', _DIR_LOGOS . 'icones/'); |
|
| 67 | + define('_DIR_IMG_ICONES', _DIR_LOGOS.'icones/'); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if (!defined('_DIR_DUMP')) { |
| 71 | - define('_DIR_DUMP', $ti . 'dump/'); |
|
| 71 | + define('_DIR_DUMP', $ti.'dump/'); |
|
| 72 | 72 | } |
| 73 | 73 | if (!defined('_DIR_SESSIONS')) { |
| 74 | - define('_DIR_SESSIONS', $ti . 'sessions/'); |
|
| 74 | + define('_DIR_SESSIONS', $ti.'sessions/'); |
|
| 75 | 75 | } |
| 76 | 76 | if (!defined('_DIR_TRANSFERT')) { |
| 77 | - define('_DIR_TRANSFERT', $ti . 'upload/'); |
|
| 77 | + define('_DIR_TRANSFERT', $ti.'upload/'); |
|
| 78 | 78 | } |
| 79 | 79 | if (!defined('_DIR_CACHE')) { |
| 80 | - define('_DIR_CACHE', $ti . 'cache/'); |
|
| 80 | + define('_DIR_CACHE', $ti.'cache/'); |
|
| 81 | 81 | } |
| 82 | 82 | if (!defined('_DIR_CACHE_XML')) { |
| 83 | - define('_DIR_CACHE_XML', _DIR_CACHE . 'xml/'); |
|
| 83 | + define('_DIR_CACHE_XML', _DIR_CACHE.'xml/'); |
|
| 84 | 84 | } |
| 85 | 85 | if (!defined('_DIR_SKELS')) { |
| 86 | - define('_DIR_SKELS', _DIR_CACHE . 'skel/'); |
|
| 86 | + define('_DIR_SKELS', _DIR_CACHE.'skel/'); |
|
| 87 | 87 | } |
| 88 | 88 | if (!defined('_DIR_AIDE')) { |
| 89 | - define('_DIR_AIDE', _DIR_CACHE . 'aide/'); |
|
| 89 | + define('_DIR_AIDE', _DIR_CACHE.'aide/'); |
|
| 90 | 90 | } |
| 91 | 91 | if (!defined('_DIR_TMP')) { |
| 92 | 92 | define('_DIR_TMP', $ti); |
@@ -115,27 +115,27 @@ discard block |
||
| 115 | 115 | // Declaration des fichiers |
| 116 | 116 | |
| 117 | 117 | if (!defined('_CACHE_PLUGINS_PATH')) { |
| 118 | - define('_CACHE_PLUGINS_PATH', _DIR_CACHE . 'charger_plugins_chemins.php'); |
|
| 118 | + define('_CACHE_PLUGINS_PATH', _DIR_CACHE.'charger_plugins_chemins.php'); |
|
| 119 | 119 | } |
| 120 | 120 | if (!defined('_CACHE_PLUGINS_OPT')) { |
| 121 | - define('_CACHE_PLUGINS_OPT', _DIR_CACHE . 'charger_plugins_options.php'); |
|
| 121 | + define('_CACHE_PLUGINS_OPT', _DIR_CACHE.'charger_plugins_options.php'); |
|
| 122 | 122 | } |
| 123 | 123 | if (!defined('_CACHE_PLUGINS_FCT')) { |
| 124 | - define('_CACHE_PLUGINS_FCT', _DIR_CACHE . 'charger_plugins_fonctions.php'); |
|
| 124 | + define('_CACHE_PLUGINS_FCT', _DIR_CACHE.'charger_plugins_fonctions.php'); |
|
| 125 | 125 | } |
| 126 | 126 | if (!defined('_CACHE_PIPELINES')) { |
| 127 | - define('_CACHE_PIPELINES', _DIR_CACHE . 'charger_pipelines.php'); |
|
| 127 | + define('_CACHE_PIPELINES', _DIR_CACHE.'charger_pipelines.php'); |
|
| 128 | 128 | } |
| 129 | 129 | if (!defined('_CACHE_CHEMIN')) { |
| 130 | - define('_CACHE_CHEMIN', _DIR_CACHE . 'chemin.txt'); |
|
| 130 | + define('_CACHE_CHEMIN', _DIR_CACHE.'chemin.txt'); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | # attention .php obligatoire pour ecrire_fichier_securise |
| 134 | 134 | if (!defined('_FILE_META')) { |
| 135 | - define('_FILE_META', $ti . 'meta_cache.php'); |
|
| 135 | + define('_FILE_META', $ti.'meta_cache.php'); |
|
| 136 | 136 | } |
| 137 | 137 | if (!defined('_DIR_LOG')) { |
| 138 | - define('_DIR_LOG', _DIR_TMP . 'log/'); |
|
| 138 | + define('_DIR_LOG', _DIR_TMP.'log/'); |
|
| 139 | 139 | } |
| 140 | 140 | if (!defined('_FILE_LOG')) { |
| 141 | 141 | define('_FILE_LOG', 'spip'); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | if (!defined('_FILE_CONNECT')) { |
| 152 | 152 | define( |
| 153 | 153 | '_FILE_CONNECT', |
| 154 | - @is_readable($f = _DIR_CONNECT . _FILE_CONNECT_INS . '.php') ? $f : false |
|
| 154 | + @is_readable($f = _DIR_CONNECT._FILE_CONNECT_INS.'.php') ? $f : false |
|
| 155 | 155 | ); |
| 156 | 156 | } |
| 157 | 157 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | if (!defined('_FILE_CHMOD')) { |
| 163 | 163 | define( |
| 164 | 164 | '_FILE_CHMOD', |
| 165 | - @is_readable($f = _DIR_CHMOD . _FILE_CHMOD_INS . '.php') ? $f : false |
|
| 165 | + @is_readable($f = _DIR_CHMOD._FILE_CHMOD_INS.'.php') ? $f : false |
|
| 166 | 166 | ); |
| 167 | 167 | } |
| 168 | 168 | |
@@ -174,10 +174,10 @@ discard block |
||
| 174 | 174 | define('_FILE_TMP_SUFFIX', '.tmp.php'); |
| 175 | 175 | } |
| 176 | 176 | if (!defined('_FILE_CONNECT_TMP')) { |
| 177 | - define('_FILE_CONNECT_TMP', _DIR_CONNECT . _FILE_CONNECT_INS . _FILE_TMP_SUFFIX); |
|
| 177 | + define('_FILE_CONNECT_TMP', _DIR_CONNECT._FILE_CONNECT_INS._FILE_TMP_SUFFIX); |
|
| 178 | 178 | } |
| 179 | 179 | if (!defined('_FILE_CHMOD_TMP')) { |
| 180 | - define('_FILE_CHMOD_TMP', _DIR_CHMOD . _FILE_CHMOD_INS . _FILE_TMP_SUFFIX); |
|
| 180 | + define('_FILE_CHMOD_TMP', _DIR_CHMOD._FILE_CHMOD_INS._FILE_TMP_SUFFIX); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | // Definition des droits d'acces en ecriture |
@@ -195,13 +195,13 @@ discard block |
||
| 195 | 195 | define('_DEFAULT_CHARSET', 'utf-8'); |
| 196 | 196 | } |
| 197 | 197 | if (!defined('_ROOT_PLUGINS')) { |
| 198 | - define('_ROOT_PLUGINS', _ROOT_RACINE . 'plugins' . DIRECTORY_SEPARATOR); |
|
| 198 | + define('_ROOT_PLUGINS', _ROOT_RACINE.'plugins'.DIRECTORY_SEPARATOR); |
|
| 199 | 199 | } |
| 200 | 200 | if (!defined('_ROOT_PLUGINS_DIST')) { |
| 201 | - define('_ROOT_PLUGINS_DIST', _ROOT_RACINE . 'plugins-dist' . DIRECTORY_SEPARATOR); |
|
| 201 | + define('_ROOT_PLUGINS_DIST', _ROOT_RACINE.'plugins-dist'.DIRECTORY_SEPARATOR); |
|
| 202 | 202 | } |
| 203 | 203 | if (!defined('_ROOT_PLUGINS_SUPPL') && defined('_DIR_PLUGINS_SUPPL') && _DIR_PLUGINS_SUPPL) { |
| 204 | - define('_ROOT_PLUGINS_SUPPL', _ROOT_RACINE . str_replace(_DIR_RACINE, '', _DIR_PLUGINS_SUPPL)); |
|
| 204 | + define('_ROOT_PLUGINS_SUPPL', _ROOT_RACINE.str_replace(_DIR_RACINE, '', _DIR_PLUGINS_SUPPL)); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | // La taille des Log |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | // (non surchargeable en l'etat ; attention si on utilise include_spip() |
| 239 | 239 | // pour le rendre surchargeable, on va provoquer un reecriture |
| 240 | 240 | // systematique du noyau ou une baisse de perfs => a etudier) |
| 241 | - include_once _ROOT_RESTREINT . 'inc/flock.php'; |
|
| 241 | + include_once _ROOT_RESTREINT.'inc/flock.php'; |
|
| 242 | 242 | |
| 243 | 243 | // charger le path des plugins |
| 244 | 244 | if (@is_readable(_CACHE_PLUGINS_PATH)) { |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | !empty($_SERVER['QUERY_STRING']) |
| 277 | 277 | && !strpos($_SERVER['REQUEST_URI'], '?') |
| 278 | 278 | ) { |
| 279 | - $GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING']; |
|
| 279 | + $GLOBALS['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING']; |
|
| 280 | 280 | } |
| 281 | 281 | } |
| 282 | 282 | |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | ) { |
| 313 | 313 | if (isset($GLOBALS['meta']['adresse_site'])) { |
| 314 | 314 | $uri_ref = parse_url($GLOBALS['meta']['adresse_site']); |
| 315 | - $uri_ref = ($uri_ref['path'] ?? '') . '/'; |
|
| 315 | + $uri_ref = ($uri_ref['path'] ?? '').'/'; |
|
| 316 | 316 | } else { |
| 317 | 317 | $uri_ref = ''; |
| 318 | 318 | } |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | } |
| 407 | 407 | if (!defined('_CACHE_RUBRIQUES')) { |
| 408 | 408 | /** Fichier cache pour le navigateur de rubrique du bandeau */ |
| 409 | - define('_CACHE_RUBRIQUES', _DIR_TMP . 'menu-rubriques-cache.txt'); |
|
| 409 | + define('_CACHE_RUBRIQUES', _DIR_TMP.'menu-rubriques-cache.txt'); |
|
| 410 | 410 | } |
| 411 | 411 | if (!defined('_CACHE_RUBRIQUES_MAX')) { |
| 412 | 412 | /** Nombre maxi de rubriques enfants affichées pour chaque rubrique du navigateur de rubrique du bandeau */ |
@@ -628,7 +628,7 @@ discard block |
||
| 628 | 628 | define('_VAR_MODE', reset($var_mode)); |
| 629 | 629 | } |
| 630 | 630 | if (isset($GLOBALS['visiteur_session']['nom'])) { |
| 631 | - spip_logger()->info($GLOBALS['visiteur_session']['nom'] . ' ' . _VAR_MODE); |
|
| 631 | + spip_logger()->info($GLOBALS['visiteur_session']['nom'].' '._VAR_MODE); |
|
| 632 | 632 | } |
| 633 | 633 | } // pas autorise ? |
| 634 | 634 | else { |
@@ -643,7 +643,7 @@ discard block |
||
| 643 | 643 | if (!str_contains($self, 'page=login')) { |
| 644 | 644 | include_spip('inc/headers'); |
| 645 | 645 | $redirect = parametre_url(self('&', true), 'var_mode', $_GET['var_mode'], '&'); |
| 646 | - redirige_par_entete(generer_url_public('login', 'url=' . rawurlencode($redirect), true)); |
|
| 646 | + redirige_par_entete(generer_url_public('login', 'url='.rawurlencode($redirect), true)); |
|
| 647 | 647 | } |
| 648 | 648 | } |
| 649 | 649 | // sinon tant pis |