/* 0.98 Solved naar.be bug
*/
+include_once(dirname(__FILE__)."/blacklist/blacklist_lib.php");
+
class NP_Blacklist extends NucleusPlugin {
function getName() { return 'Blacklist'; }
function getAuthor() { return 'xiffy + cles'; }
return $this->resultCache . '[Cached]';
if ($this->getOption('enabled') == 'yes') {
- include_once($DIR_PLUGINS."blacklist/blacklist_lib.php");
// update the blacklist first file
//pbl_updateblacklist($this->getOption('update'),false);
if ($ipblock) {
<?php
/**
-* cache_eaccelerator.php ($Revision: 1.1 $)
+* cache_eaccelerator.php ($Revision: 1.2 $)
*
* by hsur ( http://blog.cles.jp/np_cles )
-* $Id: cache_eaccelerator.php,v 1.1 2006-09-30 09:48:05 hsur Exp $
+* $Id: cache_eaccelerator.php,v 1.2 2006-09-30 11:46:18 hsur Exp $
*/
function pbl_ipcache_write(){
// eAccelerator Cache
$lastGc = intval(eaccelerator_get(NP_BLACKLIST_CACHE_GC_TIMESTAMP));
if($now - $lastGc > NP_BLACKLIST_CACHE_GC_INTERVAL){
+ pbl_log("GC started.");
eaccelerator_gc();
$lastGc = $now;
eaccelerator_lock(NP_BLACKLIST_CACHE_GC_TIMESTAMP);