config.sample.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. <?php
  2. #目录设置,不能更改
  3. require_once __DIR__."/dir.php";
  4. #域名设置
  5. define(WWW_DOMAIN_NAME,"sg.wikipali.org");
  6. define(RPC_DOMAIN_NAME,"rpc.wikipali.org");
  7. /*
  8. 电子邮件设置
  9. PHPMailer
  10. */
  11. define("Email", [
  12. "Host"=>"smtp.gmail.com",//Set the SMTP server to send through
  13. "SMTPAuth"=>true,//Enable SMTP authentication
  14. "Username"=>'your@gmail.com',//SMTP username
  15. "Password"=>'your_password',//SMTP password
  16. "Port"=>465,//TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
  17. "From"=>"your@gmail.com",
  18. "Sender"=>"sender"
  19. ]);
  20. /*
  21. 数据库设置
  22. */
  23. define("Database",[
  24. "type"=>"pgsql",
  25. "port"=>5432,
  26. "name"=>"mint",
  27. "sslmode" => "disable",
  28. "user" => "postgres",
  29. "password" => "123456"
  30. ]);
  31. define("_DB_ENGIN_", Database["type"]);
  32. define("_DB_HOST_", Database["server"]);
  33. define("_DB_PORT_", Database["port"]);
  34. define("_DB_NAME_", Database["name"]);
  35. define("_DB_USERNAME_", Database["user"]);
  36. define("_DB_PASSWORD_", Database["password"]);
  37. /*
  38. Redis 设置,
  39. 使用集群
  40. */
  41. define("Redis",[
  42. "hosts" => ["127.0.0.1:6376", "127.0.0.1:6377", "127.0.0.1:6378"],
  43. "password" => "",
  44. "db" => 0,
  45. "prefix"=>"aaa://"
  46. ]);
  47. /*
  48. 数据表
  49. */
  50. //语料库数据表 pali canon db file
  51. /*
  52. 巴利语料模版表
  53. 运行app/install/db_insert_templet.php 刷库
  54. */
  55. #sqlite
  56. //define("_FILE_DB_PALICANON_TEMPLET_","sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/templet.db3");
  57. //define("_TABLE_PALICANON_TEMPLET_","wbw_templet");
  58. #pg
  59. define("_FILE_DB_PALICANON_TEMPLET_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  60. define("_TABLE_PALICANON_TEMPLET_","wbw_templet");
  61. /*
  62. 标题资源表
  63. app/install/db_update_toc.php 刷库
  64. */
  65. #sqlite
  66. //define("_FILE_DB_RESRES_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/res.db3");
  67. //define("_TABLE_RES_INDEX_","res_index");
  68. #pg
  69. define("_FILE_DB_RESRES_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  70. define("_TABLE_RES_INDEX_","res_index");
  71. /*
  72. 巴利语料段落表
  73. 刷库 app/install/db_insert_palitext.php
  74. 更新 app/install/db_update_palitext.php
  75. */
  76. #sqlite
  77. //define("_FILE_DB_PALITEXT_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_text.db3");
  78. //define("_TABLE_PALI_TEXT_","pali_text");
  79. //define("_TABLE_PALI_BOOK_NAME_","books");
  80. #pg
  81. define("_FILE_DB_PALITEXT_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  82. define("_TABLE_PALI_TEXT_","pali_text");
  83. define("_TABLE_PALI_BOOK_NAME_","books");
  84. #单词表部分
  85. /*
  86. 以书为单位的单词汇总表
  87. 填充 /app/install/db_insert_bookword_from_csv.php
  88. */
  89. //sqlite
  90. //define("_FILE_DB_BOOK_WORD_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/bookword.db3");
  91. //define("_TABLE_BOOK_WORD_", "bookword");
  92. //PostgreSQL
  93. define("_FILE_DB_BOOK_WORD_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  94. define("_TABLE_BOOK_WORD_", "bookword");
  95. /*
  96. 单词索引
  97. /app/install/db_insert_word_from_csv.php
  98. /app/admin/word_index_weight_refresh.php
  99. */
  100. //sqlite
  101. //define("_FILE_DB_PALI_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/paliindex.db3");
  102. //define("_TABLE_WORD_", "word");
  103. define("_FILE_DB_PALI_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  104. define("_TABLE_WORD_", "word");
  105. /*
  106. 92万词
  107. /app/install/db_insert_wordindex_from_csv.php
  108. */
  109. //sqlite
  110. //define("_FILE_DB_WORD_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/wordindex.db3");
  111. //define("_TABLE_WORD_INDEX_", "wordindex");
  112. //PostgreSQL
  113. define("_FILE_DB_WORD_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  114. define("_TABLE_WORD_INDEX_", "wordindex");
  115. //单词索引=92万词+单词索引
  116. //sqlite
  117. //define("_FILE_DB_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/index.db3");
  118. //PostgreSQL
  119. define("_FILE_DB_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  120. //黑体字数据表
  121. //sqlite
  122. define("_FILE_DB_BOLD_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/bold.db3");
  123. define("_TABLE_WORD_BOLD_", "bold");
  124. //PostgreSQL
  125. //define("_FILE_DB_BOLD_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  126. //define("_TABLE_WORD_BOLD_", "bold");
  127. /*
  128. 单词分析表
  129. 数据迁移: php /deploy/migaration/word_statistics.php
  130. */
  131. //sqlite
  132. //define("_FILE_DB_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/word_statistics.db3");
  133. //define("_TABLE_WORD_STATISTICS_", "word_statistics");
  134. //PostgreSQL
  135. define("_FILE_DB_STATISTICS_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  136. define("_TABLE_WORD_STATISTICS_", "word_statistics");
  137. define("_SRC_DB_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/word_statistics.db3");
  138. define("_SRC_TABLE_WORD_STATISTICS_", "word");
  139. /*
  140. 巴利句子表
  141. 数据迁移: php ./deploy/migaration/20211125155700_pali_sent_org.php
  142. 数据迁移: php ./deploy/migaration/20211125165700-pali_sent-upgrade.php
  143. 数据迁移: php ./deploy/migaration/20211126220400-pali_sent_index-upgrade.php
  144. */
  145. //sqlite
  146. //define("_FILE_DB_PALI_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sent1.db3");
  147. //define("_TABLE_PALI_SENT_", "pali_sent");
  148. //define("_TABLE_PALI_SENT_ORG_", "pali_sent_org");
  149. //define("_TABLE_PALI_SENT_INDEX_", "pali_sent_index");
  150. //PostgreSQL
  151. define("_FILE_DB_PALI_SENTENCE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  152. define("_TABLE_PALI_SENT_", "pali_sent");
  153. define("_TABLE_PALI_SENT_ORG_", "pali_sent_org");
  154. define("_TABLE_PALI_SENT_INDEX_", "pali_sent_index");
  155. define("_SRC_DB_PALI_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sent1.db3");
  156. /*
  157. 相似句
  158. 数据迁移
  159. php ./deploy/migaration/20211127214800_sent_sim.php
  160. php ./deploy/migaration/20211127214900-sent_sim_index.php
  161. redis:
  162. php ./app/pali_sent/redis_upgrade_pali_sent.php
  163. */
  164. //sqlite
  165. //define("_FILE_DB_PALI_SENTENCE_SIM_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sim.db3");
  166. //define("_TABLE_SENT_SIM_", "sent_sim");
  167. //define("_TABLE_SENT_SIM_INDEX_", "sent_sim_index");
  168. //PostgreSQL
  169. define("_FILE_DB_PALI_SENTENCE_SIM_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  170. define("_TABLE_SENT_SIM_", "sent_sim");
  171. define("_TABLE_SENT_SIM_INDEX_", "sent_sim_index");
  172. define("_SRC_DB_PALI_SENTENCE_SIM_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sim.db3");
  173. /*
  174. 完成度
  175. 数据迁移
  176. php ./app/upgrade/upgrade_pali_toc.php
  177. */
  178. //sqlite
  179. //define("_FILE_DB_PALI_TOC_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_toc.db3");
  180. //define("_TABLE_PROGRESS_", "progress");
  181. //define("_TABLE_PROGRESS_CHAPTER_", "progress_chapter");
  182. //PostgreSQL
  183. define("_FILE_DB_PALI_TOC_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  184. define("_TABLE_PROGRESS_", "progress");
  185. define("_TABLE_PROGRESS_CHAPTER_", "progress_chapter");
  186. //页码对应
  187. //sqlite
  188. define("_FILE_DB_PAGE_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pagemap.db3");
  189. //PostgreSQL
  190. //define("_FILE_DB_PAGE_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  191. # 字典数据表 全部存入redis
  192. #巴缅字典
  193. //define("_DICT_DB_PM_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  194. define("_DICT_DB_PM_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/3rd/pm.db");
  195. define("_TABLE_DICT_PM_", "dict");
  196. #系统规则
  197. //define("_DICT_DB_REGULAR_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  198. define("_DICT_DB_REGULAR_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/sys_regular.db");
  199. define("_TABLE_DICT_REGULAR_", "dict");
  200. #系统不规则
  201. //define("_DICT_DB_IRREGULAR_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  202. define("_DICT_DB_IRREGULAR_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/sys_irregular.db");
  203. define("_TABLE_DICT_IRREGULAR_", "dict");
  204. #自动compone
  205. //define("_DICT_DB_COMP_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  206. define("_DICT_DB_COMP_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/comp.db");
  207. define("_TABLE_DICT_COMP_", "dict");
  208. #参考字典
  209. //define("_FILE_DB_REF_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  210. define("_FILE_DB_REF_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/ref.db");
  211. define("_TABLE_DICT_REF_", "dict");
  212. define("_TABLE_DICT_REF_NAME_LIST_", "info");
  213. #参考字典索引
  214. //define("_FILE_DB_REF_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  215. define("_FILE_DB_REF_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/ref1.db");
  216. define("_TABLE_REF_INDEX_", "dict");
  217. #为了切分复合词 使用的词头表
  218. //define("_FILE_DB_PART_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  219. define("_FILE_DB_PART_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/part.db3");
  220. define("_TABLE_PART_", "part");
  221. # 用户数据表
  222. //读写频繁
  223. # 逐词解析表
  224. #sqlite
  225. define("_FILE_DB_USER_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/user_wbw.db3");
  226. define("_TABLE_SRC_USER_WBW_", "wbw");
  227. define("_TABLE_SRC_USER_WBW_BLOCK_", "wbw_block");
  228. # 译文
  229. #sqlite
  230. define("_FILE_DB_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/user/sentence.db3");
  231. define("_TABLE_SENTENCE_", "sentence");
  232. define("_TABLE_SENTENCE_BLOCK_", "sent_block");
  233. define("_TABLE_SENTENCE_PR_", "sent_pr");
  234. # 译文编辑历史
  235. #sqlite
  236. define("_FILE_DB_USER_SENTENCE_HISTORAY_", "sqlite:" . __DIR__ . "/../tmp/user/usent_historay.db3");
  237. define("_TABLE_SENTENCE_HISTORAY_", "sent_historay");
  238. # 逐词解析字典
  239. # sqlite
  240. define("_FILE_DB_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/wbw.db3");
  241. define("_TABLE_DICT_WBW_", "wbw");
  242. define("_TABLE_DICT_WBW_INDEX_", "wbw_index");
  243. //写入频繁 读取不频繁
  244. # 用户行为记录
  245. //define("_FILE_DB_PAGE_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  246. define("_FILE_DB_USER_ACTIVE_", "sqlite:" . __DIR__ . "/../tmp/user/user_active.db3");
  247. //define("_FILE_DB_USER_ACTIVE_LOG_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  248. define("_FILE_DB_USER_ACTIVE_LOG_", "sqlite:" . __DIR__ . "/../tmp/user/user_active_log.db3");
  249. //读取频繁 写入不频繁
  250. # 用户账号
  251. //define("_FILE_DB_USERINFO_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  252. define("_FILE_DB_USERINFO_", "sqlite:" . __DIR__ . "/../tmp/user/userinfo.db3");
  253. # 版本风格
  254. //define("_FILE_DB_CHANNAL_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  255. define("_FILE_DB_CHANNAL_", "sqlite:" . __DIR__ . "/../tmp/user/channal.db3");
  256. # 文章 文集
  257. //define("_FILE_DB_USER_ARTICLE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  258. define("_FILE_DB_USER_ARTICLE_", "sqlite:" . __DIR__ . "/../tmp/user/article.db3");
  259. # 术语
  260. //define("_FILE_DB_TERM_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  261. define("_FILE_DB_TERM_", "sqlite:" . __DIR__ . "/../tmp/user/dhammaterm.db");
  262. # 协作
  263. //define("_FILE_DB_USER_SHARE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  264. define("_FILE_DB_USER_SHARE_", "sqlite:" . __DIR__ . "/../tmp/user/share.db3");
  265. # 工作组
  266. //define("_FILE_DB_GROUP_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  267. define("_FILE_DB_GROUP_", "sqlite:" . __DIR__ . "/../tmp/user/group.db3");
  268. # 逐词解析文件索引
  269. //define("_FILE_DB_FILEINDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  270. define("_FILE_DB_FILEINDEX_", "sqlite:" . __DIR__ . "/../tmp/user/fileindex.db");
  271. # 课程
  272. //define("_FILE_DB_COURSE_", "pgsql:host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  273. define("_FILE_DB_COURSE_", "sqlite:" . __DIR__ . "/../tmp/user/course.db3");
  274. define("_TABLE_COURSE_","course");
  275. # 用户自定义书
  276. //define("_FILE_DB_USER_CUSTOM_BOOK_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  277. define("_FILE_DB_USER_CUSTOM_BOOK_", "sqlite:" . __DIR__ . "/../tmp/user/custom_book.db3");
  278. # 逐词译和译文编辑消息
  279. //define("_FILE_DB_MESSAGE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  280. define("_FILE_DB_MESSAGE_", "sqlite:" . __DIR__ . "/../tmp/user/message.db");
  281. #点赞
  282. //define("_FILE_DB_LIKE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  283. define("_FILE_DB_LIKE_", "sqlite:" . __DIR__ . "/../tmp/user/like.db3");
  284. //很少使用
  285. # 网站设置
  286. //define("_FILE_DB_HOSTSETTING_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  287. define("_FILE_DB_HOSTSETTING_", "sqlite:" . __DIR__ . "/../tmp/user/hostsetting.db3");
  288. # 用户字典统计数据
  289. //define("_FILE_DB_USER_DICT_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  290. define("_FILE_DB_USER_DICT_", "sqlite:" . __DIR__ . "/../tmp/user/udict.db3");
  291. # 用户图片数据 尚未启用
  292. //define("_FILE_DB_MEDIA_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  293. define("_FILE_DB_MEDIA_", "sqlite:" . __DIR__ . "/../tmp/user/media.db3");
  294. # 评论 尚未启用
  295. //define("_FILE_DB_COMMENTS_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  296. define("_FILE_DB_COMMENTS_", "sqlite:" . __DIR__ . "/../tmp/user/comments.db3");
  297. //define("_FILE_DB_USER_STATISTICS_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  298. define("_FILE_DB_USER_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/user/statistics.db3");
  299. #权限管理 casbin使用
  300. //define("_FILE_DB_USER_RBAC_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
  301. define("_FILE_DB_USER_RBAC_", __DIR__ . "/../tmp/user/rbac.db3");
  302. # 全文搜索
  303. define("_TABLE_FTS_", "fts_texts");
  304. ?>