From 8f721b320df23d3b8c743d3cd80fa7356b844496 Mon Sep 17 00:00:00 2001 From: Mzhelskiy Maxim Date: Mon, 21 Jan 2013 16:11:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=BA=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8?= =?UTF-8?q?=D0=B8=201.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.EN.txt | 14 +++++++++----- Readme.RU.txt | 13 +++++++++---- config/loader.php | 2 +- ...5.1_to_1.0.1.sql => convert_0.5.1_to_1.0.2.sql} | 0 ...t_1.0_to_1.0.1.sql => convert_1.0_to_1.0.2.sql} | 0 install/index.php | 14 +++++++------- install/language/english.php | 8 ++++---- install/language/russian.php | 8 ++++---- install/sql.sql | 2 +- 9 files changed, 35 insertions(+), 26 deletions(-) rename install/{convert_0.5.1_to_1.0.1.sql => convert_0.5.1_to_1.0.2.sql} (100%) rename install/{convert_1.0_to_1.0.1.sql => convert_1.0_to_1.0.2.sql} (100%) diff --git a/Readme.EN.txt b/Readme.EN.txt index 38f758ad..e47871b9 100644 --- a/Readme.EN.txt +++ b/Readme.EN.txt @@ -15,7 +15,7 @@ */ -LiveStreet 1.0.1 +LiveStreet 1.0.2 INSTALLATION 1. Copy files to the engine to the desired directory site @@ -24,18 +24,22 @@ INSTALLATION Upgrading from 0.5.1 0. Be sure to make backup of your site and database -1. Update to version 1.0.1 can only database, so copy the new version over the old NOT to install, use a clean directory +1. Update to version 1.0.2 can only database, so copy the new version over the old NOT to install, use a clean directory 2. Copy files to the engine to the desired directory site 3. Copy the file to a new directory on your config.local.php old version 0.5.1 and copy the directory /uploads/ all files 4. Enter the address http://you_site/install/ -5. Follow the instructions of the installer. When you create the database required By clicking the "Convert base 0.5.1 in 1.0.1" +5. Follow the instructions of the installer. When you create the database required By clicking the "Convert base 0.5.1 in 1.0.2" Upgrading from 1.0 0. Be sure to make backup of your site and database 1. Delete old files (except /config/config.local.php and directory /uploads/ all files) and copy the new files to a directory site -2.1 Enter the address http://you_site/install/ and to step in creating a database to mark checkbox "Convert 1.0 DB to 1.0.1 " -2.2 Or execute the SQL patch /install/convert_1.0_to_1.0.1.sql in phpMyAdmin or via the console MySQL, replacing prefix tables (prefix_) in the database on your +2.1 Enter the address http://you_site/install/ and to step in creating a database to mark checkbox "Convert 1.0 DB to 1.0.2" +2.2 Or execute the SQL patch /install/convert_1.0_to_1.0.2.sql in phpMyAdmin or via the console MySQL, replacing prefix tables (prefix_) in the database on your +Upgrading from 1.0.1 +0. Be sure to make a backup of your site and database +1. Since version 1.0.1 changes is the system files, the templates are not affected. So you can just copy all the files over the current, except the directory /templates/skin/, if you change the template. + Be sure to replace the file /config/config.php, all changes you need to make the file config.local.php Configuration and Tuning Engines diff --git a/Readme.RU.txt b/Readme.RU.txt index 54333908..d0b1ac1c 100644 --- a/Readme.RU.txt +++ b/Readme.RU.txt @@ -15,7 +15,7 @@ */ -LiveStreet 1.0.1 +LiveStreet 1.0.2 УСТАНОВКА 1. Скопировать файлы движка в нужный каталог сайта @@ -28,13 +28,18 @@ LiveStreet 1.0.1 2. Скопировать файлы движка в новый нужный каталог сайта 3. Скопировать в новый каталог файл config.local.php от вашей старой версии 0.5.1 и скопировать каталог /uploads/ со всеми файлами. 4. Зайти по адресу http://ваш_сайт_на_ls/install/ -5. Следовать инструкциям установщика. При создании базы данных обязательно поставить галку "Конвертировать базу 0.5.1 в 1.0.1" +5. Следовать инструкциям установщика. При создании базы данных обязательно поставить галку "Конвертировать базу 0.5.1 в 1.0.2" ОБНОВЛЕНИЕ С ВЕРСИИ 1.0 0. ОБЯЗАТЕЛЬНО СДЕЛАЙТЕ РЕЗЕРВНЫЕ КОПИИ ВАШЕГО САЙТА И БАЗЫ ДАННЫХ 1. Удалите старые файлы кроме /config/config.local.php и каталога /uploads/ со всеми файлами, скопируйте новые файлы движка в нужный каталог сайта -2.1 Зайти по адресу http://ваш_сайт_на_ls/install/ и на шаге создания базы данных поставить галку "Конвертировать базу 1.0 в 1.0.1" -2.2 Либо руками выполнить SQL патч /install/convert_1.0_to_1.0.1.sql в phpMyAdmin или через консоль MySQL, предварительно сменив префикс таблиц в БД на ваш +2.1 Зайти по адресу http://ваш_сайт_на_ls/install/ и на шаге создания базы данных поставить галку "Конвертировать базу 1.0 в 1.0.2" +2.2 Либо руками выполнить SQL патч /install/convert_1.0_to_1.0.2.sql в phpMyAdmin или через консоль MySQL, предварительно сменив префикс таблиц в БД на ваш + +ОБНОВЛЕНИЕ С ВЕРСИИ 1.0.1 +0. ОБЯЗАТЕЛЬНО СДЕЛАЙТЕ РЕЗЕРВНЫЕ КОПИИ ВАШЕГО САЙТА И БАЗЫ ДАННЫХ +1. Относительно версии 1.0.1 изменялись только системные файлы, шаблоны не затрагивались. Поэтому можно просто скопировать все файлы поверх текущих, кроме каталога /templates/skin/, если вы изменяли шаблон. + Обязательно замените файл /config/config.php, все свои изменения вам необходимо вносить в файл config.local.php КОНФИГУРАЦИЯ И НАСТРОЙКА ДВИЖКА diff --git a/config/loader.php b/config/loader.php index 764be8fc..74cf9bd2 100644 --- a/config/loader.php +++ b/config/loader.php @@ -18,7 +18,7 @@ /** * Основные константы */ -define('LS_VERSION','1.0.1'); +define('LS_VERSION','1.0.2'); /** * Operations with Config object diff --git a/install/convert_0.5.1_to_1.0.1.sql b/install/convert_0.5.1_to_1.0.2.sql similarity index 100% rename from install/convert_0.5.1_to_1.0.1.sql rename to install/convert_0.5.1_to_1.0.2.sql diff --git a/install/convert_1.0_to_1.0.1.sql b/install/convert_1.0_to_1.0.2.sql similarity index 100% rename from install/convert_1.0_to_1.0.1.sql rename to install/convert_1.0_to_1.0.2.sql diff --git a/install/index.php b/install/index.php index 1eef8174..2476b32f 100644 --- a/install/index.php +++ b/install/index.php @@ -17,7 +17,7 @@ error_reporting(E_ALL); set_time_limit(0); -define('LS_VERSION','1.0.1'); +define('LS_VERSION','1.0.2'); class Install { /** @@ -637,7 +637,7 @@ class Install { /** * Если указана конвертация старой базы данных */ - list($bResult,$aErrors) = array_values($this->ConvertDatabase('convert_0.5.1_to_1.0.1.sql',$aParams)); + list($bResult,$aErrors) = array_values($this->ConvertDatabase('convert_0.5.1_to_1.0.2.sql',$aParams)); if(!$bResult) { foreach($aErrors as $sError) $this->aMessages[] = array('type'=>'error','text'=>$sError); $this->Layout('steps/db.tpl'); @@ -645,9 +645,9 @@ class Install { } } elseif ($aParams['convert_from_10']) { /** - * Если указана конвертация старой базы данных (1.0 -> 1.0.1) + * Если указана конвертация старой базы данных (1.0 -> 1.0.2) */ - list($bResult,$aErrors) = array_values($this->ConvertDatabaseFrom10('convert_1.0_to_1.0.1.sql',$aParams)); + list($bResult,$aErrors) = array_values($this->ConvertDatabaseFrom10('convert_1.0_to_1.0.2.sql',$aParams)); if(!$bResult) { foreach($aErrors as $sError) $this->aMessages[] = array('type'=>'error','text'=>$sError); $this->Layout('steps/db.tpl'); @@ -1181,7 +1181,7 @@ class Install { return !in_array($aParams['prefix'].'user_note',$aDbTables); } /** - * Конвертирует базу данных версии 0.5.1 в базу данных версии 1.0.1 + * Конвертирует базу данных версии 0.5.1 в базу данных версии 1.0.2 * * @return bool */ @@ -1216,7 +1216,7 @@ class Install { } } /** - * Необходимая конвертация в 1.0.1 из 0.5.1 + * Необходимая конвертация в 1.0.2 из 0.5.1 */ /** @@ -1690,7 +1690,7 @@ class Install { return !$this->isFieldExistsDatabase($sTable,'user_settings_timezone'); } /** - * Конвертирует базу данных версии 1.0 в базу данных версии 1.0.1 + * Конвертирует базу данных версии 1.0 в базу данных версии 1.0.2 * * @return bool */ diff --git a/install/language/english.php b/install/language/english.php index 6eb19b29..0a597d72 100644 --- a/install/language/english.php +++ b/install/language/english.php @@ -55,7 +55,7 @@ return array( 'install_title'=>'LiveStreet Installation', 'step'=>'Step', - 'start_paragraph'=>'

