@@ -43,10 +43,10 @@ discard block |
||
| 43 | 43 | * @return void |
| 44 | 44 | **/ |
| 45 | 45 | function install_fichier_connexion($nom, $texte) { |
| 46 | - $texte = "<" . "?php\n" |
|
| 46 | + $texte = "<"."?php\n" |
|
| 47 | 47 | . "if (!defined(\"_ECRIRE_INC_VERSION\")) return;\n" |
| 48 | 48 | . $texte |
| 49 | - . "?" . ">"; |
|
| 49 | + . "?".">"; |
|
| 50 | 50 | |
| 51 | 51 | ecrire_fichier($nom, $texte); |
| 52 | 52 | } |
@@ -113,10 +113,10 @@ discard block |
||
| 113 | 113 | return $regs; |
| 114 | 114 | } else { |
| 115 | 115 | $ar = '\s*\'([^\']*)\''; |
| 116 | - $r = '\s*,' . $ar; |
|
| 116 | + $r = '\s*,'.$ar; |
|
| 117 | 117 | $r = "#spip_connect_db[(]$ar$r$r$r$r(?:$r(?:$r(?:$r(?:$r)?)?)?)?#"; |
| 118 | 118 | if (preg_match($r, $s, $regs)) { |
| 119 | - $regs[2] = $regs[1] . (!$regs[2] ? '' : ":" . $regs[2] . ";"); |
|
| 119 | + $regs[2] = $regs[1].(!$regs[2] ? '' : ":".$regs[2].";"); |
|
| 120 | 120 | array_shift($regs); |
| 121 | 121 | array_shift($regs); |
| 122 | 122 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | // Si on n'a pas la bonne version de PHP, c'est la fin |
| 175 | 175 | if ($err) { |
| 176 | 176 | die("<div class='error'>" |
| 177 | - . "<h3>" . _T('avis_attention') . '</h3><p>' . _T('install_echec_annonce') . "</p><ul class='spip'>" |
|
| 177 | + . "<h3>"._T('avis_attention').'</h3><p>'._T('install_echec_annonce')."</p><ul class='spip'>" |
|
| 178 | 178 | . "<li><strong>{$err[0]}</strong></li>\n</ul></div>"); |
| 179 | 179 | } |
| 180 | 180 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | if ($err) { |
| 203 | 203 | echo "<div class='error'>" |
| 204 | - . "<h3>" . _T('avis_attention') . '</h3><p>' . _T('install_echec_annonce') . "</p><ul class='spip'>"; |
|
| 204 | + . "<h3>"._T('avis_attention').'</h3><p>'._T('install_echec_annonce')."</p><ul class='spip'>"; |
|
| 205 | 205 | foreach ($err as $e) { |
| 206 | 206 | echo "<li><strong>$e</strong></li>\n"; |
| 207 | 207 | } |
@@ -235,8 +235,8 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | // http://code.spip.net/@info_etape |
| 237 | 237 | function info_etape($titre, $complement = '') { |
| 238 | - return "<h2>" . $titre . "</h2>\n" . |
|
| 239 | - ($complement ? "" . $complement . "\n" : ''); |
|
| 238 | + return "<h2>".$titre."</h2>\n". |
|
| 239 | + ($complement ? "".$complement."\n" : ''); |
|
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
@@ -250,18 +250,18 @@ discard block |
||
| 250 | 250 | $code = _T('bouton_suivant'); |
| 251 | 251 | } |
| 252 | 252 | static $suivant = 0; |
| 253 | - $id = 'suivant' . (($suivant > 0) ? strval($suivant) : ''); |
|
| 253 | + $id = 'suivant'.(($suivant > 0) ? strval($suivant) : ''); |
|
| 254 | 254 | $suivant += 1; |
| 255 | 255 | |
| 256 | - return "\n<p class='boutons suivant'><input id='" . $id . "' type='submit'\nvalue=\"" . |
|
| 257 | - $code . |
|
| 256 | + return "\n<p class='boutons suivant'><input id='".$id."' type='submit'\nvalue=\"". |
|
| 257 | + $code. |
|
| 258 | 258 | " >>\" /></p>\n"; |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | // http://code.spip.net/@info_progression_etape |
| 262 | 262 | function info_progression_etape($en_cours, $phase, $dir, $erreur = false) { |
| 263 | 263 | //$en_cours = _request('etape')?_request('etape'):""; |
| 264 | - $liste = find_all_in_path($dir, $phase . '(([0-9])+|fin)[.]php$'); |
|
| 264 | + $liste = find_all_in_path($dir, $phase.'(([0-9])+|fin)[.]php$'); |
|
| 265 | 265 | $debut = 1; |
| 266 | 266 | $etat = "ok"; |
| 267 | 267 | $last = count($liste); |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | |
| 301 | 301 | $aff_etapes .= "<li class='$class'><div class='fond'>"; |
| 302 | 302 | $aff_etapes .= ($debut == $en_cours) ? "<strong>" : ''; |
| 303 | - $aff_etapes .= "<em>" . _T('etape') . " </em><span class='numero_etape'>$debut</span><em> : </em>"; |
|
| 303 | + $aff_etapes .= "<em>"._T('etape')." </em><span class='numero_etape'>$debut</span><em> : </em>"; |
|
| 304 | 304 | $aff_etapes .= $intitule_etat["$phase"][$debut]; |
| 305 | 305 | $aff_etapes .= ($debut == $en_cours) ? "</strong>" : ''; |
| 306 | 306 | $aff_etapes .= "</div></li>"; |
@@ -316,11 +316,11 @@ discard block |
||
| 316 | 316 | |
| 317 | 317 | // http://code.spip.net/@fieldset |
| 318 | 318 | function fieldset($legend, $champs = array(), $apres = '', $avant = '') { |
| 319 | - return "<fieldset>\n" . |
|
| 320 | - $avant . |
|
| 321 | - ($legend ? "<legend>" . $legend . "</legend>\n" : '') . |
|
| 322 | - fieldset_champs($champs) . |
|
| 323 | - $apres . |
|
| 319 | + return "<fieldset>\n". |
|
| 320 | + $avant. |
|
| 321 | + ($legend ? "<legend>".$legend."</legend>\n" : ''). |
|
| 322 | + fieldset_champs($champs). |
|
| 323 | + $apres. |
|
| 324 | 324 | "</fieldset>\n"; |
| 325 | 325 | } |
| 326 | 326 | |
@@ -330,18 +330,18 @@ discard block |
||
| 330 | 330 | $type = isset($contenu['hidden']) ? 'hidden' : (preg_match(',^pass,', $nom) ? 'password' : 'text'); |
| 331 | 331 | $class = isset($contenu['hidden']) ? '' : "class='formo' size='40' "; |
| 332 | 332 | if (isset($contenu['alternatives'])) { |
| 333 | - $fieldset .= $contenu['label'] . "\n"; |
|
| 333 | + $fieldset .= $contenu['label']."\n"; |
|
| 334 | 334 | foreach ($contenu['alternatives'] as $valeur => $label) { |
| 335 | - $fieldset .= "<input type='radio' name='" . $nom . |
|
| 335 | + $fieldset .= "<input type='radio' name='".$nom. |
|
| 336 | 336 | "' id='$nom-$valeur' value='$valeur'" |
| 337 | 337 | . (($valeur == $contenu['valeur']) ? "\nchecked='checked'" : '') |
| 338 | 338 | . "/>\n"; |
| 339 | - $fieldset .= "<label for='$nom-$valeur'>" . $label . "</label>\n"; |
|
| 339 | + $fieldset .= "<label for='$nom-$valeur'>".$label."</label>\n"; |
|
| 340 | 340 | } |
| 341 | 341 | $fieldset .= "<br />\n"; |
| 342 | 342 | } else { |
| 343 | - $fieldset .= "<label for='" . $nom . "'>" . $contenu['label'] . "</label>\n"; |
|
| 344 | - $fieldset .= "<input " . $class . "type='" . $type . "' id='" . $nom . "' name='" . $nom . "'\nvalue='" . $contenu['valeur'] . "'" |
|
| 343 | + $fieldset .= "<label for='".$nom."'>".$contenu['label']."</label>\n"; |
|
| 344 | + $fieldset .= "<input ".$class."type='".$type."' id='".$nom."' name='".$nom."'\nvalue='".$contenu['valeur']."'" |
|
| 345 | 345 | . (preg_match(',^(pass|login),', $nom) ? " autocomplete='off'" : '') |
| 346 | 346 | . ((isset($contenu['required']) and $contenu['required']) ? " required='required'" : "") |
| 347 | 347 | . " />\n"; |
@@ -353,24 +353,24 @@ discard block |
||
| 353 | 353 | |
| 354 | 354 | function install_select_serveur() { |
| 355 | 355 | $options = array(); |
| 356 | - $dir = _DIR_RESTREINT . 'req/'; |
|
| 356 | + $dir = _DIR_RESTREINT.'req/'; |
|
| 357 | 357 | $d = opendir($dir); |
| 358 | 358 | if (!$d) { |
| 359 | 359 | return array(); |
| 360 | 360 | } |
| 361 | 361 | while (($f = readdir($d)) !== false) { |
| 362 | 362 | if ((preg_match('/^(.*)[.]php$/', $f, $s)) |
| 363 | - and is_readable($f = $dir . $f) |
|
| 363 | + and is_readable($f = $dir.$f) |
|
| 364 | 364 | ) { |
| 365 | 365 | require_once($f); |
| 366 | 366 | $s = $s[1]; |
| 367 | - $v = 'spip_versions_' . $s; |
|
| 367 | + $v = 'spip_versions_'.$s; |
|
| 368 | 368 | if (function_exists($v) and $v()) { |
| 369 | 369 | $titre = _T("install_select_type_$s"); |
| 370 | 370 | // proposer mysql par defaut si dispo |
| 371 | 371 | $checked = ($s == 'mysql' ? " checked='checked'" : ""); |
| 372 | 372 | $options[$s] = "<li><input type='radio' id='$s' value='$s' name='server_db'$checked>" |
| 373 | - . "<label for='$s'>" . ($titre ? $titre : $s) . "</label></li>"; |
|
| 373 | + . "<label for='$s'>".($titre ? $titre : $s)."</label></li>"; |
|
| 374 | 374 | } else { |
| 375 | 375 | spip_log("$s: portage indisponible"); |
| 376 | 376 | } |
@@ -389,8 +389,8 @@ discard block |
||
| 389 | 389 | "\n<input type='hidden' name='etape' value='$etape' />" |
| 390 | 390 | . $hidden |
| 391 | 391 | . (_request('echec') ? |
| 392 | - ("<p><b>" . _T('avis_connexion_echec_1') . |
|
| 393 | - "</b></p><p>" . _T('avis_connexion_echec_2') . "</p><p style='font-size: small;'>" . _T('avis_connexion_echec_3') . "</p>") |
|
| 392 | + ("<p><b>"._T('avis_connexion_echec_1'). |
|
| 393 | + "</b></p><p>"._T('avis_connexion_echec_2')."</p><p style='font-size: small;'>"._T('avis_connexion_echec_3')."</p>") |
|
| 394 | 394 | : "") |
| 395 | 395 | |
| 396 | 396 | . ($jquery ? http_script('', 'jquery.js') : '') |
@@ -418,9 +418,9 @@ discard block |
||
| 418 | 418 | });') |
| 419 | 419 | |
| 420 | 420 | . ($server_db |
| 421 | - ? '<input type="hidden" name="server_db" value="' . $server_db . '" />' |
|
| 421 | + ? '<input type="hidden" name="server_db" value="'.$server_db.'" />' |
|
| 422 | 422 | . (($predef[0]) |
| 423 | - ? ('<h3>' . _T('install_serveur_hebergeur') . '</h3>') |
|
| 423 | + ? ('<h3>'._T('install_serveur_hebergeur').'</h3>') |
|
| 424 | 424 | : '') |
| 425 | 425 | : ('<fieldset><legend>' |
| 426 | 426 | . _T('install_select_type_db') |
@@ -435,9 +435,9 @@ discard block |
||
| 435 | 435 | . "\n</ul>\n</div></fieldset>") |
| 436 | 436 | ) |
| 437 | 437 | . '<div id="install_adresse_base_hebergeur">' |
| 438 | - . '<p>' . _T('texte_connexion_mysql') . '</p>' |
|
| 438 | + . '<p>'._T('texte_connexion_mysql').'</p>' |
|
| 439 | 439 | . ($predef[1] |
| 440 | - ? '<h3>' . _T('install_adresse_base_hebergeur') . '</h3>' |
|
| 440 | + ? '<h3>'._T('install_adresse_base_hebergeur').'</h3>' |
|
| 441 | 441 | : fieldset(_T('entree_base_donnee_1'), |
| 442 | 442 | array( |
| 443 | 443 | 'adresse_db' => array( |
@@ -451,7 +451,7 @@ discard block |
||
| 451 | 451 | |
| 452 | 452 | . '<div id="install_login_base_hebergeur">' |
| 453 | 453 | . ($predef[2] |
| 454 | - ? '<h3>' . _T('install_login_base_hebergeur') . '</h3>' |
|
| 454 | + ? '<h3>'._T('install_login_base_hebergeur').'</h3>' |
|
| 455 | 455 | : fieldset(_T('entree_login_connexion_1'), |
| 456 | 456 | array( |
| 457 | 457 | 'login_db' => array( |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | |
| 466 | 466 | . '<div id="install_pass_base_hebergeur">' |
| 467 | 467 | . ($predef[3] |
| 468 | - ? '<h3>' . _T('install_pass_base_hebergeur') . '</h3>' |
|
| 468 | + ? '<h3>'._T('install_pass_base_hebergeur').'</h3>' |
|
| 469 | 469 | : fieldset(_T('entree_mot_passe_1'), |
| 470 | 470 | array( |
| 471 | 471 | 'pass_db' => array( |
@@ -488,20 +488,20 @@ discard block |
||
| 488 | 488 | function predef_ou_cache($adresse_db, $login_db, $pass_db, $server_db) { |
| 489 | 489 | return ((defined('_INSTALL_HOST_DB')) |
| 490 | 490 | ? '' |
| 491 | - : "\n<input type='hidden' name='adresse_db' value=\"" . spip_htmlspecialchars($adresse_db) . "\" />" |
|
| 491 | + : "\n<input type='hidden' name='adresse_db' value=\"".spip_htmlspecialchars($adresse_db)."\" />" |
|
| 492 | 492 | ) |
| 493 | 493 | . ((defined('_INSTALL_USER_DB')) |
| 494 | 494 | ? '' |
| 495 | - : "\n<input type='hidden' name='login_db' value=\"" . spip_htmlspecialchars($login_db) . "\" />" |
|
| 495 | + : "\n<input type='hidden' name='login_db' value=\"".spip_htmlspecialchars($login_db)."\" />" |
|
| 496 | 496 | ) |
| 497 | 497 | . ((defined('_INSTALL_PASS_DB')) |
| 498 | 498 | ? '' |
| 499 | - : "\n<input type='hidden' name='pass_db' value=\"" . spip_htmlspecialchars($pass_db) . "\" />" |
|
| 499 | + : "\n<input type='hidden' name='pass_db' value=\"".spip_htmlspecialchars($pass_db)."\" />" |
|
| 500 | 500 | ) |
| 501 | 501 | |
| 502 | 502 | . ((defined('_INSTALL_SERVER_DB')) |
| 503 | 503 | ? '' |
| 504 | - : "\n<input type='hidden' name='server_db' value=\"" . spip_htmlspecialchars($server_db) . "\" />" |
|
| 504 | + : "\n<input type='hidden' name='server_db' value=\"".spip_htmlspecialchars($server_db)."\" />" |
|
| 505 | 505 | ); |
| 506 | 506 | } |
| 507 | 507 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $_id_table = id_table_objet($objet); |
| 37 | 37 | |
| 38 | 38 | // recuperer le logo |
| 39 | - $chercher_logo = charger_fonction('chercher_logo','inc'); |
|
| 39 | + $chercher_logo = charger_fonction('chercher_logo', 'inc'); |
|
| 40 | 40 | include_spip('action/editer_logo'); |
| 41 | 41 | foreach (array('on', 'off') as $etat) { |
| 42 | 42 | $logo = $chercher_logo($id_trad, $_id_table, $etat); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | // dupliquer certains champs |
| 49 | - $trouver_table = charger_fonction('trouver_table','base'); |
|
| 49 | + $trouver_table = charger_fonction('trouver_table', 'base'); |
|
| 50 | 50 | $desc = $trouver_table(table_objet_sql($objet)); |
| 51 | 51 | $champs = $set = array(); |
| 52 | 52 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | if ($champs) { |
| 59 | - $set = sql_fetsel($champs, $desc['table'], $_id_table . '=' . intval($id_trad)); |
|
| 59 | + $set = sql_fetsel($champs, $desc['table'], $_id_table.'='.intval($id_trad)); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /* |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $class = " blocreplie"; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - return "<div " . ($id ? "id='$id' " : "") . "class='bloc_depliable$class'>"; |
|
| 58 | + return "<div ".($id ? "id='$id' " : "")."class='bloc_depliable$class'>"; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | // http://code.spip.net/@fin_block |
@@ -68,12 +68,12 @@ discard block |
||
| 68 | 68 | // $ids : id des div lies au bouton (facultatif, par defaut c'est le div.bloc_depliable qui suit) |
| 69 | 69 | // http://code.spip.net/@bouton_block_depliable |
| 70 | 70 | function bouton_block_depliable($texte, $deplie, $ids = "") { |
| 71 | - $bouton_id = 'b' . substr(md5($texte . microtime()), 0, 8); |
|
| 71 | + $bouton_id = 'b'.substr(md5($texte.microtime()), 0, 8); |
|
| 72 | 72 | |
| 73 | 73 | $class = ($deplie === true) ? " deplie" : (($deplie == -1) ? " impliable" : " replie"); |
| 74 | 74 | if (strlen($ids)) { |
| 75 | 75 | $cible = explode(',', $ids); |
| 76 | - $cible = '#' . implode(",#", $cible); |
|
| 76 | + $cible = '#'.implode(",#", $cible); |
|
| 77 | 77 | } else { |
| 78 | 78 | $cible = "#$bouton_id + div.bloc_depliable"; |
| 79 | 79 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | return; |
| 29 | 29 | } |
| 30 | 30 | if ($opt) { |
| 31 | - $phrase .= ' :: ' . str_replace("\n", ' ', join(', ', $opt)); |
|
| 31 | + $phrase .= ' :: '.str_replace("\n", ' ', join(', ', $opt)); |
|
| 32 | 32 | } |
| 33 | 33 | spip_log($phrase, 'journal'); |
| 34 | 34 | } |
@@ -211,9 +211,9 @@ discard block |
||
| 211 | 211 | */ |
| 212 | 212 | function nettoyer_url_page($url, $contexte = array()) { |
| 213 | 213 | $url_objets = urls_liste_objets(); |
| 214 | - $raccourci_url_page_html = ',^(?:[^?]*/)?(' . $url_objets . ')([0-9]+)(?:\.html)?([?&].*)?$,'; |
|
| 215 | - $raccourci_url_page_id = ',^(?:[^?]*/)?(' . $url_objets . ')\.php3?[?]id_\1=([0-9]+)([?&].*)?$,'; |
|
| 216 | - $raccourci_url_page_spip = ',^(?:[^?]*/)?(?:spip[.]php)?[?](' . $url_objets . ')([0-9]+)=?(&.*)?$,'; |
|
| 214 | + $raccourci_url_page_html = ',^(?:[^?]*/)?('.$url_objets.')([0-9]+)(?:\.html)?([?&].*)?$,'; |
|
| 215 | + $raccourci_url_page_id = ',^(?:[^?]*/)?('.$url_objets.')\.php3?[?]id_\1=([0-9]+)([?&].*)?$,'; |
|
| 216 | + $raccourci_url_page_spip = ',^(?:[^?]*/)?(?:spip[.]php)?[?]('.$url_objets.')([0-9]+)=?(&.*)?$,'; |
|
| 217 | 217 | |
| 218 | 218 | if (preg_match($raccourci_url_page_html, $url, $regs) |
| 219 | 219 | or preg_match($raccourci_url_page_id, $url, $regs) |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | function generer_url_ecrire_objet($objet, $id, $args = '', $ancre = '', $public = null, $connect = '') { |
| 250 | 250 | static $furls = array(); |
| 251 | 251 | if (!isset($furls[$objet])) { |
| 252 | - if (function_exists($f = 'generer_url_ecrire_' . $objet) |
|
| 252 | + if (function_exists($f = 'generer_url_ecrire_'.$objet) |
|
| 253 | 253 | // ou definie par un plugin |
| 254 | 254 | or $f = charger_fonction($f, 'urls', true) |
| 255 | 255 | ) { |
@@ -269,10 +269,10 @@ discard block |
||
| 269 | 269 | if ($public or $connect) { |
| 270 | 270 | return generer_url_entite_absolue($id, $objet, $args, $ancre, $connect); |
| 271 | 271 | } |
| 272 | - $a = id_table_objet($objet) . "=" . intval($id); |
|
| 272 | + $a = id_table_objet($objet)."=".intval($id); |
|
| 273 | 273 | if (!function_exists('objet_info')) { |
| 274 | 274 | include_spip('inc/filtres'); |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | - return generer_url_ecrire(objet_info($objet, 'url_voir'), $a . ($args ? "&$args" : '')) . ($ancre ? "#$ancre" : ''); |
|
| 277 | + return generer_url_ecrire(objet_info($objet, 'url_voir'), $a.($args ? "&$args" : '')).($ancre ? "#$ancre" : ''); |
|
| 278 | 278 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - if (find_in_path($charset . '.php', 'charsets/', true)) { |
|
| 76 | + if (find_in_path($charset.'.php', 'charsets/', true)) { |
|
| 77 | 77 | return $charset; |
| 78 | 78 | } else { |
| 79 | 79 | spip_log("Erreur: pas de fichier de conversion 'charsets/$charset'"); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | static $pcre_ok = 0; |
| 160 | 160 | |
| 161 | 161 | if (!$pcre_ok) { |
| 162 | - $s = " " . chr(195) . chr(169) . "t" . chr(195) . chr(169) . " "; |
|
| 162 | + $s = " ".chr(195).chr(169)."t".chr(195).chr(169)." "; |
|
| 163 | 163 | if (preg_match(',\W...\W,u', $s)) { |
| 164 | 164 | $pcre_ok = 1; |
| 165 | 165 | } else { |
@@ -260,38 +260,38 @@ discard block |
||
| 260 | 260 | |
| 261 | 261 | if (!isset($trans[$charset][$charset_cible])) { |
| 262 | 262 | $trans[$charset][$charset_cible] = array( |
| 263 | - $p . chr(128) => "€", |
|
| 264 | - $p . chr(129) => ' ', # pas affecte |
|
| 265 | - $p . chr(130) => "‚", |
|
| 266 | - $p . chr(131) => "ƒ", |
|
| 267 | - $p . chr(132) => "„", |
|
| 268 | - $p . chr(133) => "…", |
|
| 269 | - $p . chr(134) => "†", |
|
| 270 | - $p . chr(135) => "‡", |
|
| 271 | - $p . chr(136) => "ˆ", |
|
| 272 | - $p . chr(137) => "‰", |
|
| 273 | - $p . chr(138) => "Š", |
|
| 274 | - $p . chr(139) => "‹", |
|
| 275 | - $p . chr(140) => "Œ", |
|
| 276 | - $p . chr(141) => ' ', # pas affecte |
|
| 277 | - $p . chr(142) => "Ž", |
|
| 278 | - $p . chr(143) => ' ', # pas affecte |
|
| 279 | - $p . chr(144) => ' ', # pas affecte |
|
| 280 | - $p . chr(145) => "‘", |
|
| 281 | - $p . chr(146) => "’", |
|
| 282 | - $p . chr(147) => "“", |
|
| 283 | - $p . chr(148) => "”", |
|
| 284 | - $p . chr(149) => "•", |
|
| 285 | - $p . chr(150) => "–", |
|
| 286 | - $p . chr(151) => "—", |
|
| 287 | - $p . chr(152) => "˜", |
|
| 288 | - $p . chr(153) => "™", |
|
| 289 | - $p . chr(154) => "š", |
|
| 290 | - $p . chr(155) => "›", |
|
| 291 | - $p . chr(156) => "œ", |
|
| 292 | - $p . chr(157) => ' ', # pas affecte |
|
| 293 | - $p . chr(158) => "ž", |
|
| 294 | - $p . chr(159) => "Ÿ", |
|
| 263 | + $p.chr(128) => "€", |
|
| 264 | + $p.chr(129) => ' ', # pas affecte |
|
| 265 | + $p.chr(130) => "‚", |
|
| 266 | + $p.chr(131) => "ƒ", |
|
| 267 | + $p.chr(132) => "„", |
|
| 268 | + $p.chr(133) => "…", |
|
| 269 | + $p.chr(134) => "†", |
|
| 270 | + $p.chr(135) => "‡", |
|
| 271 | + $p.chr(136) => "ˆ", |
|
| 272 | + $p.chr(137) => "‰", |
|
| 273 | + $p.chr(138) => "Š", |
|
| 274 | + $p.chr(139) => "‹", |
|
| 275 | + $p.chr(140) => "Œ", |
|
| 276 | + $p.chr(141) => ' ', # pas affecte |
|
| 277 | + $p.chr(142) => "Ž", |
|
| 278 | + $p.chr(143) => ' ', # pas affecte |
|
| 279 | + $p.chr(144) => ' ', # pas affecte |
|
| 280 | + $p.chr(145) => "‘", |
|
| 281 | + $p.chr(146) => "’", |
|
| 282 | + $p.chr(147) => "“", |
|
| 283 | + $p.chr(148) => "”", |
|
| 284 | + $p.chr(149) => "•", |
|
| 285 | + $p.chr(150) => "–", |
|
| 286 | + $p.chr(151) => "—", |
|
| 287 | + $p.chr(152) => "˜", |
|
| 288 | + $p.chr(153) => "™", |
|
| 289 | + $p.chr(154) => "š", |
|
| 290 | + $p.chr(155) => "›", |
|
| 291 | + $p.chr(156) => "œ", |
|
| 292 | + $p.chr(157) => ' ', # pas affecte |
|
| 293 | + $p.chr(158) => "ž", |
|
| 294 | + $p.chr(159) => "Ÿ", |
|
| 295 | 295 | ); |
| 296 | 296 | if ($charset_cible != 'unicode') { |
| 297 | 297 | foreach ($trans[$charset][$charset_cible] as $k => $c) { |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | and is_array($GLOBALS['CHARSET'][$cset]) |
| 422 | 422 | ) { |
| 423 | 423 | foreach ($GLOBALS['CHARSET'][$cset] as $key => $val) { |
| 424 | - $trans[$charset][chr($key)] = '&#' . $val . ';'; |
|
| 424 | + $trans[$charset][chr($key)] = '&#'.$val.';'; |
|
| 425 | 425 | } |
| 426 | 426 | } |
| 427 | 427 | } |
@@ -488,11 +488,11 @@ discard block |
||
| 488 | 488 | $h = dechex($e); |
| 489 | 489 | if ($s = isset($CHARSET_REVERSE[$charset][$e])) { |
| 490 | 490 | $s = $CHARSET_REVERSE[$charset][$e]; |
| 491 | - $t['&#' . $e . ';'] = $t['�' . $e . ';'] = $t['�' . $e . ';'] = chr($s); |
|
| 492 | - $t['&#x' . $h . ';'] = $t['�' . $h . ';'] = $t['�' . $h . ';'] = chr($s); |
|
| 491 | + $t['&#'.$e.';'] = $t['�'.$e.';'] = $t['�'.$e.';'] = chr($s); |
|
| 492 | + $t['&#x'.$h.';'] = $t['�'.$h.';'] = $t['�'.$h.';'] = chr($s); |
|
| 493 | 493 | } else { |
| 494 | - $t['&#' . $e . ';'] = $t['�' . $e . ';'] = $t['�' . $e . ';'] = chr($e); |
|
| 495 | - $t['&#x' . $h . ';'] = $t['�' . $h . ';'] = $t['�' . $h . ';'] = chr($e); |
|
| 494 | + $t['&#'.$e.';'] = $t['�'.$e.';'] = $t['�'.$e.';'] = chr($e); |
|
| 495 | + $t['&#x'.$h.';'] = $t['�'.$h.';'] = $t['�'.$h.';'] = chr($e); |
|
| 496 | 496 | } |
| 497 | 497 | } |
| 498 | 498 | } |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | and is_array($GLOBALS['CHARSET'][$cset]) |
| 537 | 537 | ) { |
| 538 | 538 | foreach ($GLOBALS['CHARSET'][$cset] as $key => $val) { |
| 539 | - $trans[$charset][chr($key)] = unicode2charset('&#' . $val . ';'); |
|
| 539 | + $trans[$charset][chr($key)] = unicode2charset('&#'.$val.';'); |
|
| 540 | 540 | } |
| 541 | 541 | } |
| 542 | 542 | } |
@@ -643,7 +643,7 @@ discard block |
||
| 643 | 643 | } |
| 644 | 644 | $thisPos++; |
| 645 | 645 | } |
| 646 | - $encodedLetter = "&#" . preg_replace('/^0+/', '', $decimalCode) . ';'; |
|
| 646 | + $encodedLetter = "&#".preg_replace('/^0+/', '', $decimalCode).';'; |
|
| 647 | 647 | $encodedString .= $encodedLetter; |
| 648 | 648 | } |
| 649 | 649 | } |
@@ -686,7 +686,7 @@ discard block |
||
| 686 | 686 | } // ignorer le BOM - http://www.unicode.org/faq/utf_bom.html |
| 687 | 687 | else { |
| 688 | 688 | if ($word != 65279) { |
| 689 | - $texte .= '&#' . $word . ';'; |
|
| 689 | + $texte .= '&#'.$word.';'; |
|
| 690 | 690 | } |
| 691 | 691 | } |
| 692 | 692 | } |
@@ -715,13 +715,13 @@ discard block |
||
| 715 | 715 | return chr($num); |
| 716 | 716 | } |
| 717 | 717 | if ($num < 2048) { |
| 718 | - return chr(($num >> 6) + 192) . chr(($num & 63) + 128); |
|
| 718 | + return chr(($num >> 6) + 192).chr(($num & 63) + 128); |
|
| 719 | 719 | } |
| 720 | 720 | if ($num < 65536) { |
| 721 | - return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128); |
|
| 721 | + return chr(($num >> 12) + 224).chr((($num >> 6) & 63) + 128).chr(($num & 63) + 128); |
|
| 722 | 722 | } |
| 723 | 723 | if ($num < 1114112) { |
| 724 | - return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128); |
|
| 724 | + return chr(($num >> 18) + 240).chr((($num >> 12) & 63) + 128).chr((($num >> 6) & 63) + 128).chr(($num & 63) + 128); |
|
| 725 | 725 | } |
| 726 | 726 | |
| 727 | 727 | return ''; |
@@ -777,7 +777,7 @@ discard block |
||
| 777 | 777 | while (preg_match(',�*([0-9]+);,S', $texte, $regs) and !isset($vu[$regs[1]])) { |
| 778 | 778 | $num = $regs[1]; |
| 779 | 779 | $vu[$num] = true; |
| 780 | - $s = '\u' . sprintf("%04x", $num); |
|
| 780 | + $s = '\u'.sprintf("%04x", $num); |
|
| 781 | 781 | $texte = str_replace($regs[0], $s, $texte); |
| 782 | 782 | } |
| 783 | 783 | |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | **/ |
| 795 | 795 | function javascript_to_unicode($texte) { |
| 796 | 796 | while (preg_match(",%u([0-9A-F][0-9A-F][0-9A-F][0-9A-F]),", $texte, $regs)) { |
| 797 | - $texte = str_replace($regs[0], "&#" . hexdec($regs[1]) . ";", $texte); |
|
| 797 | + $texte = str_replace($regs[0], "&#".hexdec($regs[1]).";", $texte); |
|
| 798 | 798 | } |
| 799 | 799 | |
| 800 | 800 | return $texte; |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | return $texte; |
| 840 | 840 | } |
| 841 | 841 | |
| 842 | - $table_translit = 'translit' . $complexe; |
|
| 842 | + $table_translit = 'translit'.$complexe; |
|
| 843 | 843 | |
| 844 | 844 | // 2. Translitterer grace a la table predefinie |
| 845 | 845 | if (!$trans[$complexe]) { |
@@ -926,7 +926,7 @@ discard block |
||
| 926 | 926 | * true s'il a un BOM |
| 927 | 927 | **/ |
| 928 | 928 | function bom_utf8($texte) { |
| 929 | - return (substr($texte, 0, 3) == chr(0xEF) . chr(0xBB) . chr(0xBF)); |
|
| 929 | + return (substr($texte, 0, 3) == chr(0xEF).chr(0xBB).chr(0xBF)); |
|
| 930 | 930 | } |
| 931 | 931 | |
| 932 | 932 | /** |
@@ -1121,7 +1121,7 @@ discard block |
||
| 1121 | 1121 | // on prend n fois la longueur desiree, pour etre surs d'avoir tout |
| 1122 | 1122 | // (un caractere utf-8 prenant au maximum n bytes) |
| 1123 | 1123 | $n = 0; |
| 1124 | - while (preg_match(',[\x80-\xBF]{' . (++$n) . '},', $c)) { |
|
| 1124 | + while (preg_match(',[\x80-\xBF]{'.(++$n).'},', $c)) { |
|
| 1125 | 1125 | ; |
| 1126 | 1126 | } |
| 1127 | 1127 | $c = substr($c, 0, $n * $length); |
@@ -1155,7 +1155,7 @@ discard block |
||
| 1155 | 1155 | |
| 1156 | 1156 | $lettre1 = mb_strtoupper(spip_substr($c, 0, 1)); |
| 1157 | 1157 | |
| 1158 | - return $lettre1 . spip_substr($c, 1); |
|
| 1158 | + return $lettre1.spip_substr($c, 1); |
|
| 1159 | 1159 | } |
| 1160 | 1160 | |
| 1161 | 1161 | /** |
@@ -135,10 +135,10 @@ discard block |
||
| 135 | 135 | $titre = "<h3>$titre</h3>"; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - return '<div class="' . $class . ($id ? "\" id=\"$id" : '') . '">' |
|
| 138 | + return '<div class="'.$class.($id ? "\" id=\"$id" : '').'">' |
|
| 139 | 139 | . '<b class="top"><b class="tl"></b><b class="tr"></b></b>' |
| 140 | 140 | . '<div class="inner">' |
| 141 | - . ($titre ? '<div class="clearfix ' . $head_class . '">' . $titre . '<!--/hd--></div>' : '') |
|
| 141 | + . ($titre ? '<div class="clearfix '.$head_class.'">'.$titre.'<!--/hd--></div>' : '') |
|
| 142 | 142 | . '<div class="clearfix bd">'; |
| 143 | 143 | } |
| 144 | 144 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $class = "ft $class"; |
| 160 | 160 | |
| 161 | 161 | return '</div>' |
| 162 | - . '<div class="cleafix ' . $class . '">'; |
|
| 162 | + . '<div class="cleafix '.$class.'">'; |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | // si demande de traduction |
| 65 | 65 | // on recupere les valeurs de la traduction |
| 66 | 66 | if ($lier_trad) { |
| 67 | - if ($select = charger_fonction("precharger_traduction_" . $type, 'inc', true)) { |
|
| 67 | + if ($select = charger_fonction("precharger_traduction_".$type, 'inc', true)) { |
|
| 68 | 68 | $row = $select($id_objet, $id_rubrique, $lier_trad); |
| 69 | 69 | } else { |
| 70 | 70 | $row = precharger_traduction_objet($type, $id_objet, $id_rubrique, $lier_trad, $champ_titre); |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | // recuperer le secteur, pour affecter les bons champs extras |
| 103 | 103 | if ($id_rubrique and $is_secteur) { |
| 104 | 104 | if (!$row['id_secteur']) { |
| 105 | - $row_rub = sql_getfetsel("id_secteur", "spip_rubriques", "id_rubrique=" . sql_quote($id_rubrique)); |
|
| 105 | + $row_rub = sql_getfetsel("id_secteur", "spip_rubriques", "id_rubrique=".sql_quote($id_rubrique)); |
|
| 106 | 106 | $row['id_secteur'] = $row_rub; |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $row = sql_fetsel("*", $table, "$_id_objet=$lier_trad"); |
| 137 | 137 | if ($row) { |
| 138 | 138 | include_spip('inc/filtres'); |
| 139 | - $row[$champ_titre] = filtrer_entites(objet_T($type, 'info_nouvelle_traduction')) . ' ' . $row[$champ_titre]; |
|
| 139 | + $row[$champ_titre] = filtrer_entites(objet_T($type, 'info_nouvelle_traduction')).' '.$row[$champ_titre]; |
|
| 140 | 140 | } else { |
| 141 | 141 | $row = array(); |
| 142 | 142 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | $row_rub = sql_fetsel("id_rubrique", "spip_rubriques", |
| 180 | - "lang='" . $GLOBALS['spip_lang'] . "' AND id_parent=$id_parent"); |
|
| 180 | + "lang='".$GLOBALS['spip_lang']."' AND id_parent=$id_parent"); |
|
| 181 | 181 | if ($row_rub) { |
| 182 | 182 | $row['id_rubrique'] = $row_rub['id_rubrique']; |
| 183 | 183 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $res['message_ok'] = _T('info_modification_enregistree'); |
| 101 | 101 | if ($retour) { |
| 102 | 102 | if (strncmp($retour, 'javascript:', 11) == 0) { |
| 103 | - $res['message_ok'] .= '<script type="text/javascript">/*<![CDATA[*/' . substr($retour, 11) . '/*]]>*/</script>'; |
|
| 103 | + $res['message_ok'] .= '<script type="text/javascript">/*<![CDATA[*/'.substr($retour, 11).'/*]]>*/</script>'; |
|
| 104 | 104 | $res['editable'] = true; |
| 105 | 105 | } else { |
| 106 | 106 | $res['redirect'] = parametre_url($retour, $id_table_objet, $id); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | if (!isset($erreurs[$champ])) { |
| 141 | 141 | $erreurs[$champ] = ''; |
| 142 | 142 | } |
| 143 | - $erreurs[$champ] .= _T('alerte_modif_info_concourante') . "<br /><textarea readonly='readonly' class='forml'>" . $conflit['base'] . '</textarea>'; |
|
| 143 | + $erreurs[$champ] .= _T('alerte_modif_info_concourante')."<br /><textarea readonly='readonly' class='forml'>".$conflit['base'].'</textarea>'; |
|
| 144 | 144 | } |
| 145 | 145 | } |
| 146 | 146 | } |
@@ -214,10 +214,10 @@ discard block |
||
| 214 | 214 | // Appel direct dans un squelette |
| 215 | 215 | if (!$row) { |
| 216 | 216 | if (!$new or $lier_trad) { |
| 217 | - if ($select = charger_fonction('precharger_' . $type, 'inc', true)) { |
|
| 217 | + if ($select = charger_fonction('precharger_'.$type, 'inc', true)) { |
|
| 218 | 218 | $row = $select($id, $id_parent, $lier_trad); |
| 219 | 219 | } else { |
| 220 | - $row = sql_fetsel('*', $table_objet_sql, $id_table_objet . '=' . intval($id)); |
|
| 220 | + $row = sql_fetsel('*', $table_objet_sql, $id_table_objet.'='.intval($id)); |
|
| 221 | 221 | } |
| 222 | 222 | if (!$new) { |
| 223 | 223 | $md5 = controles_md5($row); |
@@ -287,13 +287,12 @@ discard block |
||
| 287 | 287 | unset($contexte['lang']); |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | - $contexte['_hidden'] = "<input type='hidden' name='editer_$type' value='oui' />\n" . |
|
| 291 | - (!$lier_trad ? '' : |
|
| 292 | - ("\n<input type='hidden' name='lier_trad' value='" . |
|
| 293 | - $lier_trad . |
|
| 294 | - "' />" . |
|
| 295 | - "\n<input type='hidden' name='changer_lang' value='" . |
|
| 296 | - $config['langue'] . |
|
| 290 | + $contexte['_hidden'] = "<input type='hidden' name='editer_$type' value='oui' />\n". |
|
| 291 | + (!$lier_trad ? '' : ("\n<input type='hidden' name='lier_trad' value='". |
|
| 292 | + $lier_trad. |
|
| 293 | + "' />". |
|
| 294 | + "\n<input type='hidden' name='changer_lang' value='". |
|
| 295 | + $config['langue']. |
|
| 297 | 296 | "' />")) |
| 298 | 297 | . $hidden |
| 299 | 298 | . (isset($md5) ? $md5 : ''); |
@@ -320,14 +319,14 @@ discard block |
||
| 320 | 319 | $aider = charger_fonction('aider', 'inc'); |
| 321 | 320 | if (strlen($texte) > 28 * 1024) { |
| 322 | 321 | $texte = str_replace("\r\n", "\n", $texte); |
| 323 | - $pos = strpos($texte, "\n\n", 28 * 1024); // coupe para > 28 ko |
|
| 322 | + $pos = strpos($texte, "\n\n", 28 * 1024); // coupe para > 28 ko |
|
| 324 | 323 | if ($pos > 0 and $pos < 32 * 1024) { |
| 325 | - $debut = substr($texte, 0, $pos) . "\n\n<!--SPIP-->\n"; |
|
| 324 | + $debut = substr($texte, 0, $pos)."\n\n<!--SPIP-->\n"; |
|
| 326 | 325 | $suite = substr($texte, $pos + 2); |
| 327 | 326 | } else { |
| 328 | - $pos = strpos($texte, ' ', 28 * 1024); // sinon coupe espace |
|
| 327 | + $pos = strpos($texte, ' ', 28 * 1024); // sinon coupe espace |
|
| 329 | 328 | if (!($pos > 0 and $pos < 32 * 1024)) { |
| 330 | - $pos = 28 * 1024; // au pire (pas d'espace trouv'e) |
|
| 329 | + $pos = 28 * 1024; // au pire (pas d'espace trouv'e) |
|
| 331 | 330 | $decalage = 0; // si y'a pas d'espace, il ne faut pas perdre le caract`ere |
| 332 | 331 | } else { |
| 333 | 332 | $decalage = 1; |
@@ -357,13 +356,13 @@ discard block |
||
| 357 | 356 | } |
| 358 | 357 | |
| 359 | 358 | include_spip('inc/barre'); |
| 360 | - $textes_supplement = "<br /><span style='color: red'>" . _T('info_texte_long') . "</span>\n"; |
|
| 359 | + $textes_supplement = "<br /><span style='color: red'>"._T('info_texte_long')."</span>\n"; |
|
| 361 | 360 | $nombre = 0; |
| 362 | 361 | |
| 363 | 362 | while (strlen($texte) > 29 * 1024) { |
| 364 | 363 | $nombre++; |
| 365 | 364 | list($texte1, $texte) = coupe_trop_long($texte); |
| 366 | - $textes_supplement .= '<br />' . |
|
| 365 | + $textes_supplement .= '<br />'. |
|
| 367 | 366 | "<textarea id='texte$nombre' name='texte_plus[$nombre]'$att_text>$texte1</textarea>\n"; |
| 368 | 367 | } |
| 369 | 368 | |
@@ -451,7 +450,7 @@ discard block |
||
| 451 | 450 | $ctr = array(); |
| 452 | 451 | foreach ($data as $key => $val) { |
| 453 | 452 | $m = md5($val); |
| 454 | - $k = $prefixe . $key; |
|
| 453 | + $k = $prefixe.$key; |
|
| 455 | 454 | |
| 456 | 455 | switch ($format) { |
| 457 | 456 | case 'html': |
@@ -464,7 +463,7 @@ discard block |
||
| 464 | 463 | } |
| 465 | 464 | |
| 466 | 465 | if ($format == 'html') { |
| 467 | - return "\n\n<!-- controles md5 -->\n" . join("\n", $ctr) . "\n\n"; |
|
| 466 | + return "\n\n<!-- controles md5 -->\n".join("\n", $ctr)."\n\n"; |
|
| 468 | 467 | } else { |
| 469 | 468 | return $ctr; |
| 470 | 469 | } |
@@ -615,7 +614,7 @@ discard block |
||
| 615 | 614 | // On elimine les donnees non modifiees par le formulaire (mais |
| 616 | 615 | // potentiellement modifiees entre temps par un autre utilisateur) |
| 617 | 616 | foreach ($champs as $key => $val) { |
| 618 | - if (isset($ctr[$prefix . $key]) and $m = $ctr[$prefix . $key]) { |
|
| 617 | + if (isset($ctr[$prefix.$key]) and $m = $ctr[$prefix.$key]) { |
|
| 619 | 618 | if (is_scalar($val) and $m == md5($val)) { |
| 620 | 619 | unset($champs[$key]); |
| 621 | 620 | } |
@@ -644,7 +643,7 @@ discard block |
||
| 644 | 643 | // de conflit. |
| 645 | 644 | $ctrh = $ctrq = $conflits = array(); |
| 646 | 645 | foreach (array_keys($champs) as $key) { |
| 647 | - if (isset($ctr[$prefix . $key]) and $m = $ctr[$prefix . $key]) { |
|
| 646 | + if (isset($ctr[$prefix.$key]) and $m = $ctr[$prefix.$key]) { |
|
| 648 | 647 | $ctrh[$key] = $m; |
| 649 | 648 | $ctrq[] = $key; |
| 650 | 649 | } |
@@ -677,9 +676,9 @@ discard block |
||
| 677 | 676 | */ |
| 678 | 677 | function display_conflit_champ($x) { |
| 679 | 678 | if (strstr($x, "\n") or strlen($x) > 80) { |
| 680 | - return "<textarea style='width:99%; height:10em;'>" . entites_html($x) . "</textarea>\n"; |
|
| 679 | + return "<textarea style='width:99%; height:10em;'>".entites_html($x)."</textarea>\n"; |
|
| 681 | 680 | } else { |
| 682 | - return "<input type='text' size='40' style='width:99%' value=\"" . entites_html($x) . "\" />\n"; |
|
| 681 | + return "<input type='text' size='40' style='width:99%' value=\"".entites_html($x)."\" />\n"; |
|
| 683 | 682 | } |
| 684 | 683 | } |
| 685 | 684 | |
@@ -719,11 +718,11 @@ discard block |
||
| 719 | 718 | ) : $champ; |
| 720 | 719 | |
| 721 | 720 | $diffs[] = "<h2>$titre</h2>\n" |
| 722 | - . '<h3>' . _T('info_conflit_edition_differences') . "</h3>\n" |
|
| 723 | - . "<div style='max-height:8em; overflow: auto; width:99%;'>" . $d . "</div>\n" |
|
| 724 | - . '<h4>' . _T('info_conflit_edition_votre_version') . '</h4>' |
|
| 721 | + . '<h3>'._T('info_conflit_edition_differences')."</h3>\n" |
|
| 722 | + . "<div style='max-height:8em; overflow: auto; width:99%;'>".$d."</div>\n" |
|
| 723 | + . '<h4>'._T('info_conflit_edition_votre_version').'</h4>' |
|
| 725 | 724 | . display_conflit_champ($a['post']) |
| 726 | - . '<h4>' . _T('info_conflit_edition_version_enregistree') . '</h4>' |
|
| 725 | + . '<h4>'._T('info_conflit_edition_version_enregistree').'</h4>' |
|
| 727 | 726 | . display_conflit_champ($base); |
| 728 | 727 | } |
| 729 | 728 | |
@@ -731,16 +730,16 @@ discard block |
||
| 731 | 730 | $id = uniqid(rand()); |
| 732 | 731 | $redirect = "<form action='$redirect' method='get' |
| 733 | 732 | id='$id' |
| 734 | - style='float:" . $GLOBALS['spip_lang_right'] . "; margin-top:2em;'>\n" |
|
| 733 | + style='float:".$GLOBALS['spip_lang_right']."; margin-top:2em;'>\n" |
|
| 735 | 734 | . form_hidden($redirect) |
| 736 | - . "<input type='submit' value='" . _T('icone_retour') . "' /> |
|
| 735 | + . "<input type='submit' value='"._T('icone_retour')."' /> |
|
| 737 | 736 | </form>\n"; |
| 738 | 737 | |
| 739 | 738 | // pour les documents, on est probablement en ajax : il faut ajaxer |
| 740 | 739 | if (_AJAX) { |
| 741 | 740 | $redirect .= '<script type="text/javascript">' |
| 742 | - . 'setTimeout(function(){$("#' . $id . '") |
|
| 743 | - .ajaxForm({target:$("#' . $id . '").parent()}); |
|
| 741 | + . 'setTimeout(function(){$("#'.$id.'") |
|
| 742 | + .ajaxForm({target:$("#' . $id.'").parent()}); |
|
| 744 | 743 | }, 200);' |
| 745 | 744 | . "</script>\n"; |
| 746 | 745 | } |
@@ -759,9 +758,9 @@ discard block |
||
| 759 | 758 | .diff-para-deplace .diff-supprime { background: #ffb8b8; border: 1px solid #808080; } |
| 760 | 759 | .diff-para-deplace .diff-deplace { background: #b8b8ff; border: 1px solid #808080; } |
| 761 | 760 | </style>' |
| 762 | - . '<p>' . _T('info_conflit_edition_avis_non_sauvegarde') . '</p>' |
|
| 763 | - . '<p>' . _T('texte_conflit_edition_correction') . '</p>' |
|
| 764 | - . "<div style='text-align:" . $GLOBALS['spip_lang_left'] . ";'>" |
|
| 761 | + . '<p>'._T('info_conflit_edition_avis_non_sauvegarde').'</p>' |
|
| 762 | + . '<p>'._T('texte_conflit_edition_correction').'</p>' |
|
| 763 | + . "<div style='text-align:".$GLOBALS['spip_lang_left'].";'>" |
|
| 765 | 764 | . join("\n", $diffs) |
| 766 | 765 | . "</div>\n" |
| 767 | 766 | |