config.sample.php 16 KB

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