@@ -46,15 +46,15 @@ discard block |
||
| 46 | 46 | $je_suis_poste = $flux['args']['je_suis_poste']; |
| 47 | 47 | |
| 48 | 48 | $cle_autosave = serialize($cle_autosave); |
| 49 | - $cle_autosave = $form . '_' . md5($cle_autosave); |
|
| 49 | + $cle_autosave = $form.'_'.md5($cle_autosave); |
|
| 50 | 50 | |
| 51 | 51 | // si on a un backup en session et qu'on est au premier chargement, non poste |
| 52 | 52 | // on restitue les donnees |
| 53 | 53 | if ( |
| 54 | - isset($GLOBALS['visiteur_session']['session_autosave_' . $cle_autosave]) |
|
| 54 | + isset($GLOBALS['visiteur_session']['session_autosave_'.$cle_autosave]) |
|
| 55 | 55 | && !$je_suis_poste |
| 56 | 56 | ) { |
| 57 | - parse_str((string) $GLOBALS['visiteur_session']['session_autosave_' . $cle_autosave], $vars); |
|
| 57 | + parse_str((string) $GLOBALS['visiteur_session']['session_autosave_'.$cle_autosave], $vars); |
|
| 58 | 58 | foreach ($vars as $key => $val) { |
| 59 | 59 | if (isset($flux['data'][$key])) { |
| 60 | 60 | $flux['data'][$key] = (is_string($val) ? autosave_clean_value($val) : array_map( |
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | if ($je_suis_poste && _request('autosave') === $cle_autosave && function_exists('terminer_actualiser_sessions')) { |
| 71 | 71 | terminer_actualiser_sessions(); |
| 72 | 72 | // et verifions si jamais l'autosave a fait un come back, dans ce cas on le revide |
| 73 | - if (isset($GLOBALS['visiteur_session']['session_autosave_' . $cle_autosave])) { |
|
| 74 | - session_set('session_autosave_' . $cle_autosave, null); |
|
| 73 | + if (isset($GLOBALS['visiteur_session']['session_autosave_'.$cle_autosave])) { |
|
| 74 | + session_set('session_autosave_'.$cle_autosave, null); |
|
| 75 | 75 | // en court sleep pour etre certain que la concurrence est finie |
| 76 | 76 | sleep(1); |
| 77 | 77 | terminer_actualiser_sessions(); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | $flux['data']['_hidden'] .= "<input type='hidden' name='autosave' class='autosaveactive' value='$cle_autosave' />" |
| 86 | 86 | . '<script type="text/javascript">/*<![CDATA[*/if (window.jQuery) jQuery(function(){ |
| 87 | - $("input.autosaveactive").closest("form:not(.autosaveon)").autosave({url:"' . $GLOBALS['meta']['adresse_site'] . '/"}).addClass("autosaveon"); |
|
| 87 | + $("input.autosaveactive").closest("form:not(.autosaveon)").autosave({url:"' . $GLOBALS['meta']['adresse_site'].'/"}).addClass("autosaveon"); |
|
| 88 | 88 | });/*]]>*/</script>'; |
| 89 | 89 | } |
| 90 | 90 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | // on elimine les donnees de la session |
| 107 | 107 | if ($cle_autosave = _request('autosave')) { |
| 108 | 108 | include_spip('inc/session'); |
| 109 | - session_set('session_autosave_' . $cle_autosave, null); |
|
| 109 | + session_set('session_autosave_'.$cle_autosave, null); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | if (isset($GLOBALS['visiteur_session']) && $GLOBALS['visiteur_session']) { |
@@ -33,9 +33,9 @@ discard block |
||
| 33 | 33 | $res = sql_select( |
| 34 | 34 | 'rub1.id_rubrique, rub1.titre, rub1.id_parent, rub1.lang, rub1.langue_choisie, rub2.id_rubrique AS id_enfant', |
| 35 | 35 | 'spip_rubriques AS rub1 LEFT JOIN spip_rubriques AS rub2 ON (rub1.id_rubrique = rub2.id_parent)', |
| 36 | - 'rub1.id_parent = ' . sql_quote($id_rubrique) . ' |
|
| 37 | - AND rub1.id_rubrique!=' . sql_quote($exclu) . ' |
|
| 38 | - AND (rub2.id_rubrique IS NULL OR rub2.id_rubrique!=' . sql_quote($exclu) . ')', |
|
| 36 | + 'rub1.id_parent = '.sql_quote($id_rubrique).' |
|
| 37 | + AND rub1.id_rubrique!=' . sql_quote($exclu).' |
|
| 38 | + AND (rub2.id_rubrique IS NULL OR rub2.id_rubrique!=' . sql_quote($exclu).')', |
|
| 39 | 39 | '', |
| 40 | 40 | '0+rub1.titre,rub1.titre' |
| 41 | 41 | ); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | if ($row['langue_choisie'] != 'oui') { |
| 49 | 49 | $t .= ' <small title="' |
| 50 | 50 | . traduire_nom_langue($row['lang']) |
| 51 | - . '">[' . $row['lang'] . ']</small>'; |
|
| 51 | + . '">['.$row['lang'].']</small>'; |
|
| 52 | 52 | } |
| 53 | 53 | $ordre[$row['id_rubrique']] = $t; |
| 54 | 54 | } |
@@ -56,14 +56,14 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | $next = $list[$col] ?? 0; |
| 58 | 58 | if ($ordre) { |
| 59 | - $rec = generer_url_ecrire('plonger', "rac=$idom&exclus=$exclu&do=$do&col=" . ($col + 1)); |
|
| 59 | + $rec = generer_url_ecrire('plonger', "rac=$idom&exclus=$exclu&do=$do&col=".($col + 1)); |
|
| 60 | 60 | $info = generer_url_ecrire('informer', "type=rubrique&rac=$idom&do=$do&id="); |
| 61 | - $args = "'$idom',this,$col,'" . $GLOBALS['spip_lang_left'] . "','$info',event"; |
|
| 61 | + $args = "'$idom',this,$col,'".$GLOBALS['spip_lang_left']."','$info',event"; |
|
| 62 | 62 | |
| 63 | 63 | foreach ($ordre as $id => $titrebrut) { |
| 64 | 64 | $titre = supprimer_numero($titrebrut); |
| 65 | 65 | |
| 66 | - $classe1 = 'petit-item ' . ($id_rubrique ? 'petite-rubrique' : 'petit-secteur'); |
|
| 66 | + $classe1 = 'petit-item '.($id_rubrique ? 'petite-rubrique' : 'petit-secteur'); |
|
| 67 | 67 | if (isset($rub[$id]['enfants'])) { |
| 68 | 68 | $classe2 = " class='rub-ouverte'"; |
| 69 | 69 | $url = "\nhref='$rec&id=$id'"; |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $url = "\nhref='javascript:void(0)'"; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - $js_func = $do . '_selection_titre'; |
|
| 75 | + $js_func = $do.'_selection_titre'; |
|
| 76 | 76 | $click = "\nonclick=\"changerhighlight(this.parentNode.parentNode.parentNode);\nreturn " |
| 77 | 77 | . (is_array($list) ? "aff_selection_provisoire($id,$args)" : ' false') |
| 78 | 78 | # ce lien provoque la selection (directe) de la rubrique cliquee |
@@ -98,17 +98,17 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - $idom2 = $idom . '_col_' . ($col + 1); |
|
| 101 | + $idom2 = $idom.'_col_'.($col + 1); |
|
| 102 | 102 | $left = ($col * 250); |
| 103 | 103 | |
| 104 | 104 | return http_img_pack( |
| 105 | 105 | 'loader.svg', |
| 106 | 106 | '', |
| 107 | - "class='loader' style='visibility: hidden; position: absolute; " . $GLOBALS['spip_lang_left'] . ': ' |
|
| 107 | + "class='loader' style='visibility: hidden; position: absolute; ".$GLOBALS['spip_lang_left'].': ' |
|
| 108 | 108 | . ($left - 30) |
| 109 | 109 | . "px; top: 2px; z-index: 2;' id='img_$idom2'" |
| 110 | 110 | ) |
| 111 | - . "<div style='width: 250px; height: 100%; overflow: auto; position: absolute; top: 0px; " . $GLOBALS['spip_lang_left'] . ': ' |
|
| 111 | + . "<div style='width: 250px; height: 100%; overflow: auto; position: absolute; top: 0px; ".$GLOBALS['spip_lang_left'].': ' |
|
| 112 | 112 | . ($left - 250) |
| 113 | 113 | . "px;'>" |
| 114 | 114 | . $ret |
@@ -46,13 +46,13 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $dir = 'images/'; |
| 48 | 48 | $f = "$type-$size.png"; |
| 49 | - if ($icone = find_in_theme($dir . $f)) { |
|
| 49 | + if ($icone = find_in_theme($dir.$f)) { |
|
| 50 | 50 | $dir = dirname((string) $icone); |
| 51 | 51 | $fond = $icone; |
| 52 | 52 | |
| 53 | 53 | if ( |
| 54 | 54 | $rtl |
| 55 | - && ($fr = $dir . '/' . str_replace("$type-", "$type-rtl-", basename((string) $icone))) |
|
| 55 | + && ($fr = $dir.'/'.str_replace("$type-", "$type-rtl-", basename((string) $icone))) |
|
| 56 | 56 | && file_exists($fr) |
| 57 | 57 | ) { |
| 58 | 58 | $fond = $fr; |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | $fonction = ''; |
| 71 | - if (in_array($action, ['add','del', 'new', 'edit', 'config'])) { |
|
| 71 | + if (in_array($action, ['add', 'del', 'new', 'edit', 'config'])) { |
|
| 72 | 72 | $fonction = $action; |
| 73 | 73 | } |
| 74 | 74 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | // ceci est la RegExp NO_REAL_NAME faisant hurler SpamAssassin |
| 133 | 133 | if (preg_match('/^["\s]*\<?\S+\@\S+\>?\s*$/', (string) $from)) { |
| 134 | - $from .= ' (' . str_replace(')', '', translitteration(str_replace('@', ' at ', (string) $from))) . ')'; |
|
| 134 | + $from .= ' ('.str_replace(')', '', translitteration(str_replace('@', ' at ', (string) $from))).')'; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | // nettoyer les é ’, &emdash; etc... |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | if (!_TEST_EMAIL_DEST) { |
| 170 | 170 | return false; |
| 171 | 171 | } else { |
| 172 | - $texte = "Dest : $destinataire\r\n" . $texte; |
|
| 172 | + $texte = "Dest : $destinataire\r\n".$texte; |
|
| 173 | 173 | $destinataire = _TEST_EMAIL_DEST; |
| 174 | 174 | } |
| 175 | 175 | } |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | // Ajouter le Content-Type et consort s'il n'y est pas deja |
| 194 | 194 | if (!str_contains($headers, 'Content-Type: ')) { |
| 195 | 195 | $type = |
| 196 | - "Content-Type: text/plain;charset=\"$charset\";\n" . |
|
| 196 | + "Content-Type: text/plain;charset=\"$charset\";\n". |
|
| 197 | 197 | "Content-Transfer-Encoding: 8bit\n"; |
| 198 | 198 | } else { |
| 199 | 199 | $type = ''; |
@@ -201,16 +201,16 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | // calculer un identifiant unique |
| 203 | 203 | // Marie Toto <[email protected]> => @toto.com |
| 204 | - $domain = preg_match('/@[^\s>]+/', $from, $domain) ? $domain[0] : '@unknown-' . md5($from) . '.org'; |
|
| 205 | - $uniq = random_int(0, mt_getrandmax()) . '_' . md5($to . $texte) . $domain; |
|
| 204 | + $domain = preg_match('/@[^\s>]+/', $from, $domain) ? $domain[0] : '@unknown-'.md5($from).'.org'; |
|
| 205 | + $uniq = random_int(0, mt_getrandmax()).'_'.md5($to.$texte).$domain; |
|
| 206 | 206 | |
| 207 | 207 | // Si multi-part, s'en servir comme borne ... |
| 208 | 208 | if ($parts) { |
| 209 | - $texte = "--$uniq\n$type\n" . $texte . "\n"; |
|
| 209 | + $texte = "--$uniq\n$type\n".$texte."\n"; |
|
| 210 | 210 | foreach ($parts as $part) { |
| 211 | - $n = strlen((string) $part[1]) . ($part[0] ? "\n" : ''); |
|
| 211 | + $n = strlen((string) $part[1]).($part[0] ? "\n" : ''); |
|
| 212 | 212 | $e = implode("\n", $part[0]); |
| 213 | - $texte .= "\n--$uniq\nContent-Length: $n$e\n\n" . $part[1]; |
|
| 213 | + $texte .= "\n--$uniq\nContent-Length: $n$e\n\n".$part[1]; |
|
| 214 | 214 | } |
| 215 | 215 | $texte .= "\n\n--$uniq--\n"; |
| 216 | 216 | // Si boundary n'est pas entre guillemets, |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | // .. et s'en servir pour plaire a SpamAssassin |
| 222 | 222 | |
| 223 | - $mid = 'Message-Id: <' . $uniq . '>'; |
|
| 223 | + $mid = 'Message-Id: <'.$uniq.'>'; |
|
| 224 | 224 | |
| 225 | 225 | // indispensable pour les sites qui collent d'office From: serveur-http |
| 226 | 226 | // sauf si deja mis par l'envoyeur |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $coupe_url = defined('_MAX_COUPE_URL') ? _MAX_COUPE_URL : 35; |
| 26 | 26 | |
| 27 | 27 | if (strlen((string) $url) > $long_url) { |
| 28 | - $url = substr((string) $url, 0, $coupe_url) . '...'; |
|
| 28 | + $url = substr((string) $url, 0, $coupe_url).'...'; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | return $url; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | return $r ?: traiter_lien_explicite($ref, $texte, $pour, $connect, $echappe_typo); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | -define('_EXTRAIRE_LIEN', ',^\s*(?:' . _PROTOCOLES_STD . '):?/?/?\s*$,iS'); |
|
| 108 | +define('_EXTRAIRE_LIEN', ',^\s*(?:'._PROTOCOLES_STD.'):?/?/?\s*$,iS'); |
|
| 109 | 109 | |
| 110 | 110 | function traiter_lien_explicite($ref, $texte = '', $pour = 'url', string $connect = '', $echappe_typo = true) { |
| 111 | 111 | if (preg_match(_EXTRAIRE_LIEN, (string) $ref)) { |
@@ -121,19 +121,19 @@ discard block |
||
| 121 | 121 | $lien_court = charger_fonction('lien_court', 'inc'); |
| 122 | 122 | $texte = $lien_court($texte); |
| 123 | 123 | if ($echappe_typo) { |
| 124 | - $texte = '<html>' . quote_amp($texte) . '</html>'; |
|
| 124 | + $texte = '<html>'.quote_amp($texte).'</html>'; |
|
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | // petites corrections d'URL |
| 129 | 129 | if (preg_match('/^www\.[^@]+$/S', (string) $lien)) { |
| 130 | - $lien = 'http://' . $lien; |
|
| 130 | + $lien = 'http://'.$lien; |
|
| 131 | 131 | } else { |
| 132 | 132 | if (strpos((string) $lien, '@') && email_valide($lien)) { |
| 133 | 133 | if (!$texte) { |
| 134 | 134 | $texte = $lien; |
| 135 | 135 | } |
| 136 | - $lien = 'mailto:' . $lien; |
|
| 136 | + $lien = 'mailto:'.$lien; |
|
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | function liens_implicite_glose_dist($texte, $id, $type, $args, $ancre, string $connect = '') { |
| 152 | - return function_exists($f = 'glossaire_' . $ancre) ? $f($texte, $id) : glossaire_std($texte); |
|
| 152 | + return function_exists($f = 'glossaire_'.$ancre) ? $f($texte, $id) : glossaire_std($texte); |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | return false; |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | - [$type, , $id, , $args, , $ancre] = array_pad($match, 7, null); |
|
| 179 | + [$type,, $id,, $args,, $ancre] = array_pad($match, 7, null); |
|
| 180 | 180 | |
| 181 | 181 | # attention dans le cas des sites le lien doit pointer non pas sur |
| 182 | 182 | # la page locale du site, mais directement sur le site lui-meme |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | if (!@$r['titre']) { |
| 215 | - $r['titre'] = _T($type) . " $id"; |
|
| 215 | + $r['titre'] = _T($type)." $id"; |
|
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | if ($pour == 'titre') { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | $type == 'document' && ($mime = sql_getfetsel( |
| 227 | 227 | 'mime_type', |
| 228 | 228 | 'spip_types_documents', |
| 229 | - 'extension IN (' . sql_get_select('extension', 'spip_documents', 'id_document=' . sql_quote($id)) . ')', |
|
| 229 | + 'extension IN ('.sql_get_select('extension', 'spip_documents', 'id_document='.sql_quote($id)).')', |
|
| 230 | 230 | '', |
| 231 | 231 | '', |
| 232 | 232 | '', |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | && autoriser('onglet', "_$id") |
| 51 | 51 | ) { |
| 52 | 52 | $onglets[$id] = new Bouton( |
| 53 | - isset($infos['icone']) ? find_in_theme($infos['icone']) : '', // icone |
|
| 54 | - $infos['titre'], // titre |
|
| 53 | + isset($infos['icone']) ? find_in_theme($infos['icone']) : '', // icone |
|
| 54 | + $infos['titre'], // titre |
|
| 55 | 55 | (isset($infos['action']) && $infos['action']) |
| 56 | 56 | ? generer_url_ecrire( |
| 57 | 57 | $infos['action'], |
@@ -89,5 +89,5 @@ discard block |
||
| 89 | 89 | $res .= onglet(_T($onglet->libelle), $url, $exec, $ongletCourant, $onglet->icone); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - return $res ? debut_onglet($class) . $res . fin_onglet() : (''); |
|
| 92 | + return $res ? debut_onglet($class).$res.fin_onglet() : (''); |
|
| 93 | 93 | } |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | $_texte = ($_texte ?: "''"); |
| 51 | 51 | $_titre = ($_titre ? ", $_titre" : ', null'); |
| 52 | 52 | $_class = ($_class ? ", $_class" : ', null'); |
| 53 | - $_role = ($_role ? ", $_role" : ', null'); |
|
| 54 | - $_id = ($_id ? ", $_id" : ', null'); |
|
| 53 | + $_role = ($_role ? ", $_role" : ', null'); |
|
| 54 | + $_id = ($_id ? ", $_id" : ', null'); |
|
| 55 | 55 | |
| 56 | 56 | $f = chercher_filtre('message_alerte'); |
| 57 | 57 | $p->code = "$f($_texte$_titre$_class$_role$_id)"; |
@@ -89,10 +89,10 @@ discard block |
||
| 89 | 89 | $_class = interprete_argument_balise(2, $p); |
| 90 | 90 | $_role = interprete_argument_balise(3, $p); |
| 91 | 91 | $_id = interprete_argument_balise(4, $p); |
| 92 | - $_titre = ($_titre ? "$_titre" : 'null'); |
|
| 92 | + $_titre = ($_titre ? "$_titre" : 'null'); |
|
| 93 | 93 | $_class = ($_class ? ", $_class" : ', null'); |
| 94 | - $_role = ($_role ? ", $_role" : ', null'); |
|
| 95 | - $_id = ($_id ? ", $_id" : ', null'); |
|
| 94 | + $_role = ($_role ? ", $_role" : ', null'); |
|
| 95 | + $_id = ($_id ? ", $_id" : ', null'); |
|
| 96 | 96 | |
| 97 | 97 | $f = chercher_filtre('message_alerte_ouvrir'); |
| 98 | 98 | $p->code = "$f($_titre$_class$_role$_id)"; |
@@ -162,8 +162,8 @@ discard block |
||
| 162 | 162 | $message_alerte_ouvrir = chercher_filtre('message_alerte_ouvrir'); |
| 163 | 163 | $message_alerte_fermer = chercher_filtre('message_alerte_fermer'); |
| 164 | 164 | |
| 165 | - return $message_alerte_ouvrir($titre, $class, $role, $id) . |
|
| 166 | - $texte . |
|
| 165 | + return $message_alerte_ouvrir($titre, $class, $role, $id). |
|
| 166 | + $texte. |
|
| 167 | 167 | $message_alerte_fermer(); |
| 168 | 168 | } |
| 169 | 169 | |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | ]; |
| 212 | 212 | $type = array_intersect(explode(' ', $class), $types); |
| 213 | 213 | $type = reset($type); |
| 214 | - $class = trim(str_replace($types, '', $class) . " $type"); |
|
| 214 | + $class = trim(str_replace($types, '', $class)." $type"); |
|
| 215 | 215 | |
| 216 | 216 | // Classes |
| 217 | 217 | $class_racine = 'msg-alert'; |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | |
| 237 | 237 | // Attributs |
| 238 | 238 | $attr_role = ($role ? "role=\"$role\"" : ''); |
| 239 | - $attr_id = ($id ? "id=\"$id\"" : ''); |
|
| 239 | + $attr_id = ($id ? "id=\"$id\"" : ''); |
|
| 240 | 240 | $attr_data = ($type ? "data-alert=\"$type\"" : ''); |
| 241 | 241 | |
| 242 | 242 | return "<div class=\"$class_alerte\" $attr_role $attr_id $attr_data>" |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ) { |
| 38 | 38 | // Pour tous les formulaires CONFIGURER, ayant une fonction charger ou pas, on teste si autorisé |
| 39 | 39 | include_spip('inc/autoriser'); |
| 40 | - if (!autoriser('configurer', '_' . substr((string) $form, 11))) { |
|
| 40 | + if (!autoriser('configurer', '_'.substr((string) $form, 11))) { |
|
| 41 | 41 | return false; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | && !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'] = ['message_ok' => _T('config_info_enregistree') . $trace, 'editable' => true]; |
|
| 74 | + $flux['data'] = ['message_ok' => _T('config_info_enregistree').$trace, 'editable' => true]; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | return $flux; |
@@ -145,7 +145,7 @@ discard block |
||
| 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 |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | // sinon cas analyse du squelette |
| 173 | 173 | if ( |
| 174 | - ($f = find_in_path($form . '.' . _EXTENSION_SQUELETTES, 'formulaires/')) |
|
| 174 | + ($f = find_in_path($form.'.'._EXTENSION_SQUELETTES, 'formulaires/')) |
|
| 175 | 175 | && lire_fichier($f, $contenu) |
| 176 | 176 | ) { |
| 177 | 177 | for ($i = 0; $i < 2; $i++) { |
@@ -228,14 +228,14 @@ discard block |
||
| 228 | 228 | lire_metas($table); |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | - $prefixe = ($prefixe ? $prefixe . '_' : ''); |
|
| 231 | + $prefixe = ($prefixe ? $prefixe.'_' : ''); |
|
| 232 | 232 | $table = ($table) ? "/$table/" : ''; |
| 233 | - $casier = ($casier) ? rtrim((string) $casier, '/') . '/' : ''; // slash final, sinon rien |
|
| 233 | + $casier = ($casier) ? rtrim((string) $casier, '/').'/' : ''; // slash final, sinon rien |
|
| 234 | 234 | |
| 235 | 235 | foreach ($store as $k => $v) { |
| 236 | 236 | ecrire_config("$stockage$table$prefixe$casier$k", $v); |
| 237 | 237 | if (_request('var_mode') == 'configurer' && autoriser('webmestre')) { |
| 238 | - $trace .= "<br />table $table : " . $prefixe . $k . " = $v;"; |
|
| 238 | + $trace .= "<br />table $table : ".$prefixe.$k." = $v;"; |
|
| 239 | 239 | } |
| 240 | 240 | } |
| 241 | 241 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | [$table, $casier, $prefixe, $stockage] = cvtconf_definir_configurer_conteneur($form, $valeurs); |
| 253 | 253 | |
| 254 | 254 | $table = ($table) ? "/$table/" : ''; |
| 255 | - $prefixe = ($prefixe ? $prefixe . '_' : ''); |
|
| 255 | + $prefixe = ($prefixe ? $prefixe.'_' : ''); |
|
| 256 | 256 | if ($casier) { |
| 257 | 257 | $meta = lire_config("$stockage$table$prefixe$casier"); |
| 258 | 258 | $prefixe = ''; |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | |
| 264 | 264 | foreach (array_keys($valeurs) as $k) { |
| 265 | 265 | if (!str_starts_with($k, '_')) { |
| 266 | - $valeurs[$k] = ($meta[$prefixe . $k] ?? null); |
|
| 266 | + $valeurs[$k] = ($meta[$prefixe.$k] ?? null); |
|
| 267 | 267 | } |
| 268 | 268 | } |
| 269 | 269 | } |