@@ -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) { |
@@ -45,8 +45,8 @@ |
||
| 45 | 45 | |
| 46 | 46 | echo debut_grand_cadre(true); |
| 47 | 47 | echo boite_ouvrir(_T('info_message_technique'), 'notice'); |
| 48 | - echo '<p>' . _T('info_procedure_maj_version') . '</p>', |
|
| 49 | - '<p>' . _T('info_administrateur_site_01') . '</p>'; |
|
| 48 | + echo '<p>'._T('info_procedure_maj_version').'</p>', |
|
| 49 | + '<p>'._T('info_administrateur_site_01').'</p>'; |
|
| 50 | 50 | echo bouton_action(_T('bouton_mettre_a_jour_base'), generer_url_ecrire('upgrade', 'reinstall=non')); |
| 51 | 51 | echo boite_fermer(); |
| 52 | 52 | // masquer les erreurs sql sur cette page car proviennent de la base pas a jour ! |
@@ -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'); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | echo pipeline('affiche_droite', ['args' => ['exec' => '404', 'exec_erreur' => $exec], 'data' => '']); |
| 43 | 43 | |
| 44 | 44 | echo debut_droite('404', true); |
| 45 | - echo "<h1 class='grostitre'>" . _T('fichier_introuvable', ['fichier' => $exec]) . '</h1>'; |
|
| 45 | + echo "<h1 class='grostitre'>"._T('fichier_introuvable', ['fichier' => $exec]).'</h1>'; |
|
| 46 | 46 | echo pipeline('affiche_milieu', ['args' => ['exec' => '404', 'exec_erreur' => $exec], 'data' => '']); |
| 47 | 47 | |
| 48 | 48 | echo fin_gauche(), fin_page(); |
@@ -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'); |
@@ -144,11 +144,11 @@ discard block |
||
| 144 | 144 | if ($quoi !== 'actifs') { |
| 145 | 145 | $lpf = liste_plugin_files(); |
| 146 | 146 | if ($lpf) { |
| 147 | - echo '<p>' . _T('texte_presente_plugin') . '</p>'; |
|
| 147 | + echo '<p>'._T('texte_presente_plugin').'</p>'; |
|
| 148 | 148 | } else { |
| 149 | 149 | if (!@is_dir(_DIR_PLUGINS)) { |
| 150 | - echo '<p>' . _T('plugin_info_automatique_ftp', ['rep' => joli_repertoire(_DIR_PLUGINS)]) |
|
| 151 | - . ' — ' . _T('plugin_info_automatique_creer') . '</p>'; |
|
| 150 | + echo '<p>'._T('plugin_info_automatique_ftp', ['rep' => joli_repertoire(_DIR_PLUGINS)]) |
|
| 151 | + . ' — '._T('plugin_info_automatique_creer').'</p>'; |
|
| 152 | 152 | } |
| 153 | 153 | } |
| 154 | 154 | $lcpaffiche = $lpf; |
@@ -169,10 +169,10 @@ discard block |
||
| 169 | 169 | if (defined('_DIR_PLUGINS_SUPPL')) { |
| 170 | 170 | $nb += count($lcpas); |
| 171 | 171 | } |
| 172 | - echo '<h3>' . sinon( |
|
| 172 | + echo '<h3>'.sinon( |
|
| 173 | 173 | singulier_ou_pluriel($nb, 'plugins_actif_un', 'plugins_actifs', 'count'), |
| 174 | 174 | _T('plugins_actif_aucun') |
| 175 | - ) . '</h3>'; |
|
| 175 | + ).'</h3>'; |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | if (empty($format)) { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | if ($corps) { |
| 191 | 191 | $corps .= "\n<div class='boutons' style='display:none;'>" |
| 192 | - . "<input type='submit' class='submit save' value='" . _T('bouton_enregistrer') |
|
| 192 | + . "<input type='submit' class='submit save' value='"._T('bouton_enregistrer') |
|
| 193 | 193 | . "' />" |
| 194 | 194 | . '</div>'; |
| 195 | 195 | } |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | . debut_cadre_trait_couleur('', true, '', _T('plugins_liste_dist'), 'liste_plugins_dist') |
| 264 | 264 | . '<p>' |
| 265 | 265 | . _T('plugin_info_plugins_dist_1', ['plugins_dist' => joli_repertoire(_DIR_PLUGINS_DIST)]) |
| 266 | - . '<br />' . _T('plugin_info_plugins_dist_2') |
|
| 266 | + . '<br />'._T('plugin_info_plugins_dist_2') |
|
| 267 | 267 | . '</p>' |
| 268 | 268 | . $liste |
| 269 | 269 | . fin_cadre_trait_couleur(true) |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | $res = debut_cadre_enfonce('', true, '', _T('plugin_librairies_installees')); |
| 287 | 287 | $res .= '<dl>'; |
| 288 | 288 | foreach ($libs as $lib => $rep) { |
| 289 | - $res .= "<dt>$lib</dt><dd>" . joli_repertoire($rep) . "</dd>\n"; |
|
| 289 | + $res .= "<dt>$lib</dt><dd>".joli_repertoire($rep)."</dd>\n"; |
|
| 290 | 290 | } |
| 291 | 291 | $res .= '</dl>'; |
| 292 | 292 | $res .= fin_cadre_enfonce(true); |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | $libs = []; |
| 306 | 306 | foreach (array_reverse(creer_chemin()) as $d) { |
| 307 | 307 | if ( |
| 308 | - is_dir($dir = $d . 'lib/') |
|
| 308 | + is_dir($dir = $d.'lib/') |
|
| 309 | 309 | and $t = opendir($dir) |
| 310 | 310 | ) { |
| 311 | 311 | while (($f = readdir($t)) !== false) { |
@@ -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); |