<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.5.2 - Licence Number $sm_lickey
|| # ---------------------------------------------------------------- # ||
|| # Copyright �2000-2005 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'upgrade_300b3.php');
define('VERSION', '3.0.0 Beta 3');
// #############################################################################
// 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['upgrade_300b3.php']['tableprefix_not_empty']; ?></b></p>
<p><?php echo $upgrade_phrases['upgrade_300b3.php']['tableprefix_not_empty_fix']; ?></p>
</blockquote>
<?php
print_upgrade_footer();
exit;
}
// we need all the new table data
require_once(DIR . '/install/mysql-schema.php');
// #############################################################################
// introduction
if ($vbulletin->GPC['step'] === 'welcome')
{
echo "<blockquote>\n";
echo sprintf($upgrade_phrases['upgrade_300b3.php']['welcome'], htmlspecialchars_uni($vbulletin->config['Database']['dbname']));
echo "</blockquote>\n";
if (get_cfg_var('safe_mode') == 1)
{
// Use ini_set here instead?
echo "<p><i>{$upgrade_phrases['upgrade_300b3.php']['safe_mode_warning']}</i></p>";
}
// turn the board off
$db->query_write("UPDATE setting SET value = 0 WHERE varname = 'bbactive'");
$db->query_write("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->hide_errors();
$db->query_write("
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->show_errors();
}
// #############################################################################
// Create New vBulletin 3 Tables
if ($vbulletin->GPC['step'] == 1)
{
$db->hide_errors();
$db->query_read("SELECT COUNT(*) AS count FROM calendar");
$db->show_errors();
$errno = $db->errno;
if (!$errno)
{
$errno = 0;
}
if ($errno == 0)
{
echo "<blockquote>{$upgrade_phrases['upgrade_300b3.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,
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,
pmfolders mediumtext,
buddylist mediumtext,
ignorelist mediumtext,
signature mediumtext,
searchprefs mediumtext,
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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
[论坛社区]vBulletin v3.5.2_vbulletin35.rar (940个子文件)
controlpanel.css 10KB
controlpanel.css 10KB
controlpanel.css 10KB
controlpanel.css 10KB
controlpanel.css 9KB
stylesheet.css 6KB
vbulletin_editor.css 3KB
archive.css 1KB
banner.css 396B
file_id.diz 483B
vbulletin3_logo_white.gif 11KB
vbulletin3_logo_grey.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
vbulletin2_logo.gif 7KB
cp_logo.gif 5KB
cp_tblhead_bg.gif 4KB
cp_tblhead_bg.gif 4KB
gradient_tcat.gif 4KB
cp_navbody_bg.gif 4KB
cp_navbody_bg.gif 3KB
gradient_panelsurround.gif 3KB
gradient_panel.gif 3KB
reply.gif 3KB
threadclosed.gif 3KB
newthread.gif 3KB
cp_colheader_bg.gif 3KB
cp_colheader_bg.gif 3KB
gradient_thead.gif 3KB
reply_small.gif 2KB
quote.gif 2KB
find.gif 2KB
sendpm.gif 2KB
edit.gif 2KB
email.gif 2KB
home.gif 2KB
forward.gif 2KB
forum_old_lock.gif 2KB
vb_logo_small.gif 2KB
forum_link.gif 2KB
forum_new_lock.gif 2KB
forum_old.gif 2KB
forum_new.gif 2KB
calendar.gif 2KB
stats.gif 1KB
whos_online.gif 1KB
birthday.gif 1KB
quickreply.gif 1KB
skype_callstart.gif 1KB
skype_info.gif 1KB
skype_message.gif 1KB
skype_addcontact.gif 1KB
skype_voicemail.gif 1KB
rating_5.gif 1KB
thread_dot_lock_new.gif 1KB
thread_dot_hot_lock_new.gif 1KB
thread_moved_new.gif 1KB
thread_dot_new.gif 1KB
thread_dot_hot_new.gif 1KB
thread_new.gif 1KB
thread_lock_new.gif 1KB
thread_hot_lock_new.gif 1KB
thread_hot_new.gif 1KB
skype_fileupload.gif 1KB
rating_4.gif 1KB
moderated.gif 1KB
thread_moved.gif 1KB
thread_dot_hot_lock.gif 1KB
thread_dot_lock.gif 1KB
thread_hot_lock.gif 1KB
thread_lock.gif 1KB
thread_dot.gif 1KB
thread_dot_hot.gif 1KB
confused.gif 1KB
thread.gif 1KB
thread_hot.gif 1KB
sendtofriend.gif 1KB
im_skype.gif 1KB
addpoll.gif 1KB
ip.gif 1KB
subscribe.gif 1KB
announcement_old.gif 1KB
announcement_new.gif 1KB
im_icq.gif 1KB
rating_3.gif 1KB
reputation.gif 1KB
pm_new.gif 1KB
psd.gif 1KB
wol_nopermission.gif 1KB
printer.gif 1KB
eek.gif 1KB
cool.gif 1KB
wink.gif 1KB
redface.gif 1KB
mad.gif 1KB
frown.gif 1KB
共 940 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
心梓知识
- 粉丝: 6372
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功