default: // Do stuff when extension is loaded
$dummy = LOAD_CONFIG();
- $_CONFIG = array_merge($_CONFIG, $dummy);
+ $_CONFIG = merge_array($_CONFIG, $dummy);
unset($dummy);
- 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 active rallye is activated
if ($_CONFIG['bonus_active'] == "Y")
{
// Run active rallye
- if($_CONFIG['bonus_stats'] > 0) $INC_POOL[] = PATH."inc/stats_bonus.php";
- $INC_POOL[] = PATH."inc/monthly/monthly_bonus.php";
+ if($_CONFIG['bonus_stats'] > 0) $INC_POOL[] = sprintf("%sinc/stats_bonus.php", PATH);
+ $INC_POOL[] = sprintf("%sinc/monthly/monthly_bonus.php", PATH);
}
else
{
// Reset points
- $INC_POOL[] = PATH."inc/reset/reset_bonus.php";
+ $INC_POOL[] = sprintf("%sinc/reset/reset_bonus.php", PATH);
}
}
if (($_CONFIG['bonus_active'] == "Y") && ($_CONFIG['bonus_new_mem_notify'] == "Y"))
{
// Include file for sending out mails
- $INC_POOL[] = PATH."inc/mails/bonus_mails.php";
+ $INC_POOL[] = sprintf("%sinc/mails/bonus_mails.php", PATH);
}
break;
}