这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
zblogphp:development:plugin:interfacestc:filter_plugin_postarticle_core [2020/08/31 15:31] 唐朝 |
zblogphp:development:plugin:interfacestc:filter_plugin_postarticle_core [2020/12/22 18:20] (当前版本) 唐朝 |
||
---|---|---|---|
行 3: | 行 3: | ||
<code php> | <code php> | ||
function ActivePlugin_tc_cs() { | function ActivePlugin_tc_cs() { | ||
- | Add_Filter_Plugin('filter_plugin_postarticle_core','ytecn_postarticle_core'); | + | Add_Filter_Plugin('Filter_Plugin_PostArticle_Core','ytecn_postarticle_core'); |
} | } | ||
- | function ytecn_postarticle_core(&$comment) { | + | function ytecn_postarticle_core(&$article) { |
$a=date('H',time()); | $a=date('H',time()); | ||
$a=(int)$a; | $a=(int)$a; | ||
行 16: | 行 16: | ||
} | } | ||
if($states == 1){ | if($states == 1){ | ||
- | $comment->IsChecking=1; | + | $article->States=1; |
} | } | ||
} | } | ||
</code> | </code> |