<?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
没有合适的资源?快使用搜索试试~ 我知道了~
[论坛社区]vBulletin v3.5.2_vbulletin35.zip源码PHP项目源代码下载
共940个文件
html:310个
gif:300个
php:238个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 6 浏览量
2022-03-15
20:42:01
上传
评论
收藏 2.85MB ZIP 举报
温馨提示
[论坛社区]vBulletin v3.5.2_vbulletin35.zip源码PHP项目源代码下载[论坛社区]vBulletin v3.5.2_vbulletin35.zip源码PHP项目源代码下载 1.适合个人搭建网站项目参考 2.适合学生毕业设计搭建网站参考 3.适合小公司搭建网站项目参考
资源推荐
资源详情
资源评论
收起资源包目录
[论坛社区]vBulletin v3.5.2_vbulletin35.zip源码PHP项目源代码下载 (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
gradient_tcat.gif 4KB
cp_tblhead_bg.gif 4KB
cp_tblhead_bg.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
gradient_thead.gif 3KB
cp_colheader_bg.gif 3KB
cp_colheader_bg.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_new.gif 1KB
thread_hot_lock_new.gif 1KB
skype_fileupload.gif 1KB
rating_4.gif 1KB
moderated.gif 1KB
thread_moved.gif 1KB
thread_dot_lock.gif 1KB
thread_dot_hot_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
rating_3.gif 1KB
im_icq.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
redface.gif 1KB
wink.gif 1KB
mad.gif 1KB
wmv.gif 1KB
共 940 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
yxkfw
- 粉丝: 76
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功