$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_passwd` VARCHAR(255) NOT NULL DEFAULT ''";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_erotic_allowed` TINYINT(2) NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_tm_max_reload` SMALLINT(6) NOT NULL DEFAULT ".(24 * 8)."";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_tm_min_wait` SMALLINT(6) NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_tm_min_wait` SMALLINT(6) NOT NULL DEFAULT 60";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_tm_clicks_remain` INT(7) NOT NULL DEFAULT 1000";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_tm_min_pay` FLOAT(20,5) NOT NULL DEFAULT 0.00000";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `yoomedia_requests_total` SMALLINT(6) NOT NULL DEFAULT 200";
// Add a fatal error message to the queue array
function ADD_FATAL ($message, $extra="") {
global $FATAL;
+
if (empty($extra)) {
// Regular text message to add to $FATAL
$FATAL[] = $message;
} else {
// $message is text with a mask plus extras to insert into the text
- $FATAL[] = sprintf($message, $extra);
+ $message = sprintf($message, $extra);
+ $FATAL[] = $message;
}
+
+ // Log fatal messages away
+ DEBUG_LOG(__FUNCTION__."(".__LINE__."): message={$message}");
}
// Load a template file and return it's content (only it's name; do not use ' or ")
$TITLEs[] = TASK_ADMIN_LIST_HOLIDAYS_TITLE;
}
+ if (GET_EXT_VERSION("bonus") >= "0.8.7") {
+ // List all notifications
+ $SQLs[] = "SELECT id FROM "._MYSQL_PREFIX."_bonus WHERE is_notify='Y' ORDER BY timestamp DESC";
+ $WHATs[] = "list_notifications";
+ $DESCRs[] = TASK_ADMIN_LIST_NOTIFICATIONS;
+ $TITLEs[] = TASK_ADMIN_LIST_NOTIFICATIONS_TITLE;
+ } // END - if
+
if (GET_EXT_VERSION("bonus") >= "0.2.3") {
// Active rallye
if (GET_EXT_VERSION("bonus") >= "0.6.9") {
$WHATs[] = "list_bonus";
$DESCRs[] = TASK_ADMIN_LIST_BONUS;
$TITLEs[] = TASK_ADMIN_LIST_BONUS_TITLE;
-
- if (GET_EXT_VERSION("bonus") >= "0.8.7") {
- // List all notifications
- $SQLs[] = "SELECT id FROM "._MYSQL_PREFIX."_bonus WHERE is_notify='Y' ORDER BY timestamp DESC";
- $WHATs[] = "list_notifications";
- $DESCRs[] = TASK_ADMIN_LIST_NOTIFICATIONS;
- $TITLEs[] = TASK_ADMIN_LIST_NOTIFICATIONS_TITLE;
- }
}
if (GET_EXT_VERSION("beg") >= "0.1.2") {