瀏覽代碼

将path.php 换成 config.php

visuddhinanda 4 年之前
父節點
當前提交
f6a042455a
共有 100 個文件被更改,包括 466 次插入99 次删除
  1. 1 1
      app/admin/db_update_cs6_para.php
  2. 1 1
      app/admin/log.php
  3. 1 1
      app/admin/setting.php
  4. 1 1
      app/admin/update_user_active_time.php
  5. 1 1
      app/admin/word_index_weight_refresh.php
  6. 1 1
      app/article/add_article_to_collect.php
  7. 1 1
      app/article/article.js
  8. 1 1
      app/article/card.php
  9. 1 1
      app/article/collect_get.php
  10. 1 1
      app/article/collect_list.php
  11. 1 1
      app/article/export.php
  12. 1 1
      app/article/function.php
  13. 1 1
      app/article/get.php
  14. 1 1
      app/article/index.php
  15. 1 1
      app/article/list.php
  16. 1 1
      app/article/list_article_in_collect.php
  17. 1 1
      app/article/list_new.php
  18. 1 1
      app/article/my_article_post.php
  19. 1 1
      app/article/my_article_put.php
  20. 1 1
      app/article/my_collect_post.php
  21. 1 1
      app/article/my_collect_put.php
  22. 1 1
      app/auth/casbin-test.php
  23. 1 1
      app/channal/card.php
  24. 1 1
      app/channal/coop_new_user.php
  25. 1 1
      app/channal/function.php
  26. 1 1
      app/channal/get.php
  27. 1 1
      app/channal/my_channal_get.php
  28. 1 1
      app/channal/my_channal_post.php
  29. 1 1
      app/channal/my_channal_put.php
  30. 1 1
      app/collect/card.php
  31. 1 1
      app/collect/function.php
  32. 1 1
      app/collect/index.php
  33. 1 1
      app/collect/list.php
  34. 1 1
      app/commit/commit.php
  35. 367 0
      app/config.sample.php
  36. 1 1
      app/course/course_get.php
  37. 1 1
      app/course/course_list.php
  38. 1 1
      app/course/lesson_get.php
  39. 1 1
      app/course/lesson_list.php
  40. 1 1
      app/course/list_new.php
  41. 1 1
      app/course/my_course_edit.php
  42. 1 1
      app/course/my_course_insert.php
  43. 1 1
      app/course/my_course_list.php
  44. 1 1
      app/course/my_course_new.php
  45. 1 1
      app/course/my_course_update.php
  46. 1 1
      app/course/my_lesson_edit.php
  47. 1 1
      app/course/my_lesson_insert.php
  48. 1 1
      app/course/my_lesson_list.php
  49. 1 1
      app/course/my_lesson_new.php
  50. 1 1
      app/course/my_lesson_update.php
  51. 1 1
      app/course/teacher_list.php
  52. 1 1
      app/db/channel.php
  53. 1 1
      app/db/custom_book.php
  54. 1 1
      app/db/like.php
  55. 1 1
      app/db/pali_sent.php
  56. 1 1
      app/db/pali_sim_sent.php
  57. 1 1
      app/db/pali_text.php
  58. 1 1
      app/db/user.php
  59. 1 1
      app/db/wbw_block.php
  60. 1 1
      app/dict/comp_csv.php
  61. 1 1
      app/dict/dict_lookup.php
  62. 1 1
      app/dict/dict_lookup_pre.php
  63. 1 1
      app/dict/function.php
  64. 1 1
      app/dict/get_first_mean.php
  65. 1 1
      app/dict/get_split_data.php
  66. 1 1
      app/dict/redis_comp_part.php
  67. 1 1
      app/dict/redis_import_dict.php
  68. 1 1
      app/dict/redis_import_term.php
  69. 1 1
      app/dict/redis_import_user.php
  70. 1 1
      app/dict/redis_pali_word_list.php
  71. 1 1
      app/dict/redis_pali_word_statistic.php
  72. 1 1
      app/dict/redis_pm_part.php
  73. 1 1
      app/dict/redis_ref_with_mean.php
  74. 1 1
      app/dict/redis_refresh_first_mean.php
  75. 1 1
      app/dict/redis_split_part.php
  76. 1 1
      app/dict/redis_sys_rgl_part.php
  77. 1 1
      app/dict/turbo_split.php
  78. 1 1
      app/dict_builder/dict_find3.php
  79. 1 1
      app/dict_builder/index.php
  80. 1 1
      app/dict_builder/save.php
  81. 1 1
      app/doc/card.php
  82. 1 1
      app/doc/coop.php
  83. 1 1
      app/doc/coopfilelist.php
  84. 1 1
      app/doc/docinfo.php
  85. 1 1
      app/doc/edit_wbw.php
  86. 1 1
      app/doc/fork.php
  87. 1 1
      app/doc/fork_channel.php
  88. 1 1
      app/doc/function.php
  89. 1 1
      app/doc/load_channal_para.php
  90. 1 1
      app/doc/pcs2db.php
  91. 1 1
      app/doc/sync_index.php
  92. 1 1
      app/doc/sync_power.php
  93. 1 1
      app/fts/sql.php
  94. 1 1
      app/fullcalendar/examples/php/get-date.php
  95. 1 1
      app/group/function.php
  96. 1 1
      app/group/get.php
  97. 1 1
      app/group/get_name.php
  98. 1 1
      app/group/group_del.php
  99. 1 1
      app/group/list.php
  100. 1 1
      app/group/list_member.php

