-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathvbulletin4.php
112 lines (99 loc) · 3.33 KB
/
vbulletin4.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* MyBB 1.8 Merge System
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/download/merge-system/license/
*/
// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
class VBULLETIN4_Converter extends Converter
{
/**
* String of the bulletin board name
*
* @var string
*/
var $bbname = "vBulletin 4";
/**
* String of the plain bulletin board name
*
* @var string
*/
var $plain_bbname = "vBulletin 4";
/**
* Whether or not this module requires the loginconvert.php plugin
*
* @var boolean
*/
var $requires_loginconvert = true;
/**
* Array of all of the modules
*
* @var array
*/
var $modules = array("db_configuration" => array("name" => "Database Configuration", "dependencies" => ""),
"import_usergroups" => array("name" => "Usergroups", "dependencies" => "db_configuration"),
"import_users" => array("name" => "Users", "dependencies" => "db_configuration,import_usergroups"),
"import_forums" => array("name" => "Forums", "dependencies" => "db_configuration,import_users"),
"import_forumperms" => array("name" => "Forum Permissions", "dependencies" => "db_configuration,import_forums"),
"import_threads" => array("name" => "Threads", "dependencies" => "db_configuration,import_forums"),
"import_polls" => array("name" => "Polls", "dependencies" => "db_configuration,import_threads"),
"import_pollvotes" => array("name" => "Poll Votes", "dependencies" => "db_configuration,import_polls"),
"import_posts" => array("name" => "Posts", "dependencies" => "db_configuration,import_threads"),
"import_moderators" => array("name" => "Moderators", "dependencies" => "db_configuration,import_forums,import_users"),
"import_privatemessages" => array("name" => "Private Messages", "dependencies" => "db_configuration,import_users"),
"import_settings" => array("name" => "Settings", "dependencies" => "db_configuration"),
"import_events" => array("name" => "Calendar Events", "dependencies" => "db_configuration,import_users"),
"import_avatars" => array("name" => "Avatars", "dependencies" => "db_configuration,import_users"),
"import_attachments" => array("name" => "Attachments", "dependencies" => "db_configuration,import_posts"),
);
/**
* The table we check to verify it's "our" database
*
* @var String
*/
var $check_table = "forumpermission";
/**
* The table prefix we suggest to use
*
* @var String
*/
var $prefix_suggestion = "";
/**
* An array of vb4 -> mybb groups
*
* @var array
*/
var $groups = array(
1 => MYBB_GUESTS, // Guests
2 => MYBB_REGISTERED, // Registered
3 => MYBB_AWAITING, // Awaiting activation
4 => MYBB_REGISTERED, // Registered coppa
5 => MYBB_SMODS, // Super Moderators
6 => MYBB_ADMINS, // Administrators
7 => MYBB_MODS, // Moderators
8 => MYBB_BANNED, // Banned
);
/**
* An array of supported databases
* vB only supports MySQL
*/
var $supported_databases = array("mysql");
var $column_length_to_check = array(
'post' => array(
'posts' => array(
'pagetext' => 'message'
)
),
'user' => array(
'users' => array(
'icq' => 'icq'
)
)
);
}