Version 3.0.5
This commit is contained in:
1 parent
19b38c7c74
commit
1d4720f3e2
3755 files changed
+508378
-664541
No files matched your search
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
* Returns known settings
|
||||
*
|
||||
* No, really it does!
|
||||
*
|
||||
* Remember: ipsRegistry::$settings probably won't be available.
|
||||
*
|
||||
*
|
||||
* IPSSetUp::getSavedData('admin_email')
|
||||
* IPSSetUp::getSavedData('install_dir') [Example: /home/user/public_html/forums] - No trailing slash supplied
|
||||
* IPSSetUp::getSavedData('install_url') [Example: http://www.domain.tld/forums] - No trailing slash supplied
|
||||
*/
|
||||
|
||||
|
||||
$knownSettings = array(
|
||||
'email_in' => IPSSetUp::getSavedData('admin_email'),
|
||||
'email_out' => IPSSetUp::getSavedData('admin_email'),
|
||||
'base_dir' => IPSSetUp::getSavedData('install_dir'),
|
||||
'css_cache_url' => IPSSetUp::getSavedData('install_url') . '/public/style_images',
|
||||
'upload_url' => IPSSetUp::getSavedData('install_url') . '/uploads',
|
||||
'upload_dir' => IPSSetUp::getSavedData('install_dir') . '/uploads',
|
||||
'search_sql_method' => ipsRegistry::DB()->checkFulltextSupport() ? 'ftext' : 'man',
|
||||
'safe_mode_skins' => ( @ini_get("safe_mode") ) ? 1 : 0
|
||||
);
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Installation Schematic File
|
||||
* Generated on Thu, 19 Feb 2009 08:15:49 +0000 GMT
|
||||
*/
|
||||
$INDEX[] = "ALTER TABLE search_index ADD FULLTEXT KEY content (content,content_title)";
|
||||
?>
|
||||
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('bbcode', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('moderators', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('multimod', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('banfilters', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('attachtypes', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('emoticons', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('badwords', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('systemvars', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('adminnotes', '', '', 0);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('ranks', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('group_cache', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('stats', '', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('profilefields', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('settings','', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('birthdays', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('calendar', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('calendars', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('chatting', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('rss_export', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('rss_calendar', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('announcements', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('hooks', 'a:0:{}', '', 1);";
|
||||
$INSERT[] = "INSERT INTO cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('portal', 'a:6:{s:5:\"blogs\";a:5:{s:8:\"pc_title\";s:30:\"Invision Power Community Blogs\";s:7:\"pc_desc\";s:40:\"Shows IPB Blog information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"blogs_show_last_updated_x\";a:2:{i:0;s:25:\"blogs_show_last_updated_x\";i:1;s:30:\"Shows the last X updated blogs\";}}s:6:\"pc_key\";s:5:\"blogs\";}s:8:\"calendar\";a:5:{s:8:\"pc_title\";s:29:\"Invision Power Board Calendar\";s:7:\"pc_desc\";s:46:\"Displays a mini calendar for the current month\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:27:\"calendar_show_current_month\";a:2:{i:0;s:27:\"calendar_show_current_month\";i:1;s:38:\"Shows a calendar for the current month\";}}s:6:\"pc_key\";s:8:\"calendar\";}s:7:\"gallery\";a:5:{s:8:\"pc_title\";s:22:\"Invision Power Gallery\";s:7:\"pc_desc\";s:54:\"Shows Invision Power Gallery information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"gallery_show_random_image\";a:2:{i:0;s:25:\"gallery_show_random_image\";i:1;s:44:\"Shows a random image from a member\'s gallery\";}}s:6:\"pc_key\";s:7:\"gallery\";}s:12:\"online_users\";a:5:{s:8:\"pc_title\";s:33:\"Invision Power Board Online Users\";s:7:\"pc_desc\";s:49:\"Shows the current name and number of online users\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:17:\"online_users_show\";a:2:{i:0;s:17:\"online_users_show\";i:1;s:22:\"Shows the online users\";}}s:6:\"pc_key\";s:12:\"online_users\";}s:4:\"poll\";a:5:{s:8:\"pc_title\";s:25:\"Invision Power Board Poll\";s:7:\"pc_desc\";s:23:\"Shows the selected poll\";s:19:\"pc_settings_keyword\";s:11:\"portal_poll\";s:18:\"pc_exportable_tags\";a:1:{s:14:\"poll_show_poll\";a:2:{i:0;s:14:\"poll_show_poll\";i:1;s:22:\"Shows the request poll\";}}s:6:\"pc_key\";s:4:\"poll\";}s:13:\"recent_topics\";a:5:{s:8:\"pc_title\";s:34:\"Invision Power Board Recent Topics\";s:7:\"pc_desc\";s:47:\"Shows IPB recent topics with topic\'s first post\";s:19:\"pc_settings_keyword\";s:20:\"portal_recent_topics\";s:18:\"pc_exportable_tags\";a:2:{s:20:\"recent_topics_last_x\";a:2:{i:0;s:20:\"recent_topics_last_x\";i:1;s:63:\"Shows the last X topics with full post from the selected forums\";}s:32:\"recent_topics_discussions_last_x\";a:2:{i:0;s:32:\"recent_topics_discussions_last_x\";i:1;s:54:\"Shows the last X topic titles from ALL viewable forums\";}}s:6:\"pc_key\";s:13:\"recent_topics\";}}', '', 1);";
|
||||
|
||||
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (1, ':mellow:', 'mellow.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (2, ':huh:', 'huh.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (3, '^_^', 'happy.gif', 0, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (4, ':o', 'ohmy.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (5, ';)', 'wink.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (6, ':P', 'tongue.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (7, ':D', 'biggrin.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (8, ':lol:', 'laugh.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (9, 'B)', 'cool.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (10, ':rolleyes:', 'rolleyes.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (11, '-_-', 'sleep.gif', 0, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (12, '<_<', 'dry.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (13, ':)', 'smile.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (14, ':wub:', 'wub.gif', 0, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (15, ':angry:', 'angry.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (16, ':(', 'sad.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (17, ':unsure:', 'unsure.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (18, ':wacko:', 'wacko.gif', 0, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (19, ':blink:', 'blink.gif', 1, 'default');";
|
||||
$INSERT[] = "INSERT INTO emoticons (id, typed, image, clickable, emo_set) VALUES (20, ':ph34r:', 'ph34r.gif', 0, 'default');";
|
||||
|
||||
# Profile fields stuff
|
||||
$INSERT[] = "INSERT INTO pfields_data (pf_id, pf_title, pf_desc, pf_content, pf_type, pf_not_null, pf_member_hide, pf_max_input, pf_member_edit, pf_position, pf_show_on_reg, pf_input_format, pf_admin_only, pf_topic_format, pf_group_id, pf_icon, pf_key) VALUES
|
||||
(1, 'AIM', '', '', 'input', 0, 0, 0, 0, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_aim.gif', 'aim'),
|
||||
(2, 'MSN', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_msn.gif', 'msn'),
|
||||
(3, 'Сайт', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_website.gif', 'website'),
|
||||
(4, 'ICQ', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_icq.gif', 'icq'),
|
||||
(5, 'Пол', '', 'u=Не определился|m=Мужчина|f=Женщина', 'drop', 0, 0, 0, 1, 0, 0, '', 0, '', 2, '', 'gender'),
|
||||
(6, 'Город', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '<span class=\'ft\'>{title}</span><span class=\'fc\'>{content}</span>', 2, '', 'location'),
|
||||
(7, 'Интересы', '', '', 'textarea', 0, 0, 0, 1, 0, 0, '', 0, '', 2, '', 'interests'),
|
||||
(8, 'Yahoo', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_yahoo.gif', 'yahoo'),
|
||||
(9, 'Jabber', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_jabber.gif', 'jabber'),
|
||||
(10, 'Skype', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_skype.gif', 'skype')";
|
||||
|
||||
$INSERT[] = "INSERT INTO pfields_groups (pf_group_id, pf_group_name, pf_group_key) VALUES
|
||||
(1, 'Контакты', 'contact'),
|
||||
(2, 'Информация', 'profile_info')";
|
||||
|
||||
$INSERT[] = "INSERT INTO core_sys_lang VALUES(1, 'ru_RU.UTF-8', 'Русский (RU)', 'USD', '$', '.', ',', 1, 0)";
|
||||
|
||||
$INSERT[] = "INSERT INTO titles (id, posts, title, pips) VALUES (1, 0, 'Новичок', '1');";
|
||||
$INSERT[] = "INSERT INTO titles (id, posts, title, pips) VALUES (2, 10, 'Пользователь', '2');";
|
||||
$INSERT[] = "INSERT INTO titles (id, posts, title, pips) VALUES (4, 30, 'Продвинутый пользователь', '3');";
|
||||
|
||||
$INSERT[] ="INSERT INTO permission_index VALUES(1, 'members', 'profile_view', 1, '*', '', '', '', '', '', '', 0, 0, NULL)";
|
||||
$INSERT[] ="INSERT INTO permission_index VALUES(2, 'core', 'help', 1, '*', '', '', '', '', '', '', 0, 0, NULL)";
|
||||
|
||||
/* Report center stuff */
|
||||
|
||||
$INSERT[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Пример плагина', 'Плагин, не требующий написания кода, но требующий настройки.', 'Invision Power Services, Inc', '', 'v1.0', 'default', ',3,4,6,', ',4,6,', 'a:5:{s:14:"required_input";a:1:{s:8:"video_id";s:13:"[^A-Za-z0-9_]";}s:10:"string_url";s:41:"http://www.youtube.com/watch?v={video_id}";s:12:"string_title";s:25:"#PAGE_TITLE# ({video_id})";s:13:"section_title";s:7:"YouTube";s:11:"section_url";s:22:"http://www.youtube.com";}', 1);
|
||||
EOF;
|
||||
$INSERT[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Плагин форума', 'Плагин жалоб на сообщения и темы в форумах.', 'Invision Power Services, Inc', '', 'v1.0', 'post', ',1,2,3,4,6,', ',4,6,', 'a:1:{s:15:"report_supermod";i:1;}', 1);
|
||||
EOF;
|
||||
$INSERT[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Плагин личных сообщений', 'Плагин жалоб на личные сообщения', 'Invision Power Services, Inc', '', 'v1.0', 'messages', ',1,2,3,4,6,', ',4,6,', 'a:1:{s:18:"plugi_messages_add";s:5:"4";}', 1);
|
||||
EOF;
|
||||
$INSERT[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Плагин пользовательских профилей', 'Плагин жалоб на профили пользователей', 'Invision Power Services, Inc', '', 'v1.0', 'profiles', ',1,2,3,4,6,', ',4,6,', 'N;', 1);
|
||||
EOF;
|
||||
|
||||
$INSERT[] = "INSERT INTO rc_status VALUES(1, 'Новая', 1, 5, 1, 0, 1, 1);";
|
||||
$INSERT[] = "INSERT INTO rc_status VALUES(2, 'Рассматривается', 1, 5, 0, 0, 1, 2);";
|
||||
$INSERT[] = "INSERT INTO rc_status VALUES(3, 'Завершена', 0, 0, 0, 1, 0, 3);";
|
||||
|
||||
$INSERT[] = <<<EOF
|
||||
INSERT INTO rc_status_sev (id, status, points, img, is_png, width, height) VALUES
|
||||
(1, 1, 1, 'style_extra/report_icons/flag_gray.png', 1, 16, 16),
|
||||
(2, 1, 2, 'style_extra/report_icons/flag_blue.png', 1, 16, 16),
|
||||
(3, 1, 4, 'style_extra/report_icons/flag_green.png', 1, 16, 16),
|
||||
(4, 1, 7, 'style_extra/report_icons/flag_orange.png', 1, 16, 16),
|
||||
(5, 1, 12, 'style_extra/report_icons/flag_red.png', 1, 16, 16),
|
||||
(6, 2, 1, 'style_extra/report_icons/flag_gray_review.png', 1, 16, 16),
|
||||
(7, 3, 0, 'style_extra/report_icons/completed.png', 1, 16, 16),
|
||||
(8, 2, 2, 'style_extra/report_icons/flag_blue_review.png', 1, 16, 16),
|
||||
(9, 2, 4, 'style_extra/report_icons/flag_green_review.png', 1, 16, 16),
|
||||
(10, 2, 7, 'style_extra/report_icons/flag_orange_review.png', 1, 16, 16),
|
||||
(11, 2, 12, 'style_extra/report_icons/flag_red_review.png', 1, 16, 16);
|
||||
EOF;
|
||||
|
||||
$INSERT[] = "INSERT INTO reputation_levels VALUES(1, -20, 'Очень плохой', '');";
|
||||
$INSERT[] = "INSERT INTO reputation_levels VALUES(2, -10, 'Плохой', '');";
|
||||
$INSERT[] = "INSERT INTO reputation_levels VALUES(3, 0, 'Обычный', '');";
|
||||
$INSERT[] = "INSERT INTO reputation_levels VALUES(4, 10, 'Хороший', '');";
|
||||
$INSERT[] = "INSERT INTO reputation_levels VALUES(5, 20, 'Очень хороший', '');";
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings_titles (conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES ('IPB Portal', 'These settings enable you to enable or disable IPB Portal and control the options IPB Portal offers.', 20, 0, 'ipbportal');";
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('ENABLE IPB Portal?', 'If \'yes\', IPB Portal can be accessed via \'index.php?act=home\' or via the special \'index.php\' script (see documentation for more info).', '22', 'yes_no', 'csite_on', '', '1', '', '', 1, 1, '', 0, '', 1);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('IPB Portal Page Title?', 'This will appear inbetween the <title> elements on the page', '22', 'input', 'csite_title', '', 'IPB Portal', '', '', 1, 2, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Forums to export articles from', 'Separate <b>forum ids</b> with a comma for more than one', '22', 'input', 'csite_article_forum', '1,2,3,4,5,6', '', '', '', 1, 3, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Number of Articles to display in the main section', '', '22', 'input', 'csite_article_max', '', '15', '', '', 1, 4, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable Recent Articles?', 'This will show a list of recent topic titles on the IPB Portal page', '22', 'yes_no', 'csite_article_recent_on', '', '1', '', '', 1, 5, 'IPB Portal Recent Articles', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. no recent articles to show', '', '22', 'input', 'csite_article_recent_max', '', '5', '', '', 1, 6, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. length of topic titles', '', '22', 'input', 'csite_article_len', '', '30', '', '', 1, 7, '', 1, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Date format for articles', '<a href=\'http://www.php.net/date\'>Same as PHP\'s date function', '22', 'input', 'csite_article_date', '', 'm-j-y H:i', '', '', 1, 3, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable Recent Discussions', '', '22', 'yes_no', 'csite_discuss_on', '', '1', '', '', 1, 9, 'IPB Portal Recent Discussions', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. no recent discussions to show', '', '22', 'input', 'csite_discuss_max', '', '10', '', '', 1, 10, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. length of topic titles', '', '22', 'input', 'csite_discuss_len', '', '30', '', '', 1, 11, '', 1, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show User / Guest Info box?', '', '22', 'yes_no', 'csite_pm_show', '', '1', '', '', 1, 12, 'IPB Portal Components', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show online users?', '', '22', 'yes_no', 'csite_online_show', '', '1', '', '', 1, 13, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show search box?', '', '22', 'yes_no', 'csite_search_show', '', '1', '', '', 1, 14, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable skin selection choice dropdown?', '', '22', 'yes_no', 'csite_skinchange_show', '', '1', '', '', 1, 15, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enter URL to poll topic for inclusion', 'Leave blank to not show a poll or the poll box', '22', 'input', 'csite_poll_url', '', '', '', '', 1, 17, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Site Navigation Menu?', '', '22', 'yes_no', 'csite_nav_show', '', '1', '', '', 1, 18, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Site Navigation Menu Links', 'One per line in this format<br>http://www.apple.com [Apple\'s Website]<br><br>{board_url} will convert into your board', '22', 'textarea', 'csite_nav_contents', '', '{board_url} [Forums]\r\n{board_url}act=Search&do=getactive [Today\'s Active Topics]\r\n{board_url}act=Stats [Today\'s Top 10 Posters]\r\n{board_url}act=Stats&do=leaders [Contact Staff]', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 19, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Affiliates / Favoured Sites box?', '', '22', 'yes_no', 'csite_fav_show', '', '0', '', '', 1, 20, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Affiliates / Favoured Sites box content', 'Raw HTML enabled', '22', 'textarea', 'csite_fav_contents', '', '', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 21, '', 1, '', 0);";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[] = "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);";
|
||||
$SQL[] = "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 & Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic & forum digest emails', 1, 'dailydigest', 0);";
|
||||
$SQL[] = "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 & Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic & forum digest emails', 1, 'weeklydigest', 0);";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF1 -> PF 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('CODEBOX', 'Use this BBCode tag to show a scrolling codebox. Useful for long sections of code.', 'codebox', '<div class=\'codetop\'>CODE</div><div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\'>{content}</div>', 0, '[codebox]long_code_here = '';[/codebox]');";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_UP', '<img src=\'style_images/<#IMG_DIR#>/p_up.gif\' border=\'0\' alt=\'Go to the top of the page\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_CARD', '<img src=\'style_images/<#IMG_DIR#>/p_card.gif\' border=\'0\' alt=\'Profile Card\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_AIM', '<img src=\'style_images/<#IMG_DIR#>/profile_aim.gif\' border=\'0\' alt=\'AIM\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ITEM', '<img src=\'style_images/<#IMG_DIR#>/profile_item.gif\' border=\'0\' alt=\'Profile Item\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_MSN', '<img src=\'style_images/<#IMG_DIR#>/profile_msn.gif\' border=\'0\' alt=\'MSN\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ICQ', '<img src=\'style_images/<#IMG_DIR#>/profile_icq.gif\' border=\'0\' alt=\'ICQ\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_YIM', '<img src=\'style_images/<#IMG_DIR#>/profile_yahoo.gif\' border=\'0\' alt=\'Yahoo\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_CONTACT', '<img src=\'style_images/<#IMG_DIR#>/icon_msg_nonew.gif\' border=\'0\' alt=\'Contact\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('BAR_LEFT', '<img src=\'style_images/<#IMG_DIR#>/bar_left.gif\' border=\'0\' alt=\'*\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('BAR_RIGHT', '<img src=\'style_images/<#IMG_DIR#>/bar_right.gif\' border=\'0\' alt=\'*\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('CAL_GOTO', '<img src=\'style_images/<#IMG_DIR#>/cal_goto.gif\' border=\'0\' alt=\'Goto Month\' />', 1, 1);";
|
||||
?>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# Fix bug where ICQ alt text missing last single quote
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_skin_macro WHERE macro_value='PRO_ICQ' and macro_set=1";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ICQ', '<img src=\'style_images/<#IMG_DIR#>/profile_icq.gif\' border=\'0\' alt=\'ICQ\' />', 1, 1);";
|
||||
|
||||
# Fix bug where "select * from members where temp_ban..." prevents NULL IS NOT NULL confusion
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members change temp_ban temp_ban varchar(100) default '0'";
|
||||
?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
# Fix bug where unread PM count not incremented
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members change msg_total msg_total smallint(5) default '0'";
|
||||
$SQL[] = "ALTER TABLE ibf_members change new_msg new_msg smallint(5) default '0'";
|
||||
$SQL[] = "UPDATE ibf_members SET new_msg=0";
|
||||
|
||||
|
||||
# Add WIZZY Blog hook
|
||||
|
||||
//$SQL[] = "ALTER TABLE ibf_members add has_blog TINYINT(1) NOT NULL default '0'";
|
||||
|
||||
# Efficiency
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members_converge ADD INDEX converge_email(converge_email)";
|
||||
$SQL[] = "ALTER TABLE ibf_polls ADD INDEX tid(tid)";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,845 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<permsexport exported="1123061157" versionid="2.1.0" type="master">
|
||||
<permsgroup>
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>admin</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>adminlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>stats</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-export</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-import</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban-view</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban-add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban-remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>emailerror</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>emaillog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>upload</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>permedit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>reorder</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recount</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>empty</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rules</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>skin</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>perms</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>help</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>help</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>help</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>login</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>login</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>diagnostics</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>login</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>login</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>login</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>suspend</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-view</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>mod</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>view</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mtools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>modlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>multimod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>multimod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>multimod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>install</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>portal</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>send</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>field</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>field</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>field</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recount</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>rebuild</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rebuild</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>rebuild</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>style</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rundiff</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skindiff</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skindiff</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skindiff</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>import</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>import</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>image</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>image</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>image</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rebuild</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>templ</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>templ</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>templ</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>wrap</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skintools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>changemember</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skintools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skintools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>spiderlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>show</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>stats</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>runnow</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>log</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>view</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>warnlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>warnlog</acpperm_child>
|
||||
</perm>
|
||||
</permsgroup>
|
||||
|
||||
</permsexport>
|
||||
@@ -0,0 +1,238 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
// $SQL[] = "";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_components (
|
||||
com_id INT(10) NOT NULL auto_increment,
|
||||
com_title VARCHAR(255) NOT NULL default '',
|
||||
com_author VARCHAR(255) NOT NULL default '',
|
||||
com_url VARCHAR(255) NOT NULL default '',
|
||||
com_version VARCHAR(255) NOT NULL default '',
|
||||
com_date_added INT(10) NOT NULL default '0',
|
||||
com_menu_data MEDIUMTEXT NULL,
|
||||
com_enabled TINYINT(1) NOT NULL default '1',
|
||||
com_safemode TINYINT(1) NOT NULL default '1',
|
||||
com_section VARCHAR(255) NOT NULL default '',
|
||||
com_filename VARCHAR(255) NOT NULL default '',
|
||||
com_description VARCHAR(255) NOT NULL default '',
|
||||
com_url_title VARCHAR(255) NOT NULL default '',
|
||||
com_url_uri VARCHAR(255) NOT NULL default '',
|
||||
com_position INT(3) NOT NULL default '10',
|
||||
PRIMARY KEY(com_id)
|
||||
);";
|
||||
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_topic_views (
|
||||
views_tid int(10) NOT NULL default '0'
|
||||
);";
|
||||
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_topic_ratings (
|
||||
rating_id INT(10) NOT NULL auto_increment,
|
||||
rating_tid INT(10) NOT NULL default '0',
|
||||
rating_member_id mediumint(8) NOT NULL default '0',
|
||||
rating_value SMALLINT NOT NULL default '0',
|
||||
rating_ip_address VARCHAR(16) NOT NULL default '',
|
||||
PRIMARY KEY(rating_id),
|
||||
KEY rating_tid (rating_tid, rating_member_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_topic_markers (
|
||||
marker_member_id INT(8) NOT NULL default '0',
|
||||
marker_forum_id INT(10) NOT NULL default '0',
|
||||
marker_last_update INT(10) NOT NULL default '0',
|
||||
marker_unread SMALLINT(5) NOT NULL default '0',
|
||||
marker_topics_read TEXT NULL,
|
||||
marker_last_cleared INT(10) NOT NULL default '0',
|
||||
UNIQUE KEY marker_forum_id( marker_forum_id, marker_member_id ),
|
||||
KEY marker_member_id (marker_member_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_rss_import (
|
||||
rss_import_id INT(10) NOT NULL auto_increment,
|
||||
rss_import_enabled TINYINT(1) NOT NULL default '0',
|
||||
rss_import_title VARCHAR(255) NOT NULL default '',
|
||||
rss_import_url VARCHAR(255) NOT NULL default '',
|
||||
rss_import_forum_id INT(10) NOT NULL default '0',
|
||||
rss_import_mid MEDIUMINT(8) NOT NULL default '0',
|
||||
rss_import_pergo SMALLINT(3) NOT NULL default '0',
|
||||
rss_import_time SMALLINT(3) NOT NULL default '0',
|
||||
rss_import_last_import INT(10) NOT NULL default '0',
|
||||
rss_import_showlink VARCHAR(255) NOT NULL default '0',
|
||||
rss_import_topic_open TINYINT(1) NOT NULL default '0',
|
||||
rss_import_topic_hide TINYINT(1) NOT NULL default '0',
|
||||
rss_import_inc_pcount TINYINT(1) NOT NULL default '0',
|
||||
rss_import_topic_pre VARCHAR(50) NOT NULL default '',
|
||||
rss_import_charset VARCHAR(200) NOT NULL default '',
|
||||
PRIMARY KEY ( rss_import_id )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_rss_imported (
|
||||
rss_imported_guid CHAR(32) NOT NULL default '0',
|
||||
rss_imported_tid INT(10) NOT NULL default '0',
|
||||
rss_imported_impid INT(10) NOT NULL default '0',
|
||||
PRIMARY KEY ( rss_imported_guid ),
|
||||
KEY (rss_imported_impid)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_rss_export (
|
||||
rss_export_id int(10) NOT NULL auto_increment,
|
||||
rss_export_enabled tinyint(1) NOT NULL default '0',
|
||||
rss_export_title varchar(255) NOT NULL default '',
|
||||
rss_export_desc varchar(255) NOT NULL default '',
|
||||
rss_export_image varchar(255) NOT NULL default '',
|
||||
rss_export_forums text NULL,
|
||||
rss_export_include_post tinyint(1) NOT NULL default '0',
|
||||
rss_export_count smallint(3) NOT NULL default '0',
|
||||
rss_export_cache_time smallint(3) NOT NULL default '30',
|
||||
rss_export_cache_last int(10) NOT NULL default '0',
|
||||
rss_export_cache_content mediumtext NULL,
|
||||
rss_export_sort varchar(4) NOT NULL default 'DESC',
|
||||
rss_export_order varchar(20) NOT NULL default 'start_date',
|
||||
PRIMARY KEY (rss_export_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_cal_events (
|
||||
event_id INT(10) UNSIGNED NOT NULL auto_increment,
|
||||
event_calendar_id INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
event_member_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
|
||||
event_content MEDIUMTEXT NULL,
|
||||
event_title VARCHAR(255) NOT NULL DEFAULT '',
|
||||
event_smilies TINYINT(1) NOT NULL DEFAULT '0',
|
||||
event_perms TEXT NULL,
|
||||
event_private TINYINT(1) NOT NULL DEFAULT '0',
|
||||
event_approved TINYINT(1) NOT NULL DEFAULT '0',
|
||||
event_unixstamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
event_recurring INT(2) UNSIGNED NOT NULL DEFAULT '0',
|
||||
event_tz INT(4) NOT NULL DEFAULT '0',
|
||||
event_unix_from INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
event_unix_to INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (event_id),
|
||||
KEY daterange (event_calendar_id,event_approved,event_unix_from,event_unix_to),
|
||||
KEY approved ( event_calendar_id, event_approved )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_members_partial (
|
||||
partial_id INT(10) NOT NULL auto_increment,
|
||||
partial_member_id INT(8) NOT NULL default '0',
|
||||
partial_date INT(10) NOT NULL default '0',
|
||||
PRIMARY KEY( partial_id ),
|
||||
KEY partial_member_id ( partial_member_id )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_dnames_change (
|
||||
dname_id INT(10) NOT NULL auto_increment,
|
||||
dname_member_id INT(8) NOT NULL default '0',
|
||||
dname_date INT(10) NOT NULL default '0',
|
||||
dname_ip_address VARCHAR(16) NOT NULL default '',
|
||||
dname_previous VARCHAR(255) NOT NULL default '',
|
||||
dname_current VARCHAR(255) NOT NULL default '',
|
||||
PRIMARY KEY( dname_id ),
|
||||
KEY dname_member_id(dname_member_id),
|
||||
KEY date_id ( dname_member_id, dname_date )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_cal_calendars (
|
||||
cal_id INT(10) UNSIGNED NOT NULL auto_increment,
|
||||
cal_title VARCHAR(255) NOT NULL DEFAULT '0',
|
||||
cal_moderate TINYINT(1) NOT NULL DEFAULT '0',
|
||||
cal_position INT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
cal_event_limit INT(2) UNSIGNED NOT NULL DEFAULT '0',
|
||||
cal_bday_limit INT(2) UNSIGNED NOT NULL DEFAULT '0',
|
||||
cal_rss_export TINYINT(1) NOT NULL DEFAULT '0',
|
||||
cal_rss_export_days TINYINT(1) NOT NULL DEFAULT '0',
|
||||
cal_rss_export_max INT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
cal_rss_update INT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
cal_rss_update_last INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
cal_rss_cache MEDIUMTEXT NULL,
|
||||
cal_permissions MEDIUMTEXT NULL,
|
||||
PRIMARY KEY ( cal_id )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_login_methods (
|
||||
login_id INT(10) NOT NULL auto_increment,
|
||||
login_title VARCHAR(255) NOT NULL default '',
|
||||
login_description VARCHAR(255) NOT NULL default '',
|
||||
login_folder_name VARCHAR(255) NOT NULL default '',
|
||||
login_maintain_url VARCHAR(255) NOT NULL default '',
|
||||
login_register_url VARCHAR(255) NOT NULL default '',
|
||||
login_type VARCHAR(30) NOT NULL default '',
|
||||
login_alt_login_html TEXT NULL,
|
||||
login_date INT(10) NOT NULL default '0',
|
||||
login_settings INT(1) NOT NULL default '0',
|
||||
login_enabled INT(1) NOT NULL default '0',
|
||||
login_safemode INT(1) NOT NULL default '0',
|
||||
login_installed INT(1) NOT NULL default '0',
|
||||
login_replace_form INT(1) NOT NULL default '0',
|
||||
login_allow_create INT(1) NOT NULL default '0',
|
||||
PRIMARY KEY (login_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_admin_permission_rows (
|
||||
row_member_id INT(8) NOT NULL,
|
||||
row_perm_cache MEDIUMTEXT NULL,
|
||||
row_updated INT(10) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (row_member_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_admin_permission_keys (
|
||||
perm_key VARCHAR(255) NOT NULL,
|
||||
perm_main VARCHAR(255) NOT NULL,
|
||||
perm_child VARCHAR(255) NOT NULL,
|
||||
perm_bit VARCHAR(255) NOT NULL,
|
||||
PRIMARY KEY (perm_key),
|
||||
KEY perm_main (perm_main),
|
||||
KEY perm_child (perm_child)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_templates_diff_import (
|
||||
diff_key VARCHAR(255) NOT NULL,
|
||||
diff_func_group VARCHAR(150) NOT NULL,
|
||||
diff_func_name VARCHAR(250) NOT NULL,
|
||||
diff_func_data TEXT NULL,
|
||||
diff_func_content MEDIUMTEXT NULL,
|
||||
diff_session_id INT(10) NOT NULL default '0',
|
||||
PRIMARY KEY (diff_key),
|
||||
KEY diff_func_group (diff_func_group),
|
||||
KEY diff_func_name (diff_func_name)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_template_diff_session (
|
||||
diff_session_id INT(10) NOT NULL auto_increment,
|
||||
diff_session_togo INT(10) NOT NULL default '0',
|
||||
diff_session_done INT(10) NOT NULL default '0',
|
||||
diff_session_updated INT(10) NOT NULL default '0',
|
||||
diff_session_title VARCHAR(255) NOT NULL default '',
|
||||
diff_session_ignore_missing INT(1) NOT NULL default '0',
|
||||
PRIMARY KEY (diff_session_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_template_diff_changes (
|
||||
diff_change_key VARCHAR(255) NOT NULL,
|
||||
diff_change_func_group VARCHAR(150) NOT NULL,
|
||||
diff_change_func_name VARCHAR(250) NOT NULL,
|
||||
diff_change_content MEDIUMTEXT NULL,
|
||||
diff_change_type INT(1) NOT NULL default '0',
|
||||
diff_session_id INT(10) NOT NULL default '0',
|
||||
PRIMARY KEY (diff_change_key),
|
||||
KEY diff_change_func_group (diff_change_func_group),
|
||||
KEY diff_change_type (diff_change_type)
|
||||
);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members ADD members_auto_dst TINYINT(1) NOT NULL default '1';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members CHANGE new_msg new_msg tinyint(2) default '0',
|
||||
CHANGE msg_total msg_total smallint(5) default '0',
|
||||
ADD members_cache MEDIUMTEXT NULL,
|
||||
ADD members_disable_pm INT(1) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members ADD members_display_name VARCHAR(255) NOT NULL default '', ADD members_created_remote TINYINT(1) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members ADD INDEX members_display_name( members_display_name );";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members ADD members_editor_choice VARCHAR(3) NOT NULL default 'std';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members ADD members_markers TEXT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_message_text ADD msg_ip_address VARCHAR(16) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "UPDATE ibf_members SET members_display_name=name;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_topics CHANGE approved approved tinyint(1) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_topics DROP INDEX last_post;";
|
||||
$SQL[] = "ALTER TABLE ibf_topics DROP INDEX forum_id;";
|
||||
$SQL[] = "alter table ibf_topics add index forum_id( forum_id, pinned, approved);";
|
||||
$SQL[] = "ALTER TABLE ibf_topics add index last_post(forum_id, pinned, last_post);";
|
||||
$SQL[] = "ALTER TABLE ibf_topics ADD topic_rating_total SMALLINT UNSIGNED NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_topics ADD topic_rating_hits SMALLINT UNSIGNED NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_topics DROP rating;";
|
||||
$SQL[] = "alter table ibf_topics ADD topic_open_time INT(10) NOT NULL default '0';";
|
||||
$SQL[] = "alter table ibf_topics ADD topic_close_time INT(10) NOT NULL default '0';";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_sessions ADD location_1_type char(10) NOT NULL default '',
|
||||
ADD location_1_id int(10) NOT NULL default '0',
|
||||
ADD location_2_type char(10) NOT NULL default '',
|
||||
ADD location_2_id int(10) NOT NULL default '0',
|
||||
ADD location_3_type char(10) NOT NULL default '',
|
||||
ADD location_3_id int(10) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX location1(location_1_type, location_1_id);";
|
||||
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX location2(location_2_type, location_2_id);";
|
||||
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX location3(location_3_type, location_3_id);";
|
||||
$SQL[] = "ALTER TABLE ibf_sessions DROP in_forum, DROP in_topic;";
|
||||
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_forums ADD forum_last_deletion INT(10) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_forums ADD forum_allow_rating TINYINT(1) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_groups ADD g_topic_rate_setting SMALLINT(2) NOT NULL default '0';";
|
||||
$SQL[] = "alter table ibf_validating ADD user_verified tinyint(1) NOT NULL default '0';";
|
||||
$SQL[] = "alter table ibf_moderators ADD mod_can_set_open_time tinyint(1) NOT NULL default '0';";
|
||||
$SQL[] = "alter table ibf_moderators ADD mod_can_set_close_time tinyint(1) NOT NULL default '0';";
|
||||
$SQL[] = "alter table ibf_task_manager ADD task_locked INT(10) NOT NULL default '0';";
|
||||
$SQL[] = "alter table ibf_groups ADD g_dname_changes INT(3) NOT NULL default '0',
|
||||
ADD g_dname_date INT(5) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_search_results ADD PRIMARY KEY(id);";
|
||||
$SQL[] = "ALTER TABLE ibf_search_results ADD INDEX search_date(search_date);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('portal', 'a:6:{s:5:\"blogs\";a:5:{s:8:\"pc_title\";s:30:\"Invision Power Community Blogs\";s:7:\"pc_desc\";s:40:\"Shows IPB Blog information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"blogs_show_last_updated_x\";a:2:{i:0;s:25:\"blogs_show_last_updated_x\";i:1;s:30:\"Shows the last X updated blogs\";}}s:6:\"pc_key\";s:5:\"blogs\";}s:8:\"calendar\";a:5:{s:8:\"pc_title\";s:29:\"Invision Power Board Calendar\";s:7:\"pc_desc\";s:46:\"Displays a mini calendar for the current month\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:27:\"calendar_show_current_month\";a:2:{i:0;s:27:\"calendar_show_current_month\";i:1;s:38:\"Shows a calendar for the current month\";}}s:6:\"pc_key\";s:8:\"calendar\";}s:7:\"gallery\";a:5:{s:8:\"pc_title\";s:22:\"Invision Power Gallery\";s:7:\"pc_desc\";s:54:\"Shows Invision Power Gallery information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"gallery_show_random_image\";a:2:{i:0;s:25:\"gallery_show_random_image\";i:1;s:44:\"Shows a random image from a member\'s gallery\";}}s:6:\"pc_key\";s:7:\"gallery\";}s:12:\"online_users\";a:5:{s:8:\"pc_title\";s:33:\"Invision Power Board Online Users\";s:7:\"pc_desc\";s:49:\"Shows the current name and number of online users\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:17:\"online_users_show\";a:2:{i:0;s:17:\"online_users_show\";i:1;s:22:\"Shows the online users\";}}s:6:\"pc_key\";s:12:\"online_users\";}s:4:\"poll\";a:5:{s:8:\"pc_title\";s:25:\"Invision Power Board Poll\";s:7:\"pc_desc\";s:23:\"Shows the selected poll\";s:19:\"pc_settings_keyword\";s:11:\"portal_poll\";s:18:\"pc_exportable_tags\";a:1:{s:14:\"poll_show_poll\";a:2:{i:0;s:14:\"poll_show_poll\";i:1;s:22:\"Shows the request poll\";}}s:6:\"pc_key\";s:4:\"poll\";}s:13:\"recent_topics\";a:5:{s:8:\"pc_title\";s:34:\"Invision Power Board Recent Topics\";s:7:\"pc_desc\";s:47:\"Shows IPB recent topics with topic\'s first post\";s:19:\"pc_settings_keyword\";s:20:\"portal_recent_topics\";s:18:\"pc_exportable_tags\";a:2:{s:20:\"recent_topics_last_x\";a:2:{i:0;s:20:\"recent_topics_last_x\";i:1;s:63:\"Shows the last X topics with full post from the selected forums\";}s:32:\"recent_topics_discussions_last_x\";a:2:{i:0;s:32:\"recent_topics_discussions_last_x\";i:1;s:54:\"Shows the last X topic titles from ALL viewable forums\";}}s:6:\"pc_key\";s:13:\"recent_topics\";}}', '', 1);";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_cal_calendars (cal_id, cal_title, cal_moderate, cal_position, cal_event_limit, cal_bday_limit, cal_rss_export, cal_rss_export_days, cal_rss_export_max, cal_rss_update, cal_rss_update_last, cal_rss_cache, cal_permissions) VALUES (1, 'Community Calendar', 1, 0, 2, 1, 1, 14, 20, 1440, <%time%>, '', 'a:3:{s:9:\"perm_read\";s:1:\"*\";s:9:\"perm_post\";s:3:\"4,3\";s:10:\"perm_nomod\";s:0:\"\";}');";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (1, 'IPB Internal', 'The standard method of authentication', 'internal', '', '', 'passthrough', '', <%time%>, 0, 1, 1, 1, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (2, 'LDAP Authentication', 'LDAP / Active Directory Authentication', 'ldap', '', '', 'passthrough', '', <%time%>, 0, 0, 1, 0, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (3, 'External Database', 'Authentication via an external database', 'external', '', '', 'passthrough', '', <%time%>, 0, 0, 1, 0, 0, 1);";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'Update Topic Views Counter', 'updateviews.php', <%time%>, -1, -1, 3, -1, 'ddce954b5ba1c163bc627ca20725b595', 0, 'Used when topic views are not incremented immediately', 1, 'updateviews', 0, 0);";
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'Subscription Expiration Notification', 'expiresubs.php', <%time%>, -1, -1, 1, 0, '21fa5f52cf9122c6fe940e1c6dac0b5a', 1, 'Sends out an email to all members who have a subscription due to expire', 1, 'expiresubs', 0, 0);";
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'RSS Import Update', 'rssimport.php', <%time%>, -1, -1, -1, 30, '8f17dc0ba334e5f18e762f154365a578', 0, 'Imports any new RSS articles', 1, 'rssimport', 1, 0);";
|
||||
|
||||
$SQL[] = "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 ('Expire Paid Subscriptions', 'doexpiresubs.php', 1121212800, -1, -1, 0, 0, 'bb57399ea05eb9240b42d5d5f53575fb', 1, 'Unsubscribes members from their subscribed packages', 1, 'doexpiresubs', 1)";
|
||||
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (1, 'Invision Gallery', 'Invision Power Services', '', '1.3.0', 1113309894, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'gallery', 'gallery', 'Complete gallery system for your members', '{ipb.lang[\'gallery\']}', '{ipb.base_url}act=module&module=gallery', 1);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (2, 'Invision Community Blog', 'Invision Power Services', '', '1.1.2', 1113310263, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'blog', 'blog', 'Blogging addition for your members', '{ipb.lang[\'blog\']}', '{ipb.base_url}automodule=blog', -1);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (3, 'Invision Chat (ParaChat)', 'Invision Power Services', '', '2.1', 1113313895, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'chatpara', 'chatpara', 'Full real-time chat system for your members', '{ipb.lang[\'live_chat\']}', '{ipb.base_url}autocom=chatpara', 2);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (4, 'Invision Copyright Removal', 'Invision Power Services', '', '2.1', 1113314009, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 1, 1, 'copyright', 'copyright', 'Allows the copyright notices to be removed from the board\'s output', '', '', 3);";
|
||||
|
||||
$SQL[] ="DELETE FROM ibf_conf_settings WHERE conf_key IN ( 'csite_article_forum' , 'csite_article_max', 'csite_article_recent_on',
|
||||
'csite_article_recent_max', 'csite_article_len', 'csite_discuss_on',
|
||||
'csite_discuss_max' , 'csite_discuss_len', 'csite_poll_url',
|
||||
'csite_online_show', 'poll_disable_noreply' );";
|
||||
|
||||
# UPDATE KNOWN CONF_TITLE KEYS
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='general' WHERE conf_title_id=1";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='boardoffline' WHERE conf_title_id=15";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='calendar' WHERE conf_title_id=9";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='converge' WHERE conf_title_id=18";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='coppa' WHERE conf_title_id=8";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='cpusaving' WHERE conf_title_id=2";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='date' WHERE conf_title_id=3";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='email' WHERE conf_title_id=12";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='searchsetup' WHERE conf_title_id=19";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,458 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.2 -> IPB 2.0.3
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
/**
|
||||
* Custom HTML to show
|
||||
*
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
private $_output = '';
|
||||
|
||||
/**
|
||||
* fetchs output
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function fetchOutput()
|
||||
{
|
||||
return $this->_output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute selected method
|
||||
*
|
||||
* @access public
|
||||
* @param object Registry object
|
||||
* @return void
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
/* Make object */
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $this->request['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
case 'sql1':
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
case 'sql2':
|
||||
$this->upgrade_sql(2);
|
||||
break;
|
||||
case 'sql3':
|
||||
$this->upgrade_sql(3);
|
||||
break;
|
||||
case 'sql4':
|
||||
$this->upgrade_sql(4);
|
||||
break;
|
||||
case 'polls':
|
||||
$this->convert_polls();
|
||||
break;
|
||||
case 'calevents':
|
||||
$this->convert_calevents();
|
||||
break;
|
||||
case 'skin':
|
||||
$this->add_skin();
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
}
|
||||
|
||||
if ( $this->request['workact'] )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL: 0
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_sql( $id=1 )
|
||||
{
|
||||
$man = 0; // Manual upgrade ? intval( $this->install->ipsclass->input['man'] );
|
||||
$cnt = 0;
|
||||
$SQL = array();
|
||||
$file = '_updates_'.$id.'.php';
|
||||
$output = "";
|
||||
$path = IPSLib::getAppDir( 'core' ) . '/setup/versions/upg_21003/' . strtolower( $this->registry->dbFunctions()->getDriverType() ) . $file;
|
||||
$prefix = $this->registry->dbFunctions()->getPrefix();
|
||||
|
||||
if ( file_exists( $path ) )
|
||||
{
|
||||
require( $path );
|
||||
|
||||
$this->error = array();
|
||||
$this->sqlcount = 0;
|
||||
$output = "";
|
||||
|
||||
$this->DB->return_die = 1;
|
||||
|
||||
foreach( $SQL as $query )
|
||||
{
|
||||
$this->DB->allow_sub_select = 1;
|
||||
$this->DB->error = '';
|
||||
|
||||
$query = str_replace( "<%time%>", time(), $query );
|
||||
|
||||
/* Need to tack on a prefix? */
|
||||
if ( $prefix )
|
||||
{
|
||||
$query = IPSSetUp::addPrefixToQuery( $query, $prefix );
|
||||
}
|
||||
|
||||
if ( IPSSetUp::getSavedData('man') )
|
||||
{
|
||||
$output .= preg_replace( "/\s{1,}/", " ", $query ) . "\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->DB->query( $query );
|
||||
|
||||
if ( $this->DB->error )
|
||||
{
|
||||
$this->registry->output->addError( $query."<br /><br />".$this->DB->error );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->sqlcount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->registry->output->addMessage("$this->sqlcount запросов выполнено....");
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$this->request['st'] = 0;
|
||||
|
||||
if ( $id != 4 )
|
||||
{
|
||||
$nextid = $id + 1;
|
||||
$this->request['workact'] = 'sql'.$nextid;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->request['workact'] = 'polls';
|
||||
}
|
||||
|
||||
if ( IPSSetUp::getSavedData('man') AND $output )
|
||||
{
|
||||
$this->_output = $this->registry->output->template()->upgrade_manual_queries( $output );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// POLLS
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function convert_polls()
|
||||
{
|
||||
$start = intval($this->request['st']) > 0 ? intval($this->request['st']) : 0;
|
||||
$lend = 50;
|
||||
$end = $start + $lend;
|
||||
$max = intval(IPSSetUp::getSavedData('max'));
|
||||
$converted = intval(IPSSetUp::getSavedData('conv'));
|
||||
|
||||
//-----------------------------------------
|
||||
// First off.. grab number of polls to convert
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $max )
|
||||
{
|
||||
$total = $this->DB->buildAndFetch( array( 'select' => 'COUNT(*) as max',
|
||||
'from' => 'topics',
|
||||
'where' => "poll_state IN ('open', 'close', 'closed')" ) );
|
||||
|
||||
$max = $total['max'];
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// In steps...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->build( array( 'select' => '*',
|
||||
'from' => 'topics',
|
||||
'where' => "poll_state IN ('open', 'close', 'closed' )",
|
||||
'limit' => array( 0, $lend ) ) );
|
||||
$o = $this->DB->execute();
|
||||
|
||||
//-----------------------------------------
|
||||
// Do it...
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->DB->getTotalRows($o) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Got some to convert!
|
||||
//-----------------------------------------
|
||||
|
||||
while ( $r = $this->DB->fetch($o) )
|
||||
{
|
||||
$converted++;
|
||||
|
||||
//-----------------------------------------
|
||||
// All done?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $converted >= $max )
|
||||
{
|
||||
$done = 1;
|
||||
}
|
||||
|
||||
$new_poll = array( 1 => array() );
|
||||
|
||||
$poll_data = $this->DB->buildAndFetch( array( 'select' => '*',
|
||||
'from' => 'polls',
|
||||
'where' => "tid=".$r['tid']
|
||||
) );
|
||||
if ( ! $poll_data['pid'] )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( ! $poll_data['poll_question'] )
|
||||
{
|
||||
$poll_data['poll_question'] = $r['title'];
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Kick start new poll
|
||||
//-----------------------------------------
|
||||
|
||||
$new_poll[1]['question'] = $poll_data['poll_question'];
|
||||
|
||||
//-----------------------------------------
|
||||
// Get OLD polls
|
||||
//-----------------------------------------
|
||||
|
||||
$poll_answers = unserialize( stripslashes( $poll_data['choices'] ) );
|
||||
|
||||
reset($poll_answers);
|
||||
|
||||
foreach ( $poll_answers as $entry )
|
||||
{
|
||||
$id = $entry[0];
|
||||
$choice = $entry[1];
|
||||
$votes = $entry[2];
|
||||
|
||||
$total_votes += $votes;
|
||||
|
||||
if ( strlen($choice) < 1 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$new_poll[ 1 ]['choice'][ $id ] = $choice;
|
||||
$new_poll[ 1 ]['votes'][ $id ] = $votes;
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Got something?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $new_poll[1]['choice'] ) )
|
||||
{
|
||||
$this->DB->update( 'polls' , array( 'choices' => serialize( $new_poll ) ), 'tid='.$r['tid'] );
|
||||
$this->DB->update( 'topics', array( 'poll_state' => 1 ), 'tid='.$r['tid'] );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$done = 1;
|
||||
}
|
||||
|
||||
|
||||
if ( ! $done )
|
||||
{
|
||||
$this->registry->output->addMessage("Опрос: $start по $end сконвертированы....");
|
||||
$this->request['workact'] = 'polls';
|
||||
$this->request['st'] = $end;
|
||||
IPSSetUp::setSavedData('max', $max);
|
||||
IPSSetUp::setSavedData('conv', $converted);
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->registry->output->addMessage("Опросы сконвертированы, переходим к событиям календаря...");
|
||||
$this->request['workact'] = 'calevents';
|
||||
$this->request['st'] = '0';
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CALENDAR EVENTS
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function convert_calevents()
|
||||
{
|
||||
$start = intval($this->request['st']) > 0 ? intval($this->request['st']) : 0;
|
||||
$lend = 50;
|
||||
$end = $start + $lend;
|
||||
|
||||
//-----------------------------------------
|
||||
// In steps...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->build( array( 'select' => '*',
|
||||
'from' => 'calendar_events',
|
||||
'limit' => array( $start, $lend ) ) );
|
||||
$o = $this->DB->execute();
|
||||
|
||||
//-----------------------------------------
|
||||
// Do it...
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->DB->getTotalRows($o) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Got some to convert!
|
||||
//-----------------------------------------
|
||||
|
||||
while ( $r = $this->DB->fetch($o) )
|
||||
{
|
||||
$recur_remap = array( 'w' => 1,
|
||||
'm' => 2,
|
||||
'y' => 3 );
|
||||
|
||||
$begin_date = IPSTime::date_getgmdate( $r['unix_stamp'] );
|
||||
$end_date = IPSTime::date_getgmdate( $r['end_unix_stamp'] );
|
||||
|
||||
if ( ! $begin_date OR ! $end_date )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$day = $begin_date['mday'];
|
||||
$month = $begin_date['mon'];
|
||||
$year = $begin_date['year'];
|
||||
|
||||
$end_day = $end_date['mday'];
|
||||
$end_month = $end_date['mon'];
|
||||
$end_year = $end_date['year'];
|
||||
|
||||
$_final_unix_from = gmmktime(0, 0, 0, $month, $day, $year );
|
||||
|
||||
//-----------------------------------------
|
||||
// Recur or ranged...
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $r['event_repeat'] OR $r['event_ranged'] )
|
||||
{
|
||||
$_final_unix_to = gmmktime(11, 59, 59, $end_month, $end_day, $end_year);
|
||||
}
|
||||
else
|
||||
{
|
||||
$_final_unix_to = 0;
|
||||
}
|
||||
|
||||
$new_event = array( 'event_calendar_id' => 1,
|
||||
'event_member_id' => $r['userid'],
|
||||
'event_content' => $r['event_text'],
|
||||
'event_title' => $r['title'],
|
||||
'event_smilies' => $r['show_emoticons'],
|
||||
'event_perms' => $r['read_perms'],
|
||||
'event_private' => $r['priv_event'],
|
||||
'event_approved' => 1,
|
||||
'event_unixstamp' => $r['unix_stamp'],
|
||||
'event_recurring' => ( $r['event_repeat'] && $recur_remap[ $r['repeat_unit'] ] ) ? $recur_remap[ $r['repeat_unit'] ] : 0,
|
||||
'event_tz' => 0,
|
||||
'event_unix_from' => $_final_unix_from,
|
||||
'event_unix_to' => $_final_unix_to );
|
||||
|
||||
//-----------------------------------------
|
||||
// INSERT
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->insert( 'cal_events', $new_event );
|
||||
}
|
||||
|
||||
$this->registry->output->addMessage("События календаря: $start по $end сконвертированы....");
|
||||
$this->request['workact'] = 'calevents';
|
||||
$this->request['st'] = $end;
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->registry->output->addMessage("События календаря сконвертированы, переходим к созданию стиля IPB 2.1...");
|
||||
$this->request['workact'] = 'skin';
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CALENDAR EVENTS
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function add_skin()
|
||||
{
|
||||
$this->registry->output->addMessage("Пропускаем создание стиля 2.1...");
|
||||
unset($this->request['workact']);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,845 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<permsexport exported="1125054428" versionid="2.1.0" type="master">
|
||||
<permsgroup>
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>admin</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>adminlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>stats</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>attach</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-export</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>bw-import</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban-view</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban-add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban-remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>babw</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>bbcode</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>calendars</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>components</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>emailerror</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>emaillog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>upload</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>emoticons</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>permedit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>reorder</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recount</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>empty</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rules</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>skin</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>forum</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>perms</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>group</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>help</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>help</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>help</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>lang</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>loginauth</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>loginauth</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>diagnostics</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>loginauth</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>loginauth</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>loginauth</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>suspend</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-view</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>title-remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>mod</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>ban</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mem</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>view</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mtools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>mod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>modlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>multimod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>multimod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>multimod</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>install</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>msubs</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>portal</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>send</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>postoffice</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>field</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>field</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>field</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recount</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>rebuild</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rebuild</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>rebuild</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssexport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>content</acpperm_main>
|
||||
<acpperm_child>rssimport</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>op</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>style</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rundiff</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skindiff</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skindiff</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skindiff</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>export</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>import</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>import</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>import</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>image</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>image</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>image</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>rebuild</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>sets</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>templ</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>templ</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>templ</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>wrap</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>recache</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skintools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>changemember</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skintools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>search</acpperm_bit>
|
||||
<acpperm_main>lookandfeel</acpperm_main>
|
||||
<acpperm_child>skintools</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>spiderlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>show</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>stats</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>edit</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>add</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>runnow</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>log</acpperm_bit>
|
||||
<acpperm_main>tools</acpperm_main>
|
||||
<acpperm_child>task</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>view</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>warnlog</acpperm_child>
|
||||
</perm>
|
||||
|
||||
<perm>
|
||||
<acpperm_bit>remove</acpperm_bit>
|
||||
<acpperm_main>admin</acpperm_main>
|
||||
<acpperm_child>warnlog</acpperm_child>
|
||||
</perm>
|
||||
</permsgroup>
|
||||
|
||||
</permsexport>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_admin_permission_keys WHERE perm_main='tools' and perm_child='login';";
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='max_poll_questions' AND conf_group='';";
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key IN( 'poll_disable_noreply', 'chat04_who_save', 'chat04_whodat_server_addr' );";
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_group=12 WHERE conf_key='smtp_pass';";
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_group=21 WHERE conf_key='chat04_default_lang';";
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_group=5, conf_position=43 WHERE conf_key='max_h_flash';";
|
||||
$SQL[] = "DELETE FROM ibf_components WHERE com_filename='registration';";
|
||||
$SQL[] = "UPDATE ibf_components SET com_section='chatpara', com_filename='chatpara' where com_filename='chat';";
|
||||
$SQL[] = "ALTER TABLE ibf_member_extra CHANGE icq_number icq_number varchar(40) NOT NULL default '';";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_sessions CHANGE browser browser VARCHAR(200) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE ibf_rss_import ADD rss_import_allow_html TINYINT(1) NOT NULL default '0';";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
/**
|
||||
* Custom HTML to show
|
||||
*
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
private $_output = '';
|
||||
|
||||
/**
|
||||
* fetchs output
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function fetchOutput()
|
||||
{
|
||||
return $this->_output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute selected method
|
||||
*
|
||||
* @access public
|
||||
* @param object Registry object
|
||||
* @return void
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
/* Make object */
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove dupe categories
|
||||
//-----------------------------------------
|
||||
|
||||
$title_id_to_keep = array();
|
||||
$title_id_to_delete = array();
|
||||
$title_deleted_count = 0;
|
||||
$msg = '';
|
||||
|
||||
$this->DB->build( array( 'select' => '*', 'from' => 'conf_settings_titles', 'order' => 'conf_title_id DESC' ) );
|
||||
$this->DB->execute();
|
||||
|
||||
while ( $r = $this->DB->fetch() )
|
||||
{
|
||||
if ( $title_id_to_keep[ $r['conf_title_title'] ] )
|
||||
{
|
||||
$title_id_to_delete[ $r['conf_title_id'] ] = $r['conf_title_id'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$title_id_to_keep[ $r['conf_title_title'] ] = $r['conf_title_id'];
|
||||
}
|
||||
}
|
||||
|
||||
if ( count( $title_id_to_delete ) )
|
||||
{
|
||||
$this->DB->buildAndFetch( array( 'delete' => 'conf_settings_titles', 'where' => 'conf_title_id IN ('.implode( ',', $title_id_to_delete ).')' ) );
|
||||
}
|
||||
|
||||
$title_deleted_count = intval( count($title_id_to_delete) );
|
||||
|
||||
$this->registry->output->addMessage("$title_deleted_count дубликатов настроек удалено");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_value='self' WHERE conf_key='chat_display'";
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_value='self' WHERE conf_key='chat04_display'";
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_title='Number of times per day moderators can warn a single member' WHERE conf_key='warn_mod_day'";
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_components WHERE com_filename='chatsigma'";
|
||||
$SQL[] = "INSERT INTO ibf_components (com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES ('SigmaChat', 'Invision Power Services', '', '2.1', 1113313895, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'chatsigma', 'chatsigma', 'Full real-time chat system for your members', '{ipb.lang[\'live_chat\']}', '{ipb.base_url}autocom=chatsigma', 5);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "UPDATE ibf_task_manager SET task_log=1 WHERE task_key='rssimport'";
|
||||
$SQL[] = "ALTER TABLE ibf_forums ADD topicfilter VARCHAR( 32 ) DEFAULT 'all' NOT NULL AFTER prune";
|
||||
$SQL[] = "UPDATE ibf_forums SET topicfilter='all' WHERE topicfilter != 'all'";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_message_topics ADD mt_addtosent TINYINT( 1 ) DEFAULT '0' NOT NULL AFTER mt_tracking";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_title='IPB License Settings', conf_title_desc='This section will allow you to edit your IPB registered license settings.' WHERE conf_title_keyword='ipbreg'";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_cal_events ADD event_timeset VARCHAR( 6 ) DEFAULT '0' NOT NULL AFTER event_tz";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_rss_import ADD rss_import_auth TINYINT( 1 ) DEFAULT '0' NOT NULL ,
|
||||
ADD rss_import_auth_user VARCHAR( 255 ) DEFAULT 'Not Needed' NOT NULL,
|
||||
ADD rss_import_auth_pass VARCHAR( 255 ) DEFAULT 'Not Needed' NOT NULL";
|
||||
|
||||
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Registration benefits', text='To be able to use all the features on this board, the administrator will probably require that you register for a member account. Registration is free and only takes a moment to complete.\r<br />\r<br />During registration, the administrator requires that you supply a valid email address. This is important as the administrator may require that you validate your registration via an email. If this is the case, you will be notified when registering. If your e-mail does not arrive, then on the member bar at the top of the page, there will be a link that will allow you to re-send the validation e-mail. \r<br />\r<br />In some cases, the administrator will need to approve your registration before you can use your member account fully. If this is the case you will be notified during registration.\r<br />\r<br />Once you have registered and logged in, you will have access to your personal messenger and your control panel.\r<br />\r<br />For more information on these items, please see the relevant sections in this documentation.', description='How to register and the added benefits of being a registered member.' WHERE id=1";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Cookies and cookie usage', text='Using cookies is optional, but strongly recommended. Cookies are used to track topics, showing you which topics have new replies since your last visit and to automatically log you in when you return.\r<br />\r<br />If your computer is unable to use the cookie system to browse the board correctly, then the board will automatically add in a session ID to each link to track you around the board.\r<br />\r<br /><b>Clearing Cookies</b>\r<br />\r<br />You can clear the cookies at any time by clicking on the link found at the bottom of the main board page (the first page you see when returning to the board). If this does not work for you, you may need to remove the cookies manually.\r<br />\r<br /><u>Removing Cookies in Internet Explorer for Windows</u>\r<br />\r<br /><ul>\r<br /><li> Close all open Internet Explorer Windows\r<br /><li> Click on the \'start\' button\r<br /><li> Move up to \'Find\' and click on \'Files and Folders\'\r<br /><li> When the new window appears, type in the domain name of the board you are using into the \'containing text\' field. (If the boards address was \'\' you would enter \'\' without the quotes)\r<br /><li> In the \'look in\' box, type in <b>C:WindowsCookies</b> and press \'Find Now\'\r<br /><li> After it has finished searching, highlight all files (click on a file then press CTRL+A) and delete them.\r<br /></ul>\r<br />\r<br /><u>Removing Cookies in Internet Explorer for Macintosh</u>\r<br />\r<br /><ul>\r<br /><li> With Internet Explorer active, choose \'Edit\' and then \'Preferences\' from the Macintosh menu bar at the top of the screen\r<br /><li> When the preferences panel opens, choose \'Cookies\' found in the \'Receiving Files\' section.\r<br /><li> When the cookie pane loads, look for the domain name of the board (If the boards address was \'\' look for \'\' or \'\'\r<br /><li> For each cookie, click on the entry and press the delete button.\r<br /></ul>\r<br />\r<br />Your cookies should now be removed. In some cases you may need to restart your computer for the changes to take effect.', description='The benefits of using cookies and how to remove cookies set by this board.' WHERE id=2";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Recovering lost or forgotten passwords', text='Security is a big feature on this board, and to that end, all passwords are encrypted when you register.\r<br />This means that we cannot email your password to you as we hold no record of your \'uncrypted\' password. You can however, apply to have your password reset.\r<br />\r<br />To do this, click on the <a href=\'index.php?act=Reg&do=10\'>Lost Password link</a> found on the log in page.\r<br />\r<br />Further instruction is available from there.', description='How to reset your password if you\'ve forgotten it.' WHERE id=3";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Your Control Panel (My Controls)', text='Your control panel is your own private board console. You can change how the board looks and feels as well as your own information from here.\r<br />\r<br /><b>Subscriptions</b>\r<br />\r<br />This is where you manage your topic and forums subscriptions. Please see the help file \'Email Notification of new messages\' for more information on how to subscribe to topics.\r<br />\r<br /><b>Edit Profile Info</b>\r<br />\r<br />This section allows you to add or edit your contact information and enter some personal information if you choose.\r<br />\r<br /><b>Edit Signature</b>\r<br />\r<br />A board \'signature\' is very similar to an email signature. This signature is attached to the foot of every message you post unless you choose to check the box that allows you to ommit the signature in the message you are posting. You may use BB Code if available and in some cases, pure HTML (if the board administrator allows it).\r<br />\r<br /><b>Edit Avatar Settings</b>\r<br />\r<br />An avatar is a little image that appears under your username when you view a topic or post you authored. If the administrator allows, you may either choose from the board gallery, enter a URL to an avatar stored on your server or upload an avatar to use. You may also set the width of the avatar to ensure that it\'s sized in proportion.\r<br />\r<br /><b>Change Personal Photo</b>\r<br />\r<br />This section will allow you to add a photograph to your profile. This will be displayed when a user clicks to view your profile, on the mini-profile screen and will also be linked to from the member list.\r<br />\r<br /><b>Email Settings</b>\r<br />\r<br /><u>Hide my email address</u> allows you to deny the ability for other users to send you an email from the board.\r<br /><u>Send me updates sent by the board administrator</u> will allow the administrator to include your email address in any mailings they send out - this is used mostly for important updates and community information.\r<br /><u>Include a copy of the post when emailing me from a subscribed topic</u>, this allows you to have the new post included in any reply to topic notifications.\r<br /><u>Send a confirmation email when I receive a new private message</u>, this will send you an e-mail notification to your registered e-mail address each time you receive a private message on the board.\r<br /><u>Enable \'Email Notification\' by default?</u>, this will automatically subscribe you to any topic that you make a reply to. You may unsubscribe from the \'Subscriptions\' section of My Controls if you wish.\r<br />\r<br /><b>Board Settings</b>\r<br />\r<br />From this section, you can set your time zone, choose to not see users signatures, avatars and posted images.\r<br />You can choose to get a pop up window informing you when you have a new message and choose to show or hide the \'Fast Reply\' box where it is enabled.\r<br />You are also able to choose display preferences for the number of topics/posts shown per page on the board.\r<br />\r<br /><b>Change Email Address</b>\r<br />\r<br />At any time, you can change the email address that is registered to your account. In some cases, you will need to revalidate your account after changing your email address. If this is the case, you will be notified before your email address change is processed.\r<br />\r<br /><b>Change Password</b>\r<br />\r<br />You may change your password from this section. Please note that you will need to know your current password before you can change your password.', description='Editing contact information, personal information, avatars, signatures, board settings, languages and style choices.' WHERE id=4";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Email Notification of new messages', text='This board can notify you when a new reply is added to a topic. Many users find this useful to keep up to date on topics without the need to view the board to check for new messages.\r<br />\r<br />There are three ways to subscribe to a topic:\r<br /><ul>\r<br /><li>Click the \'Track This Topic\' link at the top of the topic that you wish to track</li>\r<br /><li> On the posting screen when replying to or creating a topic, check the \'Enable email notification of replies?\' checkbox</li>\r<br /><li> From the E-Mail settings section of your User CP (My Controls) check the \'Enable Email Notification by default?\' option, this will automatically subscribe you to any topic that you make a reply to</li>\r<br /></ul>Please note that to avoid multiple emails being sent to your email address, you will only get one e-mail for each topic you are subscribed to until the next time you visit the board.\r<br />\r<br />You are also able to subscribe to each individual forum on the board, to be notified when a new topic is created in that particular forum. To enable this, click the \'Subscribe to this forum\' link at the bottom of the forum that you wish to subscribe to.\r<br />\r<br />To unsubscribe from any forums or topics that you are subscribed to - just go to the \'Subscriptions\' section of \'My Controls\' and you can do thi from there.', description='How to get emailed when a new reply is added to a topic.' WHERE id=5";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Your Personal Messenger', text='Your personal messenger acts much like an email account in that you can send and receive messages and store messages in folders.\r<br />\r<br /><b>Compose a New PM</b>\r<br />\r<br />This will allow you to send a message to another member. If you have names in your contact list, you can choose a name from it - or you may choose to enter a name in the relevant form field. This will be automatically filled in if you clicked a \'PM\' button on the board (from the member list or a post). If allowed, you may also be able to enter in multiple names in the box provided, will need to add one username per line.\r<br />If the administrator allows, you may use BB Code and HTML in your private message. If you choose to check the \'Add a copy of this message to you sent items folder\' box, a copy of the message will be saved for you for later reference. If you tick the \'Track this message?\' box, then the details of the message will be available in your \'Message Tracker\' where you will be able to see if/when it has been read.\r<br />\r<br /><bInbox</b>\r<br />\r<br />Your inbox is where all new messages are sent to. Clicking on the message title will show you the message in a similar format to the board topic view. You can also delete or move messages from your inbox.\r<br />\r<br /><b>Empty PM Folders</b>\r<br />\r<br />This option provides you with a quick and easy way to clear out all of your PM folders.\r<br />\r<br /><b>Edit Storage Folders</b>\r<br />\r<br />You may rename, add or remove folders to store messages is, allowing you to organise your messages to your preference. You cannot remove \'Sent Items\' or \'Inbox\'.\r<br />\r<br /><b>PM Buddies/Block List</b>\r<br />\r<br />You may add in users names in this section, or edit any saved entries. You can also use this as a ban list, denying the named member the ability to message you.\r<br />Names entered in this section will appear in the drop down list when sending a new PM, allowing you to quickly choose the members name when sending a message.\r<br />\r<br /><b>Archive Messages</b>\r<br />\r<br />If your messenger folders are full and you are unable to receive new messages, you can archive them off. This compiles the messages into a single HTML page or Microsoft © Excel Format. This page is then emailed to your registered email address for your convenience.\r<br />\r<br /><b>Saved (Unsent) PMs</b>\r<br />\r<br />This area will allow you to go back to any PM\'s that you have chosen to save to be sent later.\r<br />\r<br /><b>Message Tracker</B>\r<br />\r<br />This is the page that any messages that you have chosen to track will appear. Details of if and when they have been read by the recipient will appear here. This also gives you the chance to delete any messages that you have sent and not yet been read by the intended recipient.', description='How to send personal messages, track them, edit your messenger folders and archive stored messages.' WHERE id=6";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Contacting the moderating team & reporting posts', text='<b>Contacting the moderating team</b>\r<br />\r<br />If you need to contact a moderator or simply wish to view the complete administration team, you can click the link \'The moderating team\' found at the bottom of the main board page (the first page you see when visiting the board), or from \'My Assistant\'.\r<br />\r<br />This list will show you administrators (those who have administration control panel access), global moderators (those who can moderate in all forums) and the moderators of the individual forums.\r<br />\r<br />If you wish to contact someone about your member account, then contact an administrator - if you wish to contact someone about a post or topic, contact either a global moderator or the forum moderator.\r<br />\r<br /><b>Reporting a post</b>\r<br />\r<br />If the administrator has enabled this function on the board, you\'ll see a \'Report\' button in a post, next to the \'Quote\' button. This function will let you report the post to the forum moderator (or the administrator(s), if there isn\'t a specific moderator available). You can use this function when you think the moderator(s) should be aware of the existance of that post. However, <b>do not use this to chat with the moderator(s)!</b>. You can use the email function or the Personal Messenger function for that.', description='Where to find a list of the board moderators and administrators.' WHERE id=7";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Viewing members profile information', text='You can view a members profile at any time by clicking on their name when it is underlined (as a link) or by clicking on their name in a post within a topic.\r<br />\r<br />This will show you their profile page which contains their contact information (if they have entered some) and their \'active stats\'.\r<br />\r<br />You can also click on the \'Mini Profile\' button underneath their posts, this will show up a mini \'e-card\' with their contact information and a photograph if they have chosen to have one.', description='How to view members contact information.' WHERE id=8";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Viewing active topics and new posts', text='You can view which new topics have new replies today by clicking on the \'Today\'s Active Topics\' link found at the bottom of the main board page (the first page you see when visiting the board). You can set your own date criteria, choosing to view all topics with new replies during several date choices.\r<br />\r<br />The \'View New Posts\' link in the member bar at the top of each page, will allow you to view all of the topics which have new replies in since your last visit to the board.', description='How to view all the topics which have a new reply today and the new posts made since your last visit.' WHERE id=9";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Searching Topics and Posts', text='The search feature is designed to allow you to quickly find topics and posts that contain the keywords you enter.\r<br />\r<br />There are two types of search form available, simple search and advanced search. You may switch between the two using the \'More Options\' and \'Simple Mode\' buttons.\r<br />\r<br /><b>Simple Mode</b>\r<br />\r<br />All you need to do here is enter in a keyword into the search box, and select a forum(s) to search in. (to select multiple forums, hold down the control key on a PC, or the Shift/Apple key on a Mac) choose a sorting order and search.\r<br />\r<br /><b>Advanced Mode</b>\r<br />\r<br />The advanced search screen, will give you a much greater range of options to choose from to refine your search. In addition to searching by keyword, you are able to search by a members username or a combination of both. You can also choose to refine your search by selecting a date range, and there are a number of sorting options available. There are also two ways of displaying the search results, can either show the post text in full or just show a link to the topic, can choose this using the radio buttons available.\r<br />\r<br />If the administrator has enabled it, you may have a minimum amount of time to wait between searches, this is known as search flood control.\r<br />\r<br />There are also search boxes available at the bottom of each forum, to allow you to carry out a quick search of all of the topics within that particular forum.', description='How to use the search feature.' WHERE id=10";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Logging in and out', text='If you have chosen not to remember your log in details in cookies, or you are accessing the board on another computer, you will need to log into the board to access your member profile and post with your registered name.\r<br />\r<br />When you log in, you have the choice to save cookies that will log you in automatically when you return. Do not use this option on a shared computer for security.\r<br />\r<br />You can also choose to hide - this will keep your name from appearing in the active users list.\r<br />\r<br />Logging out is simply a matter of clicking on the \'Log Out\' link that is displayed when you are logged in. If you find that you are not logged out, you may need to manually remove your cookies. See the \'Cookies\' help file for more information.', description='How to log in and out from the board and how to remain anonymous and not be shown on the active users list.' WHERE id=11";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='My Assistant', text='This feature is sometimes referred to as a \'Browser Buddy\'. \r<br />\r<br />At the top it tells you how many posts have been made since you last visited the board.. Also underneath this the number of posts with replies that have been made in topics that the individual has also posted in.\r<br />Click on the \'View\' link on either of the two sentences to see the posts.\r<br />\r<br />The next section is five links to useful features:\r<br /><ul>\r<br /><li>The link to the moderating team is basically a quick link to see all those that either administrate or moderate certain forums on the message board.</li>\r<br /><li> The link to \'Today\'s Active Topics\' shows you all the topics that have been created in the last 24 hours on the board.</li>\r<br /><li>Today\'s Top 10 Posters link shows you exactly as the name suggests. It shows you the amount of posts by the members and also their total percentage of the total posts made that day.</li>\r<br /><li>The overall Top 10 Posters link shows you the top 10 posters for the whole time that the board has been installed.</li>\r<br /><li>My last 10 posts links to the latest topics that you have made on the board. These are shortened on the page, to save space, and are linked to if you require to read more of them.</li>\r<br /></ul>The two search features allow you to search the whole board for certain words in a whole topic. It isn\'t as featured as the normal search option so it is not as comprehensive.\r<br />\r<br />The Help Search is just as comprehensive as the normal help section\'s search function and allows for quick searching of all the help topics on the board.', description='A comprehensive guide to use this handy little feature.' WHERE id=12";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Posting', text='There are three different posting screens available. The new topic button, visible in forums and in topics allows you to add a new topic to that particular forum. The new poll button (if the admin has enabled it) will also be viewable in topics and forums allowing you to create a new poll in the forum. When viewing a topic, there will be an add reply button, allowing you to add a new reply onto that particular topic. \r\n<br />\r\n<br /><b>Posting new topics and replying</b>\r\n<br />\r\n<br />When making a post, you will most likely have the option to use IBF code when posting. This will allow you to add various types of formatting to your messages. For more information on this, click the \'BB Code Help\' link under the emoticon box to launch the help window.\r\n<br />\r\n<br />On the left of the text entry box, there is the clickable emoticons box - you can click on these to add them to the content of your message (these are sometimes known as \'smilies\').\r\n<br />\r\n<br />There are three options available when making a post or a reply. \'Enable emoticons?\' if this is unchecked, then any text that would normally be converted into an emoticon will not be. \'Enable signature?\' allows you to choose whether or not you would like your signature to appear on that individual post. \'Enable email notification of replies?\' ticking this box will mean that you will receive e-mail updates to the topic, see the \'Email Notification of new messages\' help topic for more information on this.\r\n<br />\r\n<br />You also have the option to choose a post icon for the topic/post when creating one. This icon will appear next to the topic name on the topic listing in that forum, or will appear next to the date/time of the message if making a reply to a topic.\r\n<br />\r\n<br />If the admin has enabled it, you will also see a file attachments option, this will allow you to attach a file to be uploaded when making a post. Click the browse button to select a file from your computer to be uploaded. If you upload an image file, it may be shown in the content of the post, all other file types will be linked to.\r\n<br />\r\n<br /><b>Poll Options</b>\r\n<br />\r\n<br />If you have chosen to post a new poll, there will be an extra two option boxes at the top of the help screen. The first input box will allow you to enter the question that you are asking in the poll. The text field underneath is where you will input the choices for the poll. Simply enter a different option on each line. The maximum number of choices is set by the board admin, and this figure is displayed on the left.\r\n<br />\r\n<br /><b>Quoting Posts</b>\r\n<br />\r\n<br />Displayed below each post in a topic, there is a \'Quote\' button. Pressing this button will allow you to reply to a topic, and have the text from a particular reply quoted in your own reply. When you choose to do this, an extra text field will appear below the main text input box to allow you to edit the content of the post being quoted.\r\n<br />\r\n<br /><b>Editing Posts</b>\r\n<br />\r\n<br />Above any posts that you have made, you may see an \'Edit\' button. Pressing this will allow you to edit the post that you had previously made. \r\n<br />\r\n<br />When editing you may see an option to \'Add the \'Edit by\' line in this post?\'. If you tick this then it will show up in the posts that it has been edited and the time at which it was edited. If this option does not appear, then the edit by line will always be added to the post.\r\n<br />\r\n<br />If you are unable to see the edit button displayed on each post that you have made, then the administrator may have prevented you from editing posts, or the time limit for editing may have expired.\r\n<br />\r\n<br /><b>Fast Reply</b>\r\n<br />\r\n<br />Where it has been enabled, there will be a fast reply button on each topic. Clicking this will open up a posting box on the topic view screen, cutting down on the time required to load the main posting screen. Click the fast reply button to expand the reply box and type the post inside of there. Although the fast reply box is not expanded by default, you can choose the option to have it expanded by default, from the board settings section of your control panel. Pressing the \'More Options\' button will take you to the normal posting screen.', description='A guide to the features avaliable when posting on the boards.' WHERE id=13";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Member List', text='The member list, accessed via the \'Members\' link at the top of each page, is basically a listing of all of the members that have registered on the board. \r\n<br />\r\n<br />If you are looking to search for a particular member by all/part of their username, then in the drop down box at the bottom of the page, change the selection from \'Search All Available\' to \'Name Begins With\' or \'Name Contains\' and input all/part of their name in the text input field and press the \'Go!\' button. \r\n<br />\r\n<br />Also, at the bottom of the member list page, there are a number of sorting options available to alter the way in which the list is displayed. \r\n<br />\r\n<br />If a member has chosen to add a photo to their profile information, then a camera icon will appear next to their name, and you may click this to view the photo.', description='Explaining the different ways to sort and search through the list of members.' WHERE id=14";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Topic Options', text='At the bottom of each topic, there is a \'Topic Options\' button. Pressing this button will expand the topic options box. \r<br />\r<br />From this box, you can select from the following options: \r<br /><ul>\r<br /><li>Track this topic - this option will allow you to receive e-mail updates for the topic, see the \'Email Notification of new messages\' help file for more information on this</li>\r<br /><li>Subscribe to this forum - will allow you to receive e-mail updates for any new topics posted in the forum, see the Notification of new messages\' help file for more information on this</li>\r<br /><li>Download / Print this Topic - will show the topic in a number of different formats. \'Printer Friendly Version\' will display a version of the topic that is suitable for printing out. \'Download HTML Version\' will download a copy of the topic to your hard drive, and this can then be viewed in a web browser, without having to visit the board. \'Download Microsoft Word Version\' will allow you to download the file to your hard drive and open it up in the popular word processing application, Microsoft Word, for viewing offline.</li>\r<br /></ul>', description='A guide to the options avaliable when viewing a topic.' WHERE id=15";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Calendar', text='This board features it\'s very own calendar feature, which can be accessed via the calendar link at the top of the board.\r<br />\r<br />You are able to add your own personal events to the calendar - and these are only viewable by yourself. To add a new event, use the \'Add New Event\' button to be taken to the event posting screen. There are three types of events that you can now add:\r<br /><ul>\r<br /><li>A single day/one off event can be added using the first option, by just selecting the date for it to appear on.</li>\r<br /><li>Ranged Event - is an event that spans across multiple days, to do this in addition to selecting the start date as above, will need to add the end date for the event. There are also options available to highlight the message on the calendar, useful if there is more than one ranged event being displayed at any one time.</li>\r<br /><li>Recurring Event - is a one day event, that you can set to appear at set intervals on the calendar, either weekly, monthly or yearly.</li>\r<br /></ul>If the admistrator allows you, you may also be able to add a public event, that will not just be shown to yourself, but will be viewable by everyone.\r<br />\r<br />Also, if the admistrator has chosen, there will be a link to all the birthdays happening on a particular day displayed on the calendar, and your birthday will appear if you have chosen to enter a date of birth in the Profile Info section of your control panel.', description='More information on the boards calendar feature.' WHERE id=16";
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='csite_skinchange_show'";
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='csite_pm_show'";
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='csite_search_show'";
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_end_group=1 WHERE conf_key='recent_topics_discuss_number'";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members CHANGE email email varchar( 150 ) NOT NULL default ''";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_subscription_currency CHANGE `subcurrency_exchange` `subcurrency_exchange` DECIMAL( 16, 8 ) DEFAULT '0.00000000' NOT NULL";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,2 @@
|
||||
<html>
|
||||
</html>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
// $SQL[] = "";
|
||||
|
||||
$SQL[] = "TRUNCATE TABLE ibf_search_results;";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_conf_settings_titles ADD conf_title_module varchar(200) NOT NULL default '';";
|
||||
$SQL[] ="ALTER TABLE ibf_conf_settings_titles change conf_title_desc conf_title_desc TEXT NULL;";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_conf_settings change conf_value conf_value text NULL;";
|
||||
$SQL[] ="ALTER TABLE ibf_conf_settings change conf_default conf_default text NULL;";
|
||||
$SQL[] ="ALTER TABLE ibf_conf_settings change conf_extra conf_extra text NULL;";
|
||||
$SQL[] ="ALTER TABLE ibf_conf_settings change conf_evalphp conf_evalphp text NULL;";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_converge_local (
|
||||
converge_api_code VARCHAR(32) NOT NULL default '',
|
||||
converge_product_id INT(10) NOT NULL default '0',
|
||||
converge_added INT(10) NOT NULL default '0',
|
||||
converge_ip_address VARCHAR(16) NOT NULL default '',
|
||||
converge_url VARCHAR(255) NOT NULL default '',
|
||||
converge_active INT(1) NOT NULL default '0',
|
||||
converge_http_user VARCHAR(255) NOT NULL default '',
|
||||
converge_http_pass VARCHAR(255) NOT NULL default '',
|
||||
PRIMARY KEY (converge_api_code ),
|
||||
KEY converge_active (converge_active)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_admin_login_logs (
|
||||
admin_id INT(10) NOT NULL auto_increment,
|
||||
admin_ip_address VARCHAR(16) NOT NULL default '0.0.0.0',
|
||||
admin_username VARCHAR(40) NOT NULL default '',
|
||||
admin_time INT(10) UNSIGNED NOT NULL default '0',
|
||||
admin_success INT(1) UNSIGNED NOT NULL default '0',
|
||||
admin_post_details TEXT NULL,
|
||||
PRIMARY KEY (admin_id),
|
||||
KEY admin_ip_address (admin_ip_address),
|
||||
KEY admin_time (admin_time)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_profile_friends (
|
||||
friends_id INT(10) NOT NULL auto_increment,
|
||||
friends_member_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
friends_friend_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
friends_approved TINYINT(1) NOT NULL default '0',
|
||||
friends_added INT(10) UNSIGNED NOT NULL default '0',
|
||||
PRIMARY KEY( friends_id ),
|
||||
KEY my_friends ( friends_member_id, friends_friend_id ),
|
||||
KEY friends_member_id ( friends_member_id )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_profile_comments (
|
||||
comment_id INT(10) NOT NULL auto_increment,
|
||||
comment_for_member_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
comment_by_member_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
comment_date INT(10) UNSIGNED NOT NULL default '0',
|
||||
comment_ip_address VARCHAR(16) NOT NULL default '0',
|
||||
comment_content TEXT NULL,
|
||||
comment_approved TINYINT(1) NOT NULL default '0',
|
||||
PRIMARY KEY( comment_id ),
|
||||
KEY my_comments( comment_for_member_id )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_profile_ratings (
|
||||
rating_id INT(10) NOT NULL auto_increment,
|
||||
rating_for_member_id INT(10) NOT NULL default '0',
|
||||
rating_by_member_id INT(10) NOT NULL default '0',
|
||||
rating_added INT(10) NOT NULL default '0',
|
||||
rating_ip_address VARCHAR(16) NOT NULL default '',
|
||||
rating_value INT(2) NOT NULL default '0',
|
||||
PRIMARY KEY ( rating_id ),
|
||||
KEY rating_for_member_id ( rating_for_member_id )
|
||||
);";
|
||||
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_profile_portal (
|
||||
pp_member_id INT(10) NOT NULL default '0',
|
||||
pp_profile_update INT(10) UNSIGNED NOT NULL default '0',
|
||||
pp_bio_content TEXT NULL,
|
||||
pp_last_visitors TEXT NULL,
|
||||
pp_comment_count INT(10) UNSIGNED NOT NULL default '0',
|
||||
pp_rating_hits INT(10) UNSIGNED NOT NULL default '0',
|
||||
pp_rating_value INT(10) UNSIGNED NOT NULL default '0',
|
||||
pp_rating_real INT(10) UNSIGNED NOT NULL default '0',
|
||||
pp_friend_count INT(5) UNSIGNED NOT NULL default '0',
|
||||
pp_main_photo VARCHAR(255) NOT NULL default '',
|
||||
pp_main_width INT(5) UNSIGNED NOT NULL default '0',
|
||||
pp_main_height INT(5) UNSIGNED NOT NULL default '0',
|
||||
pp_thumb_photo VARCHAR(255) NOT NULL default '',
|
||||
pp_thumb_width INT(5) UNSIGNED NOT NULL default '0',
|
||||
pp_thumb_height INT(5) UNSIGNED NOT NULL default '0',
|
||||
pp_gender VARCHAR(10) NOT NULL default '',
|
||||
pp_setting_notify_comments VARCHAR(10) NOT NULL default 'email',
|
||||
pp_setting_notify_friend VARCHAR(10) NOT NULL default 'email',
|
||||
pp_setting_moderate_comments TINYINT(1) NOT NULL default '0',
|
||||
pp_setting_moderate_friends TINYINT(1) NOT NULL default '0',
|
||||
pp_setting_count_friends INT(2) NOT NULL default '0',
|
||||
pp_setting_count_comments INT(2) NOT NULL default '0',
|
||||
pp_setting_count_visitors INT(2) NOT NULL default '0',
|
||||
pp_profile_views INT(10) NOT NULL default '0',
|
||||
PRIMARY KEY ( pp_member_id )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_profile_portal_views (
|
||||
views_member_id int(10) NOT NULL default '0'
|
||||
);";
|
||||
|
||||
$SQL[] = "DROP TABLE ibf_calendar_events;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[]="ALTER TABLE ibf_members ADD members_profile_views INT(10) UNSIGNED NOT NULL default '0';";
|
||||
$SQL[]="ALTER TABLE ibf_members ADD member_login_key_expire INT(10) NOT NULL default '0' AFTER member_login_key;";
|
||||
|
||||
$SQL[]="alter table ibf_members ADD members_l_display_name VARCHAR(255) NOT NULL default '0';";
|
||||
$SQL[]="alter table ibf_members ADD members_l_username VARCHAR(255) NOT NULL default '0';";
|
||||
$SQL[]="alter table ibf_members DROP INDEX name;";
|
||||
$SQL[]="alter table ibf_members DROP INDEX members_display_name;";
|
||||
$SQL[]="alter table ibf_member_extra change interests interests text NULL;";
|
||||
$SQL[]="alter table ibf_members change ignored_users ignored_users text NULL;";
|
||||
$SQL[]="alter table ibf_members change members_markers members_markers text NULL;";
|
||||
|
||||
$SQL[]="ALTER TABLE ibf_members ADD INDEX members_l_display_name (members_l_display_name), ADD INDEX members_l_username (members_l_username);";
|
||||
|
||||
$SQL[]="ALTER TABLE ibf_members ADD failed_logins TEXT NULL;";
|
||||
$SQL[]="ALTER TABLE ibf_members ADD failed_login_count SMALLINT( 3 ) DEFAULT '0' NOT NULL;";
|
||||
|
||||
$SQL[]="ALTER TABLE ibf_members_partial ADD partial_email_ok INT(1) NOT NULL default '0';";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_attachments ADD attach_rel_id INT(10) NOT NULL default '0',
|
||||
ADD attach_rel_module VARCHAR(100) NOT NULL default '0';";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_attachments add attach_img_width INT(5) NOT NULL default '0',
|
||||
add attach_img_height INT(5) NOT NULL default '0';";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_attachments DROP INDEX attach_mid_size,
|
||||
DROP INDEX attach_pid,
|
||||
DROP INDEX attach_msg,
|
||||
ADD INDEX attach_pid (attach_rel_id),
|
||||
ADD INDEX attach_mid_size (attach_member_id,attach_rel_module, attach_filesize),
|
||||
ADD INDEX attach_where (attach_rel_module, attach_rel_id);";
|
||||
?>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[]="ALTER TABLE ibf_posts DROP INDEX topic_id, ADD INDEX topic_id ( topic_id , queued , pid , post_date );";
|
||||
$SQL[]="ALTER TABLE ibf_posts ADD INDEX post_key (post_key), ADD INDEX ip_address (ip_address);";
|
||||
$SQL[]="ALTER TABLE ibf_posts ADD post_edit_reason VARCHAR(255) NOT NULL default '';";
|
||||
$SQL[]="ALTER TABLE ibf_posts CHANGE post post MEDIUMTEXT NULL;";
|
||||
$SQL[]="ALTER TABLE ibf_topics ADD INDEX starter_id (starter_id, forum_id, approved);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_groups DROP g_calendar_post;";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_validating ADD prev_email VARCHAR(150) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_forums CHANGE position position INT(5) UNSIGNED default '0';";
|
||||
$SQL[] ="ALTER TABLE ibf_forums ADD newest_title VARCHAR( 128 ) NULL , ADD newest_id INT( 10 ) NOT NULL default '0' ;";
|
||||
$SQL[] ="ALTER TABLE ibf_forums ADD password_override VARCHAR( 255 ) AFTER password;";
|
||||
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_search_results CHANGE topic_id topic_id text NULL;";
|
||||
$SQL[] ="ALTER TABLE ibf_search_results CHANGE post_id post_id text NULL;";
|
||||
$SQL[] ="ALTER TABLE ibf_search_results CHANGE query_cache query_cache text NULL;";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_cache_store change cs_value cs_value mediumtext NULL;";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_login_methods ADD login_user_id VARCHAR(255) NOT NULL default 'username';";
|
||||
$SQL[] ="ALTER TABLE ibf_login_methods ADD login_logout_url VARCHAR(255) NOT NULL default '';";
|
||||
$SQL[] ="ALTER TABLE ibf_login_methods ADD login_login_url VARCHAR(255) NOT NULL default '';";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_sessions CHANGE id id VARCHAR(60) DEFAULT '0' NOT NULL;";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_voters ADD INDEX ( tid );";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_faq ADD position SMALLINT( 3 ) DEFAULT '0' NOT NULL;";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_polls ADD poll_only TINYINT( 1 ) DEFAULT '0' NOT NULL;";
|
||||
|
||||
# UPDATES
|
||||
$SQL[] ="UPDATE ibf_subscription_methods SET submethod_desc='All major credit cards accepted. See <a href=\"https://www.paypal.com\" target=\"_blank\">PayPal</a> for more information.' WHERE LOWER(submethod_name)='paypal';";
|
||||
|
||||
$SQL[] ="UPDATE ibf_groups SET g_photo_max_vars='100:150:150';";
|
||||
|
||||
$SQL[] ="UPDATE ibf_attachments SET attach_rel_id=attach_pid, attach_rel_module='post' where attach_pid > 0;";
|
||||
$SQL[] ="UPDATE ibf_attachments SET attach_rel_id=attach_msg, attach_rel_module='msg' where attach_msg > 0;";
|
||||
|
||||
$SQL[] ="UPDATE ibf_login_methods SET login_settings = '1', login_installed = '1' WHERE login_folder_name='ldap';";
|
||||
$SQL[] ="UPDATE ibf_login_methods SET login_settings = '1', login_installed = '1' WHERE login_folder_name='external';";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES ('IP.Converge', 'Для внутреннего использования', 'ipconverge', '', '', 'passthrough', '', 0, 0, 0, 1, 1, 0, 1);";
|
||||
$SQL[] ="UPDATE ibf_forums SET permission_showtopic=1 WHERE parent_id='-1';";
|
||||
|
||||
# MEMBERS
|
||||
$SQL[] = "UPDATE ibf_members SET members_l_display_name=LOWER(members_display_name);";
|
||||
$SQL[] = "UPDATE ibf_members SET members_l_username=LOWER(name);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,386 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
/**
|
||||
* Custom HTML to show
|
||||
*
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
private $_output = '';
|
||||
|
||||
/**
|
||||
* fetchs output
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function fetchOutput()
|
||||
{
|
||||
return $this->_output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute selected method
|
||||
*
|
||||
* @access public
|
||||
* @param object Registry object
|
||||
* @return void
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
/* Make object */
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
|
||||
/* Set DB driver to return any errors */
|
||||
$this->DB->return_die = 1;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $this->request['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
case 'sql1':
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
case 'sql2':
|
||||
$this->upgrade_sql(2);
|
||||
break;
|
||||
case 'sql3':
|
||||
$this->upgrade_sql(3);
|
||||
break;
|
||||
case 'sql4':
|
||||
$this->upgrade_sql(4);
|
||||
break;
|
||||
case 'forums':
|
||||
$this->update_forums();
|
||||
break;
|
||||
case 'finish':
|
||||
$this->finish_up();
|
||||
break;
|
||||
case 'skin':
|
||||
$this->add_skin();
|
||||
break;
|
||||
case 'update_template_bits':
|
||||
$this->update_template_bits();
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
}
|
||||
|
||||
if ( $this->request['workact'] )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL: 0
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_sql( $id=1 )
|
||||
{
|
||||
$man = 0; // Manual upgrade ? intval( $this->install->ipsclass->input['man'] );
|
||||
$cnt = 0;
|
||||
$SQL = array();
|
||||
$file = '_updates_'.$id.'.php';
|
||||
$output = "";
|
||||
$path = IPSLib::getAppDir( 'core' ) . '/setup/versions/upg_22005/' . strtolower( $this->registry->dbFunctions()->getDriverType() ) . $file;
|
||||
$prefix = $this->registry->dbFunctions()->getPrefix();
|
||||
|
||||
if ( file_exists( $path ) )
|
||||
{
|
||||
require_once( $path );
|
||||
|
||||
$this->sqlcount = 0;
|
||||
$output = "";
|
||||
|
||||
$this->DB->return_die = 1;
|
||||
|
||||
foreach( $SQL as $query )
|
||||
{
|
||||
$this->DB->allow_sub_select = 1;
|
||||
$this->DB->error = '';
|
||||
|
||||
$query = str_replace( "<%time%>", time(), $query );
|
||||
|
||||
if( $this->settings['mysql_tbl_type'] )
|
||||
{
|
||||
if( preg_match( "/^create table(.+?)/i", $query ) )
|
||||
{
|
||||
$query = preg_replace( "/^(.+?)\);$/is", "\\1) TYPE={$this->settings['mysql_tbl_type']};", $query );
|
||||
}
|
||||
}
|
||||
|
||||
/* Need to tack on a prefix? */
|
||||
if ( $prefix )
|
||||
{
|
||||
$query = IPSSetUp::addPrefixToQuery( $query, $prefix );
|
||||
}
|
||||
|
||||
if ( IPSSetUp::getSavedData('man') )
|
||||
{
|
||||
$output .= preg_replace( "/\s{1,}/", " ", $query ) ."\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->DB->query( $query );
|
||||
|
||||
if ( $this->DB->error )
|
||||
{
|
||||
$this->registry->output->addError( $query."<br /><br />".$this->DB->error );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->sqlcount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->registry->output->addMessage("$this->sqlcount запросов выполнено....");
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$this->request['st'] = 0;
|
||||
|
||||
if ( $id != 4 )
|
||||
{
|
||||
$nextid = $id + 1;
|
||||
$this->request['workact'] = 'sql'.$nextid;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->request['workact'] = 'forums';
|
||||
}
|
||||
|
||||
if ( IPSSetUp::getSavedData('man') AND $output )
|
||||
{
|
||||
$this->_output = $this->registry->output->template()->upgrade_manual_queries( $output );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Update forums
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function update_forums()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Update latest news...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->update( "forums", "newest_title=last_title, newest_id=last_id", 'last_title IS NOT NULL AND last_id IS NOT NULL', false, true );
|
||||
$this->DB->execute();
|
||||
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$ignore_me = array( 'redirect_url', 'redirect_loc', 'rules_text', 'permission_custom_error', 'notify_modq_emails' );
|
||||
|
||||
if ( isset($this->settings['forum_cache_minimum']) AND $this->settings['forum_cache_minimum'] )
|
||||
{
|
||||
$ignore_me[] = 'description';
|
||||
$ignore_me[] = 'rules_title';
|
||||
}
|
||||
|
||||
$this->caches['forum_cache'] = array();
|
||||
|
||||
$this->DB->build( array( 'select' => '*',
|
||||
'from' => 'forums',
|
||||
'order' => 'parent_id, position'
|
||||
) );
|
||||
$o = $this->DB->execute();
|
||||
|
||||
while( $f = $this->DB->fetch( $o ) )
|
||||
{
|
||||
$fr = array();
|
||||
|
||||
$perms = unserialize(stripslashes($f['permission_array']));
|
||||
|
||||
//-----------------------------------------
|
||||
// Stuff we don't need...
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $f['parent_id'] == -1 )
|
||||
{
|
||||
$fr['id'] = $f['id'];
|
||||
$fr['sub_can_post'] = $f['sub_can_post'];
|
||||
$fr['name'] = $f['name'];
|
||||
$fr['parent_id'] = $f['parent_id'];
|
||||
$fr['show_perms'] = $perms['show_perms'];
|
||||
$fr['skin_id'] = $f['skin_id'];
|
||||
$fr['permission_showtopic'] = $f['permission_showtopic'];
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach( $f as $k => $v )
|
||||
{
|
||||
if ( in_array( $k, $ignore_me ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $v != "" )
|
||||
{
|
||||
$fr[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$fr['read_perms'] = isset($perms['read_perms']) ? $perms['read_perms'] : '';
|
||||
$fr['reply_perms'] = isset($perms['reply_perms']) ? $perms['reply_perms'] : '';
|
||||
$fr['start_perms'] = isset($perms['start_perms']) ? $perms['start_perms'] : '';
|
||||
$fr['upload_perms'] = isset($perms['upload_perms']) ? $perms['upload_perms'] : '';
|
||||
$fr['download_perms'] = $perms['upload_perms'];
|
||||
$fr['show_perms'] = isset($perms['show_perms']) ? $perms['show_perms'] : '';
|
||||
|
||||
unset($fr['permission_array']);
|
||||
}
|
||||
|
||||
$this->caches['forum_cache'][ $fr['id'] ] = $fr;
|
||||
|
||||
$perm_array = addslashes(serialize(array(
|
||||
'start_perms' => $fr['start_perms'],
|
||||
'reply_perms' => $fr['reply_perms'],
|
||||
'read_perms' => $fr['read_perms'],
|
||||
'upload_perms' => $fr['upload_perms'],
|
||||
'download_perms' => $fr['download_perms'],
|
||||
'show_perms' => $fr['show_perms']
|
||||
) ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Add to save array
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->update( 'forums', array( 'permission_array' => $perm_array ), 'id='.$fr['id'] );
|
||||
|
||||
}
|
||||
|
||||
$this->cache->setCache( 'forum_cache', $this->caches['forum_cache'], array( 'array' => 1 ) );
|
||||
|
||||
$this->registry->output->addMessage("Права доступа обновлены, переходим к конвертации HTML логики в шаблонах...");
|
||||
$this->request['workact'] = 'update_template_bits';
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Update template bits
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function update_template_bits()
|
||||
{
|
||||
$this->registry->output->addMessage("Шаблоны пропущены, завершаем обновление...");
|
||||
$this->request['workact'] = 'finish';
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Update forums
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function finish_up()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Has gallery?
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->return_die = 1;
|
||||
$this->DB->error = '';
|
||||
|
||||
$table = 'members';
|
||||
|
||||
if ( ! $this->DB->checkForField( 'has_gallery', $table ) )
|
||||
{
|
||||
$this->DB->addField( 'members', 'has_gallery', 'INT(1)', '0' );
|
||||
|
||||
if ( $this->DB->error )
|
||||
{
|
||||
$this->registry->output->addError( "ALTER TABLE {$this->DB->obj['sql_tbl_prefix']}members ADD has_gallery INT(1) default 0<br /><br />".$this->DB->error );
|
||||
}
|
||||
}
|
||||
|
||||
if( $this->settings['conv_configured'] != 1 OR $this->settings['conv_chosen'] == "" )
|
||||
{
|
||||
if( $this->DB->checkForField( "legacy_password", "members" ) )
|
||||
{
|
||||
$this->DB->dropField( 'members', 'legacy_password' );
|
||||
|
||||
if ( $this->DB->error )
|
||||
{
|
||||
$this->registry->output->addError( "ALTER TABLE {$this->DB->obj['sql_tbl_prefix']}members DROP legacy_password<br /><br />".$this->DB->error );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$test = $this->DB->buildAndFetch( array( 'select' => 'count(*) as numrows',
|
||||
'from' => 'cache_store',
|
||||
'where' => "cs_key='calendars'"
|
||||
) );
|
||||
|
||||
if ( ! $test['numrows'] )
|
||||
{
|
||||
$this->DB->insert( 'cache_store', array( 'cs_key' => 'calendars' ) );
|
||||
}
|
||||
|
||||
$this->registry->output->addMessage("Очистка завершена, переходим к созданию нового IPB 2.2.0 стиля...");
|
||||
$this->request['workact'] = 'skin';
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Add new skin
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function add_skin()
|
||||
{
|
||||
$this->registry->output->addMessage("Добавление стиля 2.2.0 пропущено...");
|
||||
unset($this->request['workact']);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,2 @@
|
||||
<html>
|
||||
</html>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
// $SQL[] = "";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_custom_bbcode ADD bbcode_switch_option INT(1) NOT NULL default '0',
|
||||
ADD bbcode_add_into_menu INT(1) NOT NULL default '0',
|
||||
ADD bbcode_menu_option_text VARCHAR(200) NOT NULL default '',
|
||||
ADD bbcode_menu_content_text VARCHAR(200) NOT NULL default '';";
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key IN ('rte_width', 'rte_pm_width');";
|
||||
?>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
// $SQL[] = "";
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings_titles WHERE conf_title_keyword='httpapi';";
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='emo_per_row';";
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
// $SQL[] = "";
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='converge_login_method';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_member_extra CHANGE avatar_location avatar_location varchar(255) NOT NULL default '';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_skin_sets CHANGE set_css set_css mediumtext NULL,
|
||||
CHANGE set_cache_macro set_cache_macro mediumtext NULL,
|
||||
CHANGE set_wrapper set_wrapper mediumtext NULL,
|
||||
CHANGE set_cache_css set_cache_css mediumtext NULL,
|
||||
CHANGE set_cache_wrapper set_cache_wrapper mediumtext NULL;";
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_forums CHANGE rules_text rules_text TEXT NULL;";
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_cal_events ADD event_all_day TINYINT( 1 ) NOT NULL DEFAULT '0';";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
// $SQL[] = "";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_forums CHANGE last_title last_title varchar(128) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE ibf_forums CHANGE last_id last_id int(10) NOT NULL default '0';";
|
||||
$SQL[] = "UPDATE ibf_components SET com_title='AddOnChat' WHERE com_section='chatsigma';";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_attachments_type ADD index(atype_extension);";
|
||||
$SQL[] = "DELETE FROM ibf_admin_permission_keys WHERE perm_key='content:mem:add';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_upgrade_history CHANGE upgrade_notes upgrade_notes TEXT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_attachments_type ADD INDEX atype ( atype_post , atype_photo );";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_moderator_logs CHANGE query_string query_string TEXT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_rss_import CHANGE rss_import_url rss_import_url TEXT NULL;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_forums CHANGE last_title last_title VARCHAR( 250 ) NULL DEFAULT NULL ,
|
||||
CHANGE newest_title newest_title VARCHAR( 250 ) NULL DEFAULT NULL ;";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_skin_url_mapping (
|
||||
map_id INT(10) NOT NULL auto_increment,
|
||||
map_title VARCHAR(200) NOT NULL default '',
|
||||
map_match_type VARCHAR(10) NOT NULL default 'contains',
|
||||
map_url VARCHAR(200) NOT NULL default '',
|
||||
map_skin_set_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
map_date_added INT(10) UNSIGNED NOT NULL default '0',
|
||||
PRIMARY KEY (map_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_mail_queue ADD mail_html_on INT(1) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_skin_templates ADD group_names_secondary TEXT NULL;";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_skin_template_links (
|
||||
link_id INT(10) UNSIGNED NOT NULL auto_increment,
|
||||
link_set_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
link_group_name VARCHAR(255) NOT NULL default '',
|
||||
link_template_name VARCHAR(255) NOT NULL default '',
|
||||
link_used_in VARCHAR(255) NOT NULL default '',
|
||||
PRIMARY KEY (link_id)
|
||||
);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "alter table ibf_topics add index last_post_sorting(last_post,forum_id);";
|
||||
$SQL[] = "alter table ibf_profile_comments drop index my_comments;";
|
||||
$SQL[] = "alter table ibf_profile_comments add index my_comments (comment_for_member_id,comment_date);";
|
||||
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX ( running_time );";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_conf_settings DROP conf_help_key;";
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_skin_sets ADD set_key VARCHAR( 32 ) NULL ;";
|
||||
$SQL[] = "ALTER TABLE ibf_skin_sets ADD INDEX ( set_key ) ;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "delete from ibf_conf_settings where conf_key='csite_search_show';";
|
||||
$SQL[] = "delete from ibf_conf_settings where conf_key='csite_skinchange_show';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_forums CHANGE last_poster_name last_poster_name VARCHAR( 255 ) NULL DEFAULT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_announcements ADD announce_nlbr_enabled TINYINT( 1 ) NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_subscription_trans CHANGE subtrans_start_date subtrans_start_date VARCHAR( 13 ) NOT NULL DEFAULT '0', CHANGE subtrans_end_date subtrans_end_date VARCHAR( 13 ) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_api_log (
|
||||
api_log_id int(10) unsigned NOT NULL auto_increment,
|
||||
api_log_key VARCHAR(32) NOT NULL,
|
||||
api_log_ip VARCHAR(16) NOT NULL,
|
||||
api_log_date INT(10) NOT NULL,
|
||||
api_log_query TEXT NOT NULL,
|
||||
api_log_allowed TINYINT(1) unsigned NOT NULL,
|
||||
PRIMARY KEY (api_log_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_api_users (
|
||||
api_user_id INT(4) unsigned NOT NULL auto_increment,
|
||||
api_user_key CHAR(32) NOT NULL,
|
||||
api_user_name VARCHAR(32) NOT NULL,
|
||||
api_user_perms TEXT NOT NULL,
|
||||
api_user_ip VARCHAR(16) NOT NULL,
|
||||
PRIMARY KEY (api_user_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_skin_sets ADD set_protected TINYINT( 1 ) NOT NULL DEFAULT '0';";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_profile_portal ADD pp_about_me MEDIUMTEXT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_moderator_logs CHANGE topic_title topic_title VARCHAR( 255 ) NULL DEFAULT NULL ,
|
||||
CHANGE query_string query_string VARCHAR( 255 ) NULL DEFAULT NULL ;";
|
||||
|
||||
$SQL[] = "UPDATE ibf_cal_events SET event_unix_from= (event_unix_from - (event_tz * 2)) WHERE event_timeset != 0;";
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='bot_antispam' OR conf_key='guest_captcha';";
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,2 @@
|
||||
<html>
|
||||
</html>
|
||||
@@ -0,0 +1,713 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# CREATE NEW TABLES
|
||||
|
||||
|
||||
$SQL[] = "DROP TABLE sessions;";
|
||||
|
||||
$SQL[] = "CREATE TABLE sessions (
|
||||
id varchar(60) NOT NULL default '0',
|
||||
member_name varchar(64) default NULL,
|
||||
seo_name varchar(255) NOT NULL default '',
|
||||
member_id mediumint(8) NOT NULL default '0',
|
||||
ip_address varchar(16) default NULL,
|
||||
browser varchar(200) NOT NULL default '',
|
||||
running_time int(10) default NULL,
|
||||
login_type char(3) default '',
|
||||
location varchar(40) default NULL,
|
||||
member_group smallint(3) default NULL,
|
||||
in_error tinyint(1) NOT NULL default '0',
|
||||
location_1_type varchar(10) NOT NULL default '',
|
||||
location_1_id int(10) NOT NULL default '0',
|
||||
location_2_type varchar(10) NOT NULL default '',
|
||||
location_2_id int(10) NOT NULL default '0',
|
||||
location_3_type varchar(10) NOT NULL default '',
|
||||
location_3_id int(10) NOT NULL default '0',
|
||||
current_appcomponent varchar(100) NOT NULL default '',
|
||||
current_module varchar(100) NOT NULL default '',
|
||||
current_section varchar(100) NOT NULL default '',
|
||||
uagent_key varchar(200) NOT NULL default '',
|
||||
uagent_version varchar(100) NOT NULL default '',
|
||||
uagent_type varchar(200) NOT NULL default '',
|
||||
uagent_bypass int(1) NOT NULL default '0',
|
||||
search_thread_id int(11) NOT NULL default '0',
|
||||
search_thread_time varchar(13) NOT NULL default '0',
|
||||
PRIMARY KEY (id),
|
||||
KEY location1 (location_1_type,location_1_id),
|
||||
KEY location2 (location_2_type,location_2_id),
|
||||
KEY location3 (location_3_type,location_3_id),
|
||||
KEY running_time (running_time)
|
||||
);";
|
||||
|
||||
$SQL[] = "RENAME TABLE custom_bbcode TO custom_bbcode_old;";
|
||||
|
||||
$SQL[] = "CREATE TABLE custom_bbcode (
|
||||
bbcode_id int(10) NOT NULL auto_increment,
|
||||
bbcode_title varchar(255) NOT NULL default '',
|
||||
bbcode_desc text,
|
||||
bbcode_tag varchar(255) NOT NULL default '',
|
||||
bbcode_replace text,
|
||||
bbcode_useoption tinyint(1) NOT NULL default '0',
|
||||
bbcode_example text,
|
||||
bbcode_switch_option int(1) NOT NULL default '0',
|
||||
bbcode_menu_option_text varchar(200) NOT NULL default '',
|
||||
bbcode_menu_content_text varchar(200) NOT NULL default '',
|
||||
bbcode_single_tag tinyint(1) NOT NULL default '0',
|
||||
bbcode_groups varchar(255) default NULL,
|
||||
bbcode_sections varchar(255) default NULL,
|
||||
bbcode_php_plugin varchar(255) default NULL,
|
||||
bbcode_parse smallint(2) NOT NULL default '1',
|
||||
bbcode_no_parsing tinyint(1) NOT NULL default '0',
|
||||
bbcode_protected tinyint(1) NOT NULL default '0',
|
||||
bbcode_aliases varchar(255) default NULL,
|
||||
bbcode_optional_option tinyint(1) NOT NULL default '0',
|
||||
bbcode_image varchar(255) default NULL,
|
||||
bbcode_strip_search tinyint(1) NOT NULL default '0',
|
||||
bbcode_app varchar(50) NOT NULL default '',
|
||||
PRIMARY KEY (bbcode_id)
|
||||
);";
|
||||
|
||||
|
||||
$SQL[] = "CREATE TABLE profile_friends_flood (
|
||||
friends_id int(10) NOT NULL auto_increment,
|
||||
friends_member_id int(10) unsigned NOT NULL default '0',
|
||||
friends_friend_id int(10) unsigned NOT NULL default '0',
|
||||
friends_removed int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (friends_id),
|
||||
KEY my_friends (friends_member_id,friends_friend_id),
|
||||
KEY friends_member_id (friends_member_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_sys_cp_sessions (
|
||||
session_id varchar(32) NOT NULL default '',
|
||||
session_ip_address varchar(32) NOT NULL default '',
|
||||
session_member_name varchar(250) NOT NULL default '',
|
||||
session_member_id mediumint(8) NOT NULL default '0',
|
||||
session_member_login_key varchar(32) NOT NULL default '',
|
||||
session_location varchar(64) NOT NULL default '',
|
||||
session_log_in_time int(10) NOT NULL default '0',
|
||||
session_running_time int(10) NOT NULL default '0',
|
||||
session_url TEXT,
|
||||
session_app_data text,
|
||||
PRIMARY KEY (session_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_sys_settings_titles (
|
||||
conf_title_id smallint(3) NOT NULL auto_increment,
|
||||
conf_title_title varchar(255) NOT NULL default '',
|
||||
conf_title_desc text,
|
||||
conf_title_count smallint(3) NOT NULL default '0',
|
||||
conf_title_noshow tinyint(1) NOT NULL default '0',
|
||||
conf_title_keyword varchar(200) NOT NULL default '',
|
||||
conf_title_module varchar(200) NOT NULL default '',
|
||||
conf_title_app varchar(200) NOT NULL default '',
|
||||
conf_title_tab varchar(32) default NULL,
|
||||
PRIMARY KEY (conf_title_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_sys_conf_settings (
|
||||
conf_id int(10) NOT NULL auto_increment,
|
||||
conf_title varchar(255) NOT NULL default '',
|
||||
conf_description text,
|
||||
conf_group smallint(3) NOT NULL default '0',
|
||||
conf_type varchar(255) NOT NULL default '',
|
||||
conf_key varchar(255) NOT NULL default '',
|
||||
conf_value text,
|
||||
conf_default text,
|
||||
conf_extra text,
|
||||
conf_evalphp text,
|
||||
conf_protected tinyint(1) NOT NULL default '0',
|
||||
conf_position smallint(3) NOT NULL default '0',
|
||||
conf_start_group varchar(255) NOT NULL default '',
|
||||
conf_end_group tinyint(1) NOT NULL default '0',
|
||||
conf_add_cache tinyint(1) NOT NULL default '1',
|
||||
conf_keywords text,
|
||||
PRIMARY KEY (conf_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_item_markers (
|
||||
item_key char(32) NOT NULL,
|
||||
item_member_id int(8) NOT NULL default '0',
|
||||
item_app varchar(255) NOT NULL default 'core',
|
||||
item_last_update int(10) NOT NULL default '0',
|
||||
item_last_saved int(10) NOT NULL default '0',
|
||||
item_unread_count int(5) NOT NULL default '0',
|
||||
item_read_array mediumtext,
|
||||
item_global_reset int(10) NOT NULL default '0',
|
||||
item_app_key_1 int(10) NOT NULL default '0',
|
||||
item_app_key_2 int(10) NOT NULL default '0',
|
||||
item_app_key_3 int(10) NOT NULL default '0',
|
||||
UNIQUE KEY combo_key (item_key,item_member_id),
|
||||
KEY marker_index (item_member_id,item_app),
|
||||
KEY item_member_id (item_member_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_item_markers_storage (
|
||||
item_member_id int(8) NOT NULL default '0',
|
||||
item_markers mediumtext,
|
||||
item_last_updated int(10) NOT NULL default '0',
|
||||
item_last_saved int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (item_member_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE template_sandr (
|
||||
sandr_session_id int(10) NOT NULL auto_increment,
|
||||
sandr_set_id int(10) NOT NULL default '0',
|
||||
sandr_search_only int(1) NOT NULL default '0',
|
||||
sandr_search_all int(1) NOT NULL default '0',
|
||||
sandr_search_for text,
|
||||
sandr_replace_with text,
|
||||
sandr_is_regex int(1) NOT NULL default '0',
|
||||
sandr_template_count int(5) NOT NULL default '0',
|
||||
sandr_template_processed int(5) NOT NULL default '0',
|
||||
sandr_results mediumtext,
|
||||
sandr_updated int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (sandr_session_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE question_and_answer (
|
||||
qa_id int(11) NOT NULL auto_increment,
|
||||
qa_question text,
|
||||
qa_answers text,
|
||||
PRIMARY KEY (qa_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE mod_queued_items (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
`type` varchar(32) NOT NULL default 'post',
|
||||
type_id int(11) NOT NULL default '0',
|
||||
PRIMARY KEY (id),
|
||||
KEY type_id (type_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "RENAME TABLE message_topics TO message_topics_old;";
|
||||
|
||||
$SQL[] = "CREATE TABLE message_topics (
|
||||
mt_id int(10) NOT NULL auto_increment,
|
||||
mt_date int(10) NOT NULL default '0',
|
||||
mt_title varchar(255) NOT NULL default '',
|
||||
mt_hasattach smallint(5) NOT NULL default '0',
|
||||
mt_starter_id int(10) NOT NULL default '0',
|
||||
mt_start_time int(10) NOT NULL default '0',
|
||||
mt_last_post_time int(10) NOT NULL default '0',
|
||||
mt_invited_members text,
|
||||
mt_to_count int(3) NOT NULL default '0',
|
||||
mt_to_member_id int(10) NOT NULL default '0',
|
||||
mt_replies int(10) NOT NULL default '0',
|
||||
mt_last_msg_id int(10) NOT NULL default '0',
|
||||
mt_first_msg_id int(10) NOT NULL default '0',
|
||||
mt_is_draft int(1) NOT NULL default '0',
|
||||
mt_is_deleted int(1) NOT NULL default '0',
|
||||
mt_is_system int(1) NOT NULL default '0',
|
||||
PRIMARY KEY (mt_id),
|
||||
KEY mt_starter_id (mt_starter_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE message_topic_user_map (
|
||||
map_id int(10) NOT NULL auto_increment,
|
||||
map_user_id int(10) NOT NULL default '0',
|
||||
map_topic_id int(10) NOT NULL default '0',
|
||||
map_folder_id varchar(32) NOT NULL default '',
|
||||
map_read_time int(10) NOT NULL default '0',
|
||||
map_user_active int(1) NOT NULL default '0',
|
||||
map_user_banned int(1) NOT NULL default '0',
|
||||
map_has_unread int(1) NOT NULL default '0',
|
||||
map_is_system int(1) NOT NULL default '0',
|
||||
map_is_starter int(1) NOT NULL default '0',
|
||||
map_left_time int(10) NOT NULL default '0',
|
||||
map_ignore_notification int(1) NOT NULL default '0',
|
||||
map_last_topic_reply int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (map_id),
|
||||
UNIQUE KEY map_main (map_user_id,map_topic_id),
|
||||
KEY map_user (map_user_id,map_folder_id),
|
||||
KEY map_topic_id (map_topic_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE message_posts (
|
||||
msg_id int(10) NOT NULL auto_increment,
|
||||
msg_topic_id int(10) NOT NULL default '0',
|
||||
msg_date int(10) default NULL,
|
||||
msg_post text,
|
||||
msg_post_key varchar(32) NOT NULL default '0',
|
||||
msg_author_id mediumint(8) NOT NULL default '0',
|
||||
msg_ip_address varchar(16) NOT NULL default '0',
|
||||
msg_is_first_post int(1) NOT NULL default '0',
|
||||
PRIMARY KEY (msg_id),
|
||||
KEY msg_topic_id (msg_topic_id),
|
||||
KEY msg_date (msg_date)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE error_logs (
|
||||
log_id int(11) NOT NULL auto_increment,
|
||||
log_member int(11) NOT NULL default '0',
|
||||
log_date varchar(13) NOT NULL default '0',
|
||||
log_error text,
|
||||
log_error_code varchar(24) NOT NULL DEFAULT '0',
|
||||
log_ip_address varchar(32) default NULL,
|
||||
log_request_uri text,
|
||||
PRIMARY KEY (log_id),
|
||||
KEY log_date (log_date)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE pfields_groups (
|
||||
pf_group_id mediumint(4) unsigned NOT NULL auto_increment,
|
||||
pf_group_name varchar(255) NOT NULL,
|
||||
pf_group_key varchar(255) NOT NULL,
|
||||
PRIMARY KEY (pf_group_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "DROP TABLE IF EXISTS rc_classes";
|
||||
$SQL[] = "DROP TABLE IF EXISTS rc_comments";
|
||||
$SQL[] = "DROP TABLE IF EXISTS rc_modpref";
|
||||
$SQL[] = "DROP TABLE IF EXISTS rc_reports";
|
||||
$SQL[] = "DROP TABLE IF EXISTS rc_reports_index";
|
||||
$SQL[] = "DROP TABLE IF EXISTS rc_status";
|
||||
$SQL[] = "DROP TABLE IF EXISTS rc_status_sev";
|
||||
|
||||
$SQL[] = "CREATE TABLE rc_classes (
|
||||
com_id smallint(4) NOT NULL auto_increment,
|
||||
onoff tinyint(1) NOT NULL default '0',
|
||||
class_title varchar(255) NOT NULL default '',
|
||||
class_desc text NOT NULL,
|
||||
author varchar(255) NOT NULL default '',
|
||||
author_url varchar(255) NOT NULL default '',
|
||||
pversion varchar(255) NOT NULL default '',
|
||||
my_class varchar(100) NOT NULL default '',
|
||||
group_can_report varchar(255) NOT NULL default '',
|
||||
mod_group_perm varchar(255) NOT NULL default '',
|
||||
extra_data text NOT NULL,
|
||||
lockd tinyint(1) NOT NULL default '0',
|
||||
PRIMARY KEY (com_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE rc_comments (
|
||||
id int(10) NOT NULL auto_increment,
|
||||
rid int(11) NOT NULL default '0',
|
||||
`comment` text NOT NULL,
|
||||
comment_by mediumint(8) NOT NULL default '0',
|
||||
comment_date int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE rc_modpref (
|
||||
mem_id mediumint(8) NOT NULL default '0',
|
||||
by_pm tinyint(1) NOT NULL default '0',
|
||||
by_email tinyint(1) NOT NULL default '0',
|
||||
by_alert tinyint(1) NOT NULL default '0',
|
||||
rss_key varchar(32) NOT NULL default '',
|
||||
max_points smallint(3) NOT NULL default '0',
|
||||
reports_pp smallint(3) NOT NULL default '0',
|
||||
rss_cache mediumtext NOT NULL,
|
||||
PRIMARY KEY (mem_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE rc_reports (
|
||||
id int(10) NOT NULL auto_increment,
|
||||
rid int(11) NOT NULL default '0',
|
||||
report text NOT NULL,
|
||||
report_by mediumint(8) NOT NULL default '0',
|
||||
date_reported int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE rc_reports_index (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
uid varchar(32) NOT NULL default '',
|
||||
title varchar(255) NOT NULL default '',
|
||||
`status` smallint(2) NOT NULL default '1',
|
||||
url varchar(255) NOT NULL default '',
|
||||
img_preview varchar(255) NOT NULL default '',
|
||||
rc_class smallint(3) NOT NULL default '0',
|
||||
updated_by mediumint(8) NOT NULL default '0',
|
||||
date_updated int(10) NOT NULL default '0',
|
||||
date_created int(10) NOT NULL default '0',
|
||||
exdat1 int(10) NOT NULL default '0',
|
||||
exdat2 int(10) NOT NULL default '0',
|
||||
exdat3 int(10) NOT NULL default '0',
|
||||
num_reports smallint(4) NOT NULL default '0',
|
||||
num_comments smallint(4) NOT NULL default '0',
|
||||
seoname varchar(255) default NULL,
|
||||
seotemplate varchar(255) default NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY uid (uid)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE rc_status (
|
||||
`status` tinyint(2) NOT NULL auto_increment,
|
||||
title varchar(100) NOT NULL default '',
|
||||
points_per_report smallint(4) NOT NULL default '1',
|
||||
minutes_to_apoint double NOT NULL default '5',
|
||||
is_new tinyint(1) NOT NULL default '0',
|
||||
is_complete tinyint(1) NOT NULL default '0',
|
||||
is_active tinyint(1) NOT NULL default '0',
|
||||
rorder smallint(3) NOT NULL default '0',
|
||||
PRIMARY KEY (`status`)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE rc_status_sev (
|
||||
id smallint(4) NOT NULL auto_increment,
|
||||
`status` tinyint(2) NOT NULL default '0',
|
||||
points smallint(4) NOT NULL default '0',
|
||||
img varchar(255) NOT NULL default '',
|
||||
is_png tinyint(1) NOT NULL default '0',
|
||||
width smallint(3) NOT NULL default '16',
|
||||
height smallint(3) NOT NULL default '16',
|
||||
PRIMARY KEY (id),
|
||||
KEY `status` (`status`,points)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE reputation_levels (
|
||||
level_id mediumint(8) unsigned NOT NULL auto_increment,
|
||||
level_points int(10) NOT NULL,
|
||||
level_title varchar(255) NOT NULL,
|
||||
level_image varchar(255) NOT NULL,
|
||||
PRIMARY KEY (level_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE reputation_cache (
|
||||
id bigint(10) unsigned NOT NULL auto_increment,
|
||||
app varchar(32) NOT NULL,
|
||||
`type` varchar(32) NOT NULL,
|
||||
type_id int(10) unsigned NOT NULL,
|
||||
rep_points int(10) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY app (app,`type`,type_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE reputation_index (
|
||||
id bigint(10) unsigned NOT NULL auto_increment,
|
||||
member_id mediumint(8) unsigned NOT NULL,
|
||||
app varchar(32) NOT NULL,
|
||||
`type` varchar(32) NOT NULL,
|
||||
type_id int(10) unsigned NOT NULL,
|
||||
misc text NOT NULL,
|
||||
rep_date int(10) unsigned NOT NULL,
|
||||
rep_msg text NOT NULL,
|
||||
rep_rating tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY app (app,`type`,type_id,member_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_hooks (
|
||||
hook_id mediumint(4) unsigned NOT NULL auto_increment,
|
||||
hook_enabled tinyint(1) NOT NULL default '0',
|
||||
hook_name varchar(255) default NULL,
|
||||
hook_desc text,
|
||||
hook_author varchar(255) default NULL,
|
||||
hook_email varchar(255) default NULL,
|
||||
hook_website text,
|
||||
hook_update_check text,
|
||||
hook_requirements text,
|
||||
hook_version_human varchar(32) default NULL,
|
||||
hook_version_long varchar(32) NOT NULL default '0',
|
||||
hook_installed varchar(13) NOT NULL default '0',
|
||||
hook_updated varchar(13) NOT NULL default '0',
|
||||
hook_position mediumint(9) NOT NULL default '0',
|
||||
hook_extra_data text,
|
||||
hook_key VARCHAR( 32 ) NULL,
|
||||
PRIMARY KEY (hook_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_hooks_files (
|
||||
hook_file_id int(10) NOT NULL auto_increment,
|
||||
hook_hook_id int(10) NOT NULL default '0',
|
||||
hook_file_stored varchar(255) default NULL,
|
||||
hook_file_real varchar(255) default NULL,
|
||||
hook_type varchar(32) default NULL,
|
||||
hook_classname varchar(255) default NULL,
|
||||
hook_data text,
|
||||
hooks_source longtext,
|
||||
PRIMARY KEY (hook_file_id),
|
||||
KEY hook_hook_id (hook_hook_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE tags_index (
|
||||
id bigint(10) unsigned NOT NULL auto_increment,
|
||||
app varchar(255) NOT NULL,
|
||||
tag varchar(255) NOT NULL,
|
||||
`type` varchar(32) NOT NULL,
|
||||
type_id bigint(10) unsigned NOT NULL,
|
||||
type_2 varchar(32) NOT NULL,
|
||||
type_id_2 bigint(10) unsigned NOT NULL,
|
||||
updated int(10) unsigned NOT NULL,
|
||||
misc text NOT NULL,
|
||||
member_id mediumint(8) unsigned NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY app (app)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_uagents (
|
||||
uagent_id int(10) NOT NULL auto_increment,
|
||||
uagent_key varchar(200) NOT NULL default '',
|
||||
uagent_name varchar(200) NOT NULL default '',
|
||||
uagent_regex text,
|
||||
uagent_regex_capture int(1) NOT NULL default '0',
|
||||
uagent_type varchar(200) NOT NULL default '',
|
||||
uagent_position int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (uagent_id),
|
||||
KEY uagent_key (uagent_key)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_uagent_groups (
|
||||
ugroup_id int(10) NOT NULL auto_increment,
|
||||
ugroup_title varchar(255) NOT NULL default '',
|
||||
ugroup_array mediumtext,
|
||||
PRIMARY KEY (ugroup_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE skin_replacements (
|
||||
replacement_id int(10) NOT NULL auto_increment,
|
||||
replacement_key varchar(255) NOT NULL default '',
|
||||
replacement_content text,
|
||||
replacement_set_id int(10) NOT NULL default '0',
|
||||
replacement_added_to int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (replacement_id),
|
||||
KEY replacement_set_id (replacement_set_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "RENAME TABLE skin_templates TO skin_templates_old";
|
||||
|
||||
$SQL[] = "CREATE TABLE skin_templates (
|
||||
template_id int(10) NOT NULL auto_increment,
|
||||
template_set_id int(10) NOT NULL default '0',
|
||||
template_group varchar(255) NOT NULL default '',
|
||||
template_content mediumtext,
|
||||
template_name varchar(255) default NULL,
|
||||
template_data text,
|
||||
template_updated int(10) NOT NULL default '0',
|
||||
template_removable int(4) NOT NULL default '0',
|
||||
template_added_to int(10) NOT NULL default '0',
|
||||
template_user_added INT(0) NOT NULL DEFAULT '0',
|
||||
template_user_edited INT(0) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (template_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE skin_collections (
|
||||
set_id int(10) NOT NULL auto_increment,
|
||||
set_name varchar(200) NOT NULL default '',
|
||||
set_key varchar(100) NOT NULL default '',
|
||||
set_parent_id int(5) NOT NULL default '-1',
|
||||
set_parent_array mediumtext,
|
||||
set_child_array mediumtext,
|
||||
set_permissions text NOT NULL,
|
||||
set_is_default int(1) NOT NULL default '0',
|
||||
set_author_name varchar(255) NOT NULL default '',
|
||||
set_author_url varchar(255) NOT NULL default '',
|
||||
set_image_dir varchar(255) NOT NULL default 'default',
|
||||
set_emo_dir varchar(255) NOT NULL default 'default',
|
||||
set_css_inline int(1) NOT NULL default '0',
|
||||
set_css_groups text,
|
||||
set_added int(10) NOT NULL default '0',
|
||||
set_updated int(10) NOT NULL default '0',
|
||||
set_output_format varchar(200) NOT NULL default 'html',
|
||||
set_locked_uagent mediumtext,
|
||||
set_hide_from_list int(1) NOT NULL default '0',
|
||||
PRIMARY KEY (set_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE skin_css (
|
||||
css_id int(10) NOT NULL auto_increment,
|
||||
css_set_id int(10) NOT NULL default '0',
|
||||
css_updated int(10) NOT NULL default '0',
|
||||
css_group varchar(255) NOT NULL default '0',
|
||||
css_content mediumtext,
|
||||
css_position int(10) NOT NULL default '0',
|
||||
css_added_to int(10) NOT NULL default '0',
|
||||
css_app varchar(200) NOT NULL default '0',
|
||||
css_app_hide int(1) NOT NULL default '0',
|
||||
css_attributes text,
|
||||
css_removed int(1) NOT NULL default '0',
|
||||
PRIMARY KEY (css_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE skin_cache (
|
||||
cache_id int(10) NOT NULL auto_increment,
|
||||
cache_updated int(10) NOT NULL default '0',
|
||||
cache_type varchar(200) NOT NULL default '',
|
||||
cache_set_id int(10) NOT NULL default '0',
|
||||
cache_key_1 varchar(200) NOT NULL default '',
|
||||
cache_value_1 varchar(200) NOT NULL default '',
|
||||
cache_key_2 varchar(200) NOT NULL default '',
|
||||
cache_value_2 varchar(200) NOT NULL default '',
|
||||
cache_value_3 varchar(200) NOT NULL default '',
|
||||
cache_content mediumtext NOT NULL,
|
||||
cache_key_3 varchar(200) NOT NULL default '',
|
||||
cache_key_4 varchar(200) NOT NULL default '',
|
||||
cache_value_4 varchar(200) NOT NULL default '',
|
||||
cache_key_5 varchar(200) NOT NULL default '',
|
||||
cache_value_5 varchar(200) NOT NULL default '',
|
||||
PRIMARY KEY (cache_id),
|
||||
KEY cache_type (cache_type),
|
||||
KEY cache_set_id (cache_set_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE bbcode_mediatag (
|
||||
mediatag_id smallint(10) unsigned NOT NULL auto_increment,
|
||||
mediatag_name varchar(255) NOT NULL,
|
||||
mediatag_match text,
|
||||
mediatag_replace text,
|
||||
PRIMARY KEY (mediatag_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ignored_users (
|
||||
ignore_id int(10) NOT NULL auto_increment,
|
||||
ignore_owner_id int(8) NOT NULL default '0',
|
||||
ignore_ignore_id int(8) NOT NULL default '0',
|
||||
ignore_messages int(1) NOT NULL default '0',
|
||||
ignore_topics int(1) NOT NULL default '0',
|
||||
PRIMARY KEY (ignore_id),
|
||||
KEY ignore_owner_id (ignore_owner_id),
|
||||
KEY ignore_ignore_id (ignore_ignore_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE search_index (
|
||||
app varchar(255) NOT NULL,
|
||||
content text NOT NULL,
|
||||
content_title varchar(255) NOT NULL,
|
||||
`type` varchar(32) NOT NULL,
|
||||
type_id bigint(10) unsigned NOT NULL,
|
||||
type_2 varchar(32) NOT NULL,
|
||||
type_id_2 bigint(10) unsigned NOT NULL,
|
||||
updated int(10) unsigned NOT NULL,
|
||||
misc text NOT NULL,
|
||||
member_id mediumint(8) unsigned NOT NULL,
|
||||
KEY app (app)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE captcha (
|
||||
captcha_unique_id varchar(32) NOT NULL default '',
|
||||
captcha_string varchar(100) NOT NULL default '',
|
||||
captcha_ipaddress varchar(16) NOT NULL default '',
|
||||
captcha_date int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (captcha_unique_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE permission_index (
|
||||
perm_id int(10) unsigned NOT NULL auto_increment,
|
||||
app varchar(32) NOT NULL,
|
||||
perm_type varchar(32) NOT NULL,
|
||||
perm_type_id int(10) unsigned NOT NULL,
|
||||
perm_view text NOT NULL,
|
||||
perm_2 text NOT NULL,
|
||||
perm_3 text NOT NULL,
|
||||
perm_4 text NOT NULL,
|
||||
perm_5 text NOT NULL,
|
||||
perm_6 text NOT NULL,
|
||||
perm_7 text NOT NULL,
|
||||
owner_only tinyint(1) NOT NULL default '0',
|
||||
friend_only tinyint(1) NOT NULL default '0',
|
||||
authorized_users varchar(255) default NULL,
|
||||
PRIMARY KEY (perm_id),
|
||||
KEY perm_index (perm_type,perm_type_id),
|
||||
KEY perm_type (app,perm_type,perm_type_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE openid_temp (
|
||||
id varchar(32) NOT NULL,
|
||||
referrer text,
|
||||
privacy tinyint(1) NOT NULL default '0',
|
||||
cookiedate tinyint(1) NOT NULL default '0',
|
||||
fullurl text,
|
||||
PRIMARY KEY (id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_applications (
|
||||
app_id int(10) NOT NULL auto_increment,
|
||||
app_title varchar(255) NOT NULL default '',
|
||||
app_public_title varchar(255) NOT NULL default '',
|
||||
app_description varchar(255) NOT NULL default '',
|
||||
app_author varchar(255) NOT NULL default '',
|
||||
app_version varchar(255) NOT NULL default '',
|
||||
app_long_version int(10) NOT NULL default '10000',
|
||||
app_directory varchar(255) NOT NULL default '',
|
||||
app_added int(10) NOT NULL default '0',
|
||||
app_position int(2) NOT NULL default '0',
|
||||
app_protected int(1) NOT NULL default '0',
|
||||
app_enabled int(1) NOT NULL default '0',
|
||||
app_location varchar(32) NOT NULL default '',
|
||||
app_hide_tab TINYINT(1) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (app_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_sys_module (
|
||||
sys_module_id mediumint(4) unsigned NOT NULL auto_increment,
|
||||
sys_module_title varchar(32) NOT NULL default '',
|
||||
sys_module_application varchar(32) NOT NULL default '',
|
||||
sys_module_key varchar(32) NOT NULL default '',
|
||||
sys_module_description varchar(100) NOT NULL default '',
|
||||
sys_module_version varchar(10) NOT NULL default '',
|
||||
sys_module_parent varchar(32) NOT NULL default '',
|
||||
sys_module_protected tinyint(1) unsigned NOT NULL default '0',
|
||||
sys_module_visible tinyint(1) unsigned NOT NULL default '1',
|
||||
sys_module_tables varchar(255) NOT NULL default '',
|
||||
sys_module_hooks varchar(255) NOT NULL default '',
|
||||
sys_module_position int(5) NOT NULL default '0',
|
||||
sys_module_admin int(1) NOT NULL default '0',
|
||||
PRIMARY KEY (sys_module_id),
|
||||
KEY sys_module_application (sys_module_application),
|
||||
KEY sys_module_visible (sys_module_visible),
|
||||
KEY sys_module_key (sys_module_key),
|
||||
KEY sys_module_parent (sys_module_parent)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_sys_lang (
|
||||
lang_id mediumint(4) unsigned NOT NULL auto_increment,
|
||||
lang_short varchar(25) NOT NULL default '',
|
||||
lang_title varchar(60) NOT NULL default '',
|
||||
lang_currency_name varchar(4) NOT NULL default '',
|
||||
lang_currency_symbol char(2) NOT NULL default '',
|
||||
lang_decimal char(2) NOT NULL default '',
|
||||
lang_comma char(2) NOT NULL default '',
|
||||
lang_default tinyint(1) unsigned NOT NULL default '0',
|
||||
lang_isrtl tinyint(1) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (lang_id),
|
||||
KEY lang_short (lang_short)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_sys_lang_words (
|
||||
word_id int(10) unsigned NOT NULL auto_increment,
|
||||
lang_id mediumint(4) unsigned NOT NULL,
|
||||
word_app varchar(255) NOT NULL,
|
||||
word_pack varchar(255) NOT NULL,
|
||||
word_key varchar(64) NOT NULL,
|
||||
word_default text NOT NULL,
|
||||
word_custom text,
|
||||
word_default_version varchar(10) NOT NULL default '1',
|
||||
word_custom_version varchar(10) default NULL,
|
||||
word_js tinyint(1) unsigned NOT NULL,
|
||||
PRIMARY KEY (word_id),
|
||||
KEY word_js (word_js),
|
||||
KEY word_find (lang_id, word_app(32), word_pack(100))
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE core_sys_login (
|
||||
sys_login_id int(8) NOT NULL default '0',
|
||||
sys_login_skin int(5) default NULL,
|
||||
sys_login_language varchar(32) default NULL,
|
||||
sys_login_last_visit int(10) default '0',
|
||||
sys_cookie mediumtext,
|
||||
PRIMARY KEY (sys_login_id)
|
||||
);";
|
||||
|
||||
if ( ipsRegistry::DB()->checkFulltextSupport() )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE search_index ADD FULLTEXT KEY content (content,content_title);";
|
||||
$SQL[] = "ALTER TABLE message_posts ADD FULLTEXT KEY msg_post (msg_post);";
|
||||
$SQL[] = "ALTER TABLE message_topics ADD FULLTEXT KEY mt_title (mt_title);";
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# ALTER MEMBER TABLES
|
||||
$SQL[] = "ALTER TABLE members CHANGE id member_id MEDIUMINT(8) NOT NULL auto_increment;";
|
||||
$SQL[] = "ALTER TABLE members CHANGE mgroup member_group_id smallint(3) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE members ADD members_pass_hash varchar(32) NOT NULL default '', ADD members_pass_salt varchar(5) NOT NULL default '';";
|
||||
|
||||
$SQL[] = "ALTER TABLE members ADD member_banned TINYINT( 1 ) NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE members ADD INDEX ( member_banned ) ;";
|
||||
$SQL[] = "ALTER TABLE members ADD identity_url TEXT NULL;";
|
||||
|
||||
# FIX NULL COLUMNS
|
||||
$SQL[] = "UPDATE members SET new_msg=0 WHERE new_msg IS NULL;";
|
||||
$SQL[] = "UPDATE members SET msg_total=0 WHERE msg_total IS NULL;";
|
||||
$SQL[] = "UPDATE members SET show_popup=0 WHERE show_popup IS NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE members CHANGE new_msg msg_count_new INT(2) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE members CHANGE msg_total msg_count_total INT(3) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE members ADD msg_count_reset INT(1) NOT NULL default '0' AFTER msg_count_total;";
|
||||
$SQL[] = "ALTER TABLE members CHANGE show_popup msg_show_notification INT(1) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE members ADD member_uploader VARCHAR( 32 ) NOT NULL DEFAULT 'default';";
|
||||
$SQL[] = "ALTER TABLE members DROP members_markers;";
|
||||
$SQL[] = "ALTER TABLE members ADD members_seo_name varchar(255) NOT NULL default '' AFTER members_display_name;";
|
||||
$SQL[] = "ALTER TABLE members ADD members_bitoptions INT UNSIGNED NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE members ADD fb_uid INT(10) UNSIGNED NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE members ADD fb_emailhash VARCHAR(60) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE members ADD fb_emailallow INT(1) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE members ADD fb_lastsync INT(10) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE profile_portal ADD notes TEXT NULL ,
|
||||
ADD links TEXT NULL ,
|
||||
ADD bio TEXT NULL ,
|
||||
ADD ta_size VARCHAR( 3 ) NULL ,
|
||||
ADD signature TEXT NULL ,
|
||||
ADD avatar_location VARCHAR( 255 ) NULL ,
|
||||
ADD avatar_size VARCHAR( 9 ) NOT NULL DEFAULT '0',
|
||||
ADD avatar_type VARCHAR( 15 ) NULL ,
|
||||
ADD pconversation_filters TEXT NULL,
|
||||
ADD fb_photo TEXT,
|
||||
ADD fb_photo_thumb TEXT,
|
||||
ADD fb_bwoptions INT UNSIGNED NOT NULL DEFAULT '0',
|
||||
ADD pp_reputation_points INT( 10 ) NOT NULL DEFAULT '0',
|
||||
ADD pp_status TEXT NULL,
|
||||
ADD pp_status_update VARCHAR( 13 ) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "UPDATE groups SET g_icon=REPLACE(g_icon,'style_images/<#IMG_DIR#>/folder_team_icons/admin.gif','public/style_extra/team_icons/admin.png');";
|
||||
$SQL[] = "UPDATE groups SET g_icon=REPLACE(g_icon,'style_images/<#IMG_DIR#>/folder_team_icons/','public/style_extra/team_icons/');";
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# ALTER TOPICS TABLES
|
||||
$SQL[] = "ALTER TABLE topics ADD title_seo VARCHAR(250) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE topics ADD seo_last_name VARCHAR(255) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE topics ADD seo_first_name VARCHAR(255) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE topics CHANGE description description varchar(250) default NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE voters CHANGE member_id member_id INT(11) NOT NULL DEFAULT '0' ;";
|
||||
$SQL[] = "ALTER TABLE voters ADD member_choices TEXT;";
|
||||
|
||||
$SQL[] = "ALTER TABLE polls ADD poll_view_voters INT(1) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE tracker ADD KEY tm_id (topic_id, member_id);";
|
||||
$SQL[] = "ALTER TABLE forum_tracker ADD KEY member_id (member_id), ADD KEY fm_id (member_id, forum_id );";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# ALTER LOG TABLES
|
||||
$SQL[] = "ALTER TABLE admin_logs DROP act, DROP code,
|
||||
ADD appcomponent VARCHAR(255) NOT NULL default '',
|
||||
ADD module VARCHAR(255) NOT NULL default '',
|
||||
ADD section VARCHAR(255) NOT NULL default '',
|
||||
ADD do VARCHAR(255) NOT NULL default '';";
|
||||
|
||||
$SQL[] = "ALTER TABLE spider_logs ADD INDEX ( entry_date );";
|
||||
$SQL[] = "ALTER TABLE task_logs ADD INDEX ( log_date );";
|
||||
$SQL[] = "ALTER TABLE admin_logs ADD INDEX ( ctime );";
|
||||
$SQL[] = "ALTER TABLE moderator_logs ADD INDEX ( ctime );";
|
||||
|
||||
# ALTER SUBSCRIPTIONS MANAGER
|
||||
/*$SQL[] = "ALTER TABLE subscription_currency ADD subcurrencyIsProtected TINYINT(1) NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "UPDATE subscription_currency SET subcurrencyIsProtected=1 WHERE subcurrency_code IN('USD','GBP','CAD','EUR');";
|
||||
$SQL[] = "DROP TABLE subscription_extra;";
|
||||
$SQL[] = "CREATE TABLE subscription_payment_gateways (
|
||||
gateway_id smallint(5) unsigned NOT NULL auto_increment,
|
||||
gateway_title varchar(250) NOT NULL,
|
||||
gateway_name varchar(20) NOT NULL,
|
||||
gateway_description text,
|
||||
gateway_active tinyint(1) unsigned NOT NULL default '0',
|
||||
gateway_settings text,
|
||||
PRIMARY KEY (gateway_id),
|
||||
UNIQUE KEY gateway_name (gateway_name),
|
||||
KEY gateway_active (gateway_active)
|
||||
);";
|
||||
$SQL[] = "DROP TABLE subscription_methods;";
|
||||
$SQL[] = "RENAME TABLE subscription_trans TO subscription_transactions;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions DROP subtrans_old_group;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions DROP subtrans_cumulative;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions CHANGE subtrans_start_date subtrans_date VARCHAR(13) NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions DROP subtrans_end_date;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions DROP subtrans_state;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions DROP subtrans_trxid;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions DROP subtrans_subscrid;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions ADD subtrans_payment_verified TINYINT(1) NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE subscription_transactions ADD subtrans_notes TEXT NULL;";
|
||||
$SQL[] = "ALTER TABLE subscriptions ADD package_id INT NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE subscriptions ADD sub_member_id INT NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE subscriptions ADD sub_primary_member_group INT NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE subscriptions ADD sub_expiration_date INT NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE subscriptions ADD sub_is_archived TINYINT(1) NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE subscriptions DROP sub_title;";
|
||||
$SQL[] = "ALTER TABLE subscriptions DROP sub_desc;";
|
||||
$SQL[] = "ALTER TABLE subscriptions DROP sub_new_group;";
|
||||
$SQL[] = "ALTER TABLE subscriptions DROP sub_length;";
|
||||
$SQL[] = "ALTER TABLE subscriptions DROP sub_unit;";
|
||||
$SQL[] = "ALTER TABLE subscriptions DROP sub_cost;";
|
||||
$SQL[] = "ALTER TABLE subscriptions DROP sub_run_module;";
|
||||
$SQL[] = "CREATE TABLE subscriptions_packages (
|
||||
package_id int(11) NOT NULL AUTO_INCREMENT,
|
||||
package_title varchar(250) NOT NULL,
|
||||
package_description text,
|
||||
package_upgrade_group int(8) NOT NULL,
|
||||
package_duration_days int(5) DEFAULT NULL,
|
||||
package_cost decimal(10,2) NOT NULL,
|
||||
package_run_module varchar(250) NOT NULL,
|
||||
package_allows_upgrade smallint(1) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (package_id)
|
||||
);";*/
|
||||
?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# ALTER ALL OTHER TABLES
|
||||
|
||||
$SQL[] = "ALTER TABLE pfields_data
|
||||
ADD pf_group_id mediumint(4) unsigned NOT NULL default '0',
|
||||
ADD pf_icon varchar(255) default NULL,
|
||||
ADD pf_key varchar(255) default NULL,
|
||||
CHANGE pf_input_format pf_input_format TEXT;";
|
||||
|
||||
$SQL[] = "ALTER TABLE moderators DROP INDEX forum_id;";
|
||||
$SQL[] = "ALTER TABLE moderators CHANGE forum_id forum_id TEXT NULL;";
|
||||
$SQL[] = "ALTER TABLE moderators ADD mod_bitoptions INT UNSIGNED NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE groups ADD g_rep_max_positive MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0',
|
||||
ADD g_rep_max_negative MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE groups ADD g_mod_preview TINYINT( 1 ) UNSIGNED NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE groups ADD g_signature_limits VARCHAR( 255 ) NULL ;";
|
||||
$SQL[] = "ALTER TABLE groups ADD g_can_add_friends TINYINT( 1 ) NOT NULL DEFAULT '1';";
|
||||
$SQL[] = "ALTER TABLE groups ADD g_hide_online_list TINYINT(1) NOT NULL DEFAULT 0;";
|
||||
$SQL[] = "ALTER TABLE groups ADD g_bitoptions INT UNSIGNED NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE groups ADD g_pm_perday SMALLINT NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE forums CHANGE id id SMALLINT( 5 ) NOT NULL AUTO_INCREMENT ;";
|
||||
$SQL[] = "ALTER TABLE forums ADD can_view_others TINYINT( 1 ) NOT NULL DEFAULT '1';";
|
||||
$SQL[] = "ALTER TABLE forums ADD min_posts_post INT( 10 ) UNSIGNED NOT NULL ;";
|
||||
$SQL[] = "ALTER TABLE forums ADD min_posts_view INT( 10 ) UNSIGNED NOT NULL ;";
|
||||
$SQL[] = "ALTER TABLE forums ADD hide_last_info TINYINT( 1 ) NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE forums ADD name_seo VARCHAR( 255 ) NULL ;";
|
||||
$SQL[] = "ALTER TABLE forums ADD seo_last_title VARCHAR(255) NOT NULL default '',
|
||||
ADD seo_last_name VARCHAR(255) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE forums ADD last_x_topic_ids TEXT;";
|
||||
$SQL[] = "ALTER TABLE forums ADD forums_bitoptions INT UNSIGNED NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE cache_store ADD cs_updated INT(10) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE task_manager ADD task_application VARCHAR( 100 ) NOT NULL ;";
|
||||
$SQL[] = "ALTER TABLE task_manager CHANGE task_week_day task_week_day SMALLINT( 1 ) NOT NULL DEFAULT '-1';";
|
||||
|
||||
$SQL[] = "ALTER TABLE admin_permission_rows ADD row_id_type VARCHAR( 13 ) NOT NULL DEFAULT 'member' AFTER row_member_id ;";
|
||||
$SQL[] = "ALTER TABLE admin_permission_rows CHANGE row_member_id row_id INT( 8 ) NOT NULL ;";
|
||||
$SQL[] = "ALTER TABLE admin_permission_rows DROP PRIMARY KEY ;";
|
||||
$SQL[] = "ALTER TABLE admin_permission_rows add PRIMARY KEY (row_id,row_id_type);";
|
||||
|
||||
$SQL[] = "ALTER TABLE login_methods
|
||||
ADD login_alt_acp_html TEXT NULL AFTER login_alt_login_html,
|
||||
ADD login_order SMALLINT( 3 ) NOT NULL DEFAULT '0',
|
||||
DROP login_installed,
|
||||
DROP login_type,
|
||||
DROP login_allow_create;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# INSERTS AND UPDATES
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO core_sys_lang VALUES(1, 'ru_RU.UTF-8', 'Русский (RU)', 'USD', '$', '.', ',', 1, 0)
|
||||
EOF;
|
||||
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO cache_store ( cs_key , cs_value , cs_extra , cs_array , cs_updated ) VALUES ( 'rss_output_cache', '' , '', '1', '0' );
|
||||
EOF;
|
||||
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Пример плагина', 'Плагин, не требующий написания кода, но требующий настройки.', 'Invision Power Services, Inc', '', 'v1.0', 'default', ',3,4,6,', ',4,6,', 'a:5:{s:14:"required_input";a:1:{s:8:"video_id";s:13:"[^A-Za-z0-9_]";}s:10:"string_url";s:41:"http://www.youtube.com/watch?v={video_id}";s:12:"string_title";s:25:"#PAGE_TITLE# ({video_id})";s:13:"section_title";s:7:"YouTube";s:11:"section_url";s:22:"http://www.youtube.com";}', 1);
|
||||
EOF;
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Плагин форума', 'Плагин жалоб на сообщения и темы в форумах.', 'Invision Power Services, Inc', '', 'v1.0', 'post', ',1,2,3,4,6,', ',4,6,', 'a:1:{s:15:"report_supermod";i:1;}', 1);
|
||||
EOF;
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Плагин личных сообщений', 'Плагин жалоб на личные сообщения', 'Invision Power Services, Inc', '', 'v1.0', 'messages', ',1,2,3,4,6,', ',4,6,', 'a:1:{s:18:"plugi_messages_add";s:5:"4";}', 1);
|
||||
EOF;
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd) VALUES(1, 'Плагин пользовательских профилей', 'Плагин жалоб на профили пользователей', 'Invision Power Services, Inc', '', 'v1.0', 'profiles', ',1,2,3,4,6,', ',4,6,', 'N;', 1);
|
||||
EOF;
|
||||
|
||||
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_status VALUES (1, 'Новая', 1, 5, 1, 0, 1, 1);
|
||||
EOF;
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_status VALUES (2, 'Рассматривается', 1, 5, 0, 0, 1, 2);
|
||||
EOF;
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_status VALUES (3, 'Завершена', 0, 0, 0, 1, 0, 3);
|
||||
EOF;
|
||||
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO rc_status_sev (id, status, points, img, is_png, width, height) VALUES
|
||||
(1, 1, 1, 'style_extra/report_icons/flag_gray.png', 1, 16, 16),
|
||||
(2, 1, 2, 'style_extra/report_icons/flag_blue.png', 1, 16, 16),
|
||||
(3, 1, 4, 'style_extra/report_icons/flag_green.png', 1, 16, 16),
|
||||
(4, 1, 7, 'style_extra/report_icons/flag_orange.png', 1, 16, 16),
|
||||
(5, 1, 12, 'style_extra/report_icons/flag_red.png', 1, 16, 16),
|
||||
(6, 2, 1, 'style_extra/report_icons/flag_gray_review.png', 1, 16, 16),
|
||||
(7, 3, 0, 'style_extra/report_icons/completed.png', 1, 16, 16),
|
||||
(8, 2, 2, 'style_extra/report_icons/flag_blue_review.png', 1, 16, 16),
|
||||
(9, 2, 4, 'style_extra/report_icons/flag_green_review.png', 1, 16, 16),
|
||||
(10, 2, 7, 'style_extra/report_icons/flag_orange_review.png', 1, 16, 16),
|
||||
(11, 2, 12, 'style_extra/report_icons/flag_red_review.png', 1, 16, 16);
|
||||
EOF;
|
||||
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO pfields_groups (pf_group_id, pf_group_name, pf_group_key) VALUES
|
||||
(1, 'Контакты', 'contact'),
|
||||
(2, 'Информация', 'profile_info'),
|
||||
(3, 'Старые поля', 'previous' );
|
||||
EOF;
|
||||
|
||||
$SQL[] = <<<EOF
|
||||
INSERT INTO pfields_data (pf_id, pf_title, pf_desc, pf_content, pf_type, pf_not_null, pf_member_hide, pf_max_input, pf_member_edit, pf_position, pf_show_on_reg, pf_input_format, pf_admin_only, pf_topic_format, pf_group_id, pf_icon, pf_key) VALUES
|
||||
(NULL, 'AIM', '', '', 'input', 0, 0, 0, 0, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_aim.gif', 'aim'),
|
||||
(NULL, 'MSN', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_msn.gif', 'msn'),
|
||||
(NULL, 'Сайт', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_website.gif', 'website'),
|
||||
(NULL, 'ICQ', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_icq.gif', 'icq'),
|
||||
(NULL, 'Пол', '', 'm=Мужчина|f=Женщина|u=Не определился', 'drop', 0, 0, 0, 1, 0, 0, '', 0, '<dt>{title}:</dt><dd>{content}</dd>', 2, '', 'gender'),
|
||||
(NULL, 'Город', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '<dt>{title}:</dt><dd>{content}</dd>', 2, '', 'location'),
|
||||
(NULL, 'Интересы', '', '', 'textarea', 0, 0, 0, 1, 0, 0, '', 0, '<dt>{title}:</dt><dd>{content}</dd>', 2, '', 'interests'),
|
||||
(NULL, 'Yahoo', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_yahoo.gif', 'yahoo'),
|
||||
(NULL, 'Jabber', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_jabber.gif', 'jabber'),
|
||||
(NULL, 'Skype', '', '', 'input', 0, 0, 0, 1, 0, 0, '', 0, '', 1, 'style_extra/cprofile_icons/profile_skype.gif', 'skype');
|
||||
EOF;
|
||||
|
||||
|
||||
$SQL[] = "UPDATE attachments_type set atype_img=replace(atype_img,'folder_mime_types','style_extra/mime_types');";
|
||||
|
||||
$SQL[] = "UPDATE login_methods SET login_alt_acp_html = '<label for=''openid''>Open ID</label> <input type=''text'' size=''20'' id=''openid'' name=''openid_url'' value=''http://''>' WHERE login_folder_name='openid';";
|
||||
|
||||
# Enable internal method on upgrade, but put it after any others
|
||||
$SQL[] = "UPDATE login_methods SET login_enabled=1,login_order=7 WHERE login_folder_name='internal';";
|
||||
|
||||
$SQL[] = "TRUNCATE TABLE skin_cache;";
|
||||
$SQL[] = "TRUNCATE TABLE skin_templates_cache;";
|
||||
$SQL[] = "TRUNCATE TABLE skin_url_mapping;";
|
||||
$SQL[] = "TRUNCATE TABLE task_manager;";
|
||||
|
||||
|
||||
$SQL[] = "DELETE FROM cache_store WHERE cs_key='skin_id_cache';";
|
||||
$SQL[] = "DELETE FROM cache_store WHERE cs_key='forum_cache';";
|
||||
|
||||
$SQL[] = "INSERT INTO reputation_levels VALUES(1, -20, 'Очень плохой', '');";
|
||||
$SQL[] = "INSERT INTO reputation_levels VALUES(2, -10, 'Плохой', '');";
|
||||
$SQL[] = "INSERT INTO reputation_levels VALUES(3, 0, 'Обычный', '');";
|
||||
$SQL[] = "INSERT INTO reputation_levels VALUES(4, 10, 'Хороший', '');";
|
||||
$SQL[] = "INSERT INTO reputation_levels VALUES(5, 20, 'Очень хороший', '');";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# Member table updates
|
||||
# We use backticks on the second table to stop IPSSetUp::addPrefixToQuery() from stripping the prefix
|
||||
|
||||
$SQL[] = "UPDATE members m, `" . trim(ipsRegistry::dbFunctions()->getPrefix()) . "members_converge` c SET m.members_pass_hash=c.converge_pass_hash WHERE c.converge_id=m.member_id;";
|
||||
$SQL[] = "UPDATE members m, `" . trim(ipsRegistry::dbFunctions()->getPrefix()) . "members_converge` c SET m.members_pass_salt=c.converge_pass_salt WHERE c.converge_id=m.member_id;";
|
||||
|
||||
# Blank email addresses
|
||||
$SQL[] = "UPDATE members SET email=CONCAT( member_id, '-', UNIX_TIMESTAMP(), '@fakeemail.com' ) WHERE email='';";
|
||||
|
||||
# If we upgraded from 2.1.0ish then we may not have anything in profile_portal so...
|
||||
$count = ipsRegistry::DB()->buildAndFetch( array( 'select' => 'count(*) as count',
|
||||
'from' => 'profile_portal' ) );
|
||||
|
||||
if ( ! $count['count'] )
|
||||
{
|
||||
ipsRegistry::DB()->allow_sub_select = 1;
|
||||
$SQL[] ="INSERT INTO profile_portal (pp_member_id,notes,links,bio,ta_size,signature,avatar_location,avatar_size,avatar_type) SELECT id,notes,links,bio,ta_size,signature,avatar_location,avatar_size,avatar_type FROM `" . trim(ipsRegistry::dbFunctions()->getPrefix()) . "member_extra`";
|
||||
}
|
||||
else
|
||||
{
|
||||
$SQL[] = "UPDATE profile_portal p, `" . trim(ipsRegistry::dbFunctions()->getPrefix()) . "member_extra` e SET p.notes=e.notes, p.links=e.links, p.bio=e.bio, p.ta_size=e.ta_size, p.signature=e.signature, p.avatar_location=e.avatar_location, p.avatar_size=e.avatar_size, p.avatar_type=e.avatar_type WHERE p.pp_member_id=e.id;";
|
||||
}
|
||||
|
||||
$SQL[] = "UPDATE profile_portal SET pp_setting_count_friends=5 WHERE pp_setting_count_friends=0;";
|
||||
$SQL[] = "UPDATE profile_portal SET pp_setting_count_comments=10 WHERE pp_setting_count_comments=0;";
|
||||
$SQL[] = "UPDATE profile_portal SET pp_setting_count_visitors=5 WHERE pp_setting_count_visitors=0;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
class SQLVC
|
||||
{
|
||||
public static function updateOne( $old, $field )
|
||||
{
|
||||
$DB = ipsRegistry::DB();
|
||||
$PRE = ipsRegistry::dbFunctions()->getPrefix();
|
||||
|
||||
return "UPDATE {$PRE}pfields_content p, {$PRE}member_extra m
|
||||
SET p.field_{$field['pf_id']}=m.{$old}
|
||||
WHERE p.member_id=m.id";
|
||||
}
|
||||
|
||||
public static function updateTwo( $gender )
|
||||
{
|
||||
$DB = ipsRegistry::DB();
|
||||
$PRE = ipsRegistry::dbFunctions()->getPrefix();
|
||||
|
||||
return "UPDATE {$PRE}profile_portal pp, {$PRE}pfields_content pfc SET pfc.field_{$gender['pf_id']}='f' WHERE pp.pp_gender='female' AND pp.pp_member_id=pfc.member_id";
|
||||
}
|
||||
|
||||
public static function updateThree( $gender )
|
||||
{
|
||||
$DB = ipsRegistry::DB();
|
||||
$PRE = ipsRegistry::dbFunctions()->getPrefix();
|
||||
|
||||
return "UPDATE {$PRE}profile_portal pp, {$PRE}pfields_content pfc SET pfc.field_{$gender['pf_id']}='m' WHERE pp.pp_gender='male' AND pp.pp_member_id=pfc.member_id";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Upgrade Class
|
||||
*
|
||||
* Class to add options and notices for IP.Board upgrade
|
||||
* Last Updated: $Date: 2009-02-13 17:09:43 +0000 (Fri, 13 Feb 2009) $
|
||||
*
|
||||
* @author Matt Mecham <matt@invisionpower.com>
|
||||
* @version $Rev: 3957 $
|
||||
* @since 3.0
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @package Invision Power Board
|
||||
*/
|
||||
|
||||
class version_class_30001
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
* @param object Registry object
|
||||
* @return void
|
||||
*/
|
||||
public function __construct( ipsRegistry $registry )
|
||||
{
|
||||
/* Make object */
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add pre-upgrade options: Form
|
||||
*
|
||||
* @access public
|
||||
* @return string HTML block
|
||||
*/
|
||||
public function preInstallOptionsForm()
|
||||
{
|
||||
return <<<EOF
|
||||
<ul>
|
||||
<li>
|
||||
<input type='checkbox' name='exportSkins' value='1' />
|
||||
Экспортировать текущие шаблоны и CSS? (Будут сохранены в директории /cache/previousSkinFiles)
|
||||
</li>
|
||||
<li>
|
||||
<input type='checkbox' name='exportLangs' value='1' />
|
||||
Скопировать старые директории языков в /cache/previousLangFiles ?
|
||||
</li>
|
||||
<li>
|
||||
<input type='checkbox' name='skipPms' value='1' />
|
||||
<strong>Пропустить</strong> конвертацию личных сообщений? Старые сообщения будут оставлены, вы в любой момент сможете сконвертировать ЛС при помощи shell или утилиты в админцентре.
|
||||
</li>
|
||||
<li>
|
||||
<input type='checkbox' name='rootAdmins' value='1' />
|
||||
<strong>Снять все ограничения администраторов?</strong> В систему распеределния прав в IP.Board 3 внесены изменения, поэтому больше нет необходимости разделять администраторов и главных администраторов на разные группы.
|
||||
Если отметить эту опцию при обновлении все администраторы из второстепенных групп потеряют доступ к АЦ, после обновления вы сможете снова выставить им возможность доступа. Если опцию не отметить - все пользователи из второстепенных групп администраторов получат ПОЛНЫЙ доступ к админцентру.
|
||||
</li>
|
||||
</ul>
|
||||
EOF;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Add pre-upgrade options: Save
|
||||
*
|
||||
* Data will be saved in saved data array as: appOptions[ app ][ versionLong ] = ( key => value );
|
||||
*
|
||||
* @access public
|
||||
* @return array Key / value pairs to save
|
||||
*/
|
||||
public function preInstallOptionsSave()
|
||||
{
|
||||
/* Return */
|
||||
return array( 'exportSkins' => intval( $_REQUEST['exportSkins'] ),
|
||||
'exportLangs' => intval( $_REQUEST['exportLangs'] ),
|
||||
'skipPms' => intval( $_REQUEST['skipPms'] )
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Return any post-installation notices
|
||||
*
|
||||
* @access public
|
||||
* @return array Array of notices
|
||||
*/
|
||||
public function postInstallNotices()
|
||||
{
|
||||
$options = IPSSetUp::getSavedData('custom_options');
|
||||
$_doSkin = $options['core'][30001]['exportSkins'];
|
||||
$_doLang = $options['core'][30001]['exportLangs'];
|
||||
$rootAdmins = $options['core'][30001]['rootAdmins'];
|
||||
$skipPms = $options['core'][30001]['skipPms'];
|
||||
|
||||
$notices = array();
|
||||
|
||||
if ( $_doSkin )
|
||||
{
|
||||
$notices[] = "Все старые стили сохранены в 'cache/previousSkinFiles'";
|
||||
}
|
||||
|
||||
if ( $_doLang )
|
||||
{
|
||||
$notices[] = "Все старые языки сохранены в 'cache/previousLangFiles'";
|
||||
}
|
||||
|
||||
if ( $skipPms )
|
||||
{
|
||||
$notices[] = "Конвертация личных сообщений пропущена.";
|
||||
}
|
||||
|
||||
/* Notice about post content */
|
||||
$notices[] = "Теперь вам необходимо обновить содержимое всех сообщений через админцентр (Система > Пересчет и обновление). <br />";
|
||||
|
||||
/* Notice about admin restrictions */
|
||||
$notices[] = "Права администраторов.";
|
||||
|
||||
/* Notice about admin restrictions */
|
||||
if ( $rootAdmins )
|
||||
{
|
||||
$notices[] = "Были сброшены все ограничения для доступа в админцентр Вы можете восстановить их через АЦ.<br />";
|
||||
}
|
||||
else
|
||||
{
|
||||
$notices[] = "Все администраторы получили полный доступ к админцентру. Вы можете ограничить их доступ через АЦ.<br />";
|
||||
}
|
||||
|
||||
/* Notice about custom time settings */
|
||||
$notices[] = "Формат показа времени изменен в настройках.<br />";
|
||||
|
||||
/* Notice about FURLs */
|
||||
$notices[] = "Для использования Friendly URLs (ЧПУ), добавьте в ваш conf_global.php строчку: \$INFO['use_friendly_urls'] = '1';.";
|
||||
|
||||
return $notices;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
# CREATE NEW TABLES
|
||||
$SQL[] = "CREATE TABLE content_cache_sigs (
|
||||
cache_content_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
cache_content MEDIUMTEXT,
|
||||
cache_updated INT(10) NOT NULL default '0',
|
||||
UNIQUE KEY cache_content_id( cache_content_id ),
|
||||
KEY date_index (cache_updated )
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE content_cache_posts (
|
||||
cache_content_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
cache_content MEDIUMTEXT,
|
||||
cache_updated INT(10) NOT NULL default '0',
|
||||
UNIQUE KEY cache_content_id( cache_content_id ),
|
||||
KEY date_index (cache_updated )
|
||||
);";
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE groups ADD g_mod_post_unit INT(5) UNSIGNED NOT NULL default '0',
|
||||
ADD g_ppd_limit INT(5) UNSIGNED NOT NULL default '0',
|
||||
ADD g_ppd_unit INT(5) UNSIGNED NOT NULL default '0',
|
||||
ADD g_displayname_unit INT(5) UNSIGNED NOT NULL default '0',
|
||||
ADD g_sig_unit INT(5) UNSIGNED NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE members ADD members_day_posts VARCHAR(32) NOT NULL default '0,0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE members ADD KEY members_bitoptions (members_bitoptions);";
|
||||
|
||||
$SQL[] = "ALTER TABLE banfilters ADD ban_nocache INT(1) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE banfilters ADD INDEX ban_content (ban_content(200)), ADD KEY ban_nocache (ban_nocache);";
|
||||
|
||||
$SQL[] = "UPDATE groups SET g_promotion='-1&-1' WHERE g_access_cp=1;";
|
||||
|
||||
$SQL[] = "ALTER TABLE groups ADD g_pm_flood_mins INT(5) UNSIGNED NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE message_topics ADD INDEX mt_date (mt_date); ";
|
||||
$SQL[] = "ALTER TABLE faq ADD app VARCHAR(32) NOT NULL default 'core';";
|
||||
$SQL[] = "ALTER TABLE core_sys_lang CHANGE lang_short lang_short VARCHAR( 25 ) NOT NULL;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# RC 1
|
||||
|
||||
$SQL[] = "ALTER TABLE skin_css ADD css_modules varchar(250) NOT NULL default '';";
|
||||
$SQL[] = "ALTER TABLE skin_cache ADD cache_key_6 varchar(200) NOT NULL default '', ADD cache_value_6 varchar(200) NOT NULL default '';";
|
||||
|
||||
if( !ipsRegistry::DB()->checkForField( 'bbcode_app', 'custom_bbcode' ) )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE custom_bbcode ADD bbcode_app varchar(50) NOT NULL default '';";
|
||||
}
|
||||
|
||||
$SQL[] = "ALTER TABLE skin_collections ADD set_minify INT(1) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE core_item_markers_storage ADD KEY item_last_saved (item_last_saved);";
|
||||
$SQL[] = "ALTER TABLE core_item_markers ADD KEY item_last_saved (item_last_saved);";
|
||||
|
||||
$SQL[] = "ALTER TABLE core_item_markers DROP INDEX combo_key;";
|
||||
$SQL[] = "ALTER TABLE core_item_markers ADD UNIQUE KEY combo_key (item_key,item_member_id,item_app);";
|
||||
|
||||
$SQL[] = "UPDATE core_hooks SET hook_key='recent_topics' where hook_name='Recent Topics';";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# RC 2
|
||||
|
||||
/* 2.x update will already have these but 3.0.0 b/rc won't */
|
||||
if ( ! ipsRegistry::DB()->checkForField( 'template_user_added', 'skin_templates' ) )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE skin_templates ADD template_user_added INT(0) NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE skin_templates ADD template_user_edited INT(0) NOT NULL DEFAULT '0';";
|
||||
}
|
||||
|
||||
$SQL[] = "ALTER TABLE rc_reports CHANGE report report MEDIUMTEXT NOT NULL;";
|
||||
$SQL[] = "ALTER TABLE skin_collections ADD INDEX parent_set_id ( set_parent_id, set_id );";
|
||||
|
||||
$SQL[] = "ALTER TABLE forums CHANGE last_poster_name last_poster_name VARCHAR( 255 ) NULL DEFAULT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE error_logs CHANGE log_error_code log_error_code VARCHAR( 24 ) NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE tracker DROP INDEX tm_id;";
|
||||
$SQL[] = "ALTER TABLE tracker ADD INDEX tm_id ( member_id , topic_id );";
|
||||
$SQL[] = "ALTER TABLE forum_tracker DROP INDEX fm_id , ADD INDEX fm_id ( forum_id );";
|
||||
$SQL[] = "ALTER TABLE core_sys_lang ADD INDEX ( lang_default );";
|
||||
$SQL[] = "ALTER TABLE topics CHANGE starter_name starter_name VARCHAR( 255 ) NULL DEFAULT NULL,CHANGE last_poster_name last_poster_name VARCHAR( 255 ) NULL DEFAULT NULL;";
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# Final
|
||||
|
||||
/* Bug #15747 */
|
||||
//$SQL[] = "ALTER TABLE topics CHANGE description description varchar(250) default NULL;";
|
||||
|
||||
$SQL[] = "delete from core_sys_conf_settings where conf_key='number_format';";
|
||||
$SQL[] = "delete from core_sys_conf_settings where conf_key='decimal_seperator';";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# 3.0.1
|
||||
|
||||
$SQL[] = "ALTER TABLE core_sys_lang CHANGE lang_title lang_title VARCHAR( 255 ) NOT NULL;";
|
||||
|
||||
# PM bug
|
||||
$SQL[] = "DELETE FROM message_topic_user_map WHERE map_user_active=0 AND map_is_system=0 AND map_user_banned=0 AND map_is_starter=1;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
/**
|
||||
* Custom HTML to show
|
||||
*
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
private $_output = '';
|
||||
|
||||
/**
|
||||
* fetchs output
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function fetchOutput()
|
||||
{
|
||||
return $this->_output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute selected method
|
||||
*
|
||||
* @access public
|
||||
* @param object Registry object
|
||||
* @return void
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
/* Make object */
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
|
||||
|
||||
/* Now make add a key */
|
||||
$this->DB->build( array( 'select' => '*',
|
||||
'from' => 'pfields_data' ) );
|
||||
|
||||
$o = $this->DB->execute();
|
||||
|
||||
while( $row = $this->DB->fetch( $o ) )
|
||||
{
|
||||
/* Attempt conversion of dd / dt microformats */
|
||||
if ( stristr( $row['pf_topic_format'], '<dt>' ) OR stristr( $row['pf_topic_format'], '<dd>' ) )
|
||||
{
|
||||
$row['pf_topic_format'] = str_replace( '<dt>', "<span class='ft'>", $row['pf_topic_format'] );
|
||||
$row['pf_topic_format'] = str_replace( '<dd>', "<span class='fc'>", $row['pf_topic_format'] );
|
||||
$row['pf_topic_format'] = str_replace( array( '</dt>', '</dd>' ), "</span>", $row['pf_topic_format'] );
|
||||
|
||||
$this->DB->update( 'pfields_data', array( 'pf_topic_format' => $row['pf_topic_format'] ), 'pf_id=' . $row['pf_id'] );
|
||||
}
|
||||
}
|
||||
|
||||
$this->registry->output->addMessage( "Обновление пользовательских полей профиля");
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# 3.0.2
|
||||
|
||||
/* Field was incorrectly added during beta ..er.. something */
|
||||
if ( ipsRegistry::DB()->checkForField( 'fb_status', 'profile_portal' ) )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE profile_portal DROP fb_status;";
|
||||
}
|
||||
|
||||
/* Added during 2.3.6 upgrade */
|
||||
if ( ! ipsRegistry::DB()->checkForField( 'app_hide_tab', 'core_applications' ) )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE core_applications ADD app_hide_tab TINYINT(1) NOT NULL DEFAULT '0';";
|
||||
}
|
||||
|
||||
# Bug 17345 Removes unrequired task files
|
||||
$SQL[] = "DELETE FROM task_manager WHERE task_key IN ('doexpiresubs', 'expiresubs') AND task_application != 'subscriptions';";
|
||||
|
||||
$SQL[] = "CREATE TABLE spam_service_log (
|
||||
id int(10) unsigned NOT NULL auto_increment,
|
||||
log_date int(10) unsigned NOT NULL,
|
||||
log_code smallint(1) unsigned NOT NULL,
|
||||
log_msg varchar(32) NOT NULL,
|
||||
email_address varchar(255) NOT NULL,
|
||||
ip_address varchar(32) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# 3.0.3
|
||||
|
||||
$SQL[] = "ALTER TABLE admin_logs ADD INDEX ( ip_address );";
|
||||
$SQL[] = "ALTER TABLE dnames_change ADD INDEX ( dname_ip_address );";
|
||||
$SQL[] = "ALTER TABLE error_logs ADD INDEX ( log_ip_address );";
|
||||
$SQL[] = "ALTER TABLE members ADD INDEX ( ip_address );";
|
||||
$SQL[] = "ALTER TABLE message_posts ADD INDEX ( msg_ip_address );";
|
||||
$SQL[] = "ALTER TABLE moderator_logs ADD INDEX ( ip_address );";
|
||||
$SQL[] = "ALTER TABLE profile_comments ADD INDEX ( comment_ip_address );";
|
||||
$SQL[] = "ALTER TABLE profile_ratings ADD INDEX ( rating_ip_address );";
|
||||
$SQL[] = "ALTER TABLE topic_ratings ADD INDEX ( rating_ip_address );";
|
||||
$SQL[] = "ALTER TABLE validating ADD INDEX ( ip_address );";
|
||||
$SQL[] = "ALTER TABLE voters ADD INDEX ( ip_address );";
|
||||
|
||||
$SQL[] = "ALTER TABLE sessions ADD INDEX ( member_id );";
|
||||
$SQL[] = "ALTER TABLE profile_portal ADD INDEX pp_status ( pp_status ( 128 ) , pp_status_update );";
|
||||
$SQL[] = "ALTER TABLE members ADD live_id VARCHAR( 32 ) NULL;";
|
||||
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# 3.0.4
|
||||
|
||||
$PRE = trim(ipsRegistry::dbFunctions()->getPrefix());
|
||||
$DB = ipsRegistry::DB();
|
||||
|
||||
$SQL[] = "ALTER TABLE topics ADD INDEX start_date (start_date);";
|
||||
|
||||
if ( ! $DB->checkForField( 'map_last_topic_reply', 'message_topic_user_map' ) )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE message_topic_user_map ADD map_last_topic_reply INT(10) NOT NULL default '0';";
|
||||
}
|
||||
|
||||
// This is run in 3.0.4-3.0.5 routine as well, so no need to run twice
|
||||
//$SQL[] = "UPDATE message_topic_user_map m, `{$PRE}message_topics` t SET m.map_last_topic_reply=t.mt_last_post_time WHERE m.map_topic_id=t.mt_id;";
|
||||
|
||||
$SQL[] = "ALTER TABLE core_sys_module CHANGE sys_module_version sys_module_version VARCHAR( 32 ) NOT NULL;";
|
||||
$SQL[] = "ALTER TABLE core_sys_lang_words CHANGE word_js word_js TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "UPDATE core_sys_conf_settings SET conf_value=conf_default WHERE conf_key='links_external' AND conf_value='';";
|
||||
|
||||
$SQL[] = "ALTER TABLE members CHANGE fb_uid fb_uid BIGINT(20) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "delete from core_sys_conf_settings where conf_key='spider_suit';";
|
||||
|
||||
$SQL[] = "DELETE FROM core_sys_conf_settings WHERE conf_key='c_cache_days';";
|
||||
|
||||
$SQL[] = "ALTER TABLE forums CHANGE permission_array permission_array MEDIUMTEXT NULL DEFAULT NULL;";
|
||||
|
||||
$SQL[] = "update profile_portal set pp_setting_count_friends = 1 where pp_setting_count_friends > 0;";
|
||||
$SQL[] = "update profile_portal set pp_setting_count_comments = 1 where pp_setting_count_comments > 0;";
|
||||
|
||||
/* Media tag */
|
||||
$tag = $DB->buildAndFetch( array( 'select' => '*',
|
||||
'from' => 'bbcode_mediatag',
|
||||
'where' => "mediatag_replace LIKE '%webjay.org%'" ) );
|
||||
|
||||
if ( $tag['mediatag_id'] )
|
||||
{
|
||||
$DB->update( 'bbcode_mediatag',
|
||||
array( 'mediatag_replace' => '<object type="application/x-shockwave-flash" data="{board_url}/public/mp3player.swf" width="300" height="40"><param name="movie" value="{board_url}/public/mp3player.swf" /><param name="FlashVars" value="mp3=$1.mp3&autoplay=1&loop=0&volume=100&showstop=1&showinfo=0" /></object>'),
|
||||
'mediatag_id=' . $tag['mediatag_id'] );
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IP.Board v3.0.5
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2009 Invision Power Services
|
||||
| http://www.iinvisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.iinvisionboard.com
|
||||
| Email: matt@iinvisionpower.com
|
||||
| Licence Info: http://www.iinvisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
# 3.0.5
|
||||
|
||||
$PRE = trim(ipsRegistry::dbFunctions()->getPrefix());
|
||||
$DB = ipsRegistry::DB();
|
||||
|
||||
if ( ! $DB->checkForField( 'tag_hidden', 'tags_index' ) )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE tags_index ADD tag_hidden INT(1) NOT NULL default '0', ADD INDEX tag_grab (app, type, type_id, type_2, type_id_2, tag_hidden);";
|
||||
//$SQL[] = "CREATE INDEX tag_grab ON tags_index (app, type, type_id, type_2, type_id_2, tag_hidden);";
|
||||
// ^^ This is a mssql query..
|
||||
}
|
||||
|
||||
$SQL[] = "ALTER TABLE message_topic_user_map ADD INDEX ( map_topic_id );";
|
||||
|
||||
if ( ! $DB->checkForField( 'map_last_topic_reply', 'message_topic_user_map' ) )
|
||||
{
|
||||
$SQL[] = "ALTER TABLE message_topic_user_map ADD map_last_topic_reply INT(10) NOT NULL default '0';";
|
||||
}
|
||||
|
||||
$SQL[] = "UPDATE message_topic_user_map m, `{$PRE}message_topics` t SET m.map_last_topic_reply=t.mt_last_post_time WHERE m.map_topic_id=t.mt_id;";
|
||||
|
||||
$SQL[] = "ALTER TABLE forum_tracker CHANGE member_id member_id MEDIUMINT( 8 ) NOT NULL";
|
||||
|
||||
$SQL[] = "ALTER TABLE topics add index last_x_topics (forum_id,approved,start_date);";
|
||||
$SQL[] = "ALTER TABLE topics DROP INDEX last_post;";
|
||||
$SQL[] = "ALTER TABLE topics ADD INDEX last_post (forum_id,pinned,last_post,state);";
|
||||
|
||||
|
||||
$SQL[] = "ALTER TABLE task_manager DROP INDEX task_next_run, ADD INDEX task_next_run ( task_enabled , task_next_run );";
|
||||
|
||||
$SQL[] = "ALTER TABLE captcha ADD INDEX ( captcha_date );";
|
||||
|
||||
$SQL[] = "ALTER TABLE rss_import ADD INDEX ( rss_import_enabled , rss_import_last_import );";
|
||||
|
||||
$SQL[] = "ALTER TABLE core_sys_settings_titles ADD INDEX ( conf_title_keyword );";
|
||||
$SQL[] = "ALTER TABLE core_sys_conf_settings ADD INDEX ( conf_key );";
|
||||
|
||||
$SQL[] = "ALTER TABLE polls ADD INDEX ( tid );";
|
||||
|
||||
|
||||
$SQL[] = "CREATE TABLE core_rss_imported (
|
||||
rss_guid CHAR(32) NOT NULL,
|
||||
rss_foreign_id INT(10) NOT NULL default '0',
|
||||
rss_foreign_key VARCHAR(100) NOT NULL default '',
|
||||
PRIMARY KEY (rss_guid),
|
||||
KEY rss_grabber (rss_guid, rss_foreign_key)
|
||||
);";
|
||||
|
||||
|
||||
Reference in new issue
Block a user