@@ -25,10 +25,10 @@ discard block |
||
| 25 | 25 | if (defined('_DECLARER_CHOIX_DB')) { |
| 26 | 26 | $nom_connect = _DECLARER_CHOIX_DB; |
| 27 | 27 | $n = ''; |
| 28 | - while (in_array($nom_connect . $n, $deja)) { |
|
| 28 | + while (in_array($nom_connect.$n, $deja)) { |
|
| 29 | 29 | $n = ($n ? $n + 1 : 1); |
| 30 | 30 | } |
| 31 | - $nom_connect = $nom_connect . $n; |
|
| 31 | + $nom_connect = $nom_connect.$n; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $valeurs = [ |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | function liste_serveurs() { |
| 57 | 57 | $options = []; |
| 58 | - $dir = _DIR_RESTREINT . 'req/'; |
|
| 58 | + $dir = _DIR_RESTREINT.'req/'; |
|
| 59 | 59 | $d = opendir($dir); |
| 60 | 60 | if (!$d) { |
| 61 | 61 | return []; |
@@ -63,11 +63,11 @@ discard block |
||
| 63 | 63 | while ($f = readdir($d)) { |
| 64 | 64 | if ( |
| 65 | 65 | (preg_match('/^(.*)[.]php$/', $f, $s)) |
| 66 | - and is_readable($f = $dir . $f) |
|
| 66 | + and is_readable($f = $dir.$f) |
|
| 67 | 67 | ) { |
| 68 | 68 | require_once($f); |
| 69 | 69 | $s = $s[1]; |
| 70 | - $v = 'spip_versions_' . $s; |
|
| 70 | + $v = 'spip_versions_'.$s; |
|
| 71 | 71 | if (function_exists($v) and $v()) { |
| 72 | 72 | $options[$s] = "install_select_type_$s"; |
| 73 | 73 | } else { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | $link = spip_connect_db($adresse_db, '', $login_db, $pass_db, '@test@', $serveur_db); |
| 143 | 143 | if ($link) { |
| 144 | - $GLOBALS['connexions'][$serveur_db][$GLOBALS['spip_sql_version']] = $GLOBALS['spip_' . $serveur_db . '_functions_' . $GLOBALS['spip_sql_version']]; |
|
| 144 | + $GLOBALS['connexions'][$serveur_db][$GLOBALS['spip_sql_version']] = $GLOBALS['spip_'.$serveur_db.'_functions_'.$GLOBALS['spip_sql_version']]; |
|
| 145 | 145 | $GLOBALS['connexions'][$serveur_db] = $link; |
| 146 | 146 | define('_DECLARER_SERVEUR_DB', $serveur_db); |
| 147 | 147 | define('_DECLARER_ADRESSE_DB', $adresse_db); |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $f = preg_replace(',[^\w],', '', $nom_connect); |
| 192 | 192 | if ($f !== $nom_connect) { |
| 193 | 193 | $erreurs['nom_connect'] = _T('erreur_nom_connect_incorrect'); |
| 194 | - } elseif (file_exists(_DIR_CONNECT . $nom_connect . '.php')) { |
|
| 194 | + } elseif (file_exists(_DIR_CONNECT.$nom_connect.'.php')) { |
|
| 195 | 195 | $erreurs['nom_connect'] = _T('erreur_connect_deja_existant'); |
| 196 | 196 | } else { |
| 197 | 197 | define('_DECLARER_NOM_CONNECT', $nom_connect); |
@@ -225,9 +225,9 @@ discard block |
||
| 225 | 225 | '' |
| 226 | 226 | ); |
| 227 | 227 | |
| 228 | - install_fichier_connexion(_DIR_CONNECT . _DECLARER_NOM_CONNECT . '.php', $conn); |
|
| 228 | + install_fichier_connexion(_DIR_CONNECT._DECLARER_NOM_CONNECT.'.php', $conn); |
|
| 229 | 229 | |
| 230 | 230 | return [ |
| 231 | - 'message_ok' => _T('install_connect_ok', ['connect' => '<strong>' . _DECLARER_NOM_CONNECT . '</strong>']) |
|
| 231 | + 'message_ok' => _T('install_connect_ok', ['connect' => '<strong>'._DECLARER_NOM_CONNECT.'</strong>']) |
|
| 232 | 232 | ]; |
| 233 | 233 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | // un checkbox seul de name X non coche n'est pas poste. |
| 41 | 41 | // on verifie le champ X_check qui indique que la checkbox etait presente dans le formulaire. |
| 42 | 42 | foreach (['multi_secteurs'] as $m) { |
| 43 | - if (!is_null(_request($m . '_check'))) { |
|
| 43 | + if (!is_null(_request($m.'_check'))) { |
|
| 44 | 44 | ecrire_meta($m, _request($m) ? 'oui' : 'non'); |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -113,12 +113,12 @@ discard block |
||
| 113 | 113 | . "'>" |
| 114 | 114 | . "<input type='hidden' name='{$name}[]' value='$code_langue'>" // necessaire ... |
| 115 | 115 | . "<input type='checkbox' name='{$name}[]' id='{$name}_$code_langue' value='$code_langue' checked='checked' disabled='disabled' />" |
| 116 | - . "<label for='{$name}_$code_langue'>" . $nom_langue . " <span class='code_langue'>[$code_langue]</span></label>" |
|
| 116 | + . "<label for='{$name}_$code_langue'>".$nom_langue." <span class='code_langue'>[$code_langue]</span></label>" |
|
| 117 | 117 | . '</li>'; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if ($res) { |
| 121 | - $res = "<ul id='langues_bloquees'>" . $res . "</ul><div class='nettoyeur'></div>"; |
|
| 121 | + $res = "<ul id='langues_bloquees'>".$res."</ul><div class='nettoyeur'></div>"; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | $res .= "<ul id='langues_proposees'>"; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | . "<label for='{$name}_$code_langue'" |
| 139 | 139 | . ($checked ? " class='on'" : '') |
| 140 | 140 | . '>' |
| 141 | - . $nom_langue . " <span class='code_langue'>[$code_langue]</span></label>" |
|
| 141 | + . $nom_langue." <span class='code_langue'>[$code_langue]</span></label>" |
|
| 142 | 142 | . '</li>'; |
| 143 | 143 | } |
| 144 | 144 | } |
@@ -62,5 +62,5 @@ |
||
| 62 | 62 | $reload = texte_script(couper(_request('nom_site'), 35)); |
| 63 | 63 | $reload = "<script type='text/javascript'>if (window.jQuery) jQuery('#bando_identite .nom_site_spip .nom').html('$reload');</script>"; |
| 64 | 64 | |
| 65 | - return ['message_ok' => _T('config_info_enregistree') . $reload, 'editable' => true]; |
|
| 65 | + return ['message_ok' => _T('config_info_enregistree').$reload, 'editable' => true]; |
|
| 66 | 66 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $id_parent = $valeurs['id_parent']; |
| 61 | 61 | } |
| 62 | 62 | if ($id_parent) { |
| 63 | - $langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique=' . intval($id_parent)); |
|
| 63 | + $langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique='.intval($id_parent)); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if (!$langue_parent) { |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | $valeurs['_traduire'] = ''; |
| 84 | 84 | if (isset($valeurs['id_trad'])) { |
| 85 | 85 | $valeurs['_traduire'] = ($traduire ? ' ' : ''); |
| 86 | - $valeurs['_vue_traductions'] = 'prive/objets/liste/' . (trouver_fond( |
|
| 87 | - $f = table_objet($objet) . '-trad', |
|
| 86 | + $valeurs['_vue_traductions'] = 'prive/objets/liste/'.(trouver_fond( |
|
| 87 | + $f = table_objet($objet).'-trad', |
|
| 88 | 88 | 'prive/objets/liste' |
| 89 | 89 | ) ? $f : 'objets-trad'); |
| 90 | 90 | // pour afficher la liste des trad sur la base de l'id_trad en base |
@@ -130,12 +130,12 @@ discard block |
||
| 130 | 130 | sql_getfetsel( |
| 131 | 131 | 'id_trad', |
| 132 | 132 | $table_objet_sql, |
| 133 | - "$_id_table_objet=" . intval($id_objet) |
|
| 133 | + "$_id_table_objet=".intval($id_objet) |
|
| 134 | 134 | ) |
| 135 | 135 | ) { |
| 136 | 136 | // ne devrait jamais arriver sauf concurence de saisie |
| 137 | 137 | $erreurs['id_trad'] = _L('Une traduction est deja referencee'); |
| 138 | - } elseif (!sql_getfetsel($_id_table_objet, $table_objet_sql, "$_id_table_objet=" . intval($id_trad))) { |
|
| 138 | + } elseif (!sql_getfetsel($_id_table_objet, $table_objet_sql, "$_id_table_objet=".intval($id_trad))) { |
|
| 139 | 139 | $erreurs['id_trad'] = _L('Indiquez un contenu existant'); |
| 140 | 140 | } |
| 141 | 141 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | ) { |
| 176 | 176 | $table_objet_sql = table_objet_sql($objet); |
| 177 | 177 | $_id_table_objet = id_table_objet($objet); |
| 178 | - if ($id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$_id_table_objet=" . intval($id_objet))) { |
|
| 178 | + if ($id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$_id_table_objet=".intval($id_objet))) { |
|
| 179 | 179 | $referencer_traduction = charger_fonction('referencer_traduction', 'action'); |
| 180 | 180 | $referencer_traduction($objet, $id_trad, $new_id_trad); |
| 181 | 181 | } |
@@ -46,6 +46,6 @@ |
||
| 46 | 46 | 'recherche' => _request('recherche'), |
| 47 | 47 | 'lang' => $lang, |
| 48 | 48 | 'class' => $class, |
| 49 | - '_id_champ' => 'rechercher_' . substr(md5($action . $class), 0, 4), |
|
| 49 | + '_id_champ' => 'rechercher_'.substr(md5($action.$class), 0, 4), |
|
| 50 | 50 | ]; |
| 51 | 51 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $res = ['editable' => true]; |
| 28 | 28 | |
| 29 | 29 | if ($i = _request('preview') and is_array($i)) { |
| 30 | - $i = ',' . implode(',', $i) . ','; |
|
| 30 | + $i = ','.implode(',', $i).','; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | ecrire_meta('preview', $i); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | return false; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - $row = sql_fetsel('id_article,virtuel', 'spip_articles', 'id_article=' . intval($id_article)); |
|
| 24 | + $row = sql_fetsel('id_article,virtuel', 'spip_articles', 'id_article='.intval($id_article)); |
|
| 25 | 25 | if (!$row['id_article']) { |
| 26 | 26 | return false; |
| 27 | 27 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | function formulaires_rediriger_article_verifier_dist($id_article, $retour = '') { |
| 50 | 50 | $erreurs = []; |
| 51 | 51 | |
| 52 | - if (($redirection = _request('redirection')) == $id_article || $redirection == 'art' . $id_article) { |
|
| 52 | + if (($redirection = _request('redirection')) == $id_article || $redirection == 'art'.$id_article) { |
|
| 53 | 53 | $erreurs['redirection'] = _T('info_redirection_boucle'); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $js = _AJAX ? '<script type="text/javascript">if (window.ajaxReload) ajaxReload("wysiwyg");</script>' : ''; |
| 70 | 70 | |
| 71 | 71 | return [ |
| 72 | - 'message_ok' => ($url ? _T('info_redirection_activee') : _T('info_redirection_desactivee')) . $js, |
|
| 72 | + 'message_ok' => ($url ? _T('info_redirection_activee') : _T('info_redirection_desactivee')).$js, |
|
| 73 | 73 | 'editable' => true |
| 74 | 74 | ]; |
| 75 | 75 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | $cherche2 = [ |
| 72 | 72 | '/([^-\n]|^)--([^-]|$)/S', |
| 73 | - ',(' . _PROTOCOLES_STD . ')~((://[^"\'\s\[\]\}\)<>]+)~([?]))?,S', |
|
| 73 | + ',('._PROTOCOLES_STD.')~((://[^"\'\s\[\]\}\)<>]+)~([?]))?,S', |
|
| 74 | 74 | '/~/' |
| 75 | 75 | ]; |
| 76 | 76 | $remplace2 = [ |
@@ -177,14 +177,14 @@ discard block |
||
| 177 | 177 | // sache qu'il peut enlever ce where si il enleve la jointure |
| 178 | 178 | $boucle->where["JOIN-L$n"] = |
| 179 | 179 | $echap ? |
| 180 | - ["'='","'$obj'","sql_quote('$type')"] |
|
| 180 | + ["'='", "'$obj'", "sql_quote('$type')"] |
|
| 181 | 181 | : |
| 182 | - ['=',"$obj",sql_quote($type)]; |
|
| 182 | + ['=', "$obj", sql_quote($type)]; |
|
| 183 | 183 | $boucle->join["L$n"] = |
| 184 | 184 | $echap ? |
| 185 | 185 | ["'$id_table'", "'$j2'", "'$j1'", "'$obj='.sql_quote('$type')"] |
| 186 | 186 | : |
| 187 | - [$id_table, $j2, $j1, "$obj=" . sql_quote($type)]; |
|
| 187 | + [$id_table, $j2, $j1, "$obj=".sql_quote($type)]; |
|
| 188 | 188 | } else { |
| 189 | 189 | $boucle->join["L$n"] = $echap ? ["'$id_table'", "'$j'"] : [$id_table, $j]; |
| 190 | 190 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | $groups = liste_champs_jointures($nom, $desc, true); |
| 219 | 219 | if (!$pk) { |
| 220 | 220 | foreach ($groups as $id_prim) { |
| 221 | - $id_field = $nom . '.' . $id_prim; |
|
| 221 | + $id_field = $nom.'.'.$id_prim; |
|
| 222 | 222 | if (!in_array($id_field, $boucle->group)) { |
| 223 | 223 | $boucle->group[] = $id_field; |
| 224 | 224 | } |