Skip to content
Extraits de code Groupes Projets
Valider eabfb019 rédigé par JamesRezo's avatar JamesRezo :tada:
Parcourir les fichiers

les echos de inc/minipres.php disparaissent.

parent 10d64701
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 66 ajouts et 64 suppressions
...@@ -105,8 +105,8 @@ $message = ''; ...@@ -105,8 +105,8 @@ $message = '';
// http://doc.spip.org/@action_pass_dist // http://doc.spip.org/@action_pass_dist
function action_pass_dist() function action_pass_dist()
{ {
install_debut_html( _T('pass_mot_oublie')); echo install_debut_html( _T('pass_mot_oublie'));
inclure_balise_dynamique(formulaire_oubli_dyn(_request('p'), _request('oubli'))); inclure_balise_dynamique(formulaire_oubli_dyn(_request('p'), _request('oubli')));
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -120,7 +120,7 @@ function exec_convert_utf8_dist() { ...@@ -120,7 +120,7 @@ function exec_convert_utf8_dist() {
// commencer (ou continuer apres un timeout et reload) // commencer (ou continuer apres un timeout et reload)
install_debut_html($action); echo install_debut_html($action);
echo "<p>" . _T('utf8_convert_timeout') . "<hr />\n"; echo "<p>" . _T('utf8_convert_timeout') . "<hr />\n";
...@@ -208,7 +208,7 @@ function exec_convert_utf8_dist() { ...@@ -208,7 +208,7 @@ function exec_convert_utf8_dist() {
echo "<p align='right'> <a href='" . generer_url_ecrire("config_lang") echo "<p align='right'> <a href='" . generer_url_ecrire("config_lang")
. "'> &gt;&gt; "._T('icone_retour')."</a>"; . "'> &gt;&gt; "._T('icone_retour')."</a>";
install_fin_html(); echo install_fin_html();
} }
......
...@@ -93,7 +93,7 @@ function exec_export_all_dist() ...@@ -93,7 +93,7 @@ function exec_export_all_dist()
$start = ($status_dump[2]==0)&&($status_dump[3]==0); $start = ($status_dump[2]==0)&&($status_dump[3]==0);
} }
install_debut_html(_T('info_sauvegarde')); echo install_debut_html(_T('info_sauvegarde'));
$file = $dir . $archive; $file = $dir . $archive;
$partfile = $file . ".part"; $partfile = $file . ".part";
...@@ -252,7 +252,7 @@ function exec_export_all_dist() ...@@ -252,7 +252,7 @@ function exec_export_all_dist()
echo ("<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"".str_replace("&amp;","&",generer_url_ecrire("export_all","archive=$archive&gz=$gz"))."\";',0);</script>\n"); echo ("<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"".str_replace("&amp;","&",generer_url_ecrire("export_all","archive=$archive&gz=$gz"))."\";',0);</script>\n");
} }
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -28,7 +28,7 @@ function exec_upgrade_dist() { ...@@ -28,7 +28,7 @@ function exec_upgrade_dist() {
@copy(_FILE_CONNECT, _FILE_CONNECT_INS); @copy(_FILE_CONNECT, _FILE_CONNECT_INS);
install_debut_html(_T('titre_page_upgrade')); echo install_debut_html(_T('titre_page_upgrade'));
echo "<p><b>",_T('texte_nouvelle_version_spip_1'),"</b><p> ", echo "<p><b>",_T('texte_nouvelle_version_spip_1'),"</b><p> ",
_T('texte_nouvelle_version_spip_2', _T('texte_nouvelle_version_spip_2',
array('connect' => '<tt>' . _FILE_CONNECT . '</tt>')), array('connect' => '<tt>' . _FILE_CONNECT . '</tt>')),
...@@ -39,7 +39,7 @@ function exec_upgrade_dist() { ...@@ -39,7 +39,7 @@ function exec_upgrade_dist() {
"\" class='fondl'>", "\" class='fondl'>",
"</form>\n"; "</form>\n";
install_fin_html(); echo install_fin_html();
exit; exit;
} }
......
...@@ -36,33 +36,33 @@ function install_debut_html($titre = 'AUTO', $onLoad = '') { ...@@ -36,33 +36,33 @@ function install_debut_html($titre = 'AUTO', $onLoad = '') {
if (!headers_sent()) if (!headers_sent())
header('Content-Type: text/html; charset=utf-8'); header('Content-Type: text/html; charset=utf-8');
echo _DOCTYPE_ECRIRE , return _DOCTYPE_ECRIRE.
html_lang_attributes(), html_lang_attributes().
"<head>\n", "<head>\n".
"<title>", "<title>".
textebrut($titre), textebrut($titre).
"</title> "</title>
<style type='text/css'><!--\n/*<![CDATA[*/\n\n\n", <style type='text/css'><!--\n/*<![CDATA[*/\n\n\n".
"body { background: #FFF; color: #000; }\n", "body { background: #FFF; color: #000; }\n".
"h1 { color: #970038; margin-top: 50px; font-family: Verdana; font-weigth: bold; font-size: 18px }\n", "h1 { color: #970038; margin-top: 50px; font-family: Verdana; font-weigth: bold; font-size: 18px }\n".
"h2 { font-family: Verdana,Arial,Sans,sans-serif; font-weigth: normal; font-size: 100%; }\n", "h2 { font-family: Verdana,Arial,Sans,sans-serif; font-weigth: normal; font-size: 100%; }\n".
"a { color: #E86519; text-decoration: none; }\n", "a { color: #E86519; text-decoration: none; }\n".
"a:visited { color: #6E003A; }\n", "a:visited { color: #6E003A; }\n".
"a:active { color: #FF9900; }\n", "a:active { color: #FF9900; }\n".
"img { border: 0; }\n", "img { border: 0; }\n".
"p { text-align: justify; }\n", "p { text-align: justify; }\n".
"ul { text-align: justify; list-style-type: none; }\n", "ul { text-align: justify; list-style-type: none; }\n".
"fieldset, .fieldset { font-weigth: bold; text-align: justify; border: 1px solid #444; paddind: 10px; margin-top: 1em; }\n", "fieldset, .fieldset { font-weigth: bold; text-align: justify; border: 1px solid #444; paddind: 10px; margin-top: 1em; }\n".
"legend { font-weight: bold; }\n", "legend { font-weight: bold; }\n".
"label {}\n", "label {}\n".
"#minipres { width: 30em; text-align: center; margin-left: auto; margin-right: auto; }\n", "#minipres { width: 30em; text-align: center; margin-left: auto; margin-right: auto; }\n".
".petit-centre { font-family: Verdana,Arial,Sans,sans-serif; font-size: 10px; }\n", ".petit-centre { font-family: Verdana,Arial,Sans,sans-serif; font-size: 10px; }\n".
".petit-centre p { text-align: center; }\n", ".petit-centre p { text-align: center; }\n".
".suivant { text-align: $spip_lang_right; display: block; margin-top: 1em; }\n", ".suivant { text-align: $spip_lang_right; display: block; margin-top: 1em; }\n".
".fondl { padding: 3px; background-color: #eee; border: 1px solid #333; ".fondl { padding: 3px; background-color: #eee; border: 1px solid #333;
background-position: center bottom; background-position: center bottom;
font-size: 0.8em; font-size: 0.8em;
font-family: Verdana,Arial,Sans,sans-serif; }\n", font-family: Verdana,Arial,Sans,sans-serif; }\n".
".formo { width: 100%; display: block; padding: 3px; ".formo { width: 100%; display: block; padding: 3px;
margin-top: 1em; margin-top: 1em;
background-color: #FFF; background-color: #FFF;
...@@ -70,22 +70,22 @@ function install_debut_html($titre = 'AUTO', $onLoad = '') { ...@@ -70,22 +70,22 @@ function install_debut_html($titre = 'AUTO', $onLoad = '') {
background-position: center bottom; background-position: center bottom;
behavior: url(../dist/win_width.htc); behavior: url(../dist/win_width.htc);
font-size: 0.8em; font-size: 0.8em;
font-family: Verdana,Arial,Sans,sans-serif; }\n", font-family: Verdana,Arial,Sans,sans-serif; }\n".
"\n\n]]>\n--></style>\n\n "\n\n]]>\n--></style>\n\n
<script type='text/javascript' src='" <script type='text/javascript' src='"
. _DIR_JAVASCRIPT . "spip_barre.js'></script> . _DIR_JAVASCRIPT . "spip_barre.js'></script>
</head> </head>
<body".$onLoad."> <body".$onLoad.">
<div id='minipres'> <div id='minipres'>
<h1>", <h1>".
$titre , $titre .
"</h1> "</h1>
<div>\n"; <div>\n";
} }
// http://doc.spip.org/@install_fin_html // http://doc.spip.org/@install_fin_html
function install_fin_html() { function install_fin_html() {
echo "\n\t</div>\n\t</div>\n</body>\n</html>"; return "\n\t</div>\n\t</div>\n</body>\n</html>";
} }
// http://doc.spip.org/@info_etape // http://doc.spip.org/@info_etape
...@@ -129,14 +129,14 @@ function bouton_suivant($code = 'suivant') { ...@@ -129,14 +129,14 @@ function bouton_suivant($code = 'suivant') {
function minipres($titre, $corps="", $onload='') function minipres($titre, $corps="", $onload='')
{ {
if (!$titre) if (!$titre)
echo _DOCTYPE_ECRIRE , return _DOCTYPE_ECRIRE.
html_lang_attributes(), html_lang_attributes().
"<body$onload>", "<body$onload>".
$corps, $corps.
'</body></html>'; '</body></html>';
else { else {
install_debut_html($titre, $onload); return install_debut_html($titre, $onload).
echo $corps; $corps.
install_fin_html(); install_fin_html();
} }
exit; exit;
......
...@@ -22,7 +22,7 @@ function install_etape__dist() ...@@ -22,7 +22,7 @@ function install_etape__dist()
include_spip('inc/headers'); include_spip('inc/headers');
redirige_par_entete(generer_url_action('test_dirs')); redirige_par_entete(generer_url_action('test_dirs'));
} else { } else {
install_debut_html(); echo install_debut_html();
echo "<div><img alt='SPIP' src='" . _DIR_IMG_PACK . "logo-spip.gif' /></div>\n", echo "<div><img alt='SPIP' src='" . _DIR_IMG_PACK . "logo-spip.gif' /></div>\n",
"<div class='petit-centre'><p>",info_copyright(),"</p></div>\n", "<div class='petit-centre'><p>",info_copyright(),"</p></div>\n",
"<p>",_T('install_select_langue'),"</p>", "<p>",_T('install_select_langue'),"</p>",
...@@ -31,7 +31,7 @@ function install_etape__dist() ...@@ -31,7 +31,7 @@ function install_etape__dist()
'<input type="hidden" name="action" value="test_dirs" />', '<input type="hidden" name="action" value="test_dirs" />',
bouton_suivant(), bouton_suivant(),
"</form>"; "</form>";
install_fin_html(); echo install_fin_html();
} }
} }
......
...@@ -15,7 +15,7 @@ function install_etape_1_dist() ...@@ -15,7 +15,7 @@ function install_etape_1_dist()
{ {
global $spip_lang_right; global $spip_lang_right;
install_debut_html(); echo install_debut_html();
// stopper en cas de grosse incompatibilite de l'hebergement // stopper en cas de grosse incompatibilite de l'hebergement
tester_compatibilite_hebergement(); tester_compatibilite_hebergement();
...@@ -78,7 +78,7 @@ function install_etape_1_dist() ...@@ -78,7 +78,7 @@ function install_etape_1_dist()
echo bouton_suivant(); echo bouton_suivant();
echo "</form>"; echo "</form>";
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -15,7 +15,7 @@ function install_etape_2_dist() ...@@ -15,7 +15,7 @@ function install_etape_2_dist()
{ {
global $adresse_db, $login_db, $pass_db, $spip_lang_right,$chmod; global $adresse_db, $login_db, $pass_db, $spip_lang_right,$chmod;
install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"'); echo install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
echo info_etape(_T('info_connexion_base')); echo info_etape(_T('info_connexion_base'));
...@@ -43,7 +43,7 @@ function install_etape_2_dist() ...@@ -43,7 +43,7 @@ function install_etape_2_dist()
echo "<p style='font-size: small;'>"._T('avis_connexion_echec_3')."</p>"; echo "<p style='font-size: small;'>"._T('avis_connexion_echec_3')."</p>";
} }
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -15,7 +15,7 @@ function install_etape_3_dist() ...@@ -15,7 +15,7 @@ function install_etape_3_dist()
{ {
global $adresse_db, $login_db, $pass_db, $spip_lang_right, $chmod; global $adresse_db, $login_db, $pass_db, $spip_lang_right, $chmod;
install_debut_html(); echo install_debut_html();
echo info_etape(_T('info_choix_base')." "._T('menu_aide_installation_choix_base').aide ("install2")); echo info_etape(_T('info_choix_base')." "._T('menu_aide_installation_choix_base').aide ("install2"));
...@@ -84,7 +84,7 @@ function install_etape_3_dist() ...@@ -84,7 +84,7 @@ function install_etape_3_dist()
echo bouton_suivant(); echo bouton_suivant();
echo "</form>"; echo "</form>";
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -19,7 +19,7 @@ function install_etape_4_dist() ...@@ -19,7 +19,7 @@ function install_etape_4_dist()
{ {
global $adresse_db, $choix_db, $login_db, $pass_db, $spip_lang_right, $spip_version, $table_new, $chmod; global $adresse_db, $choix_db, $login_db, $pass_db, $spip_lang_right, $spip_version, $table_new, $chmod;
install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"'); echo install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
echo info_etape(_T('info_creation_tables')); echo info_etape(_T('info_creation_tables'));
...@@ -113,7 +113,7 @@ function install_etape_4_dist() ...@@ -113,7 +113,7 @@ function install_etape_4_dist()
echo "<B>"._T('avis_operation_echec')."</B> "._T('texte_operation_echec'); echo "<B>"._T('avis_operation_echec')."</B> "._T('texte_operation_echec');
} }
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -19,7 +19,7 @@ function install_etape_5_dist() ...@@ -19,7 +19,7 @@ function install_etape_5_dist()
{ {
global $email, $ldap_present, $login, $nom, $pass, $spip_lang_right; global $email, $ldap_present, $login, $nom, $pass, $spip_lang_right;
install_debut_html(); echo install_debut_html();
if (@file_exists(_FILE_CONNECT_INS . _FILE_TMP . '.php')) if (@file_exists(_FILE_CONNECT_INS . _FILE_TMP . '.php'))
include(_FILE_CONNECT_INS . _FILE_TMP . '.php'); include(_FILE_CONNECT_INS . _FILE_TMP . '.php');
...@@ -86,7 +86,7 @@ function install_etape_5_dist() ...@@ -86,7 +86,7 @@ function install_etape_5_dist()
echo "</form>\n"; echo "</form>\n";
} }
install_fin_html(); echo install_fin_html();
} }
?> ?>
\ No newline at end of file
...@@ -19,7 +19,7 @@ function install_etape_6_dist() ...@@ -19,7 +19,7 @@ function install_etape_6_dist()
{ {
global $email,$login,$nom,$pass,$spip_lang_right; global $email,$login,$nom,$pass,$spip_lang_right;
install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"'); echo install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
echo info_etape(_T('info_derniere_etape'), echo info_etape(_T('info_derniere_etape'),
"<b>"._T('info_code_acces')."</b></p><p>" . "<b>"._T('info_code_acces')."</b></p><p>" .
...@@ -99,7 +99,7 @@ function install_etape_6_dist() ...@@ -99,7 +99,7 @@ function install_etape_6_dist()
ecrire_metas(); ecrire_metas();
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -27,7 +27,7 @@ function install_etape_ldap1_dist() ...@@ -27,7 +27,7 @@ function install_etape_ldap1_dist()
$port_ldap = $regs[2]; $port_ldap = $regs[2];
} }
} }
install_debut_html(); echo install_debut_html();
echo info_etape(_T('titre_connexion_ldap'), _T('entree_informations_connexion_ldap')); echo info_etape(_T('titre_connexion_ldap'), _T('entree_informations_connexion_ldap'));
...@@ -80,7 +80,7 @@ function install_etape_ldap1_dist() ...@@ -80,7 +80,7 @@ function install_etape_ldap1_dist()
echo bouton_suivant(); echo bouton_suivant();
echo "</form>"; echo "</form>";
install_fin_html(); echo install_fin_html();
} }
?> ?>
\ No newline at end of file
...@@ -16,7 +16,7 @@ function install_etape_ldap2_dist() ...@@ -16,7 +16,7 @@ function install_etape_ldap2_dist()
{ {
global $adresse_ldap, $login_ldap, $pass_ldap, $port_ldap, $tls_ldap, $protocole_ldap, $spip_lang_right; global $adresse_ldap, $login_ldap, $pass_ldap, $port_ldap, $tls_ldap, $protocole_ldap, $spip_lang_right;
install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"'); echo install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
$port_ldap = intval($port_ldap); $port_ldap = intval($port_ldap);
$ldap_link = @ldap_connect($adresse_ldap, $port_ldap); $ldap_link = @ldap_connect($adresse_ldap, $port_ldap);
...@@ -63,7 +63,7 @@ function install_etape_ldap2_dist() ...@@ -63,7 +63,7 @@ function install_etape_ldap2_dist()
); );
} }
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -16,7 +16,7 @@ function install_etape_ldap3_dist() ...@@ -16,7 +16,7 @@ function install_etape_ldap3_dist()
{ {
global $adresse_ldap, $login_ldap, $pass_ldap, $port_ldap, $tls_ldap, $protocole_ldap, $spip_lang_right; global $adresse_ldap, $login_ldap, $pass_ldap, $port_ldap, $tls_ldap, $protocole_ldap, $spip_lang_right;
install_debut_html(); echo install_debut_html();
echo info_etape(_T('info_chemin_acces_1'),_T('info_chemin_acces_2')); echo info_etape(_T('info_chemin_acces_1'),_T('info_chemin_acces_2'));
...@@ -74,7 +74,7 @@ function install_etape_ldap3_dist() ...@@ -74,7 +74,7 @@ function install_etape_ldap3_dist()
echo bouton_suivant(); echo bouton_suivant();
echo "</form>"; echo "</form>";
install_fin_html(); echo install_fin_html();
} }
......
...@@ -15,7 +15,7 @@ function install_etape_ldap4_dist() ...@@ -15,7 +15,7 @@ function install_etape_ldap4_dist()
{ {
global $adresse_ldap, $login_ldap, $pass_ldap, $port_ldap, $tls_ldap, $protocole_ldap, $base_ldap, $base_ldap_text, $spip_lang_right; global $adresse_ldap, $login_ldap, $pass_ldap, $port_ldap, $tls_ldap, $protocole_ldap, $base_ldap, $base_ldap_text, $spip_lang_right;
install_debut_html(); echo install_debut_html();
if (!$base_ldap) $base_ldap = $base_ldap_text; if (!$base_ldap) $base_ldap = $base_ldap_text;
...@@ -75,6 +75,6 @@ function install_etape_ldap4_dist() ...@@ -75,6 +75,6 @@ function install_etape_ldap4_dist()
echo "</form>"; echo "</form>";
} }
install_fin_html(); echo install_fin_html();
} }
?> ?>
...@@ -18,7 +18,7 @@ function install_etape_ldap5_dist() ...@@ -18,7 +18,7 @@ function install_etape_ldap5_dist()
{ {
global $spip_lang_right, $statut_ldap; global $spip_lang_right, $statut_ldap;
install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"'); echo install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
// simuler ecrire_meta/s pour pouvoir sauver le statut // simuler ecrire_meta/s pour pouvoir sauver le statut
// car _FILE_CONNECT est defa a False a ce moment. // car _FILE_CONNECT est defa a False a ce moment.
...@@ -38,6 +38,8 @@ function install_etape_ldap5_dist() ...@@ -38,6 +38,8 @@ function install_etape_ldap5_dist()
echo bouton_suivant(); echo bouton_suivant();
echo "</form>"; echo "</form>";
echo install_fin_html();
} }
?> ?>
\ No newline at end of file
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