************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
} elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) {
if (($CSS == 1) || (defined('__DAILY_RESET'))) return;
// Reset surfbar counter
-UPDATE_CONFIG("surfbar_daily_counter", "0");
+UPDATE_CONFIG(array("surfbar_daily_counter", "surfbar_yester_counter`"), array(0, $_CONFIG['surfbar_daily_counter']));
+$_CONFIG['surfbar_yester_counter'] = $_CONFIG['surfbar_daily_counter'];
$_CONFIG['surfbar_daily_counter'] = 0;
//