default: // Do stuff when extension is loaded
$dummy = LOAD_CONFIG();
- $_CONFIG = array_merge($_CONFIG, $dummy);
+ $_CONFIG = merge_array($_CONFIG, $dummy);
unset($dummy);
// Remove old entries
if ($_CONFIG['beg_uid_timeout'] > $OLD) $OLD = $_CONFIG['beg_uid_timeout'];
$result_ext = SQL_QUERY("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_beg_ips WHERE timeout < ".(time() - $OLD - 60*60), __FILE__, __LINE__);
- if (defined('__DAILY_RESET') && (!DEBUG_MODE) && ($CSS != 1))
+ if (isBooleanConstantAndTrue('__DAILY_RESET') && (!DEBUG_MODE) && ($CSS != 1))
{
// Daily reset was run so let's check if begging rallye is active
if ($_CONFIG['beg_rallye'] == "Y")
{
// Check for our winers
- $INC_POOL[] = PATH."inc/monthly/monthly_beg.php";
+ $INC_POOL[] = sprintf("%sinc/monthly/monthly_beg.php", PATH);
}
else
{
// Reset begging points
- $INC_POOL[] = PATH."inc/reset/reset_beg.php";
+ $INC_POOL[] = sprintf("inc/reset/reset_beg.php", PATH);
}
}
if (($_CONFIG['beg_rallye'] == "Y") && ($_CONFIG['beg_new_mem_notify'] == "Y"))
{
// Include file for sending out mails
- $INC_POOL[] = PATH."inc/mails/beg_mails.php";
+ $INC_POOL[] = sprintf("%sinc/mails/beg_mails.php", PATH);
}
// Return code for the URL