Skip to content

Commit 3508727

Browse files
committed
fixed bug
1 parent d009cd1 commit 3508727

File tree

643 files changed

+28966
-5035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

643 files changed

+28966
-5035
lines changed

conf/application/windidadmin.php

Lines changed: 0 additions & 26 deletions
This file was deleted.

conf/baseconfig.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77

88
/**=====配置开始于此=====**/
99

10+
'dbcache' => '0', //开启数据库数据缓存,当开启mem(或redis)时,开启此项,将使用mem(或redis)缓存数据库数据
11+
'distributed' => '0', //是否使用分布式架构,当开启此项时,将仅使用支持分布式的缓存策略
12+
1013
/*-----通用缓存开启-----*/
1114

1215
'mem.isopen' => 0, //开启memcache缓存,请确保服务器上已安装 memcache 服务,并已作好相应配置
13-
'mem.server' => 'Memcache', //memcache服务名,有Memcache和Memcached两种,看当前php扩展安装的是哪个
16+
'mem.server' => 'MemCache', //memcache服务名,有Memcache和Memcached两种,看当前php扩展安装的是哪个
1417
'mem.servers' => array(
1518
'default' => array(
1619
array(
@@ -25,20 +28,23 @@
2528
),
2629
),
2730
),
31+
'mem.key.prefix' => 'pw',
2832

2933

30-
'redis.isopen' => 0, //开启redis缓存,请确保服务器上已安装 redis 服务,并已作好相应配置
34+
'redis.isopen' => 0, //开启redis缓存,请确保服务器上已安装 redis 服务,并已作好相应配置
3135
'redis.servers' => array(
3236
'default' => array(
3337
array(
34-
'host' => '127.0.0.1',
38+
'host' => '10.12.83.10',
3539
'port' => 6379,
3640
'pconn' => false,
3741
'timeout' => 0,
3842
),
3943
),
4044
),
41-
'apc.isopen' => 0, //开启apc缓存,请确保服务器上已安装 apc 服务
45+
'redis.key.prefix' => 'pw',
46+
47+
'apc.isopen' => 0, //开启apc缓存,请确保服务器上已安装 apc 服务
4248

4349

4450
/*-----预设缓存键值-----*/

conf/compiler.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
*/
1111
return array(
1212
'support-tags' => array(
13+
'portal' => array(
14+
'tag' => 'pw',
15+
'compiler' => 'LIB:engine.extension.viewer.PwTemplateCompilerPortal',
16+
'pattern' => '/\<pw-start\/>(.+)<pw-end\/>/isU'
17+
),
1318
'page' => array(
1419
'tag' => 'page',
1520
'compiler' => 'LIB:engine.extension.viewer.PwTemplateCompilerPage'
@@ -18,13 +23,6 @@
1823
'tag' => 'design',
1924
'compiler' => 'LIB:engine.extension.viewer.PwTemplateCompilerDesign',
2025
),
21-
22-
'portal' => array(
23-
'tag' => 'pw',
24-
'compiler' => 'LIB:engine.extension.viewer.PwTemplateCompilerPortal',
25-
//'pattern' => '/\<pw-start\/>/i'
26-
'pattern' => '/\<pw-start\/>(.+)<pw-end\/>/isU'
27-
),
2826
'component' => array(
2927
'tag' => 'component',
3028
'compiler' => 'LIB:engine.extension.viewer.PwTemplateCompilerComponent'

conf/hooks.php

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
),
4343
'remind' => array(
4444
'class' => 'SRV:forum.srv.post.do.PwPostDoRemind',
45-
)
45+
),
46+
'word' => array(
47+
'class' => 'SRV:forum.srv.post.do.PwReplyDoWord',
48+
'description' => '回复-敏感词'
49+
),
4650
)
4751
),
4852
'm_PwReplyPost' => array(
@@ -72,6 +76,10 @@
7276
'class' => 'SRV:forum.srv.post.do.PwReplyDoNotice',
7377
'description' => '回复-通知'
7478
),
79+
'word' => array(
80+
'class' => 'SRV:forum.srv.post.do.PwReplyDoWord',
81+
'description' => '回复-敏感词'
82+
),
7583
)
7684
),
7785
'c_post_doadd' => array(
@@ -125,11 +133,6 @@
125133
'method' => 'run',
126134
'expression' => 'from_type.post==like',
127135
'description' => '回复发布 - 最后喜欢的回复'
128-
),
129-
'word' => array(
130-
'class' => 'SRV:forum.srv.post.injector.PwPostDoWordInjector',
131-
'method' => 'doadd',
132-
'description' => '帖子发布 - 敏感词'
133136
)
134137
)
135138
),
@@ -296,6 +299,28 @@
296299
),
297300
)
298301
),
302+
's_PwThreadsDao_revertTopic' => array(
303+
'description' => '还原帖子时,调用',
304+
'param' => array('@param array $tids 帖子tid序列', '@return void'),
305+
'interface' => '',
306+
'list' => array(
307+
'threadsIndex' => array(
308+
'class' => 'SRV:forum.dao.PwThreadsIndexDao',
309+
'method' => 'revertTopic',
310+
'loadway' => 'loadDao'
311+
),
312+
'threadsCateIndex' => array(
313+
'class' => 'SRV:forum.dao.PwThreadsCateIndexDao',
314+
'method' => 'revertTopic',
315+
'loadway' => 'loadDao'
316+
),
317+
'threadsDigestIndex' => array(
318+
'class' => 'SRV:forum.dao.PwThreadsDigestIndexDao',
319+
'method' => 'revertTopic',
320+
'loadway' => 'loadDao'
321+
),
322+
)
323+
),
299324
's_PwThreadsDao_delete' => array(
300325
'description' => '删除一个帖子时,调用',
301326
'param' => array('@param int $id 帖子tid', '@return void'),
@@ -832,11 +857,6 @@
832857
'class' => 'SRV:forum.srv.post.injector.PwPostDoAttInjector',
833858
'method' => 'run',
834859
'expression' => 'flashatt.post!=0'
835-
),
836-
'word' => array(
837-
'class' => 'SRV:forum.srv.post.injector.PwPostDoWordInjector',
838-
'method' => 'doadd',
839-
'description' => '帖子发布 - 敏感词'
840860
)
841861
)
842862
),
@@ -984,4 +1004,16 @@
9841004

9851005
)
9861006
),
1007+
1008+
'm_PwFreshReplyByWeibo' => array(
1009+
'description' => '微博',
1010+
'param' => array(),
1011+
'interface' => 'SRV:attention.srv.reply.weibo.PwWeiboDoBase',
1012+
'list' => array(
1013+
'word' => array(
1014+
'class' => 'SRV:attention.srv.reply.weibo.PwWeiboDoWord',
1015+
'description' => '微博-敏感词'
1016+
),
1017+
)
1018+
),
9871019
);

0 commit comments

Comments
 (0)