if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {
- ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg");
+} elseif (!EXT_IS_ACTIVE("beg")) {
return;
}
// Do not execute when script is in CSS mode
+global $CSS;
if ($CSS == 1) return;
// Create timemark from saved month
{
// Send normal notification mail to the members
$MSG = LOAD_EMAIL_TEMPLATE("beg_".$MODE."_notify", array(), $uid);
- SEND_EMAIL($email, $SUBJECT, $MSG);
+ SEND_EMAIL($uid, $SUBJECT, $MSG);
}
}