config.sample.php 17 KB

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