Welcome to LiveStreet © 1.0.1 installation.

Notice: You have to rename file - /config/config.local.php.dist to /config/config.local.php and apply read-write (rw) permision to it.

Notice: Make sure that the following directories have rw permissions: /tmp, /logs, /uploads, /templates/compiled, /templates/cache

', + 'start_paragraph'=>'

Welcome to LiveStreet © 1.0.2 installation.

Notice: You have to rename file - /config/config.local.php.dist to /config/config.local.php and apply read-write (rw) permision to it.

Notice: Make sure that the following directories have rw permissions: /tmp, /logs, /uploads, /templates/compiled, /templates/cache

', 'php_params'=>'General PHP Configuration', 'php_params_version'=>'PHP ver. 5.2.0 or higher', @@ -79,8 +79,8 @@ return array( 'db_params_port_notice'=>'It might be a good choice to leave it as 3306 :)', 'db_params_name'=>'DB name', 'db_params_create'=>'Create DB', - 'db_params_convert'=>'Convert 0.5.1 DB to 1.0.1', - 'db_params_convert_from_10'=>'Convert 1.0 DB to 1.0.1', + 'db_params_convert'=>'Convert 0.5.1 DB to 1.0.2', + 'db_params_convert_from_10'=>'Convert 1.0 DB to 1.0.2', 'db_params_user'=>'Username', 'db_params_password'=>'Password', 'db_params_prefix'=>"Table's prefix", @@ -89,7 +89,7 @@ return array( 'db_params_engine_notice'=>'InnoDB is recommended', 'error_table_select'=>'Query error whilst getting data from %%table%%', - 'error_database_converted_already'=>'DB structure suits v. 1.0.1 hence conversion aborted', + 'error_database_converted_already'=>'DB structure suits v. 1.0.2 hence conversion aborted', 'admin_params'=>'Administrator Details Configuration', 'admin_params_login'=>'Login', diff --git a/install/language/russian.php b/install/language/russian.php index 42a6ec3d..5f666899 100644 --- a/install/language/russian.php +++ b/install/language/russian.php @@ -55,7 +55,7 @@ return array( 'install_title'=>'Установка LiveStreet', 'step'=>'Шаг', - 'start_paragraph'=>'

