if (!$JOBS_DONE) {
// New extensions or updates found
- $value = GET_TOTAL_DATA(GET_ADMIN_ID(get_session('admin_login')), "task_system", "id", "assigned_admin", true, " AND status='NEW' AND task_type='EXTENSION_UPDATE'");
+ $value = GET_TOTAL_DATA(GET_CURRENT_ADMIN_ID(), "task_system", "id", "assigned_admin", true, " AND status='NEW' AND task_type='EXTENSION_UPDATE'");
if ($value > 0) {
- define('__TASK_UPDATE_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_task&type=updates\">".$value."</A>");
+ define('__TASK_UPDATE_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_task&type=updates\">".$value."</a>");
} else {
define('__TASK_UPDATE_VALUE', "0");
}
$value = GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true);
if ($value > 0) {
- define('__CONFIRMED_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_user&status=confirmed\">".$value."</A>");
+ define('__CONFIRMED_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_user&status=confirmed\">".$value."</a>");
} else {
define('__CONFIRMED_VALUE', "0");
}
$value = GET_TOTAL_DATA("UNCONFIRMED", "user_data", "userid", "status", true);
if ($value > 0) {
- define('__UNCONFIRMED_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=chk_regs\">".$value."</A>");
+ define('__UNCONFIRMED_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=chk_regs\">".$value."</a>");
} else {
define('__UNCONFIRMED_VALUE', "0");
}
$value = GET_TOTAL_DATA("LOCKED", "user_data", "userid", "status", true);
if ($value > 0) {
- define('__LOCKED_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_user&status=locked\">".$value."</A>");
+ define('__LOCKED_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_user&status=locked\">".$value."</a>");
} else {
define('__LOCKED_VALUE', "0");
}
$value = GET_TOTAL_DATA("0", "task_system", "id", "assigned_admin", true, " AND `status` != 'DELETED'");
if ($value > 0) {
- define('__TASK_NEW_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_task&type=unassigned\">".$value."</A>");
+ define('__TASK_NEW_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_task&type=unassigned\">".$value."</a>");
} else {
define('__TASK_NEW_VALUE', "0");
}
$value = GET_TOTAL_DATA("CLOSED", "task_system", "id", "status", true);
if ($value > 0) {
- define('__TASK_CLOSED_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_task&type=closed\">".$value."</A>");
+ define('__TASK_CLOSED_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_task&type=closed\">".$value."</a>");
} else {
define('__TASK_CLOSED_VALUE', "0");
}
$value = GET_TOTAL_DATA("DELETED", "task_system", "id", "status", true);
if ($value > 0) {
- define('__TASK_DELETED_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_task&type=deleted\">".$value."</A>");
+ define('__TASK_DELETED_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_task&type=deleted\">".$value."</a>");
} else {
define('__TASK_DELETED_VALUE', "0");
}
//
// Solved tasks
//
- $value = GET_TOTAL_DATA("SOLVED", "task_system", "id", "status", true, sprintf(" AND assigned_admin=%s", GET_ADMIN_ID(get_session('admin_login'))));
+ $value = GET_TOTAL_DATA("SOLVED", "task_system", "id", "status", true, sprintf(" AND assigned_admin=%s", GET_CURRENT_ADMIN_ID()));
if ($value > 0) {
- define('__TASK_SOLVED_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_task&type=solved\">".$value."</A>");
+ define('__TASK_SOLVED_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_task&type=solved\">".$value."</a>");
} else {
define('__TASK_SOLVED_VALUE', "0");
}
//
// Your tasks
//
- $value = GET_TOTAL_DATA(GET_ADMIN_ID(get_session('admin_login')), "task_system", "id", "assigned_admin", true, " AND status = 'NEW' AND task_type != 'EXTENSION_UPDATE'");
+ $value = GET_TOTAL_DATA(GET_CURRENT_ADMIN_ID(), "task_system", "id", "assigned_admin", true, " AND status = 'NEW' AND task_type != 'EXTENSION_UPDATE'");
if ($value > 0) {
- define('__TASK_YOUR_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=list_task\">".$value."</A>");
+ define('__TASK_YOUR_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=list_task\">".$value."</a>");
} else {
define('__TASK_YOUR_VALUE', "0");
}
$value = GET_TOTAL_DATA("ADMIN", "pool", "id", "data_type", true);
if ($value > 0) {
- define('__MAIL_ADMIN_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=unlock_emails\">".$value."</A>");
+ define('__MAIL_ADMIN_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=unlock_emails\">".$value."</a>");
} else {
define('__MAIL_ADMIN_VALUE', "0");
}
$value = GET_TOTAL_DATA("TEMP", "pool", "id", "data_type", true);
if ($value > 0) {
- define('__MAIL_TEMP_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</A>");
+ define('__MAIL_TEMP_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</a>");
} else {
define('__MAIL_TEMP_VALUE', "0");
}
$value = GET_TOTAL_DATA("SEND", "pool", "id", "data_type", true);
if ($value > 0) {
- define('__MAIL_SEND_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=email_archiv\">".$value."</A>");
+ define('__MAIL_SEND_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=email_archiv\">".$value."</a>");
} else {
define('__MAIL_SEND_VALUE', "0");
}
$value = GET_TOTAL_DATA("DELETED", "pool", "id", "data_type", true);
if ($value > 0) {
- define('__MAIL_DELETED_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</A>");
+ define('__MAIL_DELETED_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</a>");
} else {
define('__MAIL_DELETED_VALUE', "0");
}
$value = GET_TOTAL_DATA("DELETED", "bonus", "id", "data_type", true);
if ($value > 0) {
- define('__MAIL_BONUS_AP_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</A>");
+ define('__MAIL_BONUS_AP_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</a>");
} else {
define('__MAIL_BONUS_AP_VALUE', "0");
}
} elseif (EXT_IS_ACTIVE("bonus")) {
define('__MAIL_BONUS_AP_VALUE', ADMIN_EXT_BONUS_OUTDATED_1."0.1.8".ADMIN_EXT_BONUS_OUTDATED_2);
} else {
- define('__MAIL_BONUS_AP_VALUE', "<FONT class=\"admin_note\">".ADMIN_EXT_BONUS_404."</FONT>");
+ define('__MAIL_BONUS_AP_VALUE', "<div class=\"admin_note\">".ADMIN_EXT_BONUS_404."</div>");
}
} else {
- define('__MAIL_BONUS_AP_VALUE', "<FONT class=\"admin_note\">".ADMIN_EXT_AUTOPURGE_404."</FONT>");
- define('__MAIL_DELETED_VALUE', "<FONT class=\"admin_note\">".ADMIN_EXT_AUTOPURGE_404."</FONT>");
+ define('__MAIL_BONUS_AP_VALUE', "<div class=\"admin_note\">".ADMIN_EXT_AUTOPURGE_404."</div>");
+ define('__MAIL_DELETED_VALUE', "<div class=\"admin_note\">".ADMIN_EXT_AUTOPURGE_404."</div>");
}
//
$value = GET_TOTAL_DATA("SEND", "bonus", "id", "data_type", true, " AND is_notify='N'");
if ($value > 0) {
- define('__MAIL_BONUS_SEND_VALUE', "<A href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</A>");
+ define('__MAIL_BONUS_SEND_VALUE', "<a href=\"".URL."/modules.php?module=admin&what=email_details\">".$value."</a>");
} else {
define('__MAIL_BONUS_SEND_VALUE', "0");
}
if (EXT_IS_ACTIVE("autopurge")) {
// Start finding them...
- $since = $_CONFIG['ap_inactive_since'];
+ $since = getConfig('ap_inactive_since');
$EXCLUDE_LIST = "";
- if ($_CONFIG['def_refid'] > 0) {
- $EXCLUDE_LIST = " AND d.userid != ".$_CONFIG['def_refid']."";
+ if (getConfig('def_refid') > 0) {
+ $EXCLUDE_LIST = " AND d.userid != ".getConfig('def_refid')."";
} // END - if
// Check for more extensions
- if (EXT_IS_ACTIVE("beg")) $EXCLUDE_LIST .= " AND d.userid != ".$_CONFIG['beg_uid']."";
- if (EXT_IS_ACTIVE("bonus")) $EXCLUDE_LIST .= " AND d.userid != ".$_CONFIG['bonus_uid']."";
- if (EXT_IS_ACTIVE("doubler")) $EXCLUDE_LIST .= " AND d.userid != ".$_CONFIG['doubler_uid']."";
+ if (EXT_IS_ACTIVE("beg")) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('beg_uid')."";
+ if (EXT_IS_ACTIVE("bonus")) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('bonus_uid')."";
+ if (EXT_IS_ACTIVE("doubler")) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('doubler_uid')."";
if (GET_EXT_VERSION("holiday") >= "0.1.3") $EXCLUDE_LIST .= " AND d.holiday_active='N'";
// Check for all accounts
if (GET_EXT_VERSION("bonus") >= "0.6.9") {
// Add more bonus points here
$USE = "(0";
- if ($_CONFIG['bonus_click_yn'] == "Y") $USE .= " + turbo_bonus";
- if ($_CONFIG['bonus_login_yn'] == "Y") $USE .= " + login_bonus";
- if ($_CONFIG['bonus_order_yn'] == "Y") $USE .= " + bonus_order";
- if ($_CONFIG['bonus_stats_yn'] == "Y") $USE .= " + bonus_stats";
- if ($_CONFIG['bonus_ref_yn'] == "Y") $USE .= " + bonus_ref";
+ if (getConfig('bonus_click_yn') == "Y") $USE .= " + turbo_bonus";
+ if (getConfig('bonus_login_yn') == "Y") $USE .= " + login_bonus";
+ if (getConfig('bonus_order_yn') == "Y") $USE .= " + bonus_order";
+ if (getConfig('bonus_stats_yn') == "Y") $USE .= " + bonus_stats";
+ if (getConfig('bonus_ref_yn') == "Y") $USE .= " + bonus_ref";
$USE .= ")";
} else {
// Old version ???
// Autopurge installed?
$LAST = "";
- if ((EXT_IS_ACTIVE("autopurge")) && ($_CONFIG['autopurge_inactive'] == "Y") && ($_CONFIG['ap_inactive_since'] > 0)) {
+ if ((EXT_IS_ACTIVE("autopurge")) && (getConfig('autopurge_inactive') == "Y") && (getConfig('ap_inactive_since') > 0)) {
// Use last online timestamp to keep inactive members away from here
- $LAST = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", $_CONFIG['ap_inactive_since']);
+ $LAST = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig('ap_inactive_since'));
}
$SQLs[] = "SELECT ".$USE." AS points
// Autopurge installed?
$LAST = "";
- if ((EXT_IS_ACTIVE("autopurge")) && ($_CONFIG['autopurge_inactive'] == "Y") && ($_CONFIG['ap_inactive_since'] > 0)) {
+ if ((EXT_IS_ACTIVE("autopurge")) && (getConfig('autopurge_inactive') == "Y") && (getConfig('ap_inactive_since') > 0)) {
// Use last online timestamp to keep inactive members away from here
- $LAST = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", $_CONFIG['ap_inactive_since']);
+ $LAST = sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig('ap_inactive_since'));
}
$SQLs[] = "SELECT userid FROM "._MYSQL_PREFIX."_user_data
if ($key < $MAX) $content['bottom'] = "bottom2";
if (($value > 0) && (!empty($WHATs[$key]))) {
if (empty($TITLEs[$key])) $TITLEs[$key] = TASK_ADMIN_UNKNOWN_LIST_TITLE;
- $content['row_link'] = "<A href=\"".URL."/modules.php?module=admin&what=".$WHATs[$key]."\" title=\"".$TITLEs[$key]."\">".$value."</A>";
+ $content['row_link'] = "<a href=\"".URL."/modules.php?module=admin&what=".$WHATs[$key]."\" title=\"".$TITLEs[$key]."\">".$value."</a>";
} else {
$content['row_link'] = 0;
}