Dotclear


Ignore:
Timestamp:
07/23/18 14:42:23 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Animate some counters on dashboard icons (nb of comments, spam comments and posts), just for fun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/_prepend.php

    r3731 r3781  
    2626$core->url->register('spamfeed', 'spamfeed', '^spamfeed/(.+)$', array('dcAntispamURL', 'spamFeed')); 
    2727$core->url->register('hamfeed', 'hamfeed', '^hamfeed/(.+)$', array('dcAntispamURL', 'hamFeed')); 
     28 
     29if (!defined('DC_CONTEXT_ADMIN')) {return false;} 
     30 
     31// Admin mode 
     32 
     33$__autoload['dcAntispamRest'] = dirname(__FILE__) . '/_services.php'; 
     34 
     35// Register REST methods 
     36$core->rest->addFunction('getSpamsCount', array('dcAntispamRest', 'getSpamsCount')); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map