Добро пожаловать в инсталлятор LiveStreet © 1.0.1. Ознакомьтесь с результатами и следуйте подсказкам.

Внимание. Для успешной иснталяции вы должны переименовать файл /config/config.local.php.dist на /config/config.local.php и дать этому файлу права на запись.

Внимание. Директории /tmp, /logs, /uploads, /templates/compiled, /templates/cache должны иметь права на запись.

', + 'start_paragraph'=>'

Добро пожаловать в инсталлятор LiveStreet © 1.0.2. Ознакомьтесь с результатами и следуйте подсказкам.

Внимание. Для успешной иснталяции вы должны переименовать файл /config/config.local.php.dist на /config/config.local.php и дать этому файлу права на запись.

Внимание. Директории /tmp, /logs, /uploads, /templates/compiled, /templates/cache должны иметь права на запись.

', 'php_params'=>'Основные настройки PHP', 'php_params_version'=>'PHP версии не ниже 5.2.0', @@ -79,8 +79,8 @@ return array( 'db_params_port_notice'=>'Скорее всего правильным решение будет оставить 3306 :)', 'db_params_name'=>'Название базы данных', 'db_params_create'=>'Создать базу данных', - 'db_params_convert'=>'Конвертировать базу 0.5.1 в 1.0.1', - 'db_params_convert_from_10'=>'Конвертировать базу 1.0 в 1.0.1', + 'db_params_convert'=>'Конвертировать базу 0.5.1 в 1.0.2', + 'db_params_convert_from_10'=>'Конвертировать базу 1.0 в 1.0.2', 'db_params_user'=>'Имя пользователя', 'db_params_password'=>'Пароль', 'db_params_prefix'=>'Префикс таблиц', @@ -89,7 +89,7 @@ return array( 'db_params_engine_notice'=>'Рекомендуется использовать InnoDB', 'error_table_select'=>'Ошибка запроса на выборку данных из таблицы %%table%%', - 'error_database_converted_already'=>'Конвертация отменена, так как структура базы данных соответствует версии 1.0.1', + 'error_database_converted_already'=>'Конвертация отменена, так как структура базы данных соответствует версии 1.0.2', 'admin_params'=>'Настройка данных администратора', 'admin_params_login'=>'Логин', diff --git a/install/sql.sql b/install/sql.sql index d214194a..7f6d0d85 100644 --- a/install/sql.sql +++ b/install/sql.sql @@ -1,5 +1,5 @@ -- --- Database LiveStreet version 1.0.1 +-- Database LiveStreet version 1.0.2 -- -- --------------------------------------------------------