Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+108 -102
View File
@@ -1,102 +1,108 @@
INVISION POWER BOARD 1.3 -> 2.0.0 РУЧНОЕ ОБНОВЛЕНИЕ
---------------------------------------------------
Этот набор был создан специально для ручного обновления через SHELL больших форумов. Потому что при обновлении
существуют тяжелые медленные запросы к базе.
-----------------------------------------------------------------------------------------------------
ВАЖНО: Мы рекомендуем самостоятельно пользоваться этим ручным обновлением только если вы понимаете
основные SQL запросы и как их выполнять!
-----------------------------------------------------------------------------------------------------
Предполагается, что вы прочитали текст инструкции по обновлению, а также сделали резервную копию файлов и базы данных.
Если вы еще ничего не сделали резервную копию — прочтите файл «upgradefromipb_1x.html» из дистрибутива.
-----------------------------------------------------------------------------------------------------
ВАЖНО: ЗНАЧИМОСТЬ ПРАВ НА ФАЙЛЫ.
-----------------------------------------------------------------------------------------------------
При обновлении вы должны иметь корректно установленные права на файлы и папки (chmod), включая этот дистрибутив.
Требуемые значения chmod прав представлены в файле Documentation/Installation Guide/install_guide.html
(нажмите на ссылку Структура & CHMOD). Рекомендуем полностью прочесть представленную там информацию.
-----------------------------------------------------------------------------------------------------
ВАЖНО: ВЫ ДОЛЖНЫ ОБЯЗАТЕЛЬНО СДЕЛАТЬ РЕЗЕРВНУЮ КОПИЮ БАЗЫ ПЕРЕД ТЕМ, КАК ИСПОЛЬЗОВАТЬ ЭТИ ИНСТРУКЦИИ.
-----------------------------------------------------------------------------------------------------
Для выполнения обновления вы должны использовать коммандную строку, PHP скрипты и SQL файлы.
Во-первых, загрузите файлы sql_1.sql и sql_2.sql в корневую директорию вашего IPB (туда, где находится index.php)
-----------------------------------------------------------------------------------------------------
ВАЖНО: sql_1.sql и sql_2.sql имеют запросы со стандартным префиксом таблиц 'ibf_'. Если префикс таблиц
в вашей базе данных другой, пожалуйста пройдитесь по этим двум файлам и замените 'ibf_' на ваш префикс!
-----------------------------------------------------------------------------------------------------
Итак, на первом этапе вы должны войти в mysql через SHELL.
------------------------------------------------
Когда вы будете иметь открытым новое окно терминала, наберите там:
mysql -u{username} -p{password}
(заменив в этой фразе {username} на ваше SQL имя пользователя и {password} на ваш SQL пароль)
------------------------------------------------
Затем введите:
use {database}
(заменив {database} на имя вашей SQL базы данных)
------------------------------------------------
Вы должны увидеть сообщение:
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
>
> Database changed
---------------------------------------------------
Теперь вы должны выполнять первый SQL файл. Введите:
source /home/website/public_html/forums/sql_1.sql
(заменив /home/website/public_html/forums/ на реальный путь на вашем сервере к вашему файлу)
Пожалуйста помните, что MySQL может обрабатывать SQL команды этого файла несколько минут, пока процесс завершится.
Вы должны будете видеть следующую информацию, возвращаемую на экран SSH клиента при обработке этого файла
> Query OK, 121133 rows affected (11 min 6.27 sec)
> Records: 121133 Duplicates: 0 Warnings: 0
>
Ничего не делайте, пока mysql возвращает это. Время обработки зависит от размера базы...
---------------------------------------------------
Далее необходимо выполнить через браузер несколько этапов стандартного скрипта обновления,
скопируйте в адресную строку вашего браузера URL адрес, введенный ниже (заменив {yourdomain.com/forum}
на URL вашего форума):
{yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=7&dieafterstep=13
Это может занять немало времени при больших форумах, ждите.
------------------------------------------------
Теперь вы должны выполнять второй SQL файл. Введите:
source /home/website/public_html/forums/sql_2.sql
(заменив /home/website/public_html/forums/ на реальный путь на вашем сервере к вашему файлу)
------------------------------------------------
Далее необходимо выполнить через браузер еще несколько этапов стандартного скрипта обновления,
скопируйте в адресную строку вашего браузера URL адрес, введенный ниже (заменив {yourdomain.com/forum}
на URL вашего форума):
{yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=22
Это может занять немало времени при больших форумах, ждите.
Эти этапы вставят ваши шаблоны и настройки и завершат обновление.
------------------------------------------------
Все, теперь вы можете запустить ваш IPB v2!
Для обновления до IPB 2.1.6, после этого вы будете переадресованы на upgrade/index.php и вы должны будете пробежаться
и по представленным там этапам...
INVISION POWER BOARD 1.3 -> 2.0.0 MANUAL UPGRADE
------------------------------------------------
This file is intended to allow you to upgrade your Invision Power Board manually via shell which
is ideal for those with large boards where allowing a script to run several queries can time out.
-----------------------------------------------------------------------------------------------------
IMPORTANT: It is assumed that you are comfortable with SQL and shell and understand the basic concepts
of paths, files and source SQL files.
-----------------------------------------------------------------------------------------------------
It is assumed that you have read the upgrade text and you have backed up your database and files before
proceeding. If you haven't backed up - read the file "Documents/upgradefromipb_1x.html" from the download
zip.
-----------------------------------------------------------------------------------------------------
IMPORTANT: FILE PERMISSIONS MATTER.
-----------------------------------------------------------------------------------------------------
In order to upgrade properly, you will need to ensure you have set the correct file permissions on the
files and folders included with this package. On Windows, this involves checking the files read/write
attributes, while on Unix this means you should verify the CHMOD values for the files and folders.
The required values are listed in Documents/Installation Guide/install_guide.html (click on the tab that
reads 'Structure & CHMOD'). You may wish to fully read over this guide as well, as it has other useful
information.
-----------------------------------------------------------------------------------------------------
IMPORTANT: PERFORM A BACKUP OF YOUR DATABASE BEFORE USING THESE INSTRUCTIONS.
-----------------------------------------------------------------------------------------------------
To perform the update, we'll need to use a mixture of command line, PHP scripting and SQL source files.
Firstly, upload sql_1.sql and sql_2.sql into the root IPB folder (the one with index.php in it)
-----------------------------------------------------------------------------------------------------
IMPORTANT: sql_1.sql and sql_2.sql have queries with the default 'ibf_' table prefix. If your table
prefix is different, do a search and replace on those files to change 'ibf_' to your database prefix
-----------------------------------------------------------------------------------------------------
The first step is to log onto mysql from shell.
------------------------------------------------
When you have a new terminal window open, type:
mysql -u{username} -p{password}
(Substituting {username} for your SQL username and {password} for you SQL password)
------------------------------------------------
Then type:
use {database}
(Substituting {database} for your SQL database)
------------------------------------------------
You should see a message like so:
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
>
> Database changed
------------------------------------------------
Now we'll run the first source file. Type:
source /home/website/public_html/forums/sql_1.sql
(Substituting /home/website/public_html/forums/ with your real path to this file)
Please note that while MySQL is performing the SQL commands included in this file, it may take several
minutes before it is done processing. You should see output similar to the following return on your
screen while it is processing
> Query OK, 121133 rows affected (11 min 6.27 sec)
> Records: 121133 Duplicates: 0 Warnings: 0
>
Do not proceed until a mysql prompt returns. It may seem like MySQL is "hanging", but often times it is
just a matter of how large the database is, and how long it takes to update the database.
------------------------------------------------
Now we'll need to run the installer - but we only want a few steps to run, so copy the URL below carefully
substituting {yourdomain.com/forum} with your real URL to your board:
Go to: {yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=7&dieafterstep=13
This may take a while for some large boards.
------------------------------------------------
Now we'll run the second source file. Type:
source /home/website/public_html/forums/sql_2.sql
(Substituting /home/website/public_html/forums/ with your real path to this file)
------------------------------------------------
Now we'll need to run the installer again - but we only want a few steps to run, so copy the URL below carefully
substituting {yourdomain.com/forum} with your real URL to your board:
Go to: {yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=22
This may take a while for some large boards.
This will insert your templates and settings and completes the upgrade
------------------------------------------------
That's it, you should now be running IPB 2!
To upgrade to IPB 2.1, afterwards you will be redirected to upgrade/index.php and you should follow the onscreen
prompts from there.
+15 -15
View File
@@ -28,21 +28,21 @@ change fshowreg pf_show_on_reg tinyint(1) NOT NULL default '0',
add pf_input_format text NOT NULL default '',
add pf_admin_only tinyint(1) NOT NULL default '0',
add pf_topic_format text NOT NULL default '';
INSERT INTO ibf_task_manager (task_id, task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES (1, 'Åæå÷àñíàÿ î÷èñòêà ôîðóìà', 'cleanout.php', 1079704080, -1, -1, -1, 59, '2a7d083832daa123b73a68f9c51fdb29', 1, 'Óäàëåíèå ñòàðûõ ñåññèé, çàùèòíûõ ðåãèñòðàöèîííûõ êîäîâ, ïîèñêîâ', 1);
INSERT INTO ibf_task_manager (task_id, task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES (3, 'Åæåäíåâíûé ïåðåñ÷åò ñòàòèñòèêè', 'rebuildstats.php', 1079740800, -1, -1, 0, 0, '640b9a6c373ff207bc1b1100a98121af', 1, 'Ïåðåñ÷åò ñòàòèñòèêè ôîðóìà', 1);
INSERT INTO ibf_task_manager (task_id, task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES (6, 'Åæåäíåâíàÿ î÷èñòêà ôîðóìà', 'dailycleanout.php', 1079751600, -1, -1, 3, 0, 'e71b52f3ff9419abecedd14b54e692c4', 1, 'Ñîêðàùàåò ïîäïèñêè íà òåìû è ñòàðûå çàïèñè ïðî÷òåíèÿ òåì', 1);
INSERT INTO ibf_task_manager (task_id, task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES (8, 'Êåøèðîâàíèå èìåíèííèêîâ è ñîáûòèé êàëåíäàðÿ', 'calendarevents.php', 1079725800, -1, -1, 12, -1, '2c148c9bd754d023a7a19dd9b1535796', 1, 'Êåøèðîâàíèå ñîáûòèé êàëåíäàðÿ è äíåé ðîæäåíèÿ ôîðóì÷àí', 1);
INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES ('Îáíîâëåíèå îáúÿâëåíèé', 'announcements.php', 1080747660, -1, -1, 4, -1, 'e82f2c19ab1ed57c140fccf8aea8b9fe', 1,'Îáíîâëåíèå êåøà è óäàëåíèå îêîí÷åííûõ îáúÿâëåíèé', 1);
INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Îòïðàâêà ðàññûëêè ïîëüçîâàòåëÿì', 'bulkmail.php', 1086706080, -1, -1, -1, -1, '61359ac93eb93ebbd935a4e275ade2db', 0, 'Äèíàìè÷åñêè íàçíà÷àåòñÿ, íåò íåîáõîäèìîñòè èçìåíÿòü', 0, 'bulkmail', 1);
INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Åæåäíåâíûé îáçîð òåì è ôîðóìà', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Åæåäíåâíàÿ ðàññûëêà òåì è îáçîðà ôîðóìà', 1, 'dailydigest', 0)
INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Åæåíåäåëüíûé îáçîð òåì è; ôîðóìà', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Åæåíåäåëüíàÿ ðàññûëêà òåì è îáçîðà ôîðóìà', 1, 'weeklydigest', 0)
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Óêàçàòåëü ñîîáùåíèÿ', 'Ýòîò òýã ïîêàçûâàåò ìàëåíüêîå èçîáðàæåíèå, êîòîðîå ÿâëÿåòñÿ ññûëêîé íà öèòèðóåìîå ñîîáùåíèå &#151; èñïîëüçóåòñÿ, êîãäà öèòèðóþòñÿ ñîîáùåíèÿ ñ ôîðóìà. Îòêðûâàåòñÿ ïî óìîë÷àíèþ â òîì æå îêíå.', 'snapback', '<a href=\"index.php?act=findpost&amp;pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ïî ïðàâîìó êðàþ', 'Âûðàâíèâàíèå òåêñòà ïî ïðàâîìó êðàþ', 'right', '<div align=\'right\'>{content}</div>', 0, '[right]Ëþáîé òåêñò çäåñü[/right]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ïî ëåâîìó êðàþ', 'Âûðàâíèâàíèå òåêñòà ïî ëåâîìó êðàþ', 'left', '<div align=\'left\'>{content}</div>', 0, '[left]Ýòîò òåêñò áóäåò èñïîëüçîâàòü âûðàâíèâàíèå ïî ëåâîìó êðàþ[/left]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ïî öåíòðó', 'Âûðàâíèâàíèå òåêñòà ïî öåíòðó.', 'center', '<div align=\'center\'>{content}</div>', 0, '[center]Âûðàâíèâàíèå òåêñòà áóäåò ïî öåíòðó[/center]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ññûëêà íà òåìó', 'Ýòîò òýã ïîçâîëÿåò ëåãêî îïóáëèêîâàòü ññûëêó íà òåìó, çíàÿ ëèøü åå íîìåð', 'topic', '<a href=\'index.php?showtopic={option}\'>{content}</a>', 1, '[topic=100]Íàæìè íà ìåíÿ![/topic]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ññûëêà íà ñîîáùåíèå', 'Ýòîò òýã ïîçâîëÿåò ëåãêî îïóáëèêîâàòü ññûëêó íà ñîîáùåíèå, çíàÿ ëèøü åãî íîìåð.', 'post', '<a href=\'index.php?act=findpost&pid={option}\'>{content}</a>', 1, '[post=100]Íàæìè íà ìåíÿ![/post]');
#INSERT INTO ibf_subscription_methods (submethod_title, submethod_name, submethod_email, submethod_sid, submethod_custom_1, submethod_custom_2, submethod_custom_3, submethod_custom_4, submethod_custom_5, submethod_is_cc, submethod_is_auto, submethod_desc, submethod_logo, submethod_active, submethod_use_currency) VALUES ('Authorize.net', 'authorizenet', '', '', '', '', '', '', '', '1', '1', NULL, NULL, '1', 'USD');
INSERT INTO ibf_task_manager VALUES (1, 'Hourly Clean Out', 'cleanout.php', 1076074920, -1, -1, -1, 59, '2a7d083832daa123b73a68f9c51fdb29', 1, 'Kill old sessions, reg images, searches',1,'',0);
INSERT INTO ibf_task_manager VALUES (2, 'Daily Stats Rebuild', 'rebuildstats.php', 1076112000, -1, -1, 0, 0, '640b9a6c373ff207bc1b1100a98121af', 1, 'Rebuilds board statistics',1,'',0);
INSERT INTO ibf_task_manager VALUES (3, 'Daily Clean Out', 'dailycleanout.php', 1076122800, -1, -1, 3, 0, 'e71b52f3ff9419abecedd14b54e692c4', 1, 'Prunes topic subscriptions',1,'',0);
INSERT INTO ibf_task_manager VALUES (4, 'Birthday and Events Cache', 'calendarevents.php', 1076100960, -1, -1, 12, -1, '2c148c9bd754d023a7a19dd9b1535796', 1, 'Caches calendar events &amp; birthdays',1,'',0);
INSERT INTO ibf_task_manager (task_id, task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES (9, 'Announcements Update', 'announcements.php', 1080747660, -1, -1, 4, -1, 'e82f2c19ab1ed57c140fccf8aea8b9fe', 1, 'Rebuilds cache and expires out of date announcements', 1);
INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Send Bulk Mail', 'bulkmail.php', 1086706080, -1, -1, -1, -1, '61359ac93eb93ebbd935a4e275ade2db', 0, 'Dynamically assigned, no need to edit or change', 0, 'bulkmail', 1);
INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Daily Topic &amp; Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic &amp; forum digest emails', 1, 'dailydigest', 0);
INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Weekly Topic &amp; Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic &amp; forum digest emails', 1, 'weeklydigest', 0);
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Post Snap Back', 'This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.', 'snapback', '<a href=\"index.php?act=findpost&amp;pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Right', 'Aligns content to the right of the posting area', 'right', '<div align=\'right\'>{content}</div>', 0, '[right]Some text here[/right]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Left', 'Aligns content to the left of the post', 'left', '<div align=\'left\'>{content}</div>', 0, '[left]Left aligned text[/left]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Center', 'Aligns content to the center of the posting area.', 'center', '<div align=\'center\'>{content}</div>', 0, '[center]Centered Text[/center]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Topic Link', 'This tag provides an easy way to link to a topic', 'topic', '<a href=\'index.php?showtopic={option}\'>{content}</a>', 1, '[topic=100]Click me![/topic]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Post Link', 'This tag provides an easy way to link to a post.', 'post', '<a href=\'index.php?act=findpost&pid={option}\'>{content}</a>', 1, '[post=100]Click me![/post]');
INSERT INTO ibf_subscription_methods (submethod_title, submethod_name, submethod_email, submethod_sid, submethod_custom_1, submethod_custom_2, submethod_custom_3, submethod_custom_4, submethod_custom_5, submethod_is_cc, submethod_is_auto, submethod_desc, submethod_logo, submethod_active, submethod_use_currency) VALUES ('Authorize.net', 'authorizenet', '', '', '', '', '', '', '', '1', '1', NULL, NULL, '1', 'USD');
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (1, 'pdf', 'application/pdf', 1, 0, 'folder_mime_types/pdf.gif');
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (2, 'png', 'image/png', 1, 1, 'folder_mime_types/quicktime.gif');
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (3, 'viv', 'video/vivo', 1, 0, 'folder_mime_types/win_player.gif');