<?php
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'upgrade1.php');
define('VERSION', '3.0.0 Beta 3');
$phrasegroups = array();
$specialtemplates = array();
// #############################################################################
// array of titles for each step - alter this if you change the contents of a step
// just temporary for my testing purposes - KD
define('VB3UPGRADE', 1);
// require the code that makes it all work...
require_once('./upgradecore.php');
if (TABLE_PREFIX != '')
{
?>
<blockquote>
<p style="font-size:10pt; color: red;"><b><?php echo $upgrade_phrases['upgrade1.php']['tableprefix_not_empty']; ?></b></p>
<p><?php echo $upgrade_phrases['upgrade1.php']['tableprefix_not_empty_fix']; ?></p>
</blockquote>
<?php
print_upgrade_footer();
exit;
}
// we need all the new table data
require_once('./install/mysql-schema.php');
// #############################################################################
// introduction
if ($step === 'welcome')
{
echo "<blockquote>\n";
echo sprintf($upgrade_phrases['upgrade1.php']['welcome'], $dbname);
echo "</blockquote>\n";
if (get_cfg_var('safe_mode') == 1)
{
// Use ini_set here instead?
echo "<p><i>{$upgrade_phrases['upgrade1.php']['safe_mode_warning']}</i></p>";
}
// turn the board off
$DB_site->query("UPDATE setting SET value = 0 WHERE varname = 'bbactive'");
$DB_site->query("UPDATE template SET template = CONCAT(template,'\n\$bbactive = 0;\n') WHERE title = 'options'");
// create the upgradelog table - don't worry if this table has already been created
$DB_site->reporterror = 0;
$DB_site->query("
CREATE TABLE upgradelog(
upgradelogid int unsigned NOT NULL AUTO_INCREMENT,
script varchar(50) NOT NULL default '',
steptitle varchar(250) NOT NULL default '',
step smallint unsigned NOT NULL default 0,
startat int unsigned NOT NULL default 0,
perpage smallint unsigned NOT NULL default 0,
dateline int unsigned NOT NULL default 0,
PRIMARY KEY (upgradelogid)
)
");
$DB_site->reporterror = 1;
}
// #############################################################################
// Create New vBulletin 3 Tables
if ($step == 1)
{
$DB_site->reporterror = 0;
$DB_site->query("SELECT COUNT(*) AS count FROM calendar");
$DB_site->reporterror = 1;
$errno = $DB_site->errno;
if (!$errno)
{
$errno = 0;
}
if ($errno == 0)
{
echo "<blockquote>{$upgrade_phrases['upgrade1.php']['upgrade_already_run']}</blockquote>";
print_upgrade_footer();
}
$year = date('Y');
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "calendar (
calendarid int unsigned NOT NULL auto_increment,
title varchar(255) NOT NULL DEFAULT '',
description varchar(100) NOT NULL DEFAULT '',
displayorder smallint NOT NULL DEFAULT '0',
neweventemail varchar(255) NOT NULL DEFAULT '',
moderatenew smallint NOT NULL DEFAULT '0',
startofweek smallint NOT NULL DEFAULT '0',
options int unsigned NOT NULL DEFAULT '0',
cutoff smallint unsigned NOT NULL DEFAULT '0',
eventcount smallint unsigned NOT NULL DEFAULT '0',
birthdaycount smallint unsigned NOT NULL DEFAULT '0',
startyear smallint unsigned NOT NULL DEFAULT '2000',
endyear smallint unsigned NOT NULL DEFAULT '2006',
PRIMARY KEY (calendarid),
KEY displayorder (displayorder)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "calendar");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "calendarmoderator (
calendarmoderatorid int unsigned NOT NULL auto_increment,
userid int unsigned NOT NULL DEFAULT '0',
calendarid int unsigned NOT NULL DEFAULT '0',
neweventemail smallint NOT NULL DEFAULT '0',
permissions int unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (calendarmoderatorid),
KEY userid (userid, calendarid)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "calendarmoderator");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "calendarpermission (
calendarpermissionid int unsigned NOT NULL auto_increment,
calendarid int unsigned NOT NULL DEFAULT '0',
usergroupid smallint unsigned NOT NULL DEFAULT '0',
calendarpermissions int unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (calendarpermissionid),
KEY calendarid (calendarid),
KEY usergroupid (usergroupid)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "calendarpermission");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "calendarcustomfield (
calendarcustomfieldid int unsigned NOT NULL auto_increment,
calendarid int unsigned NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
options mediumtext NOT NULL,
allowentry smallint NOT NULL DEFAULT '1',
required smallint NOT NULL DEFAULT '0',
length smallint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (calendarcustomfieldid),
KEY calendarid (calendarid)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "calendarcustomfield");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "holiday (
holidayid int unsigned NOT NULL auto_increment,
varname varchar(100) NOT NULL DEFAULT '',
recurring smallint unsigned NOT NULL DEFAULT '0',
recuroption char(6) NOT NULL DEFAULT '',
allowsmilies smallint NOT NULL DEFAULT '1',
PRIMARY KEY (holidayid),
KEY varname (varname)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "holiday");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "subscribeevent (
userid int unsigned NOT NULL DEFAULT '0',
eventid int unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (userid,eventid),
KEY eventid (eventid)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "subscribeevent");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "ranks (
rankid smallint unsigned NOT NULL auto_increment,
minposts smallint unsigned NOT NULL DEFAULT '0',
ranklevel smallint unsigned NOT NULL DEFAULT '0',
rankimg varchar(255) NOT NULL DEFAULT '',
usergroupid smallint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (rankid),
KEY grouprank (usergroupid, minposts)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "ranks");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "usertextfield (
userid int unsigned NOT NULL DEFAULT '0',
subfolders mediumtext NOT NULL,
pmfolders mediumtext NOT NULL,
buddylist mediumtext NOT NULL,
ignorelist mediumtext NOT NULL,
signature mediumtext NOT NULL,
searchprefs mediumtext NOT NULL,
PRIMARY KEY (userid)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "usertextfield");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "imagecategory (
imagecategoryid smallint unsigned NOT NULL auto_increment,
title varchar(255) NOT NULL DEFAULT '',
imagetype smallint unsigned NOT NULL DEFAULT '0',
displayorder smallint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (imagecategoryid)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "imagecategory");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "imagecategorypermission (
imagecategoryid smallint unsigned NOT NULL DEFAULT '0',
usergroupid smallint unsigned NOT NULL DEFAULT '0',
KEY imagecategoryid (imagecategoryid, usergroupid)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "imagecategorypermission");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "post_parsed (
postid int unsigned NOT NULL DEFAULT '0',
dateline int unsigned NOT NULL DEFAULT '0',
hasimages smallint NOT NULL DEFAULT '0',
pagetext_html mediumtext NOT NULL,
PRIMARY KEY (postid),
KEY dateline (dateline)
)
";
$explain[] = sprintf($vbphrase['create_table'], TABLE_PREFIX . "post_parsed");
$query[] = "
CREATE TABLE " . TABLE_PREFIX . "strikes (
striketime int unsigned NOT NULL DEFAULT '0',
strikeip char(15) NOT NULL DEFAULT '',
username char(50) NOT NULL DEFAULT '',
KEY striketime (striketime),
KEY strikeip (strikeip)
)
";
$explain[] = sprintf($
没有合适的资源?快使用搜索试试~ 我知道了~
[论坛社区]vBulletin v3.0.8简体中文加强版_vbulletin308cn.zip源码PHP项目源代码下载
共616个文件
gif:349个
php:208个
html:28个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 39 浏览量
2022-03-15
20:35:56
上传
评论
收藏 1.82MB ZIP 举报
温馨提示
[论坛社区]vBulletin v3.0.8简体中文加强版_vbulletin308cn.zip源码PHP项目源代码下载[论坛社区]vBulletin v3.0.8简体中文加强版_vbulletin308cn.zip源码PHP项目源代码下载 1.适合个人搭建网站项目参考 2.适合学生毕业设计搭建网站参考 3.适合小公司搭建网站项目参考
资源详情
资源评论
资源推荐
收起资源包目录
[论坛社区]vBulletin v3.0.8简体中文加强版_vbulletin308cn.zip源码PHP项目源代码下载 (616个子文件)
controlpanel.css 10KB
controlpanel.css 9KB
controlpanel.css 9KB
controlpanel.css 9KB
controlpanel.css 9KB
controlpanel.css 8KB
vbulletin_editor.css 3KB
archive.css 1KB
archive.css 1KB
icon_xizao.gif 11KB
vbulletin-china_logo.gif 10KB
newvbb_trans_logo.gif 10KB
vbulletin3_logo_white.gif 10KB
cp_logo.gif 9KB
cp_logo.gif 9KB
cp_logo.gif 8KB
option_name_bg.gif 8KB
option_name_bg.gif 8KB
cp_logo.gif 8KB
redirect.gif 8KB
icon_question.gif 7KB
icon_music.gif 6KB
icon_sleep.gif 5KB
cp_logo.gif 5KB
icon_confused.gif 4KB
icon_mummy.gif 4KB
icon_lol.gif 4KB
icon_cry.gif 4KB
icon_razz.gif 4KB
icon_tong.gif 4KB
icon_smile.gif 4KB
icon_heart.gif 4KB
icon_angry.gif 4KB
icon_sad.gif 4KB
icon_shame.gif 4KB
icon_eek.gif 4KB
icon_ghost.gif 4KB
cp_tblhead_bg.gif 4KB
cp_tblhead_bg.gif 4KB
cp_navbody_bg.gif 4KB
cp_navbody_bg.gif 4KB
icon_sweat.gif 4KB
icon_ft.gif 4KB
cp_navbody_bg.gif 3KB
icon_bomb.gif 3KB
gradient_panel.gif 3KB
threadclosed.gif 3KB
cp_colheader_bg.gif 3KB
cp_colheader_bg.gif 3KB
newthread.gif 3KB
icon_abuse.gif 3KB
icon_cattle.gif 3KB
icon_cool.gif 3KB
icon_fd.gif 3KB
reply.gif 3KB
icon_belial.gif 3KB
gradient_panelsurround.gif 3KB
icon_lovely.gif 3KB
level3.gif 2KB
level2.gif 2KB
level1.gif 2KB
level4.gif 2KB
level0.gif 2KB
level5.gif 2KB
level6.gif 2KB
mod_level.gif 2KB
superm_level.gif 2KB
level7.gif 2KB
admin_level.gif 2KB
level8.gif 2KB
gradient_tfoot.gif 2KB
vb_logo_small.gif 2KB
sendpm.gif 2KB
forward.gif 2KB
reward.gif 2KB
email.gif 2KB
quote.gif 2KB
find.gif 2KB
home.gif 2KB
punishment.gif 2KB
edit.gif 2KB
pm.gif 2KB
reply_small.gif 2KB
quickreply.gif 2KB
calendar.gif 2KB
announcement_old.gif 2KB
announcement_new.gif 2KB
union.gif 1KB
whoonline.gif 1KB
stats.gif 1KB
whos_online.gif 1KB
birthday.gif 1KB
forum_new_lock.gif 1KB
static.gif 1KB
forum_link.gif 1KB
forum_new.gif 1KB
forum_old.gif 1KB
thread_dot_hot_lock_new.gif 1KB
rating_5.gif 1KB
thread_dot_lock_new.gif 1KB
共 616 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
yxkfw
- 粉丝: 76
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1