+ 1 - 1
app/admin/db_update_cs6_para.php

@@ -1,7 +1,7 @@
 <?php
 #将cscd4 段落编号插入数据库 用于义注跳转
 require_once "../public/_pdo.php";
-require_once "../path.php";
+require_once "../config.php";
 
 PDO_Connect(_FILE_DB_PALITEXT_);
 $query = "SELECT * from "._TABLE_PALI_BOOK_NAME_." where true";

+ 1 - 1
app/admin/log.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 
 function mylog($message){
 	$fpLog = fopen(_DIR_LOG_APP_,"a");

+ 1 - 1
app/admin/setting.php

@@ -1,6 +1,6 @@
 <?php
 
-require_once '../path.php';
+require_once '../config.php';
 require_once "../public/_pdo.php";
 
 if (isset($_GET["language"])) {$currLanguage = $_GET["language"];} else { $currLanguage = "en";}

+ 1 - 1
app/admin/update_user_active_time.php

@@ -1,6 +1,6 @@
 <?php
 #已经废弃
-require_once '../path.php';
+require_once '../config.php';
 
 date_default_timezone_set("UTC");
 $logfile = "update_user_active_time_last.txt";

+ 1 - 1
app/admin/word_index_weight_refresh.php

@@ -2,7 +2,7 @@
 /*
 计算单词权重
  */
-require_once __DIR__.'/../path.php';
+require_once __DIR__.'/../config.php';
 require_once __DIR__.'/word_index_weight_table.php';
 
 if (isset($_GET["from"])) {

+ 1 - 1
app/article/add_article_to_collect.php

@@ -1,7 +1,7 @@
 <?php
 //添加文章到文集
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/article.js

@@ -403,7 +403,7 @@ function palicanon_load() {
 
 function reader_get_path() {
 	$.get(
-		"../reader/get_path.php",
+		"../reader/get_config.php",
 		{
 			book: _book,
 			para: _par,

+ 1 - 1
app/article/card.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once '../redis/function.php';
 require_once "../article/function.php";
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/collect_get.php

@@ -1,7 +1,7 @@
 <?php
 #获取文集信息
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/collect_list.php

@@ -1,7 +1,7 @@
 <?php
 #某用户的文章列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/export.php

@@ -1,6 +1,6 @@
 <?php
 require_once '../../vendor/autoload.php';
-require_once '../path.php';
+require_once '../config.php';
 require_once '../public/function.php';
 
 

+ 1 - 1
app/article/function.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../share/function.php";
 require_once "../db/table.php";
 

+ 1 - 1
app/article/get.php

@@ -1,7 +1,7 @@
 <?php
 //获取article内容
 include("../log/pref_log.php");
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/index.php

@@ -1,6 +1,6 @@
 <?php
 require_once "../public/load_lang.php";
-require_once "../path.php";
+require_once "../config.php";
 require_once "../pcdl/html_head.php";
 ?>
 <body style="margin: 0;padding: 0;" class="reader_body" >

+ 1 - 1
app/article/list.php

@@ -1,7 +1,7 @@
 <?php
 //文章列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/list_article_in_collect.php

@@ -1,7 +1,7 @@
 <?php
 //查询term字典
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/list_new.php

@@ -1,7 +1,7 @@
 <?php
 //文集列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/article/my_article_post.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../hostsetting/function.php';

+ 1 - 1
app/article/my_article_put.php

@@ -2,7 +2,7 @@
 /*
 新建文章
 */
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../hostsetting/function.php';

+ 1 - 1
app/article/my_collect_post.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../collect/function.php';

+ 1 - 1
app/article/my_collect_put.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../hostsetting/function.php';

+ 1 - 1
app/auth/casbin-test.php

@@ -1,7 +1,7 @@
 <?php
 
 require_once '../../vendor/autoload.php';
-require_once '../path.php';
+require_once '../config.php';
 require_once '../config.php';
 
 use Casbin\Enforcer;

+ 1 - 1
app/channal/card.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../ucenter/function.php';
 require_once '../public/load_lang.php';

+ 1 - 1
app/channal/coop_new_user.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 

+ 1 - 1
app/channal/function.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../share/function.php";
 require_once "../db/table.php";
 

+ 1 - 1
app/channal/get.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../ucenter/function.php';
 require_once '../share/function.php';

+ 1 - 1
app/channal/my_channal_get.php

@@ -1,7 +1,7 @@
 <?php
 //查询term字典
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/channal/my_channal_post.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../channal/function.php';

+ 1 - 1
app/channal/my_channal_put.php

@@ -1,6 +1,6 @@
 <?php
 #新建channel
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../hostsetting/function.php';

+ 1 - 1
app/collect/card.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../ucenter/function.php';
 

+ 1 - 1
app/collect/function.php

@@ -1,5 +1,5 @@
 <?php
-require_once '../path.php';
+require_once '../config.php';
 require_once "../share/function.php";
 require_once "../db/table.php";
 require_once "../article/function.php";

+ 1 - 1
app/collect/index.php

@@ -204,7 +204,7 @@ include "../pcdl/html_head.php";
     <?php
     //
 
-    require_once "../path.php";
+    require_once "../config.php";
     require_once "../public/_pdo.php";
     require_once '../media/function.php';
     require_once '../public/function.php';

+ 1 - 1
app/collect/list.php

@@ -1,7 +1,7 @@
 <?php
 //文集列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/commit/commit.php

@@ -1,5 +1,5 @@
 <?php 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 require_once "../channal/function.php";

+ 367 - 0
app/config.sample.php

@@ -48,5 +48,372 @@ define("Redis",[
 	"prefix"=>"aaa://"
 ]);
 				
+/*
+数据表
+*/
+
+//语料库数据表 pali canon db file 
+
+/*
+巴利语料模版表
+运行app/install/db_insert_templet.php 刷库
+*/
+define("_FILE_DB_PALICANON_TEMPLET_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_PALICANON_TEMPLET_","sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/templet.db3");
+define("_TABLE_PALICANON_TEMPLET_","wbw_templet");
+
+/*
+标题资源表
+app/install/db_update_toc.php 刷库
+*/
+define("_FILE_DB_RESRES_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_RESRES_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/res.db3");
+define("_TABLE_RES_INDEX_","res_index");
+
+/*
+巴利语料段落表
+刷库 app/install/db_insert_palitext.php
+更新 app/install/db_update_palitext.php
+*/
+define("_FILE_DB_PALITEXT_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_PALITEXT_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_text.db3");
+define("_TABLE_PALI_TEXT_","pali_text");
+define("_TABLE_PALI_BOOK_NAME_","books");
+
+#单词表部分
+/*
+以书为单位的单词汇总表
+填充 /app/install/db_insert_bookword_from_csv.php
+*/
+define("_FILE_DB_BOOK_WORD_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_BOOK_WORD_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/bookword.db3");
+define("_TABLE_BOOK_WORD_", "bookword");
+
+/*
+单词索引
+/app/install/db_insert_word_from_csv.php
+/app/admin/word_index_weight_refresh.php
+*/
+define("_FILE_DB_PALI_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_PALI_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/paliindex.db3");
+define("_TABLE_WORD_", "word");
+
+/*
+92万词
+/app/install/db_insert_wordindex_from_csv.php
+*/
+define("_FILE_DB_WORD_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_WORD_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/wordindex.db3");
+define("_TABLE_WORD_INDEX_", "wordindex");
+
+//单词索引=92万词+单词索引
+define("_FILE_DB_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/index.db3");
+
+//黑体字数据表
+//define("_FILE_DB_BOLD_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_BOLD_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/bold.db3");
+define("_TABLE_WORD_BOLD_", "bold");
+
+/*
+单词分析表
+数据迁移: php /deploy/migaration/word_statistics.php
+*/
+define("_FILE_DB_STATISTICS_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/word_statistics.db3");
+define("_TABLE_WORD_STATISTICS_", "word_statistics");
+
+define("_SRC_DB_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/word_statistics.db3");
+define("_SRC_TABLE_WORD_STATISTICS_", "word");
+
+
+/*
+巴利句子表
+数据迁移: php ./deploy/migaration/20211125155700_pali_sent_org.php
+数据迁移: php ./deploy/migaration/20211125165700-pali_sent-upgrade.php
+数据迁移: php ./deploy/migaration/20211126220400-pali_sent_index-upgrade.php
+
+*/
+define("_FILE_DB_PALI_SENTENCE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_PALI_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sent1.db3");
+define("_SRC_DB_PALI_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sent1.db3");
+define("_TABLE_PALI_SENT_", "pali_sent");
+define("_TABLE_PALI_SENT_ORG_", "pali_sent_org");
+define("_TABLE_PALI_SENT_INDEX_", "pali_sent_index");
+
+/*
+相似句
+数据迁移 
+php ./deploy/migaration/20211127214800_sent_sim.php
+php ./deploy/migaration/20211127214900-sent_sim_index.php
+redis: 
+php ./app/pali_sent/redis_upgrade_pali_sent.php
+*/
+define("_FILE_DB_PALI_SENTENCE_SIM_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_PALI_SENTENCE_SIM_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sim.db3");
+define("_SRC_DB_PALI_SENTENCE_SIM_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_sim.db3");
+define("_TABLE_SENT_SIM_", "sent_sim");
+define("_TABLE_SENT_SIM_INDEX_", "sent_sim_index");
+
+/*
+完成度
+数据迁移
+php ./app/upgrade/upgrade_pali_toc.php
+*/
+define("_FILE_DB_PALI_TOC_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+//define("_FILE_DB_PALI_TOC_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pali_toc.db3");
+define("_TABLE_PROGRESS_", "progress");
+define("_TABLE_PROGRESS_CHAPTER_", "progress_chapter");
+
+
+//页码对应
+//define("_FILE_DB_PAGE_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_PAGE_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/palicanon/pagemap.db3");
+
+
+# 字典数据表 全部存入redis
+#巴缅字典
+//define("_DICT_DB_PM_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_DICT_DB_PM_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/3rd/pm.db");
+define("_TABLE_DICT_PM_", "dict");
+
+#系统规则
+//define("_DICT_DB_REGULAR_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_DICT_DB_REGULAR_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/sys_regular.db");
+define("_TABLE_DICT_REGULAR_", "dict");
+
+#系统不规则
+//define("_DICT_DB_IRREGULAR_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_DICT_DB_IRREGULAR_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/sys_irregular.db");
+define("_TABLE_DICT_IRREGULAR_", "dict");
+
+#自动compone
+//define("_DICT_DB_COMP_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_DICT_DB_COMP_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/comp.db");
+define("_TABLE_DICT_COMP_", "dict");
+
+
+#参考字典
+//define("_FILE_DB_REF_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_REF_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/ref.db");
+define("_TABLE_DICT_REF_", "dict");
+define("_TABLE_DICT_REF_NAME_LIST_", "info");
+
+#参考字典索引
+//define("_FILE_DB_REF_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_REF_INDEX_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/ref1.db");
+define("_TABLE_REF_INDEX_", "dict");
+
+#为了切分复合词 使用的词头表
+//define("_FILE_DB_PART_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_PART_", "sqlite:" . __DIR__ . "/../tmp/appdata/dict/system/part.db3");
+define("_TABLE_PART_", "part");
+
+
+# 用户数据表
+
+//读写频繁
+# 逐词解析表
+#sqlite
+//define("_FILE_DB_USER_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/user_wbw.db3");
+define("_SRC_DB_USER_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/user_wbw.db3");
+define("_TABLE_SRC_USER_WBW_", "wbw");
+define("_TABLE_SRC_USER_WBW_BLOCK_", "wbw_block");
+
+#pg
+define("_FILE_DB_USER_WBW_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_TABLE_USER_WBW_", "wbws");
+define("_TABLE_USER_WBW_BLOCK_", "wbw_blocks");
+
+
+# 译文
+#sqlite
+//define("_FILE_DB_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/user/sentence.db3");
+//define("_TABLE_SENTENCE_", "sentence");
+//define("_TABLE_SENTENCE_BLOCK_", "sent_block");
+//define("_TABLE_SENTENCE_PR_", "sent_pr");
+#数据迁移源数据表
+define("_SRC_DB_SENTENCE_", "sqlite:" . __DIR__ . "/../tmp/user/sentence.db3");
+define("_TABLE_SRC_SENTENCE_", "sentence");
+define("_TABLE_SRC_SENTENCE_BLOCK_", "sent_block");
+define("_TABLE_SRC_SENTENCE_PR_", "sent_pr");
+#pg
+define("_FILE_DB_SENTENCE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_TABLE_SENTENCE_", "sentences");
+define("_TABLE_SENTENCE_BLOCK_", "sent_blocks");
+define("_TABLE_SENTENCE_PR_", "sent_prs");
+
+
+# 译文编辑历史
+#sqlite
+//define("_FILE_DB_USER_SENTENCE_HISTORAY_", "sqlite:" . __DIR__ . "/../tmp/user/usent_historay.db3");
+//define("_TABLE_SENTENCE_HISTORAY_", "sent_historay");
+define("_SRC_USER_SENTENCE_HISTORAY_", "sqlite:" . __DIR__ . "/../tmp/user/usent_historay.db3");
+define("_TABLE_SRC_SENTENCE_HISTORAY_", "sent_historay");
+
+#pg
+define("_FILE_DB_USER_SENTENCE_HISTORAY_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_TABLE_SENTENCE_HISTORAY_", "sent_historaies");
+
+
+# 逐词解析字典
+# sqlite
+#define("_FILE_DB_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/wbw.db3");
+#define("_TABLE_DICT_WBW_", "wbw");
+#define("_TABLE_DICT_WBW_INDEX_", "wbw_index");
+
+#pg
+define("_SQLITE_DB_WBW_", "sqlite:" . __DIR__ . "/../tmp/user/wbw.db3");
+define("_SQLITE_TABLE_DICT_WBW_", "dict");
+define("_SQLITE_TABLE_DICT_WBW_INDEX_", "user_index");
+
+define("_FILE_DB_WBW_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_TABLE_DICT_USER_", "user_dicts");
+
+//写入频繁 读取不频繁
+# 用户行为记录
+//define("_FILE_DB_PAGE_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_ACTIVE_", "sqlite:" . __DIR__ . "/../tmp/user/user_active.db3");
+
+
+//define("_FILE_DB_USER_ACTIVE_LOG_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_ACTIVE_LOG_", "sqlite:" . __DIR__ . "/../tmp/user/user_active_log.db3");
+
+
+//读取频繁 写入不频繁 
+# 用户账号
+//define("_FILE_DB_USERINFO_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USERINFO_", "sqlite:" . __DIR__ . "/../tmp/user/userinfo.db3");
+
+# 版本风格 
+//define("_FILE_DB_CHANNAL_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_CHANNAL_", "sqlite:" . __DIR__ . "/../tmp/user/channal.db3");
+
+# 文章 文集
+//define("_FILE_DB_USER_ARTICLE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_ARTICLE_", "sqlite:" . __DIR__ . "/../tmp/user/article.db3");
+
+# 术语
+//define("_FILE_DB_TERM_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_TERM_", "sqlite:" . __DIR__ . "/../tmp/user/dhammaterm.db");
+
+# 协作
+//define("_FILE_DB_USER_SHARE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_SHARE_", "sqlite:" . __DIR__ . "/../tmp/user/share.db3");
+
+# 工作组
+//define("_FILE_DB_GROUP_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_GROUP_", "sqlite:" . __DIR__ . "/../tmp/user/group.db3");
+
+# 逐词解析文件索引
+//define("_FILE_DB_FILEINDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_FILEINDEX_", "sqlite:" . __DIR__ . "/../tmp/user/fileindex.db");
+
+# 课程
+//define("_FILE_DB_COURSE_", "pgsql:host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_COURSE_", "sqlite:" . __DIR__ . "/../tmp/user/course.db3");
+define("_TABLE_COURSE_","course");
+
+# 用户自定义书
+//define("_FILE_DB_USER_CUSTOM_BOOK_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_CUSTOM_BOOK_", "sqlite:" . __DIR__ . "/../tmp/user/custom_book.db3");
+
+# 逐词译和译文编辑消息
+//define("_FILE_DB_MESSAGE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_MESSAGE_", "sqlite:" . __DIR__ . "/../tmp/user/message.db");
+
+#点赞
+//define("_FILE_DB_LIKE_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_LIKE_", "sqlite:" . __DIR__ . "/../tmp/user/like.db3");
+
+
+//很少使用
+# 网站设置
+//define("_FILE_DB_HOSTSETTING_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_HOSTSETTING_", "sqlite:" . __DIR__ . "/../tmp/user/hostsetting.db3");
+
+
+# 用户字典统计数据
+//define("_FILE_DB_USER_DICT_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_DICT_", "sqlite:" . __DIR__ . "/../tmp/user/udict.db3");
+
+
+# 用户图片数据 尚未启用
+//define("_FILE_DB_MEDIA_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_MEDIA_", "sqlite:" . __DIR__ . "/../tmp/user/media.db3");
+
+# 评论 尚未启用
+//define("_FILE_DB_COMMENTS_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_COMMENTS_", "sqlite:" . __DIR__ . "/../tmp/user/comments.db3");
+
+
+//define("_FILE_DB_USER_STATISTICS_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_STATISTICS_", "sqlite:" . __DIR__ . "/../tmp/user/statistics.db3");
+
+#权限管理 casbin使用
+//define("_FILE_DB_USER_RBAC_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
+define("_FILE_DB_USER_RBAC_",  __DIR__ . "/../tmp/user/rbac.db3");
+
+
+# 全文搜索
+define("_TABLE_FTS_", "fts_texts");
+
+
+# 目录
+define("_DIR_APPDATA_", __DIR__ . "/../tmp/appdata");
+
+define("_DIR_PALICANON_", __DIR__ . "/../tmp/appdata/palicanon");
+define("_DIR_PALICANON_TEMPLET_", __DIR__ . "/../tmp/appdata/palicanon/templet");
+define("_DIR_PALICANON_PALITEXT_", __DIR__ . "/../tmp/appdata/palicanon/pali_text");
+define("_DIR_PALICANON_WBW_", __DIR__ . "/../tmp/appdata/palicanon/wbw");
+define("_DIR_PALICANON_TRAN_", __DIR__ . "/../tmp/appdata/palicanon/translate");
+
+define("_DIR_IMAGES_", __DIR__ . "/../tmp/images");
+define("_DIR_IMAGES_ARTICLE_", __DIR__ . "/../tmp/images/article");
+define("_DIR_IMAGES_COLLECTION_", __DIR__ . "/../tmp/images/collection");
+define("_DIR_IMAGES_COURSE_", __DIR__ . "/../tmp/images/course");
+define("_DIR_IMAGES_COURSE_A_", "../../tmp/images/course");
+define("_DIR_IMAGES_LESSON_", __DIR__ . "/../tmp/images/lesson");
+
+//语料库
+
+define("_DIR_CSV_PALI_CANON_WORD_", __DIR__ . "/../paliword/book");
+define("_DIR_CSV_PALI_CANON_WORD_INDEX_", __DIR__ . "/../paliword/index");
+
+define("_DIR_PALI_CSV_", __DIR__ . "/../tmp/palicsv");
+define("_DIR_LOG_", __DIR__ . "/../tmp/log");
+define("_DIR_LOG_APP_", __DIR__ . "/../tmp/log/app.log");
+define("_DIR_TEMP_", __DIR__ . "/../tmp/temp");
+define("_DIR_TEMP_DICT_TEXT_", __DIR__ . "/../tmp/dict_text");
+define("_DIR_TMP_", __DIR__ . "/../tmp");
+define("_DIR_TMP_EXPORT", __DIR__ . "/../tmp/export");
+
+//dictionary
+define("_DIR_DICT_", __DIR__ . "/../tmp/appdata/dict");
+define("_DIR_DICT_SYSTEM_", __DIR__ . "/../tmp/appdata/dict/system");
+define("_DIR_DICT_3RD_", __DIR__ . "/../tmp/appdata/dict/3rd");
+define("_DIR_DICT_REF_", __DIR__ . "/../tmp/appdata/dict/ref");
+
+//界面上的用户指南气泡里面的数据
+define("_DIR_USERS_GUIDE_", __DIR__ . "/../app/users_guide");
+
+
+define("_DIR_FONT_", __DIR__ . "/../font");
+define("_DIR_PALI_HTML_", __DIR__ . "/../palihtml");
+define("_DIR_DICT_TEXT_", __DIR__ . "/../dicttext");
+
+define("_DIR_PALI_TITLE_", __DIR__ . "/../pali_title");
+define("_DIR_APP_", __DIR__ . "/../app");
+define("_DIR_LANGUAGE_", __DIR__ . "/../app/public/lang");
+define("_DIR_BOOK_INDEX_", __DIR__ . "/../app/public/book_index");
+
+/*user data*/
+define("_DIR_USER_BASE_", __DIR__ . "/../tmp/user");
+define("_DIR_USER_DOC_", __DIR__ . "/../tmp/user_doc");
+define("_DIR_USER_IMG_", __DIR__ . "/../tmp/user/media/3");
+define("_DIR_USER_IMG_LINK_", "../../tmp/user/media/3");
+define("_DIR_MYDOCUMENT_", "/my_document");
 
+# 逐词解析字典文件
+define("_FILE_DB_WBW1_",  __DIR__ . "/../tmp/user/wbw.db3");
 ?>

+ 1 - 1
app/course/course_get.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../ucenter/function.php";
 

+ 1 - 1
app/course/course_list.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/load_lang.php';
 require_once '../media/function.php';

+ 1 - 1
app/course/lesson_get.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../ucenter/function.php";
 

+ 1 - 1
app/course/lesson_list.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 
 global $PDO;

+ 1 - 1
app/course/list_new.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/load_lang.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/course/my_course_edit.php

@@ -36,7 +36,7 @@ require_once '../studio/index_head.php';
 <div class="tool_bar">
 
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../media/function.php';
 

+ 1 - 1
app/course/my_course_insert.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 

+ 1 - 1
app/course/my_course_list.php

@@ -31,7 +31,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/load_lang.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/course/my_course_new.php

@@ -60,7 +60,7 @@ require_once '../studio/index_head.php';
 
 <div class="tool_bar">
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../media/function.php';
 

+ 1 - 1
app/course/my_course_update.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 

+ 1 - 1
app/course/my_lesson_edit.php

@@ -38,7 +38,7 @@ require_once '../studio/index_head.php';
 <div class="tool_bar">
 
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../media/function.php';
 

+ 1 - 1
app/course/my_lesson_insert.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 

+ 1 - 1
app/course/my_lesson_list.php

@@ -37,7 +37,7 @@ require_once '../studio/index_head.php';
 <div class="tool_bar">
 
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../ucenter/function.php';
 

+ 1 - 1
app/course/my_lesson_new.php

@@ -30,7 +30,7 @@ require_once '../studio/index_head.php';
 
 <div class="tool_bar">
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../ucenter/function.php';
 

+ 1 - 1
app/course/my_lesson_update.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 

+ 1 - 1
app/course/teacher_list.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/load_lang.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/db/channel.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 require_once "../public/function.php";
 /*

+ 1 - 1
app/db/custom_book.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 require_once '../hostsetting/function.php';
 

+ 1 - 1
app/db/like.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 /*
 CREATE TABLE likes (

+ 1 - 1
app/db/pali_sent.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 
 class PaliSentence extends Table

+ 1 - 1
app/db/pali_sim_sent.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 
 class PaliSimSentence extends Table

+ 1 - 1
app/db/pali_text.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 
 class PaliText extends Table

+ 1 - 1
app/db/user.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 require_once "../db/channel.php";
 require_once "../public/function.php";

+ 1 - 1
app/db/wbw_block.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../db/table.php";
 require_once "../channal/function.php";
 

+ 1 - 1
app/dict/comp_csv.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 
 require_once "../dict/turbo_split.php";
 require_once "../redis/function.php";

+ 1 - 1
app/dict/dict_lookup.php

@@ -1,7 +1,7 @@
 <?php
 //查询参考字典
 include("../log/pref_log.php");
-require_once '../path.php';
+require_once '../config.php';
 require_once '../public/casesuf.inc';
 require_once '../public/union.inc';
 require_once "../public/_pdo.php";

+ 1 - 1
app/dict/dict_lookup_pre.php

@@ -1,7 +1,7 @@
 <?php
 //查询参考字典
 include("../log/pref_log.php");
-require_once '../path.php';
+require_once '../config.php';
 require_once '../public/_pdo.php';
 require_once '../redis/function.php';
 require_once '../dict/function.php';

+ 1 - 1
app/dict/function.php

@@ -1,5 +1,5 @@
 <?php
-require_once '../path.php';
+require_once '../config.php';
 require_once '../public/_pdo.php';
 require_once '../redis/function.php';
 

+ 1 - 1
app/dict/get_first_mean.php

@@ -1,5 +1,5 @@
 <?php
-require_once '../path.php';
+require_once '../config.php';
 require_once '../public/_pdo.php';
 require_once '../redis/function.php';
 require_once '../dict/function.php';

+ 1 - 1
app/dict/get_split_data.php

@@ -1,5 +1,5 @@
 <?php
-require_once '../path.php';
+require_once '../config.php';
 require_once '../redis/function.php';
 require_once '../dict/function.php';
 

+ 1 - 1
app/dict/redis_comp_part.php

@@ -1,7 +1,7 @@
 <?php
 #从自动复合词数据库中提取数据到ridis
 #已经废弃
-require_once "../path.php";
+require_once "../config.php";
 require_once "../redis/function.php";
 
 if (PHP_SAPI == "cli") {

+ 1 - 1
app/dict/redis_import_dict.php

@@ -4,7 +4,7 @@
 #例:
 # php redis_import_dict.php ../../dicttext/rich/rech.json
 */
-require_once "../path.php";
+require_once "../config.php";
 require_once "../install/filelist.php";
 require_once "../redis/function.php";
 

+ 1 - 1
app/dict/redis_import_term.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../redis/function.php";
 
 $rediskey = "dict://term";

+ 1 - 1
app/dict/redis_import_user.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../redis/function.php";
 
 $rediskey = "dict://user";

+ 1 - 1
app/dict/redis_pali_word_list.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../install/filelist.php";
 require_once "../redis/function.php";
 

+ 1 - 1
app/dict/redis_pali_word_statistic.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../install/filelist.php";
 require_once "../redis/function.php";
         $redis = redis_connect();

+ 1 - 1
app/dict/redis_pm_part.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../redis/function.php";
 
 if (PHP_SAPI == "cli") {

+ 1 - 1
app/dict/redis_ref_with_mean.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../redis/function.php";
 
 if (PHP_SAPI == "cli") {

+ 1 - 1
app/dict/redis_refresh_first_mean.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once '../public/_pdo.php';
 require_once "../redis/function.php";
 

+ 1 - 1
app/dict/redis_split_part.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../redis/function.php";
 
 if (PHP_SAPI == "cli") {

+ 1 - 1
app/dict/redis_sys_rgl_part.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../redis/function.php";
 
 if (PHP_SAPI == "cli" || isset($_COOKIE["userid"])) 

+ 1 - 1
app/dict/turbo_split.php

@@ -2,7 +2,7 @@
 require_once '../public/casesuf.inc';
 //require_once '../studio/dict_find_un.inc';
 //require_once '../studio/sandhi.php';
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 
 require_once "../redis/function.php";

+ 1 - 1
app/dict_builder/dict_find3.php

@@ -1,7 +1,7 @@
 <?php
 //查询参考字典
 require_once 'casesuf.inc';
-require_once "../path.php";
+require_once "../config.php";
 require_once "./_pdo.php";
 
 

+ 1 - 1
app/dict_builder/index.php

@@ -1,5 +1,5 @@
 <?php
-include "../path.php";
+include "../config.php";
 include "../public/_pdo.php";
 global $PDO;
 

+ 1 - 1
app/dict_builder/save.php

@@ -1,5 +1,5 @@
 <?php
-include "../path.php";
+include "../config.php";
 include "../public/_pdo.php";
 
 if (isset($_POST['dict_id'])) {

+ 1 - 1
app/doc/card.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../ucenter/function.php';
 

+ 1 - 1
app/doc/coop.php

@@ -18,7 +18,7 @@ del (doc_id, userid)
 set (doc_id ,userid ,value)
  *
  */
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 require_once "../public/load_lang.php";

+ 1 - 1
app/doc/coopfilelist.php

@@ -2,7 +2,7 @@
 /*
 获取我的文档 文件列表
 */
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 require_once "../ucenter/function.php";

+ 1 - 1
app/doc/docinfo.php

@@ -3,7 +3,7 @@
  *
  *
  */
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 require_once "../ucenter/function.php";

+ 1 - 1
app/doc/edit_wbw.php

@@ -1,7 +1,7 @@
 <?php
 //工程文件操作
 //建立,
-require_once '../path.php';
+require_once '../config.php';
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 require_once "../public/load_lang.php";

+ 1 - 1
app/doc/fork.php

@@ -9,7 +9,7 @@ require_once '../studio/index_head.php';
 <?php
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
-require_once "../path.php";
+require_once "../config.php";
 
 require_once '../studio/index_tool_bar.php';
 

+ 1 - 1
app/doc/fork_channel.php

@@ -8,7 +8,7 @@ require_once '../studio/index_head.php';
 ?>
 <body id="file_list_body" >
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 require_once "../channal/function.php";

+ 1 - 1
app/doc/function.php

@@ -1,6 +1,6 @@
 <?php
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 
 function pcs_get_title($id)

+ 1 - 1
app/doc/load_channal_para.php

@@ -2,7 +2,7 @@
 /*
 get xml doc from db
  */
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 

+ 1 - 1
app/doc/pcs2db.php

@@ -3,7 +3,7 @@
 转换pcs 到数据库格式
 
  */
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once "../public/function.php";
 

+ 1 - 1
app/doc/sync_index.php

@@ -1,7 +1,7 @@
 <?php
 //header('Content-type: application/json; charset=utf8');
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../sync/function.php";
 
 $input = (object) [

+ 1 - 1
app/doc/sync_power.php

@@ -1,7 +1,7 @@
 <?php
 //header('Content-type: application/json; charset=utf8');
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../sync/function.php";
 
 $input = (object) [

+ 1 - 1
app/fts/sql.php

@@ -1,5 +1,5 @@
 <?php
-require_once __DIR__."/../path.php";
+require_once __DIR__."/../config.php";
 /*
  * 该脚本用于生成 SQL 语句, 将三藏语料 CSV 数据 (如:abh01a.att.csv)
  * 转换为 SQL 语句插入到 PostgreSQL 内,数据表结构参见 fts.sql

+ 1 - 1
app/fullcalendar/examples/php/get-date.php

@@ -1,7 +1,7 @@
 <?php
 //
 
-require_once "../../../path.php";
+require_once "../../../config.php";
 require_once "../../../public/_pdo.php";
 
 function get_teacher_course($teacher_id)

+ 1 - 1
app/group/function.php

@@ -1,6 +1,6 @@
 <?php
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/group/get.php

@@ -1,7 +1,7 @@
 <?php
 //查询group 列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/group/get_name.php

@@ -1,7 +1,7 @@
 <?php
 //查询group 列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/group/group_del.php

@@ -1,5 +1,5 @@
 <?php
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 

+ 1 - 1
app/group/list.php

@@ -1,7 +1,7 @@
 <?php
 //查询group 列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

+ 1 - 1
app/group/list_member.php

@@ -1,7 +1,7 @@
 <?php
 //查询group member 列表
 
-require_once "../path.php";
+require_once "../config.php";
 require_once "../public/_pdo.php";
 require_once '../public/function.php';
 require_once '../ucenter/function.php';

Some files were not shown because too many files changed in this diff