Browse Source

ss

master
娄梦宁 3 years ago
commit
f09f95ac5b
100 changed files with 216 additions and 0 deletions
  1. +26
    -0
      404.html
  2. BIN
      app/block/banner.php
  3. BIN
      app/block/booklist.php
  4. BIN
      app/block/category.php
  5. BIN
      app/block/chapter.php
  6. BIN
      app/block/comment.php
  7. BIN
      app/block/friendlink.php
  8. BIN
      app/block/mark.php
  9. BIN
      app/block/news.php
  10. BIN
      app/block/novel.php
  11. BIN
      app/block/page.php
  12. BIN
      app/block/pagination.php
  13. BIN
      app/block/rank.php
  14. BIN
      app/block/recommend.php
  15. BIN
      app/block/search.php
  16. BIN
      app/block/sign.php
  17. BIN
      app/block/special.php
  18. BIN
      app/block/tag.php
  19. BIN
      app/block/user.php
  20. BIN
      app/component/collect/collect.php
  21. BIN
      app/component/collect/helper.php
  22. BIN
      app/component/collect/kernel.php
  23. BIN
      app/component/collect/provider/api.php
  24. BIN
      app/component/collect/provider/preg.php
  25. BIN
      app/component/collect/provider/provider.php
  26. BIN
      app/component/collect/test.php
  27. BIN
      app/component/compare.php
  28. BIN
      app/component/console/table.php
  29. BIN
      app/component/domain.php
  30. BIN
      app/component/swoole/process.php
  31. BIN
      app/config/const.php
  32. +190
    -0
      app/config/kuxin.php
  33. BIN
      app/console/app.php
  34. BIN
      app/console/cache.php
  35. BIN
      app/console/collect/repair.php
  36. BIN
      app/console/collect/sync.php
  37. BIN
      app/console/collect/test.php
  38. BIN
      app/console/collect/update.php
  39. BIN
      app/console/cron.php
  40. BIN
      app/console/fix.php
  41. BIN
      app/console/import.php
  42. BIN
      app/console/install.php
  43. BIN
      app/console/novel.php
  44. BIN
      app/console/seo.php
  45. BIN
      app/console/site.php
  46. BIN
      app/console/task.php
  47. BIN
      app/console/test.php
  48. BIN
      app/console/tool.php
  49. BIN
      app/controller/api/notice/pay.php
  50. BIN
      app/controller/api/novel/chapter.php
  51. BIN
      app/controller/api/novel/novel.php
  52. BIN
      app/controller/api/novel/search.php
  53. BIN
      app/controller/api/stat/booklist.php
  54. BIN
      app/controller/api/stat/novel.php
  55. BIN
      app/controller/api/stat/special.php
  56. BIN
      app/controller/author/auth.php
  57. BIN
      app/controller/author/author.php
  58. BIN
      app/controller/author/chapter.php
  59. BIN
      app/controller/author/income.php
  60. BIN
      app/controller/author/novel.php
  61. BIN
      app/controller/author/space.php
  62. BIN
      app/controller/author/stat.php
  63. BIN
      app/controller/booklist/booklist.php
  64. BIN
      app/controller/booklist/comment.php
  65. BIN
      app/controller/comment.php
  66. BIN
      app/controller/custompage.php
  67. BIN
      app/controller/desktop.php
  68. BIN
      app/controller/forum.php
  69. BIN
      app/controller/index.php
  70. BIN
      app/controller/manage/author.php
  71. BIN
      app/controller/manage/collect/collect.php
  72. BIN
      app/controller/manage/collect/cron.php
  73. BIN
      app/controller/manage/collect/log.php
  74. BIN
      app/controller/manage/collect/logcron.php
  75. BIN
      app/controller/manage/collect/rule.php
  76. BIN
      app/controller/manage/collect/site.php
  77. BIN
      app/controller/manage/content/ad/ad.php
  78. BIN
      app/controller/manage/content/ad/position.php
  79. BIN
      app/controller/manage/content/banner/banner.php
  80. BIN
      app/controller/manage/content/banner/position.php
  81. BIN
      app/controller/manage/content/booklist.php
  82. BIN
      app/controller/manage/content/category.php
  83. BIN
      app/controller/manage/content/chapter.php
  84. BIN
      app/controller/manage/content/comment.php
  85. BIN
      app/controller/manage/content/feedback.php
  86. BIN
      app/controller/manage/content/news/category.php
  87. BIN
      app/controller/manage/content/news/news.php
  88. BIN
      app/controller/manage/content/novel.php
  89. BIN
      app/controller/manage/content/recommend.php
  90. BIN
      app/controller/manage/content/recommendnovel.php
  91. BIN
      app/controller/manage/content/recommendperiod.php
  92. BIN
      app/controller/manage/content/special/novel.php
  93. BIN
      app/controller/manage/content/special/special.php
  94. BIN
      app/controller/manage/data.php
  95. BIN
      app/controller/manage/setting.php
  96. BIN
      app/controller/manage/system/cache.php
  97. BIN
      app/controller/manage/system/configure.php
  98. BIN
      app/controller/manage/system/custompage.php
  99. BIN
      app/controller/manage/system/dashboard.php
  100. BIN
      app/controller/manage/system/friendlink.php

