Initial commit
This commit is contained in:
6
web/install/I18n/ar_SA.php
Normal file
6
web/install/I18n/ar_SA.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Thanks' => 'شكرًا',
|
||||
'Update' => 'تحديث',
|
||||
];
|
||||
25
web/install/I18n/cs_CZ.php
Normal file
25
web/install/I18n/cs_CZ.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Došlo k neočekávané chybě</strong>: %err</p> <p>Podrobnosti o chybě:</p> <p>%details</p>',
|
||||
'Administrator login :' => 'Admin login :',
|
||||
'Administrator password :' => 'Administrátorské heslo :',
|
||||
'Administrator password verification :' => 'Administrátorské heslo znovu :',
|
||||
'Checking PHP version and permissions' => 'Kontrola verze PHP a oprávnění',
|
||||
'Checking permissions' => 'Kontrola oprávnění',
|
||||
'Choose your database' => 'Zvolte Vaši databázi',
|
||||
'Company name :' => 'Jméno společnosti :',
|
||||
'Contact email :' => 'Kontaktní e-mail :',
|
||||
'Continue' => 'Pokračovat',
|
||||
'Create an other database' => 'Vytvořit novou databázi',
|
||||
'Database connection' => 'Připojení databáze',
|
||||
'Database connection configuration' => 'Konfigurace připojení databáze',
|
||||
'Database selection' => 'Výběr databáze',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Nezapomeňte odstranit web/install adresář.',
|
||||
'English' => 'Anglicky',
|
||||
'French' => 'Francouzština',
|
||||
'General information' => 'Všeobecné informace',
|
||||
'German' => 'Němčina',
|
||||
'Thanks' => 'Děkuji',
|
||||
'Update' => 'Aktualizovat',
|
||||
];
|
||||
77
web/install/I18n/de_DE.php
Normal file
77
web/install/I18n/de_DE.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Es tut uns leid, ein Fehler ist aufgetreten</strong>: %err</p><p>Details:</p><p>%details</p>',
|
||||
'Administrator email :' => 'E-Mail des Administrators:',
|
||||
'Administrator login :' => 'Administratoranmeldung :',
|
||||
'Administrator password :' => 'Administratorpasswort :',
|
||||
'Administrator password verification :' => 'Administratorpasswort Überprüfung :',
|
||||
'Administrator preferred locale :' => 'Administrator Standartsprache :',
|
||||
'Backup and update Thelia' => 'Backup und Update Thelia',
|
||||
'Cache directory has been cleared' => 'Das Cache-Verzeichnis wurde gelöscht',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'Das Cache-Verzeichnis wurde nicht gelöscht. Bitte löschen Sie den Inhalt manuell.',
|
||||
'Checking PHP version and permissions' => 'PHP-Version und Zugriffsberechtigungen',
|
||||
'Checking permissions' => 'Zugriffsberechtigungen',
|
||||
'Choose your database' => 'Wählen Sie Ihre Datenbank',
|
||||
'Company name :' => 'Firmenname :',
|
||||
'Contact email :' => 'Kontakt E-mail :',
|
||||
'Continue' => 'Fortsetzen',
|
||||
'Create an other database' => 'Erstellen Sie eine andere Datenbank',
|
||||
'Database connection' => 'Datenbankverbindung',
|
||||
'Database connection configuration' => 'Datenbankverbindungskonfiguration',
|
||||
'Database selection' => 'Datenbankauswahl',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Vergessen Sie nicht, den web/install Ordner zu löschen!.',
|
||||
'English' => 'Englisch',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'Für den Moment kann der Assistent nur die Datenbank aktualisieren. Um Ihre PHP-Dateien zu aktualisieren, müssen Sie manuell vorgehen.',
|
||||
'French' => 'Französisch',
|
||||
'General information' => 'Allgemeine Informationen',
|
||||
'German' => 'Deutsch',
|
||||
'Go to back office' => 'Zum Back Office',
|
||||
'Host :' => 'Host : ',
|
||||
'Installation' => 'Installation',
|
||||
'It seems that Thelia database is already up to date.' => 'Es scheint, dass Ihre Datenbank bereits auf dem neuesten Stand ist.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Es scheint, dass Thelia bereits auf diesem System installiert ist. Bitte überprüfen Sie die Konfiguration, vornehmen Sie die notwendingen Korrekturen und versuchen Sie es erneut.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Es wird dringend empfohlen, eine Sicherungskopie zu machen, bevor Sie weitermachen.',
|
||||
'Missing email-address' => 'Fehlende E-Mail-Adresse',
|
||||
'Missing or invalid login' => 'Fehlende oder ungültige Login Daten',
|
||||
'Missing password' => 'Fehlenden Passwort',
|
||||
'Password :' => 'Passwort :',
|
||||
'Please wait ...' => 'Bitte warten ...',
|
||||
'Port :' => 'Port :',
|
||||
'Published by OpenStudio' => 'Herausgegeben von OpenStudio',
|
||||
'Refresh' => 'Erfrischen',
|
||||
'Select below the one you want to use.' => 'Wählen Sie unter die Datenbank, die Sie verwenden möchten.',
|
||||
'Shop preferred locale :' => 'Bevorzugte Sprache im Shop:',
|
||||
'Sorry, your database can\'t be backed up. Reason : ' => 'Die Datenbank kann nicht gesichert werden. Grund:',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Es tut uns leid, aber Ihre Datenbank kann nicht wiederhergestellt werden. Versuchen Sie es manuell zu tun.',
|
||||
'Thanks' => 'Danke !',
|
||||
'The SQL server contains multiple databases.' => 'Der SQL-Server enthält mehrere Datenbanken.',
|
||||
'The given passwords do not match' => 'Passwörter stimmen nicht überein',
|
||||
'The install wizard directory will be removed' => 'Das Installationsverzeichnis wird entfernt',
|
||||
'The sql dump has been saved in %file' => 'Die SQL-Datei wurde in %file gespeichert.',
|
||||
'The update wizard directory will be removed' => 'Das Update-Assistent Verzeichnis wird entfernt',
|
||||
'Thelia as been successfully updated to version %version' => 'Thelia wurde erfolgreich auf die Version %version aktualisiert',
|
||||
'Thelia contributions' => 'Thelia Beiträge',
|
||||
'Thelia installation wizard' => 'Thelia Installationsassistenten',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia ist jetzt installiert. Danke !',
|
||||
'Thelia support forum' => 'Thelias Support Forum',
|
||||
'Unexpected error occured: %err' => 'Ein unerwarteter Fehler ist aufgetreten: %err',
|
||||
'Update' => 'Update',
|
||||
'Update Thelia' => 'Thelia aktualisieren',
|
||||
'Update proccess' => 'Update proccess',
|
||||
'Update proccess trace' => 'Update-Prozess-Trace.',
|
||||
'Updating Thelia.' => 'Thelia Aktualisierung.',
|
||||
'Username :' => 'Benutzername :',
|
||||
'Version' => 'Version',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Wir werden Ihnen anleiten Thelia auf Ihrem Server zu installieren.',
|
||||
'Welcome' => 'Willkommen',
|
||||
'Welcome in the Thelia installation wizard.' => 'Willkommen im Thelia Installationsassistenten.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Willkommen im Thelia Updater-Assistenten.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Möchten Sie Ihre Thelia Installation von Version <strong>%current</strong> auf Version <strong>%latest</strong> aktualisieren?',
|
||||
'Wrong connection information' => 'Falsche Verbindungsinformationen',
|
||||
'Your database has been backed up. The sql file : %file' => 'Ihre Datenbank wurde backed up. Die SQL-Datei : %file',
|
||||
'Your database has been restored.' => 'Ihre Datenbank wurde wiederhergestellt.',
|
||||
'or' => 'oder',
|
||||
'update to version %version' => 'Update auf Version %version',
|
||||
'website url :' => 'Webadresse :',
|
||||
];
|
||||
6
web/install/I18n/el_GR.php
Normal file
6
web/install/I18n/el_GR.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Thanks' => 'Ευχαριστούμε',
|
||||
'Update' => 'Ενημέρωση',
|
||||
];
|
||||
78
web/install/I18n/en_US.php
Normal file
78
web/install/I18n/en_US.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>',
|
||||
'Administrator email :' => 'Administrator email :',
|
||||
'Administrator login :' => 'Administrator login :',
|
||||
'Administrator password :' => 'Administrator password :',
|
||||
'Administrator password verification :' => 'Administrator password verification :',
|
||||
'Administrator preferred locale :' => 'Administrator preferred locale :',
|
||||
'Backup and update Thelia' => 'Backup and update Thelia',
|
||||
'Cache directory has been cleared' => 'Cache directory has been cleared',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'Cache directory has not been cleared. Please manually delete content of cache directory.',
|
||||
'Checking PHP version and permissions' => 'Checking PHP version and permissions',
|
||||
'Checking permissions' => 'Checking permissions',
|
||||
'Choose your database' => 'Choose your database',
|
||||
'Company name :' => 'Company name :',
|
||||
'Contact email :' => 'Contact email :',
|
||||
'Continue' => 'Continue',
|
||||
'Create an other database' => 'Create an other database',
|
||||
'Database connection' => 'Database connection',
|
||||
'Database connection configuration' => 'Database connection configuration',
|
||||
'Database selection' => 'Database selection',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Don\'t forget to delete the web/install directory.',
|
||||
'English' => 'English',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.',
|
||||
'French' => 'French',
|
||||
'General information' => 'General information',
|
||||
'German' => 'German',
|
||||
'Go to back office' => 'Go to back office',
|
||||
'Host :' => 'Host :',
|
||||
'Installation' => 'Installation',
|
||||
'It seems that Thelia database is already up to date.' => 'It seems that Thelia database is already up to date.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'It\'s strongly recommended to make a backup before proceeding.',
|
||||
'Missing email-address' => 'Missing email-address',
|
||||
'Missing or invalid login' => 'Missing or invalid login',
|
||||
'Missing password' => 'Missing password',
|
||||
'Password :' => 'Password :',
|
||||
'Please wait ...' => 'Please wait ...',
|
||||
'Port :' => 'Port :',
|
||||
'Post update instructions' => 'Post update instructions',
|
||||
'Published by OpenStudio' => 'Published by OpenStudio',
|
||||
'Refresh' => 'Refresh',
|
||||
'Select below the one you want to use.' => 'Select below the one you want to use.',
|
||||
'Shop preferred locale :' => 'Shop preferred locale :',
|
||||
'Sorry, your database can\'t be backed up. Reason : ' => 'Sorry, your database can\'t be backed up. Reason :',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Sorry, your database can\'t be restored. Try to do it manually',
|
||||
'Thanks' => 'Thanks',
|
||||
'The SQL server contains multiple databases.' => 'The SQL server contains multiple databases.',
|
||||
'The given passwords do not match' => 'The given passwords do not match',
|
||||
'The install wizard directory will be removed' => 'The install wizard directory will be removed',
|
||||
'The sql dump has been saved in %file' => 'The sql dump has been saved in %file',
|
||||
'The update wizard directory will be removed' => 'The update wizard directory will be removed',
|
||||
'Thelia as been successfully updated to version %version' => 'Thelia as been successfully updated to version %version',
|
||||
'Thelia contributions' => 'Thelia contributions',
|
||||
'Thelia installation wizard' => 'Thelia installation wizard',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia is now installed. Thank you !',
|
||||
'Thelia support forum' => 'Thelia support forum',
|
||||
'Unexpected error occured: %err' => 'Unexpected error occured: %err',
|
||||
'Update' => 'Update',
|
||||
'Update Thelia' => 'Update Thelia',
|
||||
'Update proccess' => 'Update proccess',
|
||||
'Update proccess trace' => 'Update proccess trace',
|
||||
'Updating Thelia.' => 'Updating Thelia.',
|
||||
'Username :' => 'Username :',
|
||||
'Version' => 'Version',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'We will guide you throughout this process to install Thelia on your system.',
|
||||
'Welcome' => 'Welcome',
|
||||
'Welcome in the Thelia installation wizard.' => 'Welcome to the Thelia installation wizard.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Welcome in the Thelia updater wizard.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'Wrong connection information',
|
||||
'Your database has been backed up. The sql file : %file' => 'Your database has been backed up. The sql file : %file',
|
||||
'Your database has been restored.' => 'Your database has been restored.',
|
||||
'or' => 'or',
|
||||
'update to version %version' => 'update to version %version',
|
||||
'website url :' => 'Shop URL :',
|
||||
);
|
||||
78
web/install/I18n/es_ES.php
Normal file
78
web/install/I18n/es_ES.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Lo sentimos, se produjo un error inesperado</strong>: %err</p> <p>Detalles del error:</p> <p>%details</p>',
|
||||
'Administrator email :' => 'Correo del administrador :',
|
||||
'Administrator login :' => 'Login de administrador:',
|
||||
'Administrator password :' => 'Contraseña del Administrador :',
|
||||
'Administrator password verification :' => 'Verificación de la contraseña del administrador:',
|
||||
'Administrator preferred locale :' => 'Configuración local preferida para el administrador:',
|
||||
'Backup and update Thelia' => 'Copia de seguridad y actualización Thelia',
|
||||
'Cache directory has been cleared' => 'Se ha borrado el directorio de cache',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'El directorio de caché no se ha borrado. Por favor, elimine manualmente el contenido de dicho directorio.',
|
||||
'Checking PHP version and permissions' => 'Comprobando versión de PHP y permisos',
|
||||
'Checking permissions' => 'Comprobando permisos',
|
||||
'Choose your database' => 'Selecciona tu base de datos',
|
||||
'Company name :' => 'Nombre de la empresa :',
|
||||
'Contact email :' => 'E-mail de contacto :',
|
||||
'Continue' => 'Continuar',
|
||||
'Create an other database' => 'Crear otra base de datos',
|
||||
'Database connection' => 'Conexión de base de datos',
|
||||
'Database connection configuration' => 'Configuración de conexión de base de datos',
|
||||
'Database selection' => 'Selección de base de datos',
|
||||
'Don\'t forget to delete the web/install directory.' => 'No olvides eliminar el directorio web/install.',
|
||||
'English' => 'Inglés',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'Por el momento el asistente permite solo actualizar la base de datos. Para actualizar los archivos Php hay que hacerlo manualmente.',
|
||||
'French' => 'Francés',
|
||||
'General information' => 'Información general',
|
||||
'German' => 'Alemán',
|
||||
'Go to back office' => 'Volver al panel de administrador',
|
||||
'Host :' => 'Hostname:',
|
||||
'Installation' => 'Instalación',
|
||||
'It seems that Thelia database is already up to date.' => 'Parece que la base de datos de Thelia ya está actualizada.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Parece que Thelia ya está instalado en este sistema. Por favor comprueba la configuración, elimina si es necesario y vuelve a intentarlo.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Se recomienda encarecidamente realizar un backup antes de continuar.',
|
||||
'Missing email-address' => 'Falta el correo electrónico',
|
||||
'Missing or invalid login' => 'No existe o es inválido el inicio de sesión',
|
||||
'Missing password' => 'Falta la contraseña',
|
||||
'Password :' => 'Contraseña:',
|
||||
'Please wait ...' => 'Espera por favor ...',
|
||||
'Port :' => 'Puerto:',
|
||||
'Post update instructions' => 'Instrucciones después de actualizar',
|
||||
'Published by OpenStudio' => 'Publicado por OpenStudio',
|
||||
'Refresh' => 'Actualización',
|
||||
'Select below the one you want to use.' => 'Selecciona a continuación el que deseas utilizar.',
|
||||
'Shop preferred locale :' => 'Ubicación preferida de la tienda :',
|
||||
'Sorry, your database can\'t be backed up. Reason : ' => 'Lo sentimos, tu base de datos no puede ser respaldada. Motivo :',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Lo sentimos, no se puede restaurar la base de datos. Intenta hacerlo manualmente',
|
||||
'Thanks' => 'Gracias',
|
||||
'The SQL server contains multiple databases.' => 'El servidor SQL contiene varias bases de datos.',
|
||||
'The given passwords do not match' => 'Las contraseñas proporcionadas no coinciden',
|
||||
'The install wizard directory will be removed' => 'El directorio del asistente de instalación será removido',
|
||||
'The sql dump has been saved in %file' => 'Se ha guardado el volcado sql en %file',
|
||||
'The update wizard directory will be removed' => 'Se eliminará el directorio del asistente de actualización',
|
||||
'Thelia as been successfully updated to version %version' => 'Thelia se ha actualizado a la versión %version',
|
||||
'Thelia contributions' => 'Aportaciones de Thelia',
|
||||
'Thelia installation wizard' => 'Asistente de instalación Thelia',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia ya está instalado. ¡Muchas gracias!',
|
||||
'Thelia support forum' => 'Foro de soporte de Thelia',
|
||||
'Unexpected error occured: %err' => 'Error inesperado: %err',
|
||||
'Update' => 'Actualizar',
|
||||
'Update Thelia' => 'Actualización Thelia',
|
||||
'Update proccess' => 'Proceso de actualización',
|
||||
'Update proccess trace' => 'Seguimiento del proceso de actualización',
|
||||
'Updating Thelia.' => 'Actualizando Thelia.',
|
||||
'Username :' => 'Nombre de usuario:',
|
||||
'Version' => 'Versión',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Te guiaremos a través del proceso de instalación de Thelia en tu sistema.',
|
||||
'Welcome' => 'Bienvenido',
|
||||
'Welcome in the Thelia installation wizard.' => 'Bienvenido al asistente de instalación de Thelia.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Bienvenido al asistente de actualización de Thelia.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Quieres actualizar tu instalación de Thelia de la versión <strong>%current</strong> a la versión <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'Información de conexión incorrecta',
|
||||
'Your database has been backed up. The sql file : %file' => 'Tu base de datos ha sido salvada. El archivo sql: %file',
|
||||
'Your database has been restored.' => 'Se ha restaurado la base de datos.',
|
||||
'or' => 'o',
|
||||
'update to version %version' => 'actualizar a la versión %',
|
||||
'website url :' => 'URL de la tienda :',
|
||||
];
|
||||
67
web/install/I18n/fa_IR.php
Normal file
67
web/install/I18n/fa_IR.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>متاسفانه خطایی رخ داد</strong>: %err</p><p>جزییات خطا: </p><p>%details</p>',
|
||||
'Administrator login :' => 'ورود مدیریت:',
|
||||
'Administrator password :' => 'رمزعبور مدیریت:',
|
||||
'Administrator password verification :' => 'تایید رمزعبور مدیریت:',
|
||||
'Administrator preferred locale :' => 'زبان مدیریت ارجح:',
|
||||
'Backup and update Thelia' => 'پشتیبان گیری و بروز رسانی سیستم فروشگاه',
|
||||
'Cache directory has been cleared' => 'پوشه کش خالی شد',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'پوشه کش خالی نشد. لطفا به صورت دستی محتوای این پوشه را پاک کنید.',
|
||||
'Checking PHP version and permissions' => 'بررسی نسخه PHP و دسترسیها',
|
||||
'Checking permissions' => 'بررسی دسترسیها',
|
||||
'Choose your database' => 'انتخاب پایگاه داده',
|
||||
'Company name :' => 'نام شرکت:',
|
||||
'Contact email :' => 'ایمیل ارتباط:',
|
||||
'Continue' => 'ادامه',
|
||||
'Create an other database' => 'ایجاد یک پایگاه داده دیگر',
|
||||
'Database connection' => 'ارتباط پایگاه داده',
|
||||
'Database connection configuration' => 'پیکربندی ارتباط پایگاه داده',
|
||||
'Database selection' => 'انتخاب پایگاه داده',
|
||||
'Don\'t forget to delete the web/install directory.' => 'پاک کردن پوشه web/install را فراموش نکنید.',
|
||||
'English' => 'انگليسی',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'در حال حاضر این مراحل تنها اجازه بروزرسانی پایگاه داده را دارد. برای بروزرسانی فایلهای PHP لطفا آنها را به صورت دستی بروز کنید.',
|
||||
'French' => 'فرانسوی',
|
||||
'General information' => 'اطلاعات عمومی',
|
||||
'German' => 'آلمانی',
|
||||
'Go to back office' => 'رفتن به بخش مدیریت',
|
||||
'Host :' => 'میزبان:',
|
||||
'Installation' => 'نصب',
|
||||
'It seems that Thelia database is already up to date.' => 'به نظر میرسد پایگاه داده بروز است.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'به نظر میرسد تلیا هم اکنون روی این سیستم نصب شده است. لطفا تنظیمات را بررسی و در صورت نیاز پاک سازی کرده و سپس مجددا سعی کنید.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'به شدت پیشنهاد میکنیم قبل از شروع فرآیند یک نسخه پشتیبان تهیه کنید.',
|
||||
'Password :' => 'رمز عبور:',
|
||||
'Please wait ...' => 'کمی صبر کنید...',
|
||||
'Port :' => 'درگاه:',
|
||||
'Published by OpenStudio' => 'منتشر شده توسط OpenStudio',
|
||||
'Refresh' => 'تازهسازی',
|
||||
'Select below the one you want to use.' => 'لطفا یکی را که میخواهید استفاده کنید انتخاب کنید.',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'متاسفانه پایگاه داده شما بازیابی نشد. لطفا به صورت دستی امتحان کنید',
|
||||
'Thanks' => 'سپاس',
|
||||
'The SQL server contains multiple databases.' => 'SQL server شامل چند دیتابیس است.',
|
||||
'The sql dump has been saved in %file' => 'فایل sql در %file ذخیره شد',
|
||||
'The update wizard directory will be removed' => 'پوشه مراحل بروزرسانی حذف شد',
|
||||
'Thelia contributions' => 'مشارکت کنندگان تلیا',
|
||||
'Thelia installation wizard' => 'مراحل نصب تلیا',
|
||||
'Thelia is now installed. Thank you !' => 'تلیا نصب شد. ممنونیم!',
|
||||
'Thelia support forum' => 'انجمن پشتیبانی تلیا',
|
||||
'Unexpected error occured: %err' => 'یک خطا رخ داد: %err',
|
||||
'Update' => 'بروزرسانی',
|
||||
'Update Thelia' => 'بروزرسانی تیلیا',
|
||||
'Update proccess trace' => 'بررسی فرآیند به روز رسانی',
|
||||
'Updating Thelia.' => 'در حال بروزسانی تیلیا.',
|
||||
'Username :' => 'نام کاربری :',
|
||||
'Version' => 'نسخه',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'ما مرحله به مرحله شما را برای نصب تلیا روی سیستم راهنمایی خواهیم کرد.',
|
||||
'Welcome' => 'خوش آمدید',
|
||||
'Welcome in the Thelia installation wizard.' => 'به مراحل نصب تلیا خوش آمدید.',
|
||||
'Welcome in the Thelia updater wizard.' => 'به مراحل بروزرسانی تلیا خوش آمدید.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'علاقهمند به بروزرسانی تلیا از نسخه <strong>%current</strong> به <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'اطلاعات اتصال اشتباه است',
|
||||
'Your database has been backed up. The sql file : %file' => 'یک نسخه پشتیبان از پایگاه داده ایجاد شد: %file',
|
||||
'Your database has been restored.' => 'پایگاه داده شما بازیابی شد.',
|
||||
'or' => 'یا',
|
||||
'update to version %version' => 'به روز رسانی به نسخه %version',
|
||||
'website url :' => 'آدرس فروشگاه:',
|
||||
];
|
||||
78
web/install/I18n/fr_FR.php
Normal file
78
web/install/I18n/fr_FR.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Désolé, une erreur inattendue s\'est produite</strong>: %err</p><p>Détails:</p><p>%details</p>',
|
||||
'Administrator email :' => 'Courriel de l\'administrateur :',
|
||||
'Administrator login :' => 'Identifiant administrateur :',
|
||||
'Administrator password :' => 'Mot de passe administrateur :',
|
||||
'Administrator password verification :' => 'Vérification mot de passe administrateur :',
|
||||
'Administrator preferred locale :' => 'Langue par défaut de l\'administrateur :',
|
||||
'Backup and update Thelia' => 'Sauvegarder et mettre à jour Thelia',
|
||||
'Cache directory has been cleared' => 'Le répertoire du Cache a été nettoyé',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'Le répertoire du Cache n\'a pas été nettoyé. Veuillez supprimer son contenu.',
|
||||
'Checking PHP version and permissions' => 'Contrôle de la version de PHP et des permissions',
|
||||
'Checking permissions' => 'Controle des permissions',
|
||||
'Choose your database' => 'Choissisez la base de donnée',
|
||||
'Company name :' => 'Nom de la société :',
|
||||
'Contact email :' => 'Email de contact :',
|
||||
'Continue' => 'Continuer',
|
||||
'Create an other database' => 'Créez une nouvelle base de donnée',
|
||||
'Database connection' => 'Connexion BD',
|
||||
'Database connection configuration' => 'Configuration de la connexion à la base de données',
|
||||
'Database selection' => 'Selection BD',
|
||||
'Don\'t forget to delete the web/install directory.' => 'N\'oubliez pas de supprimer le répertoire web/install !.',
|
||||
'English' => 'Anglais',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'Pour l\'instant, l\'assistant ne permet que la mise à jour de la base de données. Pour mettre à jour vos fichiers php, vous devez procéder manuellement.',
|
||||
'French' => 'Français',
|
||||
'General information' => 'Informations générales',
|
||||
'German' => 'Allemand',
|
||||
'Go to back office' => 'Allez dans l\'interface d\'administration',
|
||||
'Host :' => 'Hôte :',
|
||||
'Installation' => 'Installation',
|
||||
'It seems that Thelia database is already up to date.' => 'Il semble que votre base de données soit déjà à jour.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Il semblerait que Thelia soit déjà installé sur ce serveur. Merci de vérifier la configuration et d\'apporter les corrections nécessaires avant de ré-essayer.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Il est chaudement recommendé d\'effectuer une sauvegarde avant de procéder.',
|
||||
'Missing email-address' => 'Adresse e-mail manquant',
|
||||
'Missing or invalid login' => 'Login manquant ou invalide',
|
||||
'Missing password' => 'Mot de passe manquant',
|
||||
'Password :' => 'Mot de passe : ',
|
||||
'Please wait ...' => 'Veuillez patienter ...',
|
||||
'Port :' => 'Port : ',
|
||||
'Post update instructions' => 'Instructions avant la mise à jour',
|
||||
'Published by OpenStudio' => 'Développé par OpenStudio',
|
||||
'Refresh' => 'Rafraîchir',
|
||||
'Select below the one you want to use.' => 'Selectionnez ci-dessous la base de données que vous souhaitez utiliser.',
|
||||
'Shop preferred locale :' => 'Langue par défaut :',
|
||||
'Sorry, your database can\'t be backed up. Reason : ' => 'Désolé, votre base de données ne peut pas être sauvegardée. raison:',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Désolé, votre base de données n\'a pas pu être restauré. Essayez de le faire manuellement.',
|
||||
'Thanks' => 'Merci',
|
||||
'The SQL server contains multiple databases.' => 'Le serveur de MySQL contient plusieurs bases de données.',
|
||||
'The given passwords do not match' => 'Les mots ne correspondent pas',
|
||||
'The install wizard directory will be removed' => 'Le dossier d\'installation n\'a pas pu être supprimé',
|
||||
'The sql dump has been saved in %file' => 'Le fichier sql a été sauvegardé dans %file',
|
||||
'The update wizard directory will be removed' => 'Le répertoire de l\'assistant de mise à jour va être supprimé',
|
||||
'Thelia as been successfully updated to version %version' => 'Thalia a été mis à jour à la version la %version',
|
||||
'Thelia contributions' => 'Contributions de Thelia',
|
||||
'Thelia installation wizard' => 'Assistant d\'installation de Thelia',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia est maintenant installé. Merci !',
|
||||
'Thelia support forum' => 'Forum de Thelia',
|
||||
'Unexpected error occured: %err' => 'Une erreur inattendue est survenue: %err',
|
||||
'Update' => 'Mettre à jour',
|
||||
'Update Thelia' => 'Mettre à jour Thelia',
|
||||
'Update proccess' => 'Processus de mise à jour',
|
||||
'Update proccess trace' => 'Trace du processus de mise à jour.',
|
||||
'Updating Thelia.' => 'Mise à jour de Thelia.',
|
||||
'Username :' => 'Nom d\'utilisateur : ',
|
||||
'Version' => 'Version',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Nous allons vous guider pour installer Thelia sur votre serveur.',
|
||||
'Welcome' => 'Bienvenue',
|
||||
'Welcome in the Thelia installation wizard.' => 'Bienvenue dans l\'assistant d\'installation de Thelia.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Bienvenue dans l\'assistant de mise à jour Thelia.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Voulez-vous mettre à jour votre installation de Thelia de la version <strong>%current</strong> à la version <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'Les informations de connexion semblent erronées',
|
||||
'Your database has been backed up. The sql file : %file' => 'Votre base de données a été sauvegardé. Le fichier sql : %file',
|
||||
'Your database has been restored.' => 'Votre base de données a été restauré.',
|
||||
'or' => 'ou',
|
||||
'update to version %version' => 'mise à jour vers la version %version',
|
||||
'website url :' => 'URL du site :',
|
||||
];
|
||||
10
web/install/I18n/hu_HU.php
Normal file
10
web/install/I18n/hu_HU.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Password :' => 'Jelszó :',
|
||||
'Thanks' => 'Köszönjük',
|
||||
'Update' => 'Frissít',
|
||||
'Username :' => 'Felhasználó :',
|
||||
'Version' => 'Verzió',
|
||||
'or' => 'vagy',
|
||||
];
|
||||
44
web/install/I18n/id_ID.php
Normal file
44
web/install/I18n/id_ID.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Maaf, terjadi error</strong>: %err</p> <p>Rincian kesalahan:</p> <p>%details</p>',
|
||||
'Administrator email :' => 'Email administrator:',
|
||||
'Administrator login :' => 'Administrator login:',
|
||||
'Administrator password :' => 'Kata sandi Administrator :',
|
||||
'Administrator password verification :' => 'Verifikasi sandi administrator:',
|
||||
'Administrator preferred locale :' => 'Lokal pilihan Administrator:',
|
||||
'Checking PHP version and permissions' => 'Memeriksa versi PHP dan izin',
|
||||
'Checking permissions' => 'Memeriksa hak akses',
|
||||
'Choose your database' => 'Pilih basis data',
|
||||
'Company name :' => 'Nama perusahaan:',
|
||||
'Contact email :' => 'Kontak email:',
|
||||
'Continue' => 'Lanjut',
|
||||
'Create an other database' => 'Membuat basis data lain',
|
||||
'Database connection' => 'Koneksi basis data',
|
||||
'Database connection configuration' => 'Konfigurasi koneksi basis data',
|
||||
'Database selection' => 'Seleksi basis data',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Jangan lupa untuk menghapus direktori web/install.',
|
||||
'English' => 'Bahasa Inggris',
|
||||
'French' => 'Bahasa Perancis',
|
||||
'General information' => 'Informasi umum',
|
||||
'German' => 'Bahasa Jerman',
|
||||
'Go to back office' => 'Masuk ke back office',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Tampaknya Thelia sudah diinstal pada sistem ini. Silakan periksa konfigurasi, lakukan pembersihan jika diperlukan, dan coba lagi.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Sangat dianjurkan untuk membuat cadangan sebelum melanjutkan.',
|
||||
'Missing email-address' => 'Alamat email belum dimasukkan',
|
||||
'Missing or invalid login' => 'Ada kesalahan dalam upaya masuk',
|
||||
'Missing password' => 'Kata sandi belum dimasukkan',
|
||||
'Post update instructions' => 'Posting petunjuk yang diperbarui',
|
||||
'Select below the one you want to use.' => 'Pilih salah satu yang ingin Anda gunakan.',
|
||||
'Shop preferred locale :' => 'Toko lokal pilihan:',
|
||||
'Sorry, your database can\'t be backed up. Reason : ' => 'Maaf, database Anda tidak dapat di backup. Alasan:',
|
||||
'The SQL server contains multiple databases.' => 'SQL server berisi beberapa basis data.',
|
||||
'The given passwords do not match' => 'Kata sandi yang diberikan tidak cocok',
|
||||
'The install wizard directory will be removed' => 'Direktori wisaya akan dihapus',
|
||||
'Thelia as been successfully updated to version %version' => 'Thelia berhasil diperbarui ke versi %version',
|
||||
'Thelia installation wizard' => 'Wisaya instalasi Thelia',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia kini dipasang. Terima kasih!',
|
||||
'Unexpected error occured: %err' => 'Terjadi error: %err',
|
||||
'Update proccess' => 'Proses update',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Anda ingin memperbarui Anda instalasi Thelia dari versi <strong>%current</strong> untuk versi <strong>%latest</strong>.',
|
||||
];
|
||||
51
web/install/I18n/it_IT.php
Normal file
51
web/install/I18n/it_IT.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Administrator email :' => 'Email amministratore:',
|
||||
'Administrator login :' => 'Accesso amministratore :',
|
||||
'Administrator password :' => 'Password amministratore :',
|
||||
'Administrator password verification :' => 'Verifica della password amministratore :',
|
||||
'Backup and update Thelia' => 'Backup e aggiornamento Thelia',
|
||||
'Checking PHP version and permissions' => 'Controllo permessi e versione PHP',
|
||||
'Checking permissions' => 'Verifica permessi',
|
||||
'Choose your database' => 'Scegliere il database',
|
||||
'Company name :' => 'Nome azienda :',
|
||||
'Contact email :' => 'Contatto e-mail :',
|
||||
'Continue' => 'Continuare',
|
||||
'Create an other database' => 'Creare un altro database',
|
||||
'Database connection' => 'Connessione al database',
|
||||
'Database connection configuration' => 'Configurazione di connessione al database',
|
||||
'Database selection' => 'Selezione del database',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Non dimenticare di eliminare la directory di installazione web.',
|
||||
'English' => 'Inglese',
|
||||
'French' => 'Francese',
|
||||
'General information' => 'Informazioni generali',
|
||||
'German' => 'Tedesco',
|
||||
'Go to back office' => 'Vai al back office',
|
||||
'Host :' => 'Host :',
|
||||
'Installation' => 'Installazione',
|
||||
'Missing email-address' => 'Indirizzo email mancante',
|
||||
'Missing or invalid login' => 'Accesso mancante o non valido',
|
||||
'Missing password' => 'Password mancante',
|
||||
'Password :' => 'Password :',
|
||||
'Port :' => 'Spedizione :',
|
||||
'Post update instructions' => 'Istruzioni di aggiornamento post',
|
||||
'Published by OpenStudio' => 'Pubblicato da OpenStudio',
|
||||
'Shop preferred locale :' => 'Lingua di default :',
|
||||
'Sorry, your database can\'t be backed up. Reason : ' => 'Siamo spiacenti, non è possibile eseguire il backup del database. Motivo:',
|
||||
'Thanks' => 'Grazie',
|
||||
'The given passwords do not match' => 'Le password specificate non corrispondono',
|
||||
'The install wizard directory will be removed' => 'La directory di installazione guidata verrà rimossa',
|
||||
'Thelia as been successfully updated to version %version' => 'Thelia è stato correttamente aggiornato alla versione % version',
|
||||
'Thelia contributions' => 'Contributi Thelia',
|
||||
'Thelia support forum' => 'Forum di supporto Thelia ',
|
||||
'Update' => 'Aggiornamento',
|
||||
'Update Thelia' => 'Aggiornamento Thelia',
|
||||
'Update proccess' => 'Processo di aggiornamento',
|
||||
'Updating Thelia.' => 'Aggiornamento di Thelia.',
|
||||
'Username :' => 'Nome utente :',
|
||||
'Version' => 'versione',
|
||||
'Welcome' => 'Benvenuto',
|
||||
'Your database has been restored.' => 'Il database è stato ripristinato.',
|
||||
'or' => 'o',
|
||||
];
|
||||
62
web/install/I18n/pl_PL.php
Normal file
62
web/install/I18n/pl_PL.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Przepraszamy, wystąpił nieoczekiwany błąd</strong>: %err</p><p>Szczegóły błędu:</p><p>%details</p>',
|
||||
'Administrator email :' => 'Email administratora :',
|
||||
'Administrator login :' => 'Login administratora :',
|
||||
'Administrator password :' => 'Hasło administratora :',
|
||||
'Administrator password verification :' => 'Weryfikacja hasła administratora :',
|
||||
'Administrator preferred locale :' => 'Preferowane ustawienia regionalne administratora :',
|
||||
'Backup and update Thelia' => 'Kopia zapasowa i aktualizacja systemu Thelia',
|
||||
'Cache directory has been cleared' => 'Katalog cache został wyczyszczony',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'Katalog cache nie został wyczyszczony. Proszę ręcznie usunąć zawartość katalogu cache.',
|
||||
'Checking PHP version and permissions' => 'Sprawdzanie wersji PHP i uprawnień',
|
||||
'Checking permissions' => 'Weryfikacja uprawnień',
|
||||
'Choose your database' => 'Wybierz bazę danych',
|
||||
'Company name :' => 'Nazwa firmy :',
|
||||
'Contact email :' => 'E-mail do kontaktu :',
|
||||
'Continue' => 'Kontynuuj',
|
||||
'Create an other database' => 'Utwórz inną bazę danych',
|
||||
'Database connection' => 'Połączenie z bazą danych',
|
||||
'Database connection configuration' => 'Konfiguracja połączenia z bazą danych',
|
||||
'Database selection' => 'Wybór bazy danych',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Nie zapomnij usunąć katalogu web/install.',
|
||||
'English' => 'Angielski',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'Na ten moment, kreator zezwala tylko na aktualizację bazy danych. Aby zaktualizować pliki php musisz wykonać aktualizacje ręcznie.',
|
||||
'French' => 'Francuski',
|
||||
'General information' => 'Informacje ogólne',
|
||||
'German' => 'Niemiecki',
|
||||
'Go to back office' => 'Przejdź do panelu administracyjnego',
|
||||
'Installation' => 'Instalacja',
|
||||
'It seems that Thelia database is already up to date.' => 'Wygląda na to, że baza danych systemu Thelia jest aktualna.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Wygląda na to, że Thelia jest już zainstalowana. Proszę sprawdzić konfigurację, jeżeli to potrzebne wyczyścić katalog i spróbować ponownie.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Zdecydowanie zalecamy utworzenie kopii zapasowej przed działaniami.',
|
||||
'Missing email-address' => 'Brakujący adres e-mail',
|
||||
'Missing or invalid login' => 'Niepoprawne dane logowania',
|
||||
'Missing password' => 'Brakujące hasło',
|
||||
'Please wait ...' => 'Proszę czekać ...',
|
||||
'Post update instructions' => 'Instrukcje po aktualizacji',
|
||||
'Refresh' => 'Odśwież',
|
||||
'Select below the one you want to use.' => 'Wybierz jeden, który chcesz użyć.',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Przepraszamy, nie można przywrócić Twojej bazy danych. Spróbuj ręcznie',
|
||||
'Thanks' => 'Dziękujemy',
|
||||
'The SQL server contains multiple databases.' => 'Serwer SQL zawiera wiele baz danych.',
|
||||
'The sql dump has been saved in %file' => 'Zrzut pliku sql został zapisany w %file',
|
||||
'The update wizard directory will be removed' => 'Katalog kreatora aktualizacji zostanie usunięty',
|
||||
'Thelia installation wizard' => 'Kreator instalacji Thelia',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia została zainstalowana. Dziękujemy !',
|
||||
'Unexpected error occured: %err' => 'Wystąpił nieoczekiwany błąd: %err',
|
||||
'Update Thelia' => 'Aktualizacja Thelia',
|
||||
'Update proccess' => 'Proces aktualizacji',
|
||||
'Update proccess trace' => 'Aktualizacja procesu śledzenia',
|
||||
'Updating Thelia.' => 'Aktualizacja Thelia.',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Przeprowadzimy Cię przez cały proces instalacji Thelia na serwerze.',
|
||||
'Welcome in the Thelia installation wizard.' => 'Witamy w kreatorze instalacji Thelia.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Witamy w kreatorze aktualizacji Thelia.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Czy chcesz zaktualizować Twoją instalację systemu Thelia z wersji <strong>%current</strong> do wersji <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'Błędne informacje połączenia',
|
||||
'Your database has been backed up. The sql file : %file' => 'Kopia zapasowa Twojej bazy danych została wykonana pomyślnie. Plik Sql: %file',
|
||||
'Your database has been restored.' => 'Baza danych została przywrócona.',
|
||||
'update to version %version' => 'aktualizacja do wersji %version',
|
||||
'website url :' => 'URL sklepu :',
|
||||
];
|
||||
57
web/install/I18n/pt_BR.php
Normal file
57
web/install/I18n/pt_BR.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Desculpe, ocorreu um erro inesperado</strong>: %err</p><p>Detalhes do erro:</p><p>%details</p>',
|
||||
'Administrator login :' => 'Nome de usuário do administrador :',
|
||||
'Administrator password :' => 'Senha do administrador :',
|
||||
'Administrator password verification :' => 'Confirmação de senha :',
|
||||
'Administrator preferred locale :' => 'Localidade preferida do administrador :',
|
||||
'Backup and update Thelia' => 'Fazer cópia de segurança e atualizar Thelia',
|
||||
'Cache directory has been cleared' => 'A pasta de cache foi limpa',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'A pasta de cache nãp foi limpa. Por favor apague o conteúdo da pasta de cache manualmente.',
|
||||
'Checking PHP version and permissions' => 'Verificando a versão do PHP e permissões',
|
||||
'Checking permissions' => 'Verificando permissões',
|
||||
'Choose your database' => 'Escolha seu banco de dados',
|
||||
'Company name :' => 'Nome da empresa :',
|
||||
'Contact email :' => 'Email de contato :',
|
||||
'Continue' => 'Continuar',
|
||||
'Create an other database' => 'Criar outro banco de dados',
|
||||
'Database connection' => 'Conexão do BD',
|
||||
'Database connection configuration' => 'Configuração de conexão do banco de dados',
|
||||
'Database selection' => 'Seleção do BD',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Não esqueça de apagar a pasta web/install.',
|
||||
'English' => 'Inglês',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'Por enquanto, o assistente permite apenas o banco de dados. Para atualizar seus arquivos PHP você deve proceder manualmente.',
|
||||
'French' => 'Francês',
|
||||
'General information' => 'Informações gerais',
|
||||
'German' => 'Alemão',
|
||||
'Go to back office' => 'Voltar para o painel administrativo',
|
||||
'Installation' => 'Instalação',
|
||||
'It seems that Thelia database is already up to date.' => 'Parece que o banco de dados do Thelia já está atualizado.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Parece que o Thelia já está instalado nesse sistema. Por favor verifique a configuração, Please check configuration, faça as correções necessárias e tente novamente.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'É fortemente recomendado fazer uma cópia de segurança antes de continuar.',
|
||||
'Please wait ...' => 'Por favor aguarde ...',
|
||||
'Refresh' => 'Atualizar',
|
||||
'Select below the one you want to use.' => 'Selecione abaixo qual banco de dados você deseja utilizar.',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Desculpe, seu banco de dados não pôde ser restaurado. Tente fazer isso manualmente',
|
||||
'Thanks' => 'Obrigado',
|
||||
'The SQL server contains multiple databases.' => 'O servidor SQl contém múltiplos banco de dados.',
|
||||
'The sql dump has been saved in %file' => 'O arquivo sql foi salvo em %file',
|
||||
'The update wizard directory will be removed' => 'A pasta do assistente de atualização foi removida',
|
||||
'Thelia installation wizard' => 'Assistente de instalação do Thelia',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia está instalado. Obrigado!',
|
||||
'Unexpected error occured: %err' => 'Ocorreu um erro inesperado: %err',
|
||||
'Update' => 'Atualizar',
|
||||
'Update Thelia' => 'Atualizar Thelia',
|
||||
'Update proccess trace' => 'Traço do processo de atualização',
|
||||
'Updating Thelia.' => 'Atualizando Thelia.',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Nós vamos te guiar através deste processo para instalar Thelia no seu sistema.',
|
||||
'Welcome in the Thelia installation wizard.' => 'Bem vindo ao assistente de instalação do Thelia.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Bem vindo ao assistente de atualização do Thelia.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Você deseja atualizar sua instalação do Thelia da versão <strong>%current</strong> para versão <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'Informações de conexão incorretas',
|
||||
'Your database has been backed up. The sql file : %file' => 'Foi realizado uma cópia de segurança do seu banco de dados. O arquivo sql : %file',
|
||||
'Your database has been restored.' => 'Seu banco de dados foi restaurado.',
|
||||
'update to version %version' => 'atualizar para versão %version',
|
||||
'website url :' => 'URL da loja :',
|
||||
];
|
||||
57
web/install/I18n/ru_RU.php
Normal file
57
web/install/I18n/ru_RU.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Извините, произошла непредвиденная ошибка</strong>: %err</p><p>Детали ошибки:</p><p>%details</p>',
|
||||
'Administrator login :' => 'Логин администратора :',
|
||||
'Administrator password :' => 'Пароль администратора :',
|
||||
'Administrator password verification :' => 'Подтверждение пароля администратора :',
|
||||
'Administrator preferred locale :' => 'Предпочтительный язык администратора :',
|
||||
'Backup and update Thelia' => 'Резервное копирование и обновление Thelia',
|
||||
'Cache directory has been cleared' => 'Каталог кэша был очищен',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'Каталог кэша не был очищен. Пожалуйста удалите содержимое каталога вручную.',
|
||||
'Checking PHP version and permissions' => 'Проверка версии php и прав',
|
||||
'Checking permissions' => 'Проверка прав',
|
||||
'Choose your database' => 'Выберите базу данный',
|
||||
'Company name :' => 'Имя компании :',
|
||||
'Contact email :' => 'Контактный email :',
|
||||
'Continue' => 'Продолжить',
|
||||
'Create an other database' => 'Создать другую базу данных',
|
||||
'Database connection' => 'Подключение к базе данных',
|
||||
'Database connection configuration' => 'Конфигурация подключения к базе данных',
|
||||
'Database selection' => 'Выбор базы данных',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Не забудьте удалить каталог web/install.',
|
||||
'English' => 'Английский',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'На данный момент мастер позволяет только обновление базы данных. Обновить Ваши php файлы Вы должны вручную.',
|
||||
'French' => 'Французкий',
|
||||
'General information' => 'Общие сведения',
|
||||
'German' => 'Немецкий',
|
||||
'Go to back office' => 'Перейти к Панели администратора',
|
||||
'Installation' => 'Установка',
|
||||
'It seems that Thelia database is already up to date.' => 'Кажется, что база данных Thelia уже обновлена.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Кажется, что Thelia уже установлена в систему. Пожалуйста проверьте настройки, выполните очистку, если необходимо и попробуйте снова.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Настоятельно рекомендуется сделать резервную копию перед продолжением.',
|
||||
'Please wait ...' => 'Пожалуйста, подождите ...',
|
||||
'Refresh' => 'Обновить',
|
||||
'Select below the one you want to use.' => 'Выберите ниже то, что вы хотите использовать.',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'К сожалению, Ваша база данных не может быть восстановлена. Попробуйте сделать это вручную',
|
||||
'Thanks' => 'Спасибо',
|
||||
'The SQL server contains multiple databases.' => 'SQL server содержит несколько баз данных.',
|
||||
'The sql dump has been saved in %file' => 'Дамп sql был сохранен в %file',
|
||||
'The update wizard directory will be removed' => 'Каталог мастера обновления был удален',
|
||||
'Thelia installation wizard' => 'Мастер установки Thelia',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia установлена. Спасибо!',
|
||||
'Unexpected error occured: %err' => 'Произошла непредвиденная ошибка: %err',
|
||||
'Update' => 'Обновить',
|
||||
'Update Thelia' => 'Обновить Thelia',
|
||||
'Update proccess trace' => 'Трассировка процесса обновления',
|
||||
'Updating Thelia.' => 'Обновление Thelia.',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Мы поможем Вам на протяжении процесса установки Thelia на Вашей системе.',
|
||||
'Welcome in the Thelia installation wizard.' => 'Добро пожаловать в мастер установки Thelia.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Добро пожаловать в мастере обновления Thelia.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Хотели бы вы обновить Thelia с версии <strong>%current</strong> до версии <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'Неверная информация о подключении',
|
||||
'Your database has been backed up. The sql file : %file' => 'Резервная копия Вашей базы данных была создана. Sql-файл: %file',
|
||||
'Your database has been restored.' => 'База данных была восстановлена.',
|
||||
'update to version %version' => 'Обновление до версии %version',
|
||||
'website url :' => 'URL магазина :',
|
||||
];
|
||||
72
web/install/I18n/sk_SK.php
Normal file
72
web/install/I18n/sk_SK.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Je nám ľúto, vyskytla sa neočakávaná chyba</strong>: %err</p> <p>Podrobnosti o chybe:</p> <p>%details</p>',
|
||||
'Administrator email :' => 'E-mail na Administrátora:',
|
||||
'Administrator login :' => 'Správca prihlásiť:',
|
||||
'Administrator password :' => 'Heslo správcu:',
|
||||
'Administrator password verification :' => 'Overenie hesla správcu:',
|
||||
'Administrator preferred locale :' => 'Správcom preferovaný locale:',
|
||||
'Backup and update Thelia' => 'Zálohovanie a aktualizácia Thelia',
|
||||
'Cache directory has been cleared' => 'Adresár Cache bol vymazaný',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'Adresár Cache nebol vymazaný. Prosím vymažte obsah adresára cache manuálne.',
|
||||
'Checking PHP version and permissions' => 'Kontrola verzie PHP a povolení',
|
||||
'Checking permissions' => 'Kontrolovanie povolení',
|
||||
'Choose your database' => 'Vyber databázu',
|
||||
'Company name :' => 'Názov spoločnosti :',
|
||||
'Contact email :' => 'Kontaktný e-mail :',
|
||||
'Continue' => 'Pokračovať',
|
||||
'Create an other database' => 'Vytvorte inú databázu',
|
||||
'Database connection' => 'Pripojenie na databázu',
|
||||
'Database connection configuration' => 'Konfigurácia pripojenia databázy',
|
||||
'Database selection' => 'Výber databázy',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Nezabudnite odstrániť adresár web/install.',
|
||||
'English' => 'Anglicky',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'Pre túto chvíľu, Sprievodca umožňuje len aktualizáciu databázy. Ak chcete aktualizovať vaše php súbory, musíte postupovať ručne.',
|
||||
'French' => 'Francúzsky',
|
||||
'General information' => 'Všeobecné informácie',
|
||||
'German' => 'Nemecky',
|
||||
'Go to back office' => 'Prejsť do kancelárie',
|
||||
'Installation' => 'Inštalácia',
|
||||
'It seems that Thelia database is already up to date.' => 'Zdá sa, že databáza Thelia je už aktualizovaná.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Zdá sa, že Thelia už je nainštalovaná v tomto systéme. Prosím skontrolujte konfiguráciu, vykonajte údržbu a čistenie, ak je to potrebné, a skúste to znova.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Dôrazne sa odporúča, zálohovať pred ďalším pokračovaním.',
|
||||
'Missing email-address' => 'Chýbajúca e-mailová adresa',
|
||||
'Missing or invalid login' => 'Chýbajúce alebo neplatné prihlásenie',
|
||||
'Missing password' => 'Chýbajúce heslo',
|
||||
'Please wait ...' => 'Prosím počkajte ...',
|
||||
'Post update instructions' => 'Odoslať aktualizačné inštrukcie',
|
||||
'Refresh' => 'Obnoviť',
|
||||
'Select below the one you want to use.' => 'Vyberte si dolu jednu, ktorú chcete použiť.',
|
||||
'Shop preferred locale :' => 'Obchodom preferovaná lokalita:',
|
||||
'Sorry, your database can\'t be backed up. Reason : ' => 'Ospravedlňujeme sa, databáza sa nedá zálohovať. Dôvod:',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Ospravedlňujeme sa, vašu databázu nie je možné obnoviť. Skúste to urobiť manuálne',
|
||||
'Thanks' => 'Ďakujeme',
|
||||
'The SQL server contains multiple databases.' => 'SQL server obsahuje viac databáz.',
|
||||
'The given passwords do not match' => 'Zadané heslá sa nezhodujú',
|
||||
'The install wizard directory will be removed' => 'Bude odstránený adresár Sprievodcu aktualizácie',
|
||||
'The sql dump has been saved in %file' => 'Sql dump bol uložený do %file',
|
||||
'The update wizard directory will be removed' => 'Bude odstránený adresár Sprievodcu aktualizácie',
|
||||
'Thelia as been successfully updated to version %version' => 'Thelia bola úspešne aktualizovaná na verziu %version',
|
||||
'Thelia installation wizard' => 'Sprievodca inštaláciou Thelia',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia systém je teraz nainštalovaný. Ďakujeme !',
|
||||
'Unexpected error occured: %err' => 'Vyskytla sa neočakávaná chyba: %err',
|
||||
'Update' => 'Aktualizovať',
|
||||
'Update Thelia' => 'Aktualizuj Thelia',
|
||||
'Update proccess' => 'Proces aktualizácie',
|
||||
'Update proccess trace' => 'Sledovanie procesu aktualizácie',
|
||||
'Updating Thelia.' => 'Aktualizujeme Thelia.',
|
||||
'Username :' => 'Užívateľské meno:',
|
||||
'Version' => 'Verzia',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Povedieme vás počas celého procesu inštalácie Thelia na váš systém.',
|
||||
'Welcome' => 'Vitajte',
|
||||
'Welcome in the Thelia installation wizard.' => 'Víta vás Sprievodca inštaláciou Thelia.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Vitajte v sprievodcovi Thelia updater.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Chcete aktualizovať vašu inštaláciu Thelia verzie <strong>%current</strong> na verziu <strong>%latest</strong>.',
|
||||
'Wrong connection information' => 'Nesprávne informácia pre Pripojenie',
|
||||
'Your database has been backed up. The sql file : %file' => 'Vaša databáza bola zálohovaná. Sql súbor: %file',
|
||||
'Your database has been restored.' => 'Vaša databáza bola obnovená.',
|
||||
'or' => 'alebo',
|
||||
'update to version %version' => 'aktualizovať na verziu % verziu',
|
||||
'website url :' => 'Obchod URL:',
|
||||
];
|
||||
67
web/install/I18n/tr_TR.php
Normal file
67
web/install/I18n/tr_TR.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>' => '<p><strong>Özür dilerim, beklenmeyen bir hata oluştu</strong>: %err</p> <p>Hata ayrıntıları:</p> <p>%details</p>',
|
||||
'Administrator login :' => 'Yönetici girişi:',
|
||||
'Administrator password :' => 'Yönetici parolası:',
|
||||
'Administrator password verification :' => 'Yönetici parola doğrulama:',
|
||||
'Administrator preferred locale :' => 'Yönetici tercih edilen yerel ayarı:',
|
||||
'Backup and update Thelia' => 'Yedekleme ve güncelleme Thelia',
|
||||
'Cache directory has been cleared' => 'Önbellek dizini temizlenmiş oldu',
|
||||
'Cache directory has not been cleared. Please manually delete content of cache directory.' => 'Önbellek dizini temizlenmedi. Lütfen el ile önbellek dizinin içeriğini silin.',
|
||||
'Checking PHP version and permissions' => 'PHP sürümü ve izinleri denetleme',
|
||||
'Checking permissions' => 'İzinleri denetleme',
|
||||
'Choose your database' => 'Veritabanınızı seçin',
|
||||
'Company name :' => 'Şirket adı :',
|
||||
'Contact email :' => 'E-posta iletişim:',
|
||||
'Continue' => 'Devam Et',
|
||||
'Create an other database' => 'Bir veritabanı oluşturmak',
|
||||
'Database connection' => 'Veritabanı bağlantısı',
|
||||
'Database connection configuration' => 'Veritabanı bağlantı yapılandırma',
|
||||
'Database selection' => 'Veritabanı seçimi',
|
||||
'Don\'t forget to delete the web/install directory.' => 'Web/install yükleme dizinini silmeyi unutma.',
|
||||
'English' => 'ingilizce',
|
||||
'For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.' => 'Şu an için yalnızca bir güncelleştirme Veritabanı Sihirbazı\'na sağlar. Php dosyaları güncelleştirmek için el ile devam etmeliyiz.',
|
||||
'French' => 'Fransızca',
|
||||
'General information' => 'Genel bilgi',
|
||||
'German' => 'Almanca',
|
||||
'Go to back office' => 'Git arka ofis',
|
||||
'Host :' => 'Ana bilgisayar:',
|
||||
'Installation' => 'Kurulum',
|
||||
'It seems that Thelia database is already up to date.' => 'Görünüşe göre Thelia veritabanı zaten güncel durumda.',
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.' => 'Görünüşe göre Thelia bu sistemde zaten yüklü. Lütfen yapılandırma kontrol edin, gerekirse, yeniden bir deneyin bazı temizleme işlemi gerçekleştirin.',
|
||||
'It\'s strongly recommended to make a backup before proceeding.' => 'Devam etmeden önce yedeklemeniz için şiddetle tavsiye edilir.',
|
||||
'Password :' => 'Şifre :',
|
||||
'Please wait ...' => 'Lütfen bekleyin...',
|
||||
'Port :' => 'Port :',
|
||||
'Published by OpenStudio' => 'OpenStudio tarafından Yayınlandı',
|
||||
'Refresh' => 'Yenile',
|
||||
'Select below the one you want to use.' => 'Kullanmak istediğinizi seçin.',
|
||||
'Sorry, your database can\'t be restored. Try to do it manually' => 'Üzgünüz, veritabanı geri yüklenemiyor. El ile yapmayı deneyin',
|
||||
'Thanks' => 'Teşekkürler',
|
||||
'The SQL server contains multiple databases.' => 'SQL server birden çok veritabanı içerir.',
|
||||
'The sql dump has been saved in %file' => 'Sql dökümü %file kaydedildi',
|
||||
'The update wizard directory will be removed' => 'Güncelleştirme Sihirbazı dizin kaldırılır',
|
||||
'Thelia contributions' => 'Thelia katkıları',
|
||||
'Thelia installation wizard' => 'Thelia Yükleme Sihirbazı',
|
||||
'Thelia is now installed. Thank you !' => 'Thelia şimdi yükleniyor. Teşekkür ederiz!',
|
||||
'Thelia support forum' => 'Thelia destek forumu',
|
||||
'Unexpected error occured: %err' => 'Beklenmeyen bir hata oluştu: %err',
|
||||
'Update' => 'Güncelle',
|
||||
'Update Thelia' => 'Güncelleştirme Thelia',
|
||||
'Update proccess trace' => 'Güncelleştirme süreç izleme',
|
||||
'Updating Thelia.' => 'Güncelleştirme Thelia.',
|
||||
'Username :' => 'Kullanıcı adı :',
|
||||
'Version' => 'Sürüm',
|
||||
'We will guide you throughout this process to install any application on your system.' => 'Thelia sisteminize kurmak için bu işlem boyunca size yol gösterir.',
|
||||
'Welcome' => 'Hoşgeldiniz',
|
||||
'Welcome in the Thelia installation wizard.' => 'Thelia yükleme Sihirbazına Hoş geldiniz.',
|
||||
'Welcome in the Thelia updater wizard.' => 'Thelia Güncelleme sihirbazına hoş geldiniz.',
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.' => 'Senin yüklemesinden Thelia sürüm <strong>%current</strong> sürüm <strong>%latest</strong> için güncelleştirmek istiyor musunuz.',
|
||||
'Wrong connection information' => 'Yanlış bağlantı bilgileri',
|
||||
'Your database has been backed up. The sql file : %file' => 'Veritabanı yedeklenen. Sql dosyası: %file',
|
||||
'Your database has been restored.' => 'Veritabanınızı geri yüklendi.',
|
||||
'or' => 'VEYA',
|
||||
'update to version %version' => 'sürüm %version sürüme güncelleme',
|
||||
'website url :' => 'Mağaza URL:',
|
||||
];
|
||||
129
web/install/bdd.php
Normal file
129
web/install/bdd.php
Normal file
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
$step=4;
|
||||
include("header.php");
|
||||
|
||||
try {
|
||||
if (isset($_POST['host']) && isset($_POST['username']) && isset($_POST['password']) && isset($_POST['port'])){
|
||||
|
||||
$_SESSION['install']['host'] = $_POST['host'];
|
||||
$_SESSION['install']['username'] = $_POST['username'];
|
||||
$_SESSION['install']['password'] = $_POST['password'];
|
||||
$_SESSION['install']['port'] = $_POST['port'];
|
||||
|
||||
$checkConnection = new \Thelia\Install\CheckDatabaseConnection($_POST['host'], $_POST['username'], $_POST['password'], $_POST['port']);
|
||||
if(!$checkConnection->exec()) {
|
||||
header('location: connection.php?err=1');
|
||||
exit;
|
||||
}
|
||||
$databases = $checkConnection->getConnection()->query('SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA');
|
||||
|
||||
if(false === $databases){
|
||||
header('location: connection.php?err=1');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
elseif($_SESSION['install']['step'] >=3) {
|
||||
|
||||
$checkConnection = new \Thelia\Install\CheckDatabaseConnection($_SESSION['install']['host'], $_SESSION['install']['username'], $_SESSION['install']['password'], $_SESSION['install']['port']);
|
||||
}
|
||||
else {
|
||||
header('location: connection.php?err=1');
|
||||
exit;
|
||||
}
|
||||
$_SESSION['install']['step'] = 4;
|
||||
$connection = $checkConnection->getConnection();
|
||||
|
||||
?>
|
||||
<div class="well">
|
||||
<form action="config.php" method="post">
|
||||
<fieldset>
|
||||
<legend><?php echo $trans->trans('Choose your database'); ?></legend>
|
||||
<p>
|
||||
<?php echo $trans->trans('The SQL server contains multiple databases.'); ?><br/>
|
||||
<?php echo $trans->trans('Select below the one you want to use.'); ?>
|
||||
</p>
|
||||
<?php foreach($databases as $database): ?>
|
||||
<?php if ($database['SCHEMA_NAME'] == 'information_schema') continue; ?>
|
||||
<?php
|
||||
$connection->exec(sprintf('use %s', $database['SCHEMA_NAME']));
|
||||
|
||||
$tables = $connection->query('SHOW TABLES');
|
||||
|
||||
$found = false;
|
||||
foreach($tables as $table) {
|
||||
if($table[0] == 'cart_item') {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="radio">
|
||||
<label for="database_<?php echo $database['SCHEMA_NAME']; ?>">
|
||||
<input type="radio" name="database" id="database_<?php echo $database['SCHEMA_NAME']; ?>" value="<?php echo $database['SCHEMA_NAME']; ?>" <?php if($found){ echo "disabled"; } ?>>
|
||||
<?php echo $database['SCHEMA_NAME']; ?>
|
||||
</label>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php
|
||||
$connection->exec('use information_schema');
|
||||
|
||||
$permissions = $connection->query("SELECT COUNT( * ) FROM `USER_PRIVILEGES`
|
||||
WHERE PRIVILEGE_TYPE = 'CREATE'
|
||||
AND GRANTEE LIKE '%".$_SESSION['install']['username']."%'
|
||||
AND IS_GRANTABLE = 'YES';");
|
||||
|
||||
$writePermission = false;
|
||||
if($permissions->fetchColumn(0) > 0) {
|
||||
?>
|
||||
<p>
|
||||
<?php echo $trans->trans('or'); ?>
|
||||
</p>
|
||||
|
||||
<div class="radio">
|
||||
<label>
|
||||
<?php echo $trans->trans('Create an other database'); ?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" name="database_create" class="form-control">
|
||||
</div>
|
||||
<?php } ?>
|
||||
</fieldset>
|
||||
<div class="clearfix">
|
||||
<div class="control-btn">
|
||||
<button type="submit" class="pull-right btn btn-default btn-primary"><?php echo $trans->trans('Continue'); ?></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
catch (\Exception $ex) {
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans(
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>',
|
||||
[
|
||||
'%err' => $ex->getMessage(),
|
||||
'%details' => nl2br($ex->getTraceAsString())
|
||||
]
|
||||
); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
include 'footer.php';
|
||||
14
web/install/bootstrap.php
Normal file
14
web/install/bootstrap.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
define('THELIA_INSTALL_MODE', true);
|
||||
include __DIR__ . "/../../core/vendor/autoload.php";
|
||||
171
web/install/config.php
Normal file
171
web/install/config.php
Normal file
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
$step = 5;
|
||||
include("header.php");
|
||||
|
||||
try {
|
||||
$err = isset($_GET['err']) && $_GET['err'];
|
||||
$errCode = isset($_GET['err']) ? $_GET['err'] : 0;
|
||||
|
||||
if (!$err && $_SESSION['install']['step'] != $step) {
|
||||
try {
|
||||
$checkConnection = new \Thelia\Install\CheckDatabaseConnection(
|
||||
$_SESSION['install']['host'],
|
||||
$_SESSION['install']['username'],
|
||||
$_SESSION['install']['password'],
|
||||
$_SESSION['install']['port']
|
||||
);
|
||||
$connection = $checkConnection->getConnection();
|
||||
$connection->exec("SET NAMES UTF8");
|
||||
$database = new \Thelia\Install\Database($connection);
|
||||
|
||||
if (isset($_POST['database'])) {
|
||||
$_SESSION['install']['database'] = $_POST['database'];
|
||||
}
|
||||
|
||||
if (isset($_POST['database_create']) && $_POST['database_create'] != "") {
|
||||
$_SESSION['install']['database'] = $_POST['database_create'];
|
||||
$database->createDatabase($_SESSION['install']['database']);
|
||||
}
|
||||
|
||||
$database->insertSql($_SESSION['install']['database']);
|
||||
|
||||
if (!file_exists(THELIA_CONF_DIR . "/database.yml")) {
|
||||
$fs = new \Symfony\Component\Filesystem\Filesystem();
|
||||
|
||||
$sampleConfigFile = THELIA_CONF_DIR . "/database.yml.sample";
|
||||
$configFile = THELIA_CONF_DIR . "/database.yml";
|
||||
|
||||
$fs->copy($sampleConfigFile, $configFile, true);
|
||||
|
||||
$configContent = file_get_contents($configFile);
|
||||
|
||||
$configContent = str_replace("%DRIVER%", "mysql", $configContent);
|
||||
$configContent = str_replace("%USERNAME%", $_SESSION['install']['username'], $configContent);
|
||||
$configContent = str_replace("%PASSWORD%", $_SESSION['install']['password'], $configContent);
|
||||
$configContent = str_replace(
|
||||
"%DSN%",
|
||||
sprintf(
|
||||
"mysql:host=%s;dbname=%s;port=%s",
|
||||
$_SESSION['install']['host'],
|
||||
$_SESSION['install']['database'],
|
||||
$_SESSION['install']['port']
|
||||
),
|
||||
$configContent
|
||||
);
|
||||
|
||||
file_put_contents($configFile, $configContent);
|
||||
}
|
||||
} catch(\exception $ex) {
|
||||
?>
|
||||
<div class="alert alert-danger"><?php echo $trans->trans('Unexpected error occured: %err', ['%err' => $ex->getMessage()]); ?></div>
|
||||
<?php
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$_SESSION['install']['step'] = $step;
|
||||
|
||||
// Retrieve the website url
|
||||
$url = $_SERVER['PHP_SELF'];
|
||||
$website_url = preg_replace("#/install/[a-z](.*)#" ,'', $url);
|
||||
|
||||
?>
|
||||
<?php if ($errCode & 1) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans('Missing or invalid login'); ?>
|
||||
</div>
|
||||
<?php } if ($errCode & 2) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans('Missing password'); ?>
|
||||
</div>
|
||||
<?php } if ($errCode & 3) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans('Missing email-address'); ?>
|
||||
</div>
|
||||
<?php } if ($errCode & 4) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans("The given passwords do not match"); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<form action="end.php" method="POST" >
|
||||
<div class="well">
|
||||
<div class="form-group">
|
||||
<label for="admin_login"><?php echo $trans->trans('Administrator login :'); ?></label>
|
||||
<input id="admin_login" class="form-control" type="text" name="admin_login" placeholder="admin" value="<?php if(isset($_GET["admin_login"])) { echo htmlspecialchars(addslashes($_GET["admin_login"])); } ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="admin_email"><?php echo $trans->trans('Administrator email :'); ?></label>
|
||||
<input id="admin_email" class="form-control" type="email" name="admin_email" placeholder="admin" value="<?php if(isset($_GET["admin_email"])) { echo htmlspecialchars(addslashes($_GET["admin_email"])); } ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="admin_password"><?php echo $trans->trans('Administrator password :'); ?></label>
|
||||
<input id="admin_password" class="form-control" type="password" name="admin_password" value="" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="admin_password_verif"><?php echo $trans->trans('Administrator password verification :'); ?></label>
|
||||
<input id="admin_password_verif" class="form-control" type="password" name="admin_password_verif" value="" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="admin_locale"><?php echo $trans->trans('Administrator preferred locale :'); ?></label>
|
||||
<select id="admin_locale" name="admin_locale" class="form-control" required>
|
||||
<option value="en_US"><?php echo $trans->trans('English'); ?></option>
|
||||
<option value="fr_FR"><?php echo $trans->trans('French'); ?></option>
|
||||
<option value="de_DE"><?php echo $trans->trans('German'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="shop_locale"><?php echo $trans->trans('Shop preferred locale :'); ?></label>
|
||||
<select id="shop_locale" name="shop_locale" class="form-control" required>
|
||||
<option value="en_US"<?php if(isset($_GET["admin_locale"]) && $_GET["admin_locale"] === "en_US") { echo " selected=\"\""; } ?>><?php echo $trans->trans('English'); ?></option>
|
||||
<option value="fr_FR"<?php if(isset($_GET["admin_locale"]) && $_GET["admin_locale"] === "fr_FR") { echo " selected=\"\""; } ?>><?php echo $trans->trans('French'); ?></option>
|
||||
<option value="de_DE"<?php if(isset($_GET["admin_locale"]) && $_GET["admin_locale"] === "de_DE") { echo " selected=\"\""; } ?>><?php echo $trans->trans('German'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email_contact"><?php echo $trans->trans('Contact email :'); ?></label>
|
||||
<input id="email_contact" class="form-control" type="text" name="store_email" placeholder="foo@bar.com" value="<?php if(isset($_GET["store_email"])) { echo htmlspecialchars(addslashes($_GET["store_email"])); } ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="site_name"><?php echo $trans->trans('Company name :'); ?></label>
|
||||
<input id="site_name" class="form-control" type="text" name="store_name" placeholder="" value="<?php if(isset($_GET["store_name"])) { echo htmlspecialchars(addslashes($_GET["store_name"])); } ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="site_name"><?php echo $trans->trans('website url :'); ?></label>
|
||||
<input id="site_name" class="form-control" type="text" name="url_site" placeholder="" value="<?php if(isset($_GET["url_site"])) { echo htmlspecialchars(addslashes($_GET["url_site"])); } else { echo "http://".$_SERVER['SERVER_NAME'].$website_url; } ?>" required>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<div class="control-btn">
|
||||
<button type="submit" class="pull-right btn btn-default btn-primary"><?php echo $trans->trans('Continue'); ?></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
} catch (\Exception $ex) {
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans(
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>',
|
||||
[
|
||||
'%err' => $ex->getMessage(),
|
||||
'%details' => nl2br($ex->getTraceAsString())
|
||||
]
|
||||
); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
include 'footer.php';
|
||||
58
web/install/connection.php
Normal file
58
web/install/connection.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
$step = 3;
|
||||
include("header.php");
|
||||
if(!$_SESSION['install']['continue'] && $_SESSION['install']['step'] == 2) {
|
||||
header(sprintf('location: %s', $_SESSION['install']['return_step']));
|
||||
}
|
||||
|
||||
$_SESSION['install']['step'] = 3;
|
||||
?>
|
||||
|
||||
<form action="bdd.php" method="POST" >
|
||||
<?php if(isset($_GET['err']) && $_GET['err'] == 1){ ?>
|
||||
<div class="alert alert-danger"><?php echo $trans->trans('Wrong connection information'); ?></div>
|
||||
<?php } ?>
|
||||
<div class="well">
|
||||
<fieldset>
|
||||
<legend><?php echo $trans->trans('Database connection configuration'); ?></legend>
|
||||
<div class="form-group">
|
||||
<label for="host"><?php echo $trans->trans('Host :'); ?></label>
|
||||
<input id="host" class="form-control" type="text" name="host" placeholder="localhost" value="<?php if(isset($_SESSION['install']['host'])){ echo $_SESSION['install']['host']; } ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="user"><?php echo $trans->trans('Username :'); ?></label>
|
||||
<input id="user" type="text" class="form-control" name="username" placeholder="john" value="<?php if(isset($_SESSION['install']['username'])){ echo $_SESSION['install']['username']; } ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password"><?php echo $trans->trans('Password :'); ?></label>
|
||||
<input id="password" type="password" class="form-control" name="password" placeholder="l33t 5p34k" >
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="port"><?php echo $trans->trans('Port :'); ?></label>
|
||||
<input id="port" type="text" class="form-control" name="port" value="<?php if(isset($_SESSION['install']['port'])){ echo $_SESSION['install']['port']; } else { echo '3306'; } ?>">
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="clearfix">
|
||||
<div class="control-btn">
|
||||
<button type="submit" class="pull-right btn btn-default btn-primary"><?php echo $trans->trans('Continue'); ?></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php include("footer.php"); ?>
|
||||
190
web/install/end.php
Normal file
190
web/install/end.php
Normal file
@@ -0,0 +1,190 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
$step=6;
|
||||
include "header.php";
|
||||
|
||||
try {
|
||||
if ($_SESSION['install']['step'] != $step && (empty($_POST['admin_login']) || empty($_POST['admin_password']) || ($_POST['admin_password'] != $_POST['admin_password_verif']) || strlen($_POST['admin_login']) < 3)) {
|
||||
$query = $_POST;
|
||||
$query["err"] = 0;
|
||||
if (empty($_POST['admin_login'])) {
|
||||
$query["err"] |= 1;
|
||||
}
|
||||
if (empty($_POST['admin_email'])) {
|
||||
$query["err"] |= 3;
|
||||
}
|
||||
if (empty($_POST['admin_password'])) {
|
||||
$query["err"] |= 2;
|
||||
}
|
||||
if ($_POST['admin_password'] != $_POST['admin_password_verif']) {
|
||||
$query["err"] |= 4;
|
||||
}
|
||||
if (isset($query["admin_password"])) {
|
||||
unset($query["admin_password"]);
|
||||
}
|
||||
if (isset($query["admin_password_verif"])) {
|
||||
unset($query["admin_password_verif"]);
|
||||
}
|
||||
header(sprintf('location: config.php?%s', http_build_query($query)));
|
||||
exit; // Don't forget to exit, otherwise, the script will continue to run.
|
||||
}
|
||||
|
||||
if ($_SESSION['install']['step'] == 5) {
|
||||
// Check now if we can create the App.
|
||||
$thelia = new \Thelia\Core\Thelia("install", true);
|
||||
$thelia->boot();
|
||||
|
||||
$admin = new \Thelia\Model\Admin();
|
||||
$admin->setLogin($_POST['admin_login'])
|
||||
->setPassword($_POST['admin_password'])
|
||||
->setFirstname('admin')
|
||||
->setLastname('admin')
|
||||
->setLocale(empty($_POST['admin_locale']) ? 'en_US' : $_POST['admin_locale'])
|
||||
->setEmail($_POST['admin_email'])
|
||||
->save();
|
||||
|
||||
\Thelia\Model\ConfigQuery::write('store_email', $_POST['store_email']);
|
||||
\Thelia\Model\ConfigQuery::write('store_notification_emails', $_POST['store_email']);
|
||||
\Thelia\Model\ConfigQuery::write('store_name', $_POST['store_name']);
|
||||
\Thelia\Model\ConfigQuery::write('url_site', $_POST['url_site']);
|
||||
|
||||
$lang = \Thelia\Model\LangQuery::create()
|
||||
->findOneByLocale(empty($_POST['shop_locale']) ? "en_US" : $_POST['shop_locale'])
|
||||
;
|
||||
|
||||
if (null !== $lang) {
|
||||
$lang->toggleDefault();
|
||||
}
|
||||
|
||||
$secret = \Thelia\Tools\TokenProvider::generateToken();
|
||||
|
||||
\Thelia\Model\ConfigQuery::write('form.secret', $secret, 0, 0);
|
||||
|
||||
// Check if symlinks are working, and adjust original_image_delivery_mode and original_document_delivery_mode
|
||||
$target = __DIR__ . '/../symlink_test';
|
||||
// One never knows...
|
||||
@unlink($target);
|
||||
|
||||
if (true === touch($target)) {
|
||||
$link = $target . '.tmp';
|
||||
// One never knows...
|
||||
@unlink($link);
|
||||
|
||||
if (false === @symlink($target, $link)) {
|
||||
$mode = 'copy';
|
||||
} else {
|
||||
$mode = 'symlink';
|
||||
@unlink($link);
|
||||
}
|
||||
|
||||
@unlink($target);
|
||||
|
||||
\Thelia\Model\ConfigQuery::write('original_image_delivery_mode', $mode);
|
||||
\Thelia\Model\ConfigQuery::write('original_document_delivery_mode', $mode);
|
||||
}
|
||||
}
|
||||
|
||||
//clean up cache directories
|
||||
$fs = new \Symfony\Component\Filesystem\Filesystem();
|
||||
|
||||
$fs->remove(THELIA_ROOT . '/cache/prod');
|
||||
$fs->remove(THELIA_ROOT . '/cache/dev');
|
||||
$fs->remove(THELIA_ROOT . '/cache/install');
|
||||
|
||||
|
||||
$request = \Thelia\Core\HttpFoundation\Request::createFromGlobals();
|
||||
$_SESSION['install']['step'] = $step;
|
||||
|
||||
// Retrieve the website url
|
||||
$url = $_SERVER['PHP_SELF'];
|
||||
$website_url = preg_replace("#/install/[a-z](.*)#", '', $url);
|
||||
|
||||
?>
|
||||
<div class="well">
|
||||
<p class="lead text-center">
|
||||
<?php echo $trans->trans('Thelia is now installed. Thank you !'); ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
$scriptHook = <<<SCRIPT
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var current_site_url = "{$website_url}";
|
||||
var admin_link = $("#admin_url");
|
||||
|
||||
$.ajax(current_site_url + "/empty")
|
||||
.success(function() {
|
||||
admin_link.attr("href", current_site_url + "/admin");
|
||||
})
|
||||
});
|
||||
</script>
|
||||
SCRIPT;
|
||||
|
||||
ob_start();
|
||||
include('footer.php');
|
||||
$footerContent = ob_get_clean();
|
||||
|
||||
// Remove the install wizard
|
||||
/*try {
|
||||
$fs = new \Symfony\Component\Filesystem\Filesystem();
|
||||
$fs->remove(THELIA_WEB_DIR . DS . 'install');
|
||||
|
||||
?>
|
||||
<div class="alert alert-success"><p><?php
|
||||
echo $trans->trans('The install wizard directory will be removed');
|
||||
?></p></div><?php
|
||||
} catch (\Symfony\Component\Filesystem\Exception\IOException $ex) {
|
||||
?>
|
||||
<p class="lead text-center">
|
||||
<?php echo $trans->trans('Don\'t forget to delete the web/install directory.'); ?>
|
||||
</p>
|
||||
<?php
|
||||
}*/
|
||||
|
||||
?>
|
||||
<p class="lead text-center">
|
||||
<?php echo $trans->trans('Don\'t forget to delete the web/install directory.'); ?>
|
||||
</p>
|
||||
|
||||
<p class="lead text-center">
|
||||
<a href="<?php echo $website_url; ?>/index.php/admin" id="admin_url"><?php echo $trans->trans('Go to back office'); ?></a>
|
||||
</p>
|
||||
<?php
|
||||
|
||||
echo $footerContent;
|
||||
} catch (\Exception $ex) {
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans(
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>',
|
||||
[
|
||||
'%err' => $ex->getMessage(),
|
||||
'%details' => nl2br($ex->getTraceAsString())
|
||||
]
|
||||
); ?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
include('footer.php');
|
||||
}
|
||||
|
||||
BIN
web/install/fd33fd0-6fda040.ico
Normal file
BIN
web/install/fd33fd0-6fda040.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
36
web/install/footer.php
Normal file
36
web/install/footer.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© Thelia <?php echo date('Y'); ?>
|
||||
- <a href="http://www.openstudio.fr/" target="_blank"><?php echo $trans->trans('Published by OpenStudio'); ?></a>
|
||||
- <a href="http://forum.thelia.net/" target="_blank"><?php echo $trans->trans('Thelia support forum'); ?></a>
|
||||
- <a href="http://thelia.net/modules/" target="_blank"><?php echo $trans->trans('Thelia contributions'); ?></a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
|
||||
<?php if (isset($scriptHook)) { echo $scriptHook; } ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
if (ob_get_level() < 2) {
|
||||
echo ob_end_flush();
|
||||
}
|
||||
130
web/install/header.php
Normal file
130
web/install/header.php
Normal file
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
ini_set('display_errors', '1');
|
||||
|
||||
set_time_limit(0);
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
include 'bootstrap.php';
|
||||
|
||||
use Symfony\Component\Translation\Translator;
|
||||
|
||||
$lang = isset($_REQUEST['lang']) ? $_REQUEST['lang'] : null;
|
||||
|
||||
if($lang){
|
||||
$_SESSION['install']['lang'] = $_REQUEST['lang'];
|
||||
}
|
||||
elseif(!$lang && !isset($_SESSION['install']['lang'])){
|
||||
$_SESSION['install']['lang'] = "en_US";
|
||||
}
|
||||
|
||||
$trans = new Translator($_SESSION['install']['lang']);
|
||||
$trans->addLoader("php", new Symfony\Component\Translation\Loader\PhpFileLoader());
|
||||
$trans->addResource('php', __DIR__.'/I18n/'.$_SESSION['install']['lang'].'.php', $_SESSION['install']['lang']);
|
||||
|
||||
if (!isset($context)) {
|
||||
$context = 'install';
|
||||
}
|
||||
|
||||
// Check if we store is already configured and if we have to switch on an update process
|
||||
if ($context == "install" && $step == 1) {
|
||||
try {
|
||||
$checkPermission = new \Thelia\Install\CheckPermission(true, $trans);
|
||||
$isValid = $checkPermission->exec();
|
||||
$validationMessage = $checkPermission->getValidationMessages();
|
||||
} catch (\Thelia\Install\Exception\AlreadyInstallException $ex) {
|
||||
$update = new \Thelia\Install\Update(false);
|
||||
if (!$update->isLatestVersion()) {
|
||||
$updateLocation = str_replace('/index.php', '', $_SERVER["REQUEST_URI"]) . '/update.php';
|
||||
header("Location: " . $updateLocation);
|
||||
die();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<title><?php
|
||||
if ($context == "install") {
|
||||
echo $trans->trans('Installation');
|
||||
} else {
|
||||
echo $trans->trans('Update');
|
||||
}
|
||||
?></title>
|
||||
<link rel="shortcut icon" href="../favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
<?php
|
||||
// because the installation folder is deleted after the update
|
||||
echo file_get_contents('styles.css');
|
||||
?>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="topbar">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="version-info">
|
||||
<?php echo $trans->trans('Version') . " " . \Thelia\Core\Thelia::THELIA_VERSION ; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
// Installation
|
||||
|
||||
if ($context == "install") { ?>
|
||||
<div class="install">
|
||||
<div id="wrapper" class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="general-block-decorator">
|
||||
<h3 class="title title-without-tabs"><?php echo $trans->trans('Thelia installation wizard'); ?></h3>
|
||||
<div class="wizard">
|
||||
<ul>
|
||||
<li class="<?php if($step == 1){ echo 'active'; } elseif ($step > 1) { echo 'complete'; }?>"><span class="badge">1</span><?php echo $trans->trans('Welcome'); ?><span class="chevron"></span></li>
|
||||
<li class="<?php if($step == 2){ echo 'active'; } elseif ($step > 2) { echo 'complete'; }?>"><span class="badge">2</span><?php echo $trans->trans('Checking permissions'); ?><span class="chevron"></span></li>
|
||||
<li class="<?php if($step == 3){ echo 'active'; } elseif ($step > 3) { echo 'complete'; }?>"><span class="badge">3</span><?php echo $trans->trans('Database connection'); ?><span class="chevron"></span></li>
|
||||
<li class="<?php if($step == 4){ echo 'active'; } elseif ($step > 4) { echo 'complete'; }?>"><span class="badge">4</span><?php echo $trans->trans('Database selection'); ?><span class="chevron"></span></li>
|
||||
<li class="<?php if($step == 5){ echo 'active'; } elseif ($step > 5) { echo 'complete'; }?>"><span class="badge">5</span><?php echo $trans->trans('General information'); ?><span class="chevron"></span></li>
|
||||
<li class="<?php if($step == 6){ echo 'active'; } elseif ($step > 6) { echo 'complete'; }?>"><span class="badge">6</span><?php echo $trans->trans('Thanks'); ?><span class="chevron"></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
// Update
|
||||
|
||||
} else { ?>
|
||||
<div class="update">
|
||||
<div id="wrapper" class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="general-block-decorator">
|
||||
<h3 class="title title-without-tabs"><?php echo $trans->trans('Thelia installation wizard'); ?></h3>
|
||||
<div class="wizard">
|
||||
<ul>
|
||||
<li class="<?php if($step == 1){ echo 'active'; } elseif ($step > 1) { echo 'complete'; }?>"><span class="badge">1</span><?php echo $trans->trans('Welcome'); ?><span class="chevron"></span></li>
|
||||
<li class="<?php if($step == 2){ echo 'active'; } elseif ($step > 2) { echo 'complete'; }?>"><span class="badge">2</span><?php echo $trans->trans('Update'); ?><span class="chevron"></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
45
web/install/index.php
Normal file
45
web/install/index.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
include("php_version_check.php");
|
||||
|
||||
$step = 1;
|
||||
include("header.php");
|
||||
|
||||
?>
|
||||
<div class="well">
|
||||
<div class="clearfix text-center">
|
||||
<a href="?lang=fr_FR">
|
||||
Français
|
||||
</a>
|
||||
<span> <strong>|</strong> </span>
|
||||
<a href="?lang=en_US">
|
||||
English
|
||||
</a>
|
||||
<span> <strong>|</strong> </span>
|
||||
<a href="?lang=de_DE">
|
||||
Deutsch
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<p class="lead text-center">
|
||||
<?php echo $trans->trans('Welcome in the Thelia installation wizard.'); ?>
|
||||
</p>
|
||||
<p class="text-center">
|
||||
<?php echo $trans->trans('We will guide you throughout this process to install any application on your system.'); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<a href="permission.php" class="pull-right btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> <?php echo $trans->trans('Continue'); ?></a>
|
||||
</div>
|
||||
<?php include("footer.php"); ?>
|
||||
80
web/install/permission.php
Normal file
80
web/install/permission.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
?>
|
||||
<?php
|
||||
$step = 2;
|
||||
include("header.php");
|
||||
|
||||
try {
|
||||
$checkPermission = new \Thelia\Install\CheckPermission(true, $trans);
|
||||
$isValid = $checkPermission->exec();
|
||||
$validationMessage = $checkPermission->getValidationMessages();
|
||||
$_SESSION['install']['return_step'] = 'permission.php';
|
||||
$_SESSION['install']['continue'] = $isValid;
|
||||
$_SESSION['install']['current_step'] = 'permission.php';
|
||||
$_SESSION['install']['step'] = 2;
|
||||
?>
|
||||
<div class="well">
|
||||
|
||||
<p class="lead"><?php echo $trans->trans('Checking PHP version and permissions'); ?></p>
|
||||
<ul class="list-unstyled list-group">
|
||||
<?php foreach ($validationMessage as $item => $data): ?>
|
||||
<li class="list-group-item <?php if ($data['status']) {
|
||||
echo 'text-success';
|
||||
} else {
|
||||
echo 'text-danger';
|
||||
} ?>">
|
||||
<?php echo $data['text']; ?>
|
||||
<?php if (!$data['status']) {
|
||||
echo $data['hint'];
|
||||
} ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<?php if ($isValid) { ?>
|
||||
<a href="connection.php" class="pull-right btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span>
|
||||
<?php echo $trans->trans('Continue'); ?>
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<a href="permission.php" class="pull-right btn btn-default btn-danger"><span class="glyphicon glyphicon-refresh"></span>
|
||||
<?php echo $trans->trans('Refresh'); ?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
catch (\Thelia\Install\Exception\AlreadyInstallException $ex) {
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans(
|
||||
'It seems that Thelia is already installed on this system. Please check configuration, perform some cleanup if required, an try again.'
|
||||
); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
catch (\Exception $ex) {
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans('<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>', [
|
||||
'%err' => $ex->getMessage(),
|
||||
'%details' => nl2br($ex->getTraceAsString())
|
||||
]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
include("footer.php");
|
||||
?>
|
||||
16
web/install/php_version_check.php
Normal file
16
web/install/php_version_check.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
// Check php version before doing anything else
|
||||
if (version_compare(PHP_VERSION, '5.5', '<')) {
|
||||
die("Your server is running PHP ".PHP_VERSION.". Thelia 2 requires PHP 5.5 or better.");
|
||||
}
|
||||
1999
web/install/script.js
Normal file
1999
web/install/script.js
Normal file
File diff suppressed because it is too large
Load Diff
7536
web/install/styles.css
Normal file
7536
web/install/styles.css
Normal file
File diff suppressed because one or more lines are too long
104
web/install/update.php
Normal file
104
web/install/update.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
include("php_version_check.php");
|
||||
|
||||
$context = 'update';
|
||||
$step = 1;
|
||||
|
||||
include("header.php");
|
||||
|
||||
// todo: check security
|
||||
|
||||
?>
|
||||
<div class="well">
|
||||
<div class="clearfix text-center">
|
||||
<a href="?lang=fr_FR">
|
||||
Français
|
||||
</a>
|
||||
<span> <strong>|</strong> </span>
|
||||
<a href="?lang=en_US">
|
||||
English
|
||||
</a>
|
||||
<span> <strong>|</strong> </span>
|
||||
<a href="?lang=de_DE">
|
||||
Deutsch
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<p class="lead text-center">
|
||||
<?php echo $trans->trans('Welcome in the Thelia updater wizard.'); ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
$update = new \Thelia\Install\Update(false);
|
||||
if ($update->isLatestVersion()) { ?>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<p><?php
|
||||
echo $trans->trans('It seems that Thelia database is already up to date.');
|
||||
?></p>
|
||||
<p><em><?php
|
||||
echo $trans->trans('For the moment, the wizard allows only an update of the database. To update your php files you must proceed manually.');
|
||||
?></em></p>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<p><?php
|
||||
echo $trans->trans(
|
||||
'Would you like to update your installation of Thelia from version <strong>%current</strong> to version <strong>%latest</strong>.',
|
||||
[
|
||||
'%current' => $update->getCurrentVersion(),
|
||||
'%latest' => $update->getLatestVersion()
|
||||
]
|
||||
);
|
||||
?></p>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<p><?php
|
||||
echo $trans->trans('It\'s strongly recommended to make a backup before proceeding.');
|
||||
?></p>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<?php if (!$update->isLatestVersion()) { ?>
|
||||
<script>
|
||||
var token = true;
|
||||
|
||||
function start(elem)
|
||||
{
|
||||
if (token) {
|
||||
elem.innerHTML = '<?php echo $trans->trans('Please wait ...'); ?>';
|
||||
token = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div class="clearfix">
|
||||
<a onclick="return start(this)" href="updater.php?backup=1" class="pull-right btn btn-default btn-primary"><span
|
||||
class="glyphicon glyphicon-chevron-right"></span> <?php echo $trans->trans('Backup and update Thelia'); ?></a>
|
||||
<a onclick="return start(this)" href="updater.php" class="pull-right btn btn-default"><span
|
||||
class="glyphicon glyphicon-chevron-right"></span> <?php echo $trans->trans('Update Thelia'); ?></a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
include("footer.php");
|
||||
|
||||
260
web/install/updater.php
Normal file
260
web/install/updater.php
Normal file
@@ -0,0 +1,260 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
use Symfony\Component\Filesystem\Filesystem;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Thelia\Install\Exception\UpdateException;
|
||||
|
||||
$context = 'update';
|
||||
$step = 2;
|
||||
|
||||
include("header.php");
|
||||
|
||||
// todo: check security
|
||||
|
||||
// Retrieve the website url
|
||||
$url = $_SERVER['PHP_SELF'];
|
||||
$website_url = preg_replace("#/install/[a-z](.*)#" ,'', $url);
|
||||
|
||||
$backup = (isset($_GET['backup']) && $_GET['backup'] == 1);
|
||||
|
||||
$updateError = null;
|
||||
?>
|
||||
<div class="well">
|
||||
|
||||
<p class="lead text-center">
|
||||
<?php echo $trans->trans('Updating Thelia.'); ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
$update = new \Thelia\Install\Update(false);
|
||||
$update->setTranslator($trans);
|
||||
|
||||
if ($update->isLatestVersion()) { ?>
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<p><?php
|
||||
echo $trans->trans('It seems that Thelia database is already up to date.');
|
||||
?></p>
|
||||
</div>
|
||||
|
||||
<?php } else {
|
||||
|
||||
$continue = true;
|
||||
|
||||
// Backup
|
||||
if ($backup) {
|
||||
try {
|
||||
$update->backupDb();
|
||||
?>
|
||||
<div class="alert alert-success">
|
||||
<p><?php
|
||||
echo $trans->trans(
|
||||
'Your database has been backed up. The sql file : %file',
|
||||
[
|
||||
'%file' => $update->getBackupFile()
|
||||
]
|
||||
);
|
||||
?></p>
|
||||
</div><?php
|
||||
} catch (\Exception $ex) {
|
||||
$continue = false ;
|
||||
$updateError = $ex;
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<p><?php
|
||||
echo $trans->trans(
|
||||
'Sorry, your database can\'t be backed up. Reason : ' . $ex->getMessage()
|
||||
);
|
||||
?></p>
|
||||
</div><?php
|
||||
}
|
||||
}
|
||||
|
||||
if ($continue) {
|
||||
try {
|
||||
$update->process();
|
||||
} catch (UpdateException $ex) {
|
||||
$updateError = $ex;
|
||||
}
|
||||
|
||||
foreach ($update->getMessages() as $message) {
|
||||
alertBootstrapFormatter($message[0], $message[1]);
|
||||
}
|
||||
|
||||
if (null === $updateError) {
|
||||
?>
|
||||
|
||||
<div class="alert alert-success">
|
||||
<p><?php
|
||||
echo $trans->trans(
|
||||
'Thelia as been successfully updated to version %version',
|
||||
['%version' => $update->getCurrentVersion()]
|
||||
);
|
||||
?></p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ($update->hasPostInstructions()) {
|
||||
?>
|
||||
<div class="alert alert-info">
|
||||
<h2><?php echo $trans->trans("Post update instructions"); ?></h2>
|
||||
<?php echo $update->getPostInstructions('html'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<p class="lead text-center">
|
||||
<a href="<?php echo $website_url; ?>/index.php/admin"
|
||||
id="admin_url"><?php echo $trans->trans('Go to back office'); ?></a>
|
||||
</p>
|
||||
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $trans->trans(
|
||||
'<p><strong>Sorry, an unexpected error occured</strong>: %err</p><p>Error details:</p><p>%details</p>',
|
||||
[
|
||||
'%err' => $updateError->getMessage(),
|
||||
'%details' => nl2br($updateError->getTraceAsString())
|
||||
]
|
||||
); ?>
|
||||
</div>
|
||||
<?php
|
||||
// Try to restore DB
|
||||
if ($backup) {
|
||||
if (false === $update->restoreDb()) {
|
||||
$continue = false ;
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<p><?php
|
||||
echo $trans->trans(
|
||||
'Sorry, your database can\'t be restored. Try to do it manually'
|
||||
);
|
||||
?></p>
|
||||
<p><?php
|
||||
echo $trans->trans(
|
||||
'The sql dump has been saved in %file',
|
||||
[
|
||||
'%file' => $update->getBackupFile()
|
||||
]
|
||||
);
|
||||
?></p>
|
||||
</div><?php
|
||||
} else {
|
||||
?>
|
||||
<div class="alert alert-success">
|
||||
<p><?php
|
||||
echo $trans->trans(
|
||||
'Your database has been restored.'
|
||||
);
|
||||
?></p>
|
||||
</div><?php
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
|
||||
<p class="lead"><?php echo $trans->trans('Update proccess'); ?></p>
|
||||
<ul class="list-unstyled list-group">
|
||||
<?php foreach ($update->getUpdatedVersions() as $version) { ?>
|
||||
<li class="list-group-item text-success"><?php
|
||||
echo $trans->trans("update to version %version", ['%version' => $version]);
|
||||
?></li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (null !== $updateError) {
|
||||
?>
|
||||
<li class="list-group-item text-danger"><?php
|
||||
echo $trans->trans("update to version %version",
|
||||
['%version' => $updateError->getVersion()]);
|
||||
?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
|
||||
if (null !== $updateError) {
|
||||
?>
|
||||
<p class="lead"><?php echo $trans->trans('Update proccess trace'); ?></p>
|
||||
<ul class="list-unstyled list-group">
|
||||
<?php foreach ($update->getLogs() as $log) { ?>
|
||||
<li class="list-group-item"><?php
|
||||
echo sprintf("[%s] %s", $log[0], $log[1]);
|
||||
?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
</div><?php
|
||||
include("footer.php");
|
||||
|
||||
} else {
|
||||
|
||||
$finder = new Finder();
|
||||
$fs = new Filesystem();
|
||||
$hasDeleteError = false;
|
||||
|
||||
// try to clear cache
|
||||
$finder->files()->in(THELIA_CACHE_DIR);
|
||||
|
||||
foreach ($finder as $file) {
|
||||
try {
|
||||
$fs->remove($file);
|
||||
} catch (\Symfony\Component\Filesystem\Exception\IOException $ex) {
|
||||
$hasDeleteError = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($hasDeleteError) { ?>
|
||||
<div class="alert alert-danger"><p><?php
|
||||
echo $trans->trans('Cache directory has not been cleared. Please manually delete content of cache directory.');
|
||||
?></p></div>
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-success"><p><?php
|
||||
echo $trans->trans('Cache directory has been cleared');
|
||||
?></p></div>
|
||||
<?php }
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
include('footer.php');
|
||||
$footerContent = ob_get_clean();
|
||||
|
||||
// Remove the update wizard
|
||||
try {
|
||||
$fs->remove(THELIA_WEB_DIR . DS . 'install');
|
||||
?>
|
||||
<div class="alert alert-success"><p><?php
|
||||
echo $trans->trans('The update wizard directory will be removed');
|
||||
?></p></div><?php
|
||||
} catch (\Symfony\Component\Filesystem\Exception\IOException $ex) {
|
||||
?>
|
||||
<div class="alert alert-success"><p><?php
|
||||
echo $trans->trans('Don\'t forget to delete the web/install directory.');
|
||||
?></p></div><?php
|
||||
}
|
||||
|
||||
echo $footerContent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function alertBootstrapFormatter($message, $type = null)
|
||||
{
|
||||
if (!in_array($type, ['success', 'info', 'error', 'warning'])) {
|
||||
$type = 'info';
|
||||
}
|
||||
|
||||
echo '<div class="alert alert-' . $type . '">' . $message . '</div>';
|
||||
}
|
||||
Reference in New Issue
Block a user