Skip to content
Extraits de code Groupes Projets
Valider f4ec306a rédigé par esj's avatar esj
Parcourir les fichiers

remplacement de la BALISE style utilisee pour les pages d'installation et assimilees par une balise Link sur une feuille de style. Petites differences graphiques par endroits, mais on ne voit presque jamais ces pages et il est justement plus facile de les changer a present
parent cd3bac9d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -105,6 +105,7 @@ function deplacer_fichier_upload($source, $dest) { ...@@ -105,6 +105,7 @@ function deplacer_fichier_upload($source, $dest) {
// et true si erreur = pas de fichier // et true si erreur = pas de fichier
// pour les autres erreurs affiche le message d'erreur et meurt // pour les autres erreurs affiche le message d'erreur et meurt
function check_upload_error($error, $msg='') { function check_upload_error($error, $msg='') {
global $spip_lang_right;
switch ($error) { switch ($error) {
case 0: case 0:
return false; return false;
...@@ -129,10 +130,16 @@ function check_upload_error($error, $msg='') { ...@@ -129,10 +130,16 @@ function check_upload_error($error, $msg='') {
spip_log ("erreur upload $error"); spip_log ("erreur upload $error");
include_ecrire('inc_presentation.php3'); include_ecrire('inc_presentation.php3');
install_debut_html(_T('forum_titre_erreur')); install_debut_html($msg);
echo "<p>$msg</p>\n"; echo '<form action="' ,
_DIR_RESTREINT_ABS,
install_fin_html(_DIR_RESTREINT_ABS . $GLOBALS['redirect']); urldecode($GLOBALS['redirect']),
'"><div align="',
$spip_lang_right,
'"><input type="submit" class="fondl" value="',
_T('ecrire:bouton_suivant'),
' >>"></div>',
'</form></body></html>';
exit; exit;
} }
......
...@@ -24,6 +24,7 @@ utiliser_langue_visiteur(); ...@@ -24,6 +24,7 @@ utiliser_langue_visiteur();
function debut_entete($title, $entete='') { function debut_entete($title, $entete='') {
global $flag_preserver; global $flag_preserver;
if (headers_sent()) return;
if (!$charset = lire_meta('charset')) if (!$charset = lire_meta('charset'))
$charset = 'utf-8'; $charset = 'utf-8';
if (!$entete) if (!$entete)
...@@ -3412,55 +3413,31 @@ function mySel($varaut,$variable, $option = NULL) { ...@@ -3412,55 +3413,31 @@ function mySel($varaut,$variable, $option = NULL) {
// //
function install_debut_html($titre = 'AUTO') { function install_debut_html($titre = 'AUTO') {
global $spip_lang_rtl; global $attributes_body, $browser_verifForm;
if ($titre=='AUTO') if ($titre=='AUTO')
$titre=_T('info_installation_systeme_publication'); $titre=_T('info_installation_systeme_publication');
echo debut_entete($titre), echo debut_entete($titre),
"<style type='text/css'> '<link rel="stylesheet" type="text/css" href="' .
<!-- _DIR_RESTREINT .
a {text-decoration: none; } 'spip_style.php3?couleur_claire=' .
A:Hover {color:#FF9900; text-decoration: underline;} urlencode('#FFCC66') .
.forml {width: 100%; background-color: #FFCC66; background-position: center bottom; float: none; color: #000000} '&amp;couleur_foncee=' .
.formo {width: 100%; background-color: #FFF0E0; background-position: center bottom; weight: bold; float: none; color: #000000} urlencode('#000000') .
.fondl {background-color: #FFCC66; background-position: center bottom; float: none; color: #000000} '&amp;left=' .
.fondo {background-color: #FFF0E0; background-position: center bottom; float: none; color: #000000} $GLOBALS['spip_lang_left'] .
.fondf {background-color: #FFFFFF; border-style: solid ; border-width: 1; border-color: #E86519; color: #E86519} "\" >
.serif { font-family: Georgia, Garamond, Times New Roman, serif; } </head>
--> <body $attributes_body>
</style> <center><table width='450'><tr><th style='color: #970038; text-align: left'><h3>",
</head> $titre,
<body bgcolor='#FFFFFF' text='#000000' link='#E86519' vlink='#6E003A' alink='#FF9900'"; "</h3></th></tr><tr><td class='serif'>";
}
if ($spip_lang_rtl) echo " dir='rtl'";
function install_fin_html() {
echo "><br><br><br>
<center> echo '</td></tr></table></body></html>';
<table width='450'>
<tr><td width='450' class='serif'>
<font face='Verdana,Arial,Sans,sans-serif' size='4' color='#970038'><B>$titre</b></font>\n<p>";
}
function install_fin_html($suite = '') {
// bouton retour
global $spip_lang_right;
if ($suite) {
$link = new Link($suite);
echo $link->getForm();
echo "<DIV align='$spip_lang_right'>"
. "<INPUT TYPE='submit' CLASS='fondl' VALUE='"
. _T('ecrire:bouton_suivant')." >>'></div>"
. "</FORM>";
}
echo '
</td></tr></table>
</center>
</body>
</html>
';
} }
// Voir en ligne, ou apercu, ou rien (renvoie tout le bloc) // Voir en ligne, ou apercu, ou rien (renvoie tout le bloc)
......
...@@ -398,7 +398,7 @@ else if ($etape == 3) { ...@@ -398,7 +398,7 @@ else if ($etape == 3) {
echo "<INPUT NAME=\"choix_db\" VALUE=\"new_spip\" TYPE=Radio id='nou'"; echo "<INPUT NAME=\"choix_db\" VALUE=\"new_spip\" TYPE=Radio id='nou'";
if (!$checked) echo " CHECKED"; if (!$checked) echo " CHECKED";
echo "> <label for='nou'>"._T('info_creer_base')."</label> "; echo "> <label for='nou'>"._T('info_creer_base')."</label> ";
echo "<INPUT TYPE='text' NAME='table_new' CLASS='fondo' VALUE=\"spip\" SIZE='20'></fieldset><P>"; echo "<INPUT TYPE='text' NAME='table_new' CLASS='fondl' VALUE=\"spip\" SIZE='20'></fieldset><P>";
echo "<DIV align='$spip_lang_right'><INPUT TYPE='submit' CLASS='fondl' VALUE='"._T('bouton_suivant')." >>'>"; echo "<DIV align='$spip_lang_right'><INPUT TYPE='submit' CLASS='fondl' VALUE='"._T('bouton_suivant')." >>'>";
......
...@@ -213,24 +213,18 @@ function determiner_cache($delais, &$use_cache, &$chemin_cache) { ...@@ -213,24 +213,18 @@ function determiner_cache($delais, &$use_cache, &$chemin_cache) {
if (@file_exists($chemin_cache)) if (@file_exists($chemin_cache))
$use_cache = 1; // passer outre $use_cache = 1; // passer outre
else { else {
spip_log("Erreur base de donnees & " if (!spip_interdire_cache) {
spip_log("Erreur base de donnees & "
. "impossible utiliser $chemin_cache"); . "impossible utiliser $chemin_cache");
if (!$GLOBALS['flag_preserver']) {
include_ecrire('inc_presentation.php3'); include_ecrire('inc_presentation.php3');
if (!headers_sent()) { install_debut_html(_T('info_travaux_titre'));echo _T('titre_probleme_technique');install_fin_html();
install_debut_html(_T('info_travaux_titre'));
echo _T('titre_probleme_technique');
install_fin_html();
}
else echo _T('titre_probleme_technique');
} }
}
// continuer quand meme, ca n'ira pas loin. // continuer quand meme, ca n'ira pas loin.
// mais ne plus rien signaler, ne pas mettre en cache ... // mais ne plus rien signaler, ne pas mettre en cache ...
$GLOBALS['flag_preserver'] = true; $GLOBALS['flag_preserver'] = true;
define ('spip_interdire_cache', true); define ('spip_interdire_cache', true);
}
} }
// En cas de POST (et si la connexion est ok) supprimer le cache // En cas de POST (et si la connexion est ok) supprimer le cache
......
...@@ -69,43 +69,38 @@ while (list(, $my_dir) = each($test_dirs)) { ...@@ -69,43 +69,38 @@ while (list(, $my_dir) = each($test_dirs)) {
} }
if ($bad_dirs OR $absent_dirs) { if ($bad_dirs OR $absent_dirs) {
install_debut_html();
if (!_FILE_CONNECT) { if (!_FILE_CONNECT) {
$titre = _T('dirs_preliminaire'); $titre = _T('dirs_preliminaire');
$continuer = ' '._T('dirs_commencer'); $continuer = ' '._T('dirs_commencer') . '.';
} else } else
$titre = _T('dirs_probleme_droits'); $titre = _T('dirs_probleme_droits');
$bad_url = "spip_test_dirs.php3"; $bad_url = "spip_test_dirs.php3";
if ($test_dir) $bad_url .= '?test_dir='.$test_dir; if ($test_dir) $bad_url .= '?test_dir='.$test_dir;
echo "<FONT FACE=\"Verdana,Arial,Helvetica,sans-serif\" SIZE=3>$titre</FONT>\n<p>"; $res = "<div align='right'>". menu_langues('var_lang_ecrire')."</div>\n";
echo "<div align='right'>". menu_langues('var_lang_ecrire')."</div>\n";
if ($bad_dirs) { if ($bad_dirs) {
echo "<p>"; $res .=
echo _T('dirs_repertoires_suivants', _T('dirs_repertoires_suivants',
array('bad_dirs' => join(" ", $bad_dirs))); array('bad_dirs' => join(" ", $bad_dirs))) .
echo "<B>". _T('login_recharger')."</b>"; "<b>". _T('login_recharger')."</b>.";
} }
if ($absent_dirs) { if ($absent_dirs) {
echo "<p>"; $res .=
echo _T('dirs_repertoires_absents', _T('dirs_repertoires_absents',
array('bad_dirs' => join(" ", $absent_dirs))); array('bad_dirs' => join(" ", $absent_dirs))) .
echo "<B>". _T('login_recharger')."</b>"; "<b>". _T('login_recharger')."</b>.";
} }
echo $continuer.'. '; $res = "<p>" . $continuer . $res . aide ("install0") . "</p>" .
echo aide ("install0"); "<FORM ACTION='$bad_urls' METHOD='GET'>\n" .
echo "<p>"; "<DIV align='right'><INPUT TYPE='submit' CLASS='fondl' VALUE='".
_T('login_recharger')."'></DIV>" .
echo "<FORM ACTION='$bad_urls' METHOD='GET'>\n"; "</FORM>";
echo "<DIV align='right'><INPUT TYPE='submit' CLASS='fondl' VALUE='". _T('login_recharger')."'></DIV>"; install_debut_html($titre);echo $res; install_fin_html();
echo "</FORM>";
install_fin_html();
} else { } else {
if (!_FILE_CONNECT) if (!_FILE_CONNECT)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter