Changeset 2748


Ignore:
Timestamp:
Oct 15, 2008, 7:55:18 PM (16 years ago)
Author:
patdenice
Message:

Merge from trunk 2747:

  • Install process now looks like goto/roma.
  • Move install.tpl to goto template.
  • add charset utf8 to fatal error function.
  • Check php version on install and upgrade, and die if < 5.
Location:
branches/2.0
Files:
1 deleted
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/template/goto/theme/roma/theme.css

    r2745 r2748  
    1111#theAdminPage h2 { color: #333; }
    1212.content .infos { color: #f70; border:0; background-color: transparent;
    13 padding:5px 0px 0pt 10pt; min-height: 48px; text-align:left; }
     13padding:5px 60px 0pt 10pt; min-height: 48px; text-align:left; }
    1414.content .infos li, .content .errors li { list-style-type:none; }
    1515.content .errors { color: #f30; border:0; background-color: transparent;
    16 padding:5px 0px 0pt 10pt; min-height: 48px; text-align:left; font-weight:bold; }
     16padding:5px 60px 0pt 10pt; min-height: 48px; text-align:left; font-weight:bold; }
    1717#copyright { color:#666; margin:60px auto 0px 240px; text-align:center;
    1818padding-bottom: 15px; }
  • branches/2.0/include/functions_html.inc.php

    r2543 r2748  
    672672  }
    673673
    674   $display = "<h1>Piwigo encountered a non recoverable error</h1>
     674  $display = "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
     675<h1>Piwigo encountered a non recoverable error</h1>
    675676<pre style='font-size:larger;background:white;color:red;padding:1em;margin:0;clear:both;display:block;width:auto;height:auto;overflow:auto'>
    676677<b>$msg</b>
  • branches/2.0/install.php

    r2700 r2748  
    2222// +-----------------------------------------------------------------------+
    2323
     24//------------------------------------------------- check php version
     25if (version_compare(PHP_VERSION, '5', '<'))
     26{
     27  die('Piwigo requires PHP 5 or above.');
     28}
     29
    2430//----------------------------------------------------------- include
    2531define('PHPWG_ROOT_PATH','./');
     
    211217
    212218//----------------------------------------------------- template initialization
    213 $template=new Template(PHPWG_ROOT_PATH.'template/yoga', 'clear');
     219$template=new Template(PHPWG_ROOT_PATH.'admin/template/goto', 'roma');
    214220$template->set_filenames( array('install'=>'install.tpl') );
    215221$step = 1;
     
    291297      $html_content = htmlentities( $file_content, ENT_QUOTES );
    292298      $html_content = nl2br( $html_content );
    293       $template->assign('error_copy', $html_content);
     299      $error_copy = l10n('step1_err_copy');
     300      $error_copy .= '<br />--------------------------------------------------------------------<br />';
     301      $error_copy .= '<span class="sql_content">' . $html_content . '</span>';
     302      $error_copy .= '<br />--------------------------------------------------------------------<br />';
    294303    }
    295304    @fputs($fp, $file_content, strlen($file_content));
     
    389398
    390399//------------------------------------------------------ errors & infos display
     400if ($step == 1)
     401{
     402  $template->assign('install', true);
     403}
     404else
     405{
     406  array_push($infos, l10n('install_end_message'));
     407
     408  if (isset($error_copy))
     409  {
     410    array_push($errors, $error_copy);
     411  }
     412}
    391413if (count($errors) != 0)
    392414{
     
    397419{
    398420  $template->assign('infos', $infos);
    399 }
    400 
    401 if ($step == 1)
    402 {
    403   $template->assign('install', true);
    404421}
    405422
  • branches/2.0/language/de_DE/install.lang.php

    r2714 r2748  
    2222// +-----------------------------------------------------------------------+
    2323
    24 $lang['install_message'] = 'Anzeige';
     24$lang['Installation'] = 'Installation';
    2525$lang['Initial_config'] = 'Base-Konfiguration';
    2626$lang['Default_lang'] = 'Standardsprache der Galerie';
     
    5555$lang['step2_pwd_conf'] = 'Passwort [Bestätigung]';
    5656$lang['step2_pwd_conf_info'] = 'Prüfung';
    57 $lang['step1_err_copy'] = 'Kopieren Sie den Text in roter zwischen Bindestriche und fügen Sie ihn in die Datei "include / mysql.inc.php" (Warnung: mysql.inc.php müssen nur enthalten, was in blau, keine Zeile zurück oder Leerzeichen)';
     57$lang['step1_err_copy'] = 'Kopieren Sie den Text in rosaen zwischen Bindestriche und fügen Sie ihn in die Datei "include / mysql.inc.php" (Warnung: mysql.inc.php müssen nur enthalten, was in rosa, keine Zeile zurück oder Leerzeichen)';
    5858$lang['install_help'] = 'Brauchen Sie Hilfe? Stellen Sie Ihre Frage auf der <a href="%s"> Forum Piwigo </ a>.';
    5959$lang['install_end_message'] = 'Die Konfiguration der Piwigo abgeschlossen ist, hier ist der nächste Schritt<br /><br />
    6060Aus Sicherheitsgründen, bitte löschen Datei "install.php"<br />
    61 Sobald diese Datei gelöscht, folgen Sie dieser Anleitung:
    62 <ul>
    63 <li>Gehen Sie auf die Identifizierung Seite: [ <a href="./identification.php">Identifizierung</a> ] und verwenden Sie die Login / Passwort für Webmaster</li>
    64 <li>diesem Login ermöglicht Ihnen den Zugang zu den Verwaltungs-Panel und den Anweisungen, um Platz Bilder in Ihre Verzeichnisse.</li>
    65 </ul>';
     61Sobald diese Datei gelöscht, folgen Sie dieser Anleitung:<br />
     62* Gehen Sie auf die Identifizierung Seite: [ <a href="./identification.php">Identifizierung</a> ] und verwenden Sie die Login / Passwort für Webmaster<br />
     63* diesem Login ermöglicht Ihnen den Zugang zu den Verwaltungs-Panel und den Anweisungen, um Platz Bilder in Ihre Verzeichnisse.';
    6664$lang['conf_mail_webmaster'] = 'Webmaster Mail-Adresse';
    6765$lang['conf_mail_webmaster_info'] = 'Besucher können sich nicht Kontakt Site Administrator mit diesem E-Mail';
  • branches/2.0/language/en_UK/install.lang.php

    r2342 r2748  
    2222// +-----------------------------------------------------------------------+
    2323
    24 $lang['install_message'] = 'Message';
     24$lang['Installation'] = 'Installation';
    2525$lang['Initial_config'] = 'Basic configuration';
    2626$lang['Default_lang'] = 'Default gallery language';
     
    3838$lang['step1_err_copy_2'] = 'The next step of the installation is now possible';
    3939$lang['step1_err_copy_next'] = 'next step';
    40 $lang['step1_err_copy'] = 'Copy the text in red between hyphens and paste it into the file "include/mysql.inc.php"(Warning : mysql.inc.php must only contain what is in blue, no line return or space character)';
     40$lang['step1_err_copy'] = 'Copy the text in pink between hyphens and paste it into the file "include/mysql.inc.php"(Warning : mysql.inc.php must only contain what is in pink, no line return or space character)';
    4141
    4242$lang['step1_host'] = 'MySQL host';
     
    6161$lang['install_end_message'] = 'The configuration of Piwigo is finished, here is the next step<br /><br />
    6262For security reason, please delete file "install.php"<br />
    63 Once this file deleted , follow this instructions :
    64 <ul>
    65 <li>go to the identification page : [ <a href="identification.php">identification</a> ] and use the login/password given for webmaster</li>
    66 <li>this login will enable you to access to the administration panel and to the instructions in order to place pictures in your directories</li>
    67 </ul>';
     63Once this file deleted , follow this instructions :<br />
     64* go to the identification page : [ <a href="identification.php">identification</a> ] and use the login/password given for webmaster<br />
     65* this login will enable you to access to the administration panel and to the instructions in order to place pictures in your directories';
    6866$lang['conf_mail_webmaster'] = 'Webmaster mail address';
    6967$lang['conf_mail_webmaster_info'] = 'Visitors will be able to contact site administrator with this mail';
  • branches/2.0/language/es_ES/install.lang.php

    r2342 r2748  
    2222// +-----------------------------------------------------------------------+
    2323
    24 $lang['install_message'] = 'Mensaje';
     24$lang['Installation'] = 'Instalación';
    2525$lang['Initial_config'] = 'Configuración de Base';
    2626$lang['Default_lang'] = 'Lengua por defecto de la galería';
     
    5555$lang['step2_pwd_conf'] = 'Palabra de paso [Confirmar]';
    5656$lang['step2_pwd_conf_info'] = 'Comprobación';
    57 $lang['step1_err_copy'] = 'Copie el texto en rojo entre las rayas y pegúelo en el fichero mysql.inc.php que se encuentra en el repertorio " include " a la base del lugar donde usted instaló a Piwigo (el fichero mysql.inc.php debe contener SÓLO lo que está en azul entre las rayas, ninguna vuelta a la línea o espacio es autorizado)';
     57$lang['step1_err_copy'] = 'Copie el texto en rosa entre las rayas y pegúelo en el fichero mysql.inc.php que se encuentra en el repertorio " include " a la base del lugar donde usted instaló a Piwigo (el fichero mysql.inc.php debe contener SÓLO lo que está en rosa entre las rayas, ninguna vuelta a la línea o espacio es autorizado)';
    5858$lang['install_help'] = '¿ Necesidad de ayudante? Plantee su cuestión sobre él <a href="%s">foro de Piwigo</a>.';
    5959$lang['install_end_message'] = 'La configuración de la aplicación correctamente se celebró, coloca en la etapa próxima<br /><br />
    6060Por medida de seguridad, gracias por suprimir el fichero "install.php"<br />
    61 La vez suprimido este fichero, por favor seguir estas indicaciones:
    62 <ul>
    63 <li>Vaya sobre la página de identificación : [ <a href="./identification.php">identificación</a> ] Y conéctese con pseudo dado para el webmaster</li>
    64 <li>Éste le permite acceder a la parte administración y a las instrucciones para colocar las imágenes en los repertorios.</li>
    65 </ul>';
     61La vez suprimido este fichero, por favor seguir estas indicaciones:<br />
     62* Vaya sobre la página de identificación : [ <a href="./identification.php">identificación</a> ] Y conéctese con pseudo dado para el webmaster<br />
     63* Éste le permite acceder a la parte administración y a las instrucciones para colocar las imágenes en los repertorios.';
    6664$lang['conf_mail_webmaster'] = 'Dirige e-mail del Administrador';
    6765$lang['conf_mail_webmaster_info'] = 'Los visitadores podrán ponerse en contacto con usted por este mail';
  • branches/2.0/language/fr_FR/install.lang.php

    r2342 r2748  
    2222// +-----------------------------------------------------------------------+
    2323
    24 $lang['install_message'] = 'Message';
     24$lang['Installation'] = 'Installation';
    2525$lang['Initial_config'] = 'Configuration de Base';
    2626$lang['Default_lang'] = 'Langue par défaut de la galerie';
     
    5555$lang['step2_pwd_conf'] = 'Mot de passe [ Confirmer ]';
    5656$lang['step2_pwd_conf_info'] = 'Vérification';
    57 $lang['step1_err_copy'] = 'Copiez le texte en rouge entre les tirets et collez-le dans le fichier mysql.inc.php qui se trouve dans le répertoire "include" à la base de l\'endroit où vous avez installé Piwigo (le fichier mysql.inc.php ne doit comporter QUE ce qui est en bleu entre les tirets, aucun retour à la ligne ou espace n\'est autorisé)';
     57$lang['step1_err_copy'] = 'Copiez le texte en rose entre les tirets et collez-le dans le fichier mysql.inc.php qui se trouve dans le répertoire "include" à la base de l\'endroit où vous avez installé Piwigo (le fichier mysql.inc.php ne doit comporter QUE ce qui est en rose entre les tirets, aucun retour à la ligne ou espace n\'est autorisé)';
    5858$lang['install_help'] = 'Besoin d\'aide ? Posez votre question sur le <a href="%s">forum de Piwigo</a>.';
    5959$lang['install_end_message'] = 'La configuration de l\'application s\'est correctement déroulée, place à la prochaine étape<br /><br />
    6060Par mesure de sécurité, merci de supprimer le fichier "install.php"<br />
    61 Un fois ce fichier supprimé, veuillez suivre ces indications :
    62 <ul>
    63 <li>allez sur la page d\'identification : [ <a href="./identification.php">identification</a> ] et connectez-vous avec le pseudo donné pour le webmaster</li>
    64 <li>celui-ci vous permet d\'accéder à la partie administration et aux instructions pour placer les images dans les répertoires.</li>
    65 </ul>';
     61Un fois ce fichier supprimé, veuillez suivre ces indications :<br />
     62* allez sur la page d\'identification : [ <a href="./identification.php">identification</a> ] et connectez-vous avec le pseudo donné pour le webmasterbr<br />
     63* celui-ci vous permet d\'accéder à la partie administration et aux instructions pour placer les images dans les répertoires.';
    6664$lang['conf_mail_webmaster'] = 'Adresse e-mail de l\'Administrateur';
    6765$lang['conf_mail_webmaster_info'] = 'Les visiteurs pourront vous contacter par ce mail';
  • branches/2.0/language/it_IT/install.lang.php

    r2539 r2748  
    2222// +-----------------------------------------------------------------------+
    2323
    24 $lang['install_message'] = 'Messaggio';
     24$lang['Installation'] = 'Installazione';
    2525$lang['Initial_config'] = 'Configurazione di base';
    2626$lang['Default_lang'] = 'Linguaggio di default della galleria';
     
    5555$lang['step2_pwd_conf'] = 'Password [confermare]';
    5656$lang['step2_pwd_conf_info'] = 'verifica';
    57 $lang['step1_err_copy'] = 'Copiate il testo in blu tra i trattini e mettetelo nel file mysql.inc.php che si trova nella directory "include" alla base del vostro sito dove aveto installato PhpWebGallery (il file mysql.inc.php non deve contenere altro che ciò che è in blu tra i trattini, nessun ritorno a capo o spazio è autorizzato)';
     57$lang['step1_err_copy'] = 'Copiate il testo in rosa tra i trattini e mettetelo nel file mysql.inc.php che si trova nella directory "include" alla base del vostro sito dove aveto installato PhpWebGallery (il file mysql.inc.php non deve contenere altro che ciò che è in rosa tra i trattini, nessun ritorno a capo o spazio è autorizzato)';
    5858$lang['install_help'] = 'Bisogno di aiuto? Visitate il <a href="%s">forum di PhpWebGallery</a>.';
    5959$lang['install_end_message'] = 'La configurazione di PhpWebGallery è conclusa. Procedete al prossimo step<br /><br />
    6060Per ragioni di sicurezza vi consigliamo di cancellare il file "install.php"<br />
    61 Una volta che il file è stato cancellato seguire le istruzioni:
    62 <ul>
    63 <li>collegatevi alla pagina di accesso: [ <a href="identification.php">Accedi ora</a> ] e usate il vostro nome utente e password del Webmaster</li>
    64 <li>a questo punto sarete abilitati all\'accesso al pannello di amministrazione in cui troverete le istruzioni per l\'inserimento delle immagini nelle vostre directory</li>
    65 </ul>';
     61Una volta che il file è stato cancellato seguire le istruzioni:<br />
     62* collegatevi alla pagina di accesso: [ <a href="identification.php">Accedi ora</a> ] e usate il vostro nome utente e password del Webmaster<br />
     63* a questo punto sarete abilitati all\'accesso al pannello di amministrazione in cui troverete le istruzioni per l\'inserimento delle immagini nelle vostre directory';
    6664$lang['conf_mail_webmaster'] = 'Indirizzo email del Amministratore';
    6765$lang['conf_mail_webmaster_info'] = 'i visitatori potranno contattarvi utilizzando questo indirizzo email';
  • branches/2.0/language/nl_NL/install.lang.php

    r2342 r2748  
    2222// +-----------------------------------------------------------------------+
    2323
    24 $lang['install_message'] = 'Bericht';
     24$lang['Installation'] = 'Installatie';
    2525$lang['Initial_config'] = 'Basis configuratie';
    2626$lang['Default_lang'] = 'Standaard gallery taal';
     
    3838$lang['step1_err_copy_2'] = 'Het is nu mogelijk om verder te gaan met de volgende stap van de installatie';
    3939$lang['step1_err_copy_next'] = 'volgende stap';
    40 $lang['step1_err_copy'] = 'Kopieer de tekst tussen de lijnen en plak deze in het bestand "include/mysql.inc.php"(Waarschuwing: mysql.inc.php mag alleen het blauwe gedeelte bevatten, geen return of extra spatie). Dit moet alleen wanneer dit bestand geen schrijfrechten';
     40$lang['step1_err_copy'] = 'Kopieer de tekst tussen de lijnen en plak deze in het bestand "include/mysql.inc.php"(Waarschuwing: mysql.inc.php mag alleen het roze gedeelte bevatten, geen return of extra spatie). Dit moet alleen wanneer dit bestand geen schrijfrechten';
    4141
    4242$lang['step1_host'] = 'MySQL host';
     
    6060$lang['install_help'] = 'Hulp nodig ? stel een vraag op het <a href="%s" target="_blank">Piwigo forum</a>.';
    6161$lang['install_end_message'] = 'Het installeren van Piwigo is klaar, de volgende stap is<br /><br />het verwijderen van "install.php" dit is om de veiligheid te waarborgen<br />
    62 Vervolg de instructies nadat "install.php" is verwijderd:<ul><li>Ga naar de Indentificatie pagina: [ <a href="identification.php">Indentificatie</a> ] gebruik hiervoor het eerder opgegeven gebruikersnaam met wachtwoord</li>
    63 <li>Deze gebruikersnaam geeft u toegang tot de beheermenu zodat u afbeeldingen op uw website kan plaatsen</li></ul>';
    64 
     62Vervolg de instructies nadat "install.php" is verwijderd:<br />
     63* Ga naar de Indentificatie pagina: [ <a href="identification.php">Indentificatie</a> ] gebruik hiervoor het eerder opgegeven gebruikersnaam met wachtwoord<br />
     64* Deze gebruikersnaam geeft u toegang tot de beheermenu zodat u afbeeldingen op uw website kan plaatsen';
    6565$lang['conf_mail_webmaster'] = 'Webmaster email adres';
    6666$lang['conf_mail_webmaster_info'] = 'Het is mogelijk dat bezoekers contact opnemen met de beheerder middels e-mail';
  • branches/2.0/upgrade.php

    r2700 r2748  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
     23
     24//check php version
     25if (version_compare(PHP_VERSION, '5', '<'))
     26{
     27  die('Piwigo requires PHP 5 or above.');
     28}
    2329
    2430define('PHPWG_ROOT_PATH', './');
  • branches/2.0/upgrade_feed.php

    r2645 r2748  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
     23
     24//check php version
     25if (version_compare(PHP_VERSION, '5', '<'))
     26{
     27  die('Piwigo requires PHP 5 or above.');
     28}
    2329
    2430define('PHPWG_ROOT_PATH', './');
Note: See TracChangeset for help on using the changeset viewer.