INSERT INTO `uu_admin_menu` (`m_id`, `m_pid`, `m_title`, `m_act`, `m_fun`, `m_target`, `m_sort`, `m_img`, `m_display`) VALUES
(1, 0, '首页', 'main', 'main', 'mainFrame', 50, '1.png', 1),
(2, 0, '问答', 'question', 'lists', 'mainFrame', 50, '2.png', 1),
(3, 0, '工具', 'cache', 'index', 'mainFrame', 40, '3.png', 1),
(4, 0, '设置', 'config', 'config', 'mainFrame', 0, '4.png', 1),
(5, 1, '管理中心', 'main', 'main', 'mainFrame', 50, '5.png', 1),
(6, 1, '退出登录', 'login', 'logout', '_top', 50, '6.png', 1),
(7, 0, '内容', 'article', 'lists', 'mainFrame', 50, '7.png', 1),
(8, 0, '商城', 'commodity', 'lists', 'mainFrame', 50, '8.png', 0),
(9, 7, '公告管理', 'notice', 'lists', 'mainFrame', 58, '9.png', 1),
(10, 7, '说明页', 'intro', 'lists', 'mainFrame', 50, '10.png', 1),
(11, 7, '友情链接', 'link', 'lists', 'mainFrame', 50, '11.png', 1),
(12, 4, '网站配置', 'config', 'config', 'mainFrame', 50, '12.png', 1),
(13, 3, '更新缓存', 'cache', 'index', 'mainFrame', 50, '13.png', 1),
(14, 4, '问题分类', 'category', 'cat_question', 'mainFrame', 50, '14.png', 1),
(15, 4, '标签分类', 'tag', 'lists', 'mainFrame', 50, '15.png', 1),
(16, 3, '数据库', 'Database', 'index', 'mainFrame', 50, '16.png', 1),
(17, 4, '用户管理', 'user', 'lists', 'mainFrame', 40, '17.png', 1),
(18, 4, '导航设置', 'nav', 'lists', 'mainFrame', 40, '18.png', 1),
(19, 4, '文章分类', 'category', 'cat_article', 'mainFrame', 50, '19.png', 1),
(20, 4, '任务设置', 'task', 'lists', 'mainFrame', 50, '20.png', 1),
(21, 2, '问题管理', 'question', 'lists', 'mainFrame', 50, '21.png', 1),
(22, 2, '回答列表', 'answer', 'lists', 'mainFrame', 50, '22.png', 1),
(23, 2, '附件图片', 'annex', 'lists', 'mainFrame', 50, '23.png', 1),
(24, 8, '商品管理', 'commodity', 'lists', 'mainFrame', 50, '24.png', 1),
(25, 8, '兑换管理', 'order', 'lists', 'mainFrame', 50, '25.png', 1),
(26, 3, '第三方登录', 'logapi', 'qq', 'mainFrame', 50, '26.png', 1),
(27, 3, '手机短信', 'sms', 'config', 'mainFrame', 50, '27.png', 1),
(28, 7, '文章管理', 'article', 'lists', 'mainFrame', 60, '28.png', 1),
(29, 7, '站内信', 'msg', 'lists', 'mainFrame', 55, '29.png', 1),
(30, 3, 'SEO', 'seo', 'lists', 'mainFrame', 50, '30.png', 1),
(31, 3, 'URL路由', 'url', 'config', 'mainFrame', 50, '31.png', 1);

INSERT INTO `uu_category` (`c_id`, `c_type`, `c_pid`, `c_title`, `c_sort`, `c_pic`) VALUES
(1, 1, 0, '使用交流', 0, '1.png'),
(2, 1, 0, 'BUG反馈', 0, '2.png'),
(3, 1, 0, '风格模板', 0, '3.png'),
(4, 1, 0, '意见建议', 0, '4.png'),
(5, 1, 0, '其他问题', 0, '5.png'),
(6, 2, 0, '未命名分类', 0, '');