+ 26
- 0
404.html View File

@@ -0,0 +1,26 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>404</title>
<style>
body{
background-color:#444;
font-size:14px;
}
h3{
font-size:60px;
color:#eee;
text-align:center;
padding-top:30px;
font-weight:normal;
}
</style>
</head>

<body>
<h3>404,您请求的文件不存在!</h3>
</body>
</html>

BIN
app/block/banner.php View File


BIN
app/block/booklist.php View File


BIN
app/block/category.php View File


BIN
app/block/chapter.php View File


BIN
app/block/comment.php View File


BIN
app/block/friendlink.php View File


BIN
app/block/mark.php View File


BIN
app/block/news.php View File


BIN
app/block/novel.php View File


BIN
app/block/page.php View File


BIN
app/block/pagination.php View File


BIN
app/block/rank.php View File


BIN
app/block/recommend.php View File


BIN
app/block/search.php View File


BIN
app/block/sign.php View File


BIN
app/block/special.php View File


BIN
app/block/tag.php View File


BIN
app/block/user.php View File


BIN
app/component/collect/collect.php View File


BIN
app/component/collect/helper.php View File


BIN
app/component/collect/kernel.php View File


BIN
app/component/collect/provider/api.php View File


BIN
app/component/collect/provider/preg.php View File


BIN
app/component/collect/provider/provider.php View File


BIN
app/component/collect/test.php View File


BIN
app/component/compare.php View File


BIN
app/component/console/table.php View File


BIN
app/component/domain.php View File


BIN
app/component/swoole/process.php View File


BIN
app/config/const.php View File


+ 190
- 0
app/config/kuxin.php View File

