path.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php
  2. # 目录
  3. define("_DIR_APPDATA_", __DIR__ . "/../tmp/appdata");
  4. define("_DIR_PALICANON_", __DIR__ . "/../tmp/appdata/palicanon");
  5. define("_DIR_PALICANON_TEMPLET_", __DIR__ . "/../tmp/appdata/palicanon/templet");
  6. define("_DIR_PALICANON_PALITEXT_", __DIR__ . "/../tmp/appdata/palicanon/pali_text");
  7. define("_DIR_PALICANON_WBW_", __DIR__ . "/../tmp/appdata/palicanon/wbw");
  8. define("_DIR_PALICANON_TRAN_", __DIR__ . "/../tmp/appdata/palicanon/translate");
  9. define("_DIR_IMAGES_", __DIR__ . "/../tmp/images");
  10. define("_DIR_IMAGES_ARTICLE_", __DIR__ . "/../tmp/images/article");
  11. define("_DIR_IMAGES_COLLECTION_", __DIR__ . "/../tmp/images/collection");
  12. define("_DIR_IMAGES_COURSE_", __DIR__ . "/../tmp/images/course");
  13. define("_DIR_IMAGES_COURSE_A_", "../../tmp/images/course");
  14. define("_DIR_IMAGES_LESSON_", __DIR__ . "/../tmp/images/lesson");
  15. //语料库
  16. define("_DIR_CSV_PALI_CANON_WORD_", __DIR__ . "/../paliword/book");
  17. define("_DIR_CSV_PALI_CANON_WORD_INDEX_", __DIR__ . "/../paliword/index");
  18. define("_DIR_PALI_CSV_", __DIR__ . "/../tmp/palicsv");
  19. define("_DIR_LOG_", __DIR__ . "/../tmp/log");
  20. define("_DIR_LOG_APP_", __DIR__ . "/../tmp/log/app.log");
  21. define("_DIR_TEMP_", __DIR__ . "/../tmp/temp");
  22. define("_DIR_TEMP_DICT_TEXT_", __DIR__ . "/../tmp/dict_text");
  23. define("_DIR_TMP_", __DIR__ . "/../tmp");
  24. //dictionary
  25. define("_DIR_DICT_", __DIR__ . "/../tmp/appdata/dict");
  26. define("_DIR_DICT_SYSTEM_", __DIR__ . "/../tmp/appdata/dict/system");
  27. define("_DIR_DICT_3RD_", __DIR__ . "/../tmp/appdata/dict/3rd");
  28. define("_DIR_DICT_REF_", __DIR__ . "/../tmp/appdata/dict/ref");
  29. define("_DIR_FONT_", __DIR__ . "/../font");
  30. define("_DIR_PALI_HTML_", __DIR__ . "/../palihtml");
  31. define("_DIR_DICT_TEXT_", __DIR__ . "/../dicttext");
  32. define("_DIR_PALI_TITLE_", __DIR__ . "/../pali_title");
  33. define("_DIR_APP_", __DIR__ . "/../app");
  34. define("_DIR_LANGUAGE_", __DIR__ . "/../app/public/lang");
  35. define("_DIR_BOOK_INDEX_", __DIR__ . "/../app/public/book_index");
  36. /*user data*/
  37. define("_DIR_USER_BASE_", __DIR__ . "/../tmp/user");
  38. define("_DIR_USER_DOC_", __DIR__ . "/../tmp/user_doc");
  39. define("_DIR_USER_IMG_", __DIR__ . "/../tmp/user/media/3");
  40. define("_DIR_USER_IMG_LINK_", "../../tmp/user/media/3");
  41. define("_DIR_MYDOCUMENT_", "/my_document");
  42. #数据库
  43. # 数据库基本参数
  44. define("_DB_ENGIN_", "sqlite");
  45. define("_DB_HOST_", "localhost");
  46. define("_DB_PORT_", "5432");
  47. define("_DB_USERNAME_", "");
  48. define("_DB_PASSWORD_", "");
  49. define("_DB_NAME_", "mint");
  50. //语料库数据表 pali canon db file
  51. //巴利语料模版表
  52. define("_FILE_DB_PALICANON_TEMPLET_", __DIR__ . "/../tmp/appdata/palicanon/templet.db3");
  53. //标题资源表
  54. define("_FILE_DB_RESRES_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/res.db3");
  55. //巴利语料段落表
  56. define("_FILE_DB_PALITEXT_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_text.db3");
  57. //单词分析表
  58. define("_FILE_DB_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/word_statistics.db3");
  59. //巴利句子表
  60. define("_FILE_DB_PALI_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sent1.db3");
  61. //相似句
  62. define("_FILE_DB_PALI_SENTENCE_SIM_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sim.db3");
  63. //标题表
  64. define("_FILE_DB_PALI_TOC_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_toc.db3");
  65. //单词索引=92万词+单词索引
  66. define("_FILE_DB_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/index.db3");
  67. //92万词
  68. define("_FILE_DB_WORD_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/wordindex.db3");
  69. //单词索引
  70. define("_FILE_DB_PALI_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/paliindex.db3");
  71. //页码对应
  72. define("_FILE_DB_PAGE_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pagemap.db3");
  73. //以书为单位的单词汇总表
  74. define("_FILE_DB_BOOK_WORD_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/bookword.db3");
  75. define("_TABLE_BOOK_WORD_", "bookword");
  76. //黑体字数据表
  77. define("_FILE_DB_BOLD_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/bold.db3");
  78. # 字典数据表 全部存入redis
  79. #巴缅字典
  80. define("_DICT_DB_PM_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/3rd/pm.db");
  81. define("_TABLE_DICT_PM_", "dict");
  82. #系统规则
  83. define("_DICT_DB_REGULAR_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/sys_regular.db");
  84. define("_TABLE_DICT_REGULAR_", "dict");
  85. #自动compone
  86. define("_DICT_DB_COMP_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/comp.db");
  87. define("_TABLE_DICT_COMP_", "dict");
  88. define("_DIR_USERS_GUIDE_", __DIR__ . "/../documents/users_guide");
  89. #参考字典
  90. define("_FILE_DB_REF_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/ref.db");
  91. define("_TABLE_DICT_REF_", "dict");
  92. define("_TABLE_DICT_REF_NAME_LIST_", "info");
  93. #参考字典索引
  94. define("_FILE_DB_REF_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/ref1.db");
  95. define("_TABLE_REF_INDEX_", "dict");
  96. #为了切分复合词 使用的词头表
  97. define("_FILE_DB_PART_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/part.db3");
  98. define("_TABLE_PART_", "part");
  99. # 用户数据表
  100. //读写频繁
  101. # 逐词解析表
  102. define("_FILE_DB_USER_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/user_wbw.db3");
  103. # 译文
  104. define("_FILE_DB_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/user/sentence.db3");
  105. # 译文编辑历史
  106. define("_FILE_DB_USER_SENTENCE_HISTORAY_", "sqlite:" . __DIR__ . "/../tmp/user/usent_historay.db3");
  107. # 逐词解析字典
  108. define("_FILE_DB_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/wbw.db3");
  109. # 逐词解析字典文件
  110. define("_FILE_DB_WBW1_", __DIR__ . "/../tmp/user/wbw.db3");
  111. //写入频繁 读取不频繁
  112. # 用户行为记录
  113. define("_FILE_DB_USER_ACTIVE_", "sqlite:" . __DIR__ . "/../tmp/user/user_active.db3");
  114. define("_FILE_DB_USER_ACTIVE_LOG_", "sqlite:" . __DIR__ . "/../tmp/user/user_active_log.db3");
  115. //读取频繁 写入不频繁
  116. # 文章 文集
  117. define("_FILE_DB_USER_ARTICLE_", "sqlite:" . __DIR__ . "/../tmp/user/article.db3");
  118. # 术语
  119. define("_FILE_DB_TERM_", "sqlite:" . __DIR__ . "/../tmp/user/dhammaterm.db");
  120. # 版本风格
  121. define("_FILE_DB_CHANNAL_", "sqlite:" . __DIR__ . "/../tmp/user/channal.db3");
  122. # 用户账号
  123. define("_FILE_DB_USERINFO_", "sqlite:" . __DIR__ . "/../tmp/user/userinfo.db3");
  124. # 协作
  125. define("_FILE_DB_USER_SHARE_", "sqlite:" . __DIR__ . "/../tmp/user/share.db3");
  126. # 工作组
  127. define("_FILE_DB_GROUP_", "sqlite:" . __DIR__ . "/../tmp/user/group.db3");
  128. # 逐词解析文件索引
  129. define("_FILE_DB_FILEINDEX_", "sqlite:" . __DIR__ . "/../tmp/user/fileindex.db");
  130. # 课程
  131. define("_FILE_DB_COURSE_", "sqlite:" . __DIR__ . "/../tmp/user/course.db3");
  132. # 用户自定义书
  133. define("_FILE_DB_USER_CUSTOM_BOOK_", "sqlite:" . __DIR__ . "/../tmp/user/custom_book.db3");
  134. # 逐词译和译文编辑消息
  135. define("_FILE_DB_MESSAGE_", "sqlite:" . __DIR__ . "/../tmp/user/message.db");
  136. //很少使用
  137. # 网站设置
  138. define("_FILE_DB_HOSTSETTING_", "sqlite:" . __DIR__ . "/../tmp/user/hostsetting.db3");
  139. # 用户图片数据 尚未启用
  140. define("_FILE_DB_MEDIA_", "sqlite:" . __DIR__ . "/../tmp/user/media.db3");
  141. # 用户字典 尚未启用
  142. define("_FILE_DB_USER_DICT_", "sqlite:" . __DIR__ . "/../tmp/user/udict.db3");
  143. # 评论 尚未启用
  144. define("_FILE_DB_COMMENTS_", "sqlite:" . __DIR__ . "/../tmp/user/comments.db3");
  145. define("_FILE_DB_USER_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/user/statistics.db3");