INSERT INTO `uu_config` (`id`, `name`, `value`, `note`) VALUES
(1, 'UU_SITE_NAME', '优优问答系统', '网站名称'),
(2, 'UU_SITE_DOMAIN', 'http://127.0.0.1', '网站域名'),
(3, 'UU_PAGE_SIZE', '10', '默认分页数'),
(4, 'UU_TEL', '', '联系电话'),
(5, 'UU_ADDRESS', '', '网站联系地址'),
(6, 'UU_ICP', '', 'icp备案号'),
(7, 'UU_COPYRIGHT', 'Copyright © 2017 uuask.cn All Right Reserved ', '版权申明'),
(8, 'UU_STATISTICS', '', '第三方统计'),
(12, 'UU_CLOSE', '0', '是否关闭网站'),
(13, 'UU_CLOSE_DESCRIPTION', '', '关闭网站说明'),
(14, 'UU_MAP_AK', '', '百度地图AK'),
(15, 'UU_MAP_X', '112.57499', '默认地图X坐标'),
(16, 'UU_MAP_Y', '37.823281', '默认地图Y坐标'),
(17, 'UU_MAP_ZOOM', '13', '默认地图缩放级别'),
(18, 'UU_GOLD_BYNAME', '金币', '积分别名'),
(19, 'UU_GOLD_QUANTIFIER', '枚', '积分量词'),
(20, 'UU_REG_CLOSE', '0', '关闭会员注册'),
(21, 'UU_REG_PRE_MOB', 'mb_', '手机注册用户名前缀'),
(22, 'UU_REG_PRE_QQ', 'th_', '第三方注册用户名前缀'),
(23, 'UU_REG_PWD_TYPE', '1', '快速注册生成的密码类型'),
(24, 'UU_REG_PWD_TYPE_TXT', '123456', '快速注册指定密码'),
(25, 'UU_AGREEMENT', '', '注册协议'),
(26, 'UU_PWD_MD5TYPE', '1', '密码加密方式（前后台通用）'),
(27, 'UU_GOLD_SEND_MB', '15', '收到答案时短信通知'),
(28, 'UU_GOLD_QUANTIFIER_ANONYMOUS', '30', '匿名提问需要消耗的积分'),
(29, 'UU_SMS_OPEN', '0', '阿里大于短信开关'),
(30, 'UU_SMS_APPKEY', '', '阿里大于APPKEY'),
(31, 'UU_SMS_SECRETKEY', '', '阿里大于SECRETKEY'),
(32, 'UU_SMS_SIGNATURE', '', '阿里大于SIGNATURE'),
(33, 'UU_URL_RULE_OPEN', '0', 'URL路由开关'),
(34, 'UU_CAT_LEVEL_QUESTION', '1', '问题分类层级'),
(35, 'UU_CAT_LEVEL_ARTICLE', '1', '文章分类层级'),
(36, 'URL_MODEL', '0', 'URL模式');


INSERT INTO `uu_intro` (`id`, `alias`, `title`, `content`, `tit_color`, `tit_b`, `is_display`, `is_url`, `seo_keywords`, `seo_description`, `click`, `addtime`, `sort`, `username`) VALUES
(NULL, 'law',    '法律声明', '','', 0, 1, '', '', '', 1, 1485615336, 0, ''),
(NULL, 'contact','联系我们', '','', 0, 1, '', '', '', 1, 1485615336, 0, ''),
(NULL, 'about',  '关于我们', '','', 0, 1, '', '', '', 1, 1485615336, 0, '');
 
INSERT INTO `uu_link` (`id`, `is_display`, `link_name`, `link_url`, `link_logo`, `sort`, `notes`, `addtime`, `username`) VALUES
(1, 1, 'UU问答',       'http://www.uuask.cn',  '', 0, '', 1485615336, ''),
(2, 1, '骑士人才系统', 'http://www.74cms.com', '', 0, '', 1485615336, ''),
(3, 1, '麒云GTD',      'http://www.7yun.com',  '', 0, '', 1485615336, '');



INSERT INTO `uu_lv` (`id`, `lv_id`, `exp_min`, `exp_max`, `name`) VALUES
(1, 1, 0, 10, '牛一'),
(2, 2, 11, 30, '牛二'),
(3, 3, 31, 300, '牛三'),
(5, 6, 1001, 3000, '牛六'),
(6, 5, 501, 1000, '牛五'),
(7, 4, 301, 500, '牛四'),
(8, 7, 3001, 99999999, '牛七');


INSERT INTO `uu_nav` (`id`, `type`, `pagealias`, `title`, `url`, `act`, `fun`, `target`, `display`, `sort`) VALUES
(1, 1, 'home', '首页', 'http://127.0.0.1/', NULL, NULL, 0, 1, 50),
(2, 2, 'question', '问答', '', 'question', 'lists', 0, 1, 50),
(3, 2, 'article', '文章', '', 'article', 'lists', 0, 1, 50),
(4, 2, 'tag', '话题', '', 'tag', 'lists', 0, 1, 50);




INSERT INTO `uu_oauth` (`id`, `alias`, `name`, `config`, `sort`, `is_display`) VALUES
(1, 'sina', '新浪微博', '', 1, 1),
(2, 'qq',   '腾讯QQ',   '', 2, 1);