@@ -0,0 +1,190 @@
<?php
include KX_ROOT . '/env.php';
return [
'app' => [
'debug' => APP_ENV !== 'production',
'mode' => PHP_SAPI == 'cli' ? 'cli' : 'web',
'env' => APP_ENV,
'fastcgi_buffer_fill' => true,
'fastcgi_buffer_size' => 124,
'phpbin' => defined('PHPPATH') ? PHPPATH : 'php',
],
'auth' => [
'crypto_key' => 'www.kxcms.com',
'active_effective' => 24 * 60 * 60,
'max_age' => 7 * 24 * 60 * 60,
],
'url' => [
'ignore_param' => [
'key',
'novelid',
'pinyin',
'chapterid',
'categoryid',
'subcategoryid',
'pageid',
'authorid',
'name',
'subnovelid',
'subnovelidplus',
],
'default_data' => [
'page' => '1',
'siteid' => '0',
],
'auto_calc' => [
'novelid' => [
[ 'name' => 'subnovelid', 'func' => 'subid' ],
[ 'name' => 'subnovelidplus', 'func' => 'subidplus' ],
],
],
],

'rewrite' => [
'power' => true,
],


'view' => [
'driver' => 'mc',
],

'plugin' => [
'app_init' => [],
'app_start' => [
\App\Plugin\ConfigCache\ConfigCache::class,
],
'controller_start' => [],
'controller_end' => [],
'view_start' => [],
'view_end' => [],
],

'apiurl' => API_BASE_URL,


'database' => [
'debug' => true,
'prefix' => '',
'engine' => 'MyISAM',
'common' => [
'driver' => 'mysql',
'option' => [
'host' => KX_DB_HOST,
'port' => KX_DB_PORT,
'user' => KX_DB_USER,
'pwd' => KX_DB_PWD,
'name' => KX_DB_NAME,
],
],
],

//
'storage' => [
'runtime' => [
'driver' => 'file',
'option' => [
'path' => KX_ROOT . '/storage/runtime',
],
],
'log' => [
'driver' => 'file',
'option' => [
'path' => KX_ROOT . '/storage/log',
],
],
'template' => [
'driver' => 'file',
'option' => [
'path' => KX_ROOT . '/storage/template',
],
],
'upload' => [
'driver' => 'file',
'option' => [
'path' => KX_ROOT . '/public/upload',
'url' => '/upload',
],
],
'cover' => [
'driver' => 'file',
'option' => [
'path' => KX_ROOT . '/public/cover',
'url' => '/cover',
],
],
'txt' => [
'driver' => 'file',
'option' => [
'path' => defined('TXT_PATH') ? TXT_PATH : (KX_ROOT . '/storage/txt'),
],
],
],

//缓存设置
'cache' => [
'prefix' => 'kx_',
'time' => 600,
'time_s' => 600,
'time_m' => 600,
'time_l' => 86200,
'common' => [
'driver' => KX_CACHE_COMMON_DRIVER,
'option' => [
'prefix' => defined('KX_CACHE_COMMON_PREFIX') ? KX_CACHE_COMMON_PREFIX : 'kx_',
'host' => defined('KX_CACHE_COMMON_HOST') ? KX_CACHE_COMMON_HOST : '127.0.0.1',
'port' => defined('KX_CACHE_COMMON_PORT') ? KX_CACHE_COMMON_PORT : '11211',
'password' => defined('KX_CACHE_COMMON_PASSWORD') ? KX_CACHE_COMMON_PASSWORD : null,
],
],
'chapter' => [
'driver' => defined('KX_CACHE_CHAPTER_DRIVER') ? KX_CACHE_CHAPTER_DRIVER : 'memcache',
'option' => [
'prefix' => defined('KX_CACHE_CHAPTER_PREFIX') ? KX_CACHE_CHAPTER_PREFIX : 'kx_',
'host' => defined('KX_CACHE_CHAPTER_HOST') ? KX_CACHE_CHAPTER_HOST : '127.0.0.1',
'port' => defined('KX_CACHE_CHAPTER_PORT') ? KX_CACHE_CHAPTER_PORT : '11211',
'password' => defined('KX_CACHE_CHAPTER_PASSWORD') ? KX_CACHE_CHAPTER_PASSWORD : null,
],
],
],


//日志设置
'log' => [
'power' => true,
'buildtype' => [ 'kx', 'debug', 'console' ],
],

// cookie设置
'coookie' => [
'prefix' => 'PTCMS_',
// cookie 保存时间
'expire' => 2592000,
// cookie 保存路径
'path' => '/',
// cookie 有效域名
'domain' => '',
// cookie 启用安全传输
'secure' => false,
// httponly设置
'httponly' => '',
],

//session
'session' => [
'handler' => '',
'path' => '',
'host' => '',
'port' => '',
],

'chapter' => [
'cache_power' => defined('CHAPTER_CACHE_POWER') ? true : false,
],
'novel' => [
'intro_min_length' => defined('NOVEL_INTRO_MIN_LENGTH') ? NOVEL_INTRO_MIN_LENGTH : '50',
'intro_max_length' => defined('NOVEL_INTRO_MAX_LENGTH') ? NOVEL_INTRO_MAX_LENGTH : '500',
],
];
// TXT_PATH txt保存路径
// COLLECT_MODE 采集模式

