代码拉取完成,页面将自动刷新
同步操作将从 想天皮克斯/OpenSNS-V5开源版 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
DROP TABLE IF EXISTS `ocenter_user_nav`;
CREATE TABLE `ocenter_user_nav` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '频道ID',
`title` char(30) NOT NULL COMMENT '频道标题',
`url` char(100) NOT NULL COMMENT '频道连接',
`sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '导航排序',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态',
`target` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '新窗口打开',
`color` varchar(30) NOT NULL,
`band_color` varchar(30) NOT NULL,
`band_text` varchar(30) NOT NULL,
`icon` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8;
INSERT INTO `ocenter_user_nav` VALUES ('1', '个人主页', 'ucenter/Index/index', '0', '0', '0', '1', '0', '', '', '', '');
INSERT INTO `ocenter_user_nav` VALUES ('2', '消息中心', 'ucenter/message/message', '0', '0', '0', '1', '0', '', '', '', '');
INSERT INTO `ocenter_user_nav` VALUES ('3', '我的收藏', 'ucenter/Collection/index', '0', '0', '0', '1', '0', '', '', '', '');
INSERT INTO `ocenter_user_nav` VALUES ('4', '我的头衔', 'ucenter/Index/rank', '0', '0', '0', '1', '0', '', '', '', '');
DROP TABLE IF EXISTS `ocenter_adv_pos`;
CREATE TABLE `ocenter_adv_pos` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(50) NOT NULL,
`title` char(80) NOT NULL DEFAULT '' COMMENT '广告位置名称',
`path` varchar(100) NOT NULL COMMENT '所在路径 模块/控制器/方法',
`type` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '广告位类型 \r\n1.单图\r\n2.多图\r\n3.文字链接\r\n4.代码',
`status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态(0:禁用,1:正常)',
`data` varchar(500) NOT NULL COMMENT '额外的数据',
`width` char(20) NOT NULL DEFAULT '' COMMENT '广告位置宽度',
`height` char(20) NOT NULL DEFAULT '' COMMENT '广告位置高度',
`margin` varchar(50) NOT NULL COMMENT '边缘',
`padding` varchar(50) NOT NULL COMMENT '留白',
`theme` varchar(50) NOT NULL DEFAULT 'all' COMMENT '适用主题,默认为all,通用',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='广告位置表';
INSERT INTO `ocenter_adv_pos` VALUES ('1', 'right_below_all', '右侧底部广告', 'Weibo/Index/index', '1', '1', '0', '280px', '100px', '', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('2', 'below_checkrank', '签到下方广告', 'Weibo/Index/index', '1', '1', '0', '280px', '100px', '0 0 10px 0', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('3', 'filter_right', '过滤右方', 'Weibo/Index/index', '3', '1', '0', '300px', '30px', '', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('10', 'below_post_content', '帖子主题下方广告1', 'Forum/Index/index', '1', '1', '0', '680px', '100px', '', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('11', 'below_post_content', '论坛帖子主题下方广告', 'Forum/Index/detail', '1', '1', '', '680px', '100px', '', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('4', 'below_self_info', '个人资料下方', 'Weibo/Index/index', '1', '1', '', '280px', '100px', '0 0 10px 0', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('5', 'index_top', '资讯首页顶部广告', 'News/Index/index', '2', '1', '', '738px', '240px', '', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('6', 'index_bottom_top', '资讯首页右侧最底部广告', 'News/Index/index', '1', '1', '', '360px', '120px', '10px 0 0 0', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('9', 'slider', '首页轮播图', 'Home/Index/index', '2', '1', '{\"style\":1}', '1120px', '300px', '0 0 15px 0', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('7', 'index_right_top', '资讯首页右侧最顶部广告', 'News/Index/index', '1', '1', '[]', '360px', '120px', '0 0 10px 0', '', 'all');
INSERT INTO `ocenter_adv_pos` VALUES ('8', 'below_article_content', '资讯文章内容下方广告', 'News/Index/detail', '1', '1', '', '690px', '100px', '', '', 'all');
DROP TABLE IF EXISTS `ocenter_adv`;
CREATE TABLE `ocenter_adv` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`title` char(80) NOT NULL DEFAULT '' COMMENT '广告名称',
`pos_id` int(11) NOT NULL COMMENT '广告位置',
`data` text NOT NULL COMMENT '图片地址',
`click_count` int(11) NOT NULL COMMENT '点击量',
`url` varchar(500) NOT NULL COMMENT '链接地址',
`sort` int(3) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
`status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态(0:禁用,1:正常)',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
`start_time` int(11) DEFAULT NULL,
`end_time` int(11) unsigned DEFAULT '0' COMMENT '结束时间',
`target` varchar(20) DEFAULT '_blank',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='广告表';
REPLACE INTO `ocenter_menu` VALUES ('225', '广告位', '197', '0', 'Adv/pos', '0', '', '广告配置', '0', '', '');
REPLACE INTO `ocenter_menu` VALUES ('226', '广告管理', '197', '0', 'Adv/adv', '0', '', '广告配置', '0', '', '');
REPLACE INTO `ocenter_menu` VALUES ('227', '新增广告', '226', '0', 'Adv/editAdv', '1', '', '', '0', '', '');
REPLACE INTO `ocenter_menu` VALUES ('228', '编辑广告位', '225', '0', 'Adv/editPos', '1', '', '', '0', '', '');
REPLACE INTO `ocenter_menu` VALUES ('229', '设置广告位状态', '225', '0', 'Adv/setPosStatus', '1', '', '', '0', '', '');
REPLACE INTO `ocenter_menu` VALUES ('230', '广告排期', '226', '0', 'Adv/schedule', '1', '', '', '0', '', '');
REPLACE INTO `ocenter_menu` VALUES (231, '用户导航', 74, 0, 'Channel/user', 0, '', '导航管理', 0, '', 'Core');
REPLACE INTO `ocenter_menu` VALUES (232, '积分日志', '113', '0', 'Action/scoreLog', '0', '', '积分管理', '0', '', '');
UPDATE `ocenter_menu` SET `group`='导航管理',`title`='顶部导航' WHERE `id`=87;
DELETE FROM `ocenter_addons` WHERE `name`='Advertising';
DELETE FROM `ocenter_addons` WHERE `name`='Advs';
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。