INSERT INTO `uu_seo` (`id`, `name`, `alias`, `title`, `keywords`, `description`) VALUES
(1, '首页', 'home', '优优问答系统 - www.uuask.cn', 'uuask，优优问答系统，php问答系统，thinkphp问答', '优优问答系统旨在为大家提供开源、稳定、功能强大的、值得使用的PHP问答系统！官方网址：www.uuask.cn'),
(16, '标签列表', 'tag-list', '话题标签 - {SITENAME} ', '话题，TAG，标签，主题', '{SITENAME}话题标签。'),
(2, '文章发布页', 'article-add', '文章发布 - 分享发布 - {SITENAME}', '文章发布，文章分享，分享经验', '{SITENAME}分享文章和经验让更多人学习收益'),
(3, '文章列表页', 'article-list', '文章 - {SITENAME}', '文章发布，文章分享，分享经验', '{SITENAME}分享文章和经验让更多人学习收益'),
(4, '文章详细页', 'article-view', '{ARTICLE_TITLE} - {SITENAME}', '{ARTICLE_TITLE}，文章分享，分享经验', '{ARTICLE_CONTEND}'),
(5, '说明页', 'intro-view', '{INTRO_TITLE} - {SITENAME}', '{INTRO_TITLE}，{SITENAME}', '{INTRO_CONTEND}'),
(6, '公告列表页', 'notice-list', '公告 - {SITENAME}', '公告，通知，告知，{SITENAME}', '{SITENAME}公告通知模块用于展示各项通知。'),
(7, '公告详细页', 'notice-view', '{NOTICE_TITLE} - 公告 - {SITENAME}', '{NOTICE_TITLE}，{SITENAME}', '{NOTICE_CONTEND}'),
(8, '发表问题', 'question-add', '提问  - {SITENAME}', '发布问题，问题求助，发起问题', '您可以通过{SITENAME}提出问题，让众多网友为您解答。'),
(9, '问答列表', 'question-list', '问答 - {SITENAME}', '{SITENAME}问题列表', '{SITENAME}为题列表，包含最新问答，已解决问题，高悬赏问题等...'),
(10, '问题详细页', 'question-view', '{QUESTION_TITLE} - {SITENAME}', '{QUESTION_TITLE}的相关简答', '{QUESTION_TITLE}，{DESCRIBE}'),
(12, '会员社区列表页', 'u-list', '{USERNEME} - {CATNEME} - {SITENAME} ', '{USERNEME}, {CATNEME}', '{USERNEME}的个人主页， {CATNEME}'),
(13, '会员社区', 'u-view', '{USERNEME} - {SITENAME} ', '{USERNEME},话题，TAG，标签，主题', '{USERNEME}的个人主页，个人社区'),
(14, '标签详细页', 'tag-view', '{TAG} - {CATNEME} - {SITENAME} ', '{TAG}话题，TAG，标签，主题，{CATNEME}', '{TAG_CONTEND}'),
(17, '关键字搜搜结果', 'so-list', '{KEY} - {CATNEME} - {SITENAME}', '{KEY}，{SITENAME} ', '{KEY}相关问题以及相关文章，相关标签');


INSERT INTO `uu_sms_tpl` (`id`, `title`, `tpl`, `alias`, `tplid`) VALUES
(5, '回答提醒', '您在${sitename}的提问已经有人回复了，如果满意，请采纳最佳答案喔', 'answer_remind', ''),
(3, '注册提醒', '你已经成功注册为${sitename}的网站会员，用户名：${username}，密码：${password}', 'reg', ''),
(4, '手机号验证', '验证码为:${rand}，您正在进行手机号验证，感谢您使用${sitename}', 'mobile_code', ''),
(6, '答案被采纳', '您的回答已被采纳为最佳答案，感谢您使用${sitename}', 'answer_optimal', '');



INSERT INTO `uu_tag` (`id`, `cat`, `tag`, `img`, `describe`, `count_question`, `count_article`, `sort`, `addtime`, `audit`) VALUES
(1, 0, '74cms', '', '骑士人才系统(74cms)是一款知名的PHP+MYSQL的人才系统', 0, 0, 50, 1492005781, 1),
(2, 0, 'uuask', '', 'UU问答系统是一款基于ThinkPHP框架的问答系统', 0, 0, 50, 1492006035, 1);

 
INSERT INTO `uu_task` (`id`, `type`, `name`, `gold`, `exp`, `sort`, `is_display`) VALUES
(1, 1, '注册账号',     10,10, 50, 1),
(2, 1, '完善基本资料', 2, 2, 50, 1),
(3, 1, '上传头像',     2, 2, 50, 1),
(4, 1, '绑定新浪微博', 1, 5, 50, 1),
(5, 1, '绑定QQ账号',   1, 5, 50, 1),
(6, 1, '绑定微信',     1, 5, 50, 1),
(7, 2, '违法举报',     5, 20, 30, 1),
(8, 2, '发表问题',     5, 10, 50, 1),
(9, 2, '发表回复',     2, 5, 50, 1),
(10, 2, '发表文章',    5, 5, 50, 1),
(11, 2, '答案被采纳',  10,20,50, 1),
(12, 2, '采纳答案',    2, 5, 50, 1),
(13, 2, '每日首次登陆',2, 5, 60, 1);

 

INSERT INTO `uu_url` (`id`, `alias`, `locator`, `rule_key`, `rule_var`, `is_display`) VALUES
(1, 'intro/view(alias)', 'intro/{alias}', '/^intro\\/(\\w+)$/', 'intro/view?alias=:1', 1),
(2, 'u/view(uid)', 'u/{uid}', 'u/:uid\\d', 'u/view', 1),
(3, 'question/view(id)', 'question/{id}', 'question/:id\\d', 'question/view', 1);