<?php
$db->query("ALTER TABLE `{$pre}hack` ADD `class1` VARCHAR( 30 ) NOT NULL ,ADD `class2` VARCHAR( 30 ) NOT NULL ");
$db->query("ALTER TABLE `{$pre}hack` ADD `list` VARCHAR( 10 ) NOT NULL");
$db->query("ALTER TABLE `{$pre}hack` ADD `linkname` TEXT NOT NULL");
$db->query("ALTER TABLE `{$pre}hack` ADD `isbiz` TINYINT( 1 ) NOT NULL");
$db->query("ALTER TABLE `{$pre}hack` CHANGE `list` `list` INT( 10 ) NOT NULL");

$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('set_comsort_index', '網站首頁設置', 0, '', '', '', '', '', 'index.php?lfj=channel&job=edit&id=1', '', 19, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('article_module', '網站內容模型管理', 0, '', '', '', 'admin/article_module.php\r\nadmin/article_module/', '', 'index.php?lfj=article_module&job=list', '', 14, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('form_module', '萬能表單模型管理', 0, '', '', '', '/admin/form_module.php\r\n/admin/form_content.php\r\n/admin/template/form_content/\r\n/admin/template/form_module/\r\n/php168/form_tpl/\r\n/do/form.php\r\n/do/bencandy_form.php\r\n/do/list_form.php\r\n/member/form.php', '', 'index.php?lfj=form_module&job=list', '', 13, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('comment_set', '內容評論設置', 0, '', '', '', '/admin/comment.php', '', 'index.php?lfj=comment&job=set', '', 12, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('setmakeALLhtml_set', '網站靜態頁全局設置', 0, '', '', '', '', '', 'index.php?lfj=html&job=set', '', 11, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('module_list', '整合P8其它系統設置', 0, '', '', '', '', '', 'index.php?lfj=module&job=list', '', 10, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('blend_set', '整合外部論壇系統設置', 0, '', '', '', '', '', 'index.php?lfj=blend&job=set', '', 9, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('cache_cache', '更新緩存/數據修復', 0, '', '', '', '/admin/cache.php', '', 'index.php?lfj=cache&job=cache', '', 15, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('channel_list', '頻道獨立頁管理', 0, '', '', '', '', '', 'index.php?lfj=channel&job=list', '', 6, '', 0, 'base', '網站常用*-*能管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('guestbook_list', '留言本管理', 0, '', '', '', 'admin/template/guestbook/\r\nadmin/guestbook.php\r\ndo/guestbook.php', '{$pre}guestbook', 'index.php?lfj=guestbook&job=list', '', 7, '', 0, 'base', '網站常用*-*能管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('vote_list', '投票系統', 0, '', '', '', '', '', 'index.php?lfj=vote&job=list', '', 5, '', 0, 'base', '網站常用*-*能管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('mysql_sql', '數據庫管理', 0, '', '', '', '', '', 'index.php?lfj=mysql&job=sql', '', 6, '', 0, 'base', '數據庫工具')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('artic_addpic', '快速發圖', 0, '', '', '', '', '', 'index.php?lfj=artic&job=addpic', '', 4, '', 0, 'article', '內容/欄目/評論管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('company_list', '企業資料管理', 0, '', '', '', '', '', 'index.php?lfj=company&job=list', '', 8, '', 0, 'member', '用戶管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('member_addmember', '添加新用戶', 0, '', '', '', '', '', 'index.php?lfj=member&job=addmember', '', 6, '', 0, 'member', '用戶管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('regfield', '用戶資料字段管理', 0, '', '', '', '', '', 'index.php?lfj=regfield&job=editsort', '', 7, '', 0, 'member', '用戶管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('report_list', '內容好壞舉報管理', 0, '', '', '', '', '', 'index.php?lfj=report&job=list', '', 8, '', 0, 'other', '內容模型插件*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('limitword_replace', '字符替換', 0, '', '', '', '', '', 'index.php?lfj=limitword&job=replace', '', 6, '', 0, 'other', '內容模型插件*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('copyfrom_list', '來源地址管理', 0, '', '', '', '', '', 'index.php?lfj=copyfrom&job=list', '', 7, '', 0, 'other', '內容模型插件*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('googlemap_makemap', '百度新聞協議/google協議', 0, '', '', '', '', '', 'index.php?lfj=googlemap&job=makemap', '', 3, '', 0, 'other', '內容模型插件*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('ad_listAdPlace', '普通廣告位管理', 0, '', '', '', '', '', 'index.php?lfj=ad&job=listad', '', 9, '', 0, 'other', '廣告模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('ad_listuserad', '普通廣告銷售管理', 0, '', '', '', '', '', 'index.php?lfj=ad&job=listuserad', '', 8, '', 0, 'other', '廣告模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('sellad', '競價廣告位管理', 0, '', '', '', '', '', 'index.php?lfj=sellad&job=listad', '', 7, '', 0, 'other', '廣告模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('sellad_listuser', '競價廣告銷售管理', 0, '', '', '', '', '', 'index.php?lfj=sellad&job=listuser', '', 6, '', 0, 'other', '廣告模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('alipay_set', '在線充值支付管理', 0, '', '', '', '', '', 'index.php?lfj=alipay&job=list', '', 9, '', 0, 'other', '電子商務管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('shoporder', '商城訂單管理', 0, '', '', '', '', '', 'index.php?lfj=shoporder&job=list', '', 8, '', 0, 'other', '電子商務管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('template_list', '模板設置', 0, '', '', '', '', '', 'index.php?lfj=template&job=list', '', 1, '', 0, 'other', '風格/模板設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('style_editstyle', '風格管理', 0, '', '', '', '', '', 'index.php?lfj=style&job=edittpl', '', 2, '', 0, 'other', '風格/模板設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('exam_sort', '問卷分類管理', 0, '', '', '', '', '', 'index.php?lfj=exam_sort&job=listsort', '', 4, '', 0, 'other', '問卷調查模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('exam_title', '問卷題庫管理', 0, '', '', '', '', '', 'index.php?lfj=exam_title&job=list', '', 3, '', 0, 'other', '問卷調查模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('exam_form', '問卷表單管理', 0, '', '', '', '', '', 'index.php?lfj=exam_form&job=list', '', 2, '', 0, 'other', '問卷調查模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('exam_read', '問卷表單批*-*', 0, '', '', '', '', '', 'index.php?lfj=exam_read&job=list', '', 1, '', 0, 'other', '問卷調查模塊')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('gather_copysina', '新浪新聞采集', 0, '', '', '', '', '', 'index.php?lfj=gather&job=copysina', '', 3, '', 0, 'other', '數據采集器')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('gather_list', '采集規則管理', 0, '', '', '', '', '', 'index.php?lfj=gather&job=list', '', 2, '', 0, 'other', '數據采集器')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('gather_list_sort', '采集規則分類管理', 0, '', '', '', '', '', 'index.php?lfj=gather_sort&job=list', '', 1, '', 0, 'other', '數據采集器')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('js_list', 'JS內容調用', 0, '', '', '', '', '', 'index.php?lfj=js&job=list', '', 9, '', 0, 'other', '其它*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('propagandize_list', '推廣賺取積分*-*能', 0, '', '', '', '', '', 'index.php?lfj=propagandize&job=list', '', 8, '', 0, 'other', '其它*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('jfadmin_mod', '積分介紹管理', 0, '', '', '', '', '', 'index.php?lfj=jfadmin&job=listjf', '', 7, '', 0, 'other', '其它*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('attachment_list', '附件管理', 0, '', '', '', '', '', 'index.php?lfj=attachment&job=list', '', 6, '', 0, 'other', '其它*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('area_list', '地區管理', 0, '', '', '', '', '', 'index.php?lfj=area&job=list', '', 5, '', 0, 'other', '其它*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('upgrade_ol', '系統在線升級', 0, '', '', '', '', '', 'index.php?lfj=upgrade&job=get', '', 4, '', 0, 'other', '其它*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('mail_send', '郵件群發', 0, '', '', '', '', '', 'index.php?lfj=mail&job=send', '', 2, '', 0, 'other', '消息/郵件群發')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('message_send', '站內消息群發', 0, '', '', '', '', '', 'index.php?lfj=message&job=send', '', 3, '', 0, 'other', '消息/郵件群發')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('sms_send', '手機短信群發', 0, '', '', '', '', '', 'index.php?lfj=sms&job=send', '', 1, '', 0, 'other', '消息/郵件群發')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('code_code', 'PHPWIND營銷模塊', 0, '', '', '', '', '', 'index.php?lfj=code&job=code', '', 2, '', 0, 'other', '站外*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('cnzz_set', 'CNZZ流量統計', 0, '', '', '', '', '', 'index.php?lfj=cnzz&job=ask', '', 3, '', 0, 'other', '站外*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('center_config', '網站全局參數設置', 0, '', '', '', '/admin/template/center/config.htm', '', 'index.php?lfj=center&job=config', '', 20, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('article_more_config', '內容模型基本設置', 0, '', '', '', '/admin/article_more.php', '', 'index.php?lfj=article_more&job=config', '', 16, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('hack_list', '插件管理中心', 0, '', '', '', '/admin/hack.php\r\n/admin/template/hack/list.htm', '', 'index.php?lfj=hack&job=list', '', 8, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('menu_list', '網站頭部導航菜單設置', 0, '', '', '', '', '', 'index.php?lfj=guidemenu&job=list', '', 5, '', 0, 'base', '菜單管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('adminmenu_list', '管理員後台菜單設置', 0, '', '', '', '', '', 'index.php?lfj=adminguidemenu&job=list', '', 4, '', 0, 'base', '菜單管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('membermenu_list', '會員中心菜單設置', 0, '', '', '', '', '', 'index.php?lfj=memberguidemenu&job=list', '', 3, '', 0, 'base', '菜單管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('alonepage_list', '單篇文章獨立頁面管理', 0, '', '', '', '', '', 'index.php?lfj=alonepage&job=list', '', 8, '', 0, 'base', '網站常用*-*能管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('friendlink_mod', '友情鏈接管理', 0, '', '', '', '', '', 'index.php?lfj=friendlink&job=list', '', 9, '', 0, 'base', '網站常用*-*能管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('mysql_out', '備份數據庫', 0, '', '', '', '', '', 'index.php?lfj=mysql&job=out', '', 9, '', 0, 'base', '數據庫工具')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('mysql_into', '數據庫還原', 0, '', '', '', '', '', 'index.php?lfj=mysql&job=into', '', 8, '', 0, 'base', '數據庫工具')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('mysql_del', '刪除備份數據', 0, '', '', '', '', '', 'index.php?lfj=mysql&job=del', '', 7, '', 0, 'base', '數據庫工具')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('sort_listsort', '欄目管理', 0, '', '', '', '', '', 'index.php?lfj=sort&job=listsort&only=&mid=', '', 9, '</a><A HREF=\'index.php?lfj=sort&job=listsort&only=&mid=\' target=main>欄目管理</A> | <A HREF=\'index.php?lfj=sort&job=addsort&only=&mid=\' target=main>創建欄目</A> <a>', 0, 'article', '內容/欄目/評論管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('artic_listartic', '內容管理', 0, '', '', '', '', '', 'index.php?lfj=artic&job=listartic&only=1&mid=', '', 8, '內容管理<font color=#959595>(修改、刪除等)</font>', 0, 'article', '內容/欄目/評論管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('comment_list', '評論管理', 0, '', '', '', '', '', 'index.php?lfj=comment&job=list', '', 7, '', 0, 'article', '內容/欄目/評論管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('form_content', '萬能表單內容管理', 0, '', '', '', '', '', 'index.php?lfj=form_content&job=list', '', 6, '', 0, 'article', '內容/欄目/評論管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('artic_postnew', '發表文章', 0, '', '', '', '', '', 'index.php?lfj=post&job=postnew&only=1&mid=', '', 5, '發表<font color=#959595>(文章、圖片等)</font>', 0, 'article', '內容/欄目/評論管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('index_label', '首頁標簽設置', 0, '', '', '', '', '', '../index.php?&ch=1&chtype=0&jobs=show', '', 4, '', 0, 'article', '更新標簽內容')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('s_list_fid', '欄目/內容頁標簽設置', 0, '', '', '', '', '', 'index.php?lfj=channel&job=list_fid', '', 3, '', 0, 'article', '更新標簽內容')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('up_splist_fid', '專題頁標簽設置', 0, '', '', '', '', '', 'index.php?lfj=special&job=list&onlyshow=label', '', 2, '', 0, 'article', '更新標簽內容')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('makeindexhtml_make', '主頁靜態', 0, '', '', '', '', '', '../index.php?&ch=1&MakeIndex=1', '', 5, '</a><a href=\'../index.php?&ch=1&MakeIndex=1\' target=\'_blank\' onclick=\\\"return confirm(\'你確實要把首頁生成靜態嗎?生成靜態後,如有更改其它相關設置,需要重新點擊生成一次靜態.才可以看到效果.\')\");\\\">主頁靜態</a> | <A HREF=\'index.php?lfj=center&job=delindex\' target=main>刪除</A><a>', 0, 'article', '靜態頁生成管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('makehtml_make', '欄目內容靜態頁管理', 0, '', '', '', '', '', 'index.php?lfj=html&job=list', '', 4, '', 0, 'article', '靜態頁生成管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('spmakehtml_make', '專題靜態頁管理', 0, '', '', '', '', '', 'index.php?lfj=html&job=listsp', '', 3, '', 0, 'article', '靜態頁生成管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('setmakehtml_set', '靜態網頁樣式設置', 0, '', '', '', '', '', 'index.php?lfj=html&job=set', '', 2, '', 0, 'article', '靜態頁生成管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('special_list', '專題管理', 0, '', '', '', '', '', 'index.php?lfj=special&job=list', '', 2, '', 0, 'article', '專題管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('spsort_listsort', '專題分類管理', 0, '', '', '', '', '', 'index.php?lfj=spsort&job=listsort', '', 1, '', 0, 'article', '專題管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('member_list', '用戶資料管理', 0, '', '', '', '', '', 'index.php?lfj=member&job=list', '', 9, '', 0, 'member', '用戶管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('article_group_config', '內容模型權限設置', 0, '', '', '', '', '', 'index.php?lfj=article_group&job=list', '', 6, '', 0, 'member', '權限管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('group_list', '前台權限管理', 0, '', '', '', '', '', 'index.php?lfj=group&job=list', '', 5, '', 0, 'member', '權限管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('group_list_admin', '後台權限管理', 0, '', '', '', '', '', 'index.php?lfj=group&job=list_admin', '', 4, '', 0, 'member', '權限管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('group_add', '添加用戶組', 0, '', '', '', '', '', 'index.php?lfj=group&job=add', '', 3, '', 0, 'member', '權限管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('getkeyword_do', '關鍵字管理', 0, '', '', '', '', '', 'index.php?lfj=getkeyword&job=list', '', 4, '</a><A HREF=\'index.php?lfj=getkeyword&job=list\' target=\'main\'>關鍵字管理</A> | <A HREF=\'index.php?lfj=getkeyword&job=get\' target=\'main\'>提取關鍵字</A><a>', 0, 'other', '內容模型插件*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('limitword_list', '不良詞語過濾', 0, '', '', '', '', '', 'index.php?lfj=limitword&job=list', '', 9, '', 0, 'other', '內容模型插件*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('article_more_avoidgather', '防采集設置', 0, '', '', '', '', '', 'index.php?lfj=article_more&job=avoidgather', '', 5, '', 1, 'other', '內容模型插件*-*能')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('moneycard_make', '點卡充值管理', 0, '', '', '', '', '', 'index.php?lfj=moneycard&job=make', '', 7, '', 1, 'other', '電子商務管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('logs_login_logs', '後台登錄日志', 0, '', '', '', '', '', 'index.php?lfj=logs&job=login_logs', '', 2, '', 0, 'other', '日志管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('logs_admin_do_logs', '後台操作日志', 0, '', '', '', '', '', 'index.php?lfj=logs&job=admin_logs', '', 1, '', 0, 'other', '日志管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('user_reg', '會員注冊設置', 0, '', '', '', '/admin/template/center/user_reg.htm', '', 'index.php?lfj=center&job=user_reg', '', 18, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('center_cache', '高速緩存設置', 0, '', '', '', '/admin/template/center/cache.htm', '', 'index.php?lfj=center&job=cache', '', 17, '', 0, 'base', '核心設置')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('fu_sort_power', '輔欄目管理', 0, '', '', '', '', '', 'index.php?lfj=fu_sort&job=listsort', '', 0, '', 0, 'article', '輔欄目管理')");
$db->query("INSERT INTO `{$pre}hack` (`keywords`, `name`, `isclose`, `author`, `config`, `htmlcode`, `hackfile`, `hacksqltable`, `adminurl`, `about`, `list`, `linkname`, `isbiz`, `class1`, `class2`) VALUES ('fu_artic_power', '輔欄目內容管理', 0, '', '', '', '', '', 'index.php?lfj=fu_artic&job=listartic', '', 0, '', 0, 'article', '輔欄目管理')");

write_hackmenu_cache();
function write_hackmenu_cache(){
	global $db,$pre;
	$show="<?php\r\n";
	$query = $db->query("SELECT * FROM {$pre}hack ORDER BY list DESC");
	while($rs = $db->fetch_array($query)){
		if(!$rs[adminurl]||!$rs[class2]||!$rs[class1]){
			continue;
		}
		$rs[adminurl]=addslashes($rs[adminurl]);
		$rs[linkname] && $rs[name]=$rs[linkname];
		$rs[name]=addslashes($rs[name]);
		$s="\r\n\$menu_partDB['{$rs[class1]}'][]='{$rs[class2]}';\r\n\$menudb['{$rs[class2]}']['{$rs[name]}']=array('power'=>'{$rs[keywords]}','link'=>'{$rs[adminurl]}');\r\n";
		if($rs[isbiz]){
			$show.="\r\nif(\$IS_BIZPhp168||\$GLOBALS[IS_BIZPhp168]){".$s."}\r\n";
		}else{
			$show.=$s;
		}
	}
	write_file(PHP168_PATH."php168/hack.php",$show.'?>');
}

?>