BIN
app/console/app.php View File


BIN
app/console/cache.php View File


BIN
app/console/collect/repair.php View File


BIN
app/console/collect/sync.php View File


BIN
app/console/collect/test.php View File


BIN
app/console/collect/update.php View File


BIN
app/console/cron.php View File


BIN
app/console/fix.php View File


BIN
app/console/import.php View File


BIN
app/console/install.php View File


BIN
app/console/novel.php View File


BIN
app/console/seo.php View File


BIN
app/console/site.php View File


BIN
app/console/task.php View File


BIN
app/console/test.php View File


BIN
app/console/tool.php View File


BIN
app/controller/api/notice/pay.php View File


BIN
app/controller/api/novel/chapter.php View File


BIN
app/controller/api/novel/novel.php View File


BIN
app/controller/api/novel/search.php View File


BIN
app/controller/api/stat/booklist.php View File


BIN
app/controller/api/stat/novel.php View File


BIN
app/controller/api/stat/special.php View File


BIN
app/controller/author/auth.php View File


BIN
app/controller/author/author.php View File


BIN
app/controller/author/chapter.php View File


BIN
app/controller/author/income.php View File


BIN
app/controller/author/novel.php View File


BIN
app/controller/author/space.php View File


BIN
app/controller/author/stat.php View File


BIN
app/controller/booklist/booklist.php View File


BIN
app/controller/booklist/comment.php View File


BIN
app/controller/comment.php View File


BIN
app/controller/custompage.php View File


BIN
app/controller/desktop.php View File


BIN
app/controller/forum.php View File


BIN
app/controller/index.php View File


BIN
app/controller/manage/author.php View File


BIN
app/controller/manage/collect/collect.php View File


BIN
app/controller/manage/collect/cron.php View File


BIN
app/controller/manage/collect/log.php View File


BIN
app/controller/manage/collect/logcron.php View File


BIN
app/controller/manage/collect/rule.php View File


BIN
app/controller/manage/collect/site.php View File


BIN
app/controller/manage/content/ad/ad.php View File


BIN
app/controller/manage/content/ad/position.php View File


BIN
app/controller/manage/content/banner/banner.php View File


BIN
app/controller/manage/content/banner/position.php View File


BIN
app/controller/manage/content/booklist.php View File


BIN
app/controller/manage/content/category.php View File


BIN
app/controller/manage/content/chapter.php View File


BIN
app/controller/manage/content/comment.php View File


BIN
app/controller/manage/content/feedback.php View File


BIN
app/controller/manage/content/news/category.php View File


BIN
app/controller/manage/content/news/news.php View File


BIN
app/controller/manage/content/novel.php View File


BIN
app/controller/manage/content/recommend.php View File


BIN
app/controller/manage/content/recommendnovel.php View File


BIN
app/controller/manage/content/recommendperiod.php View File


BIN
app/controller/manage/content/special/novel.php View File


BIN
app/controller/manage/content/special/special.php View File


BIN
app/controller/manage/data.php View File


BIN
app/controller/manage/setting.php View File


BIN
app/controller/manage/system/cache.php View File


BIN
app/controller/manage/system/configure.php View File


BIN
app/controller/manage/system/custompage.php View File


BIN
app/controller/manage/system/dashboard.php View File


BIN
app/controller/manage/system/friendlink.php View File


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

Loading…
Cancel
Save