}
// Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) {
+if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
// Abort here
return false;
}
} // END - if
// Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) {
+if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
// Abort here
return false;
} // END - if
} // END - if
// Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) {
+if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
// Abort here
return false;
} // END - if
} // END - if
// Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) {
+if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
// Abort here
return false;
} // END - if
} // END - if
// Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) {
+if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
// Abort here
return false;
} // END - if
LIMIT %d", array($DOUBLER_POINTS, $min, getConfig('doubler_max_sent')), __FILE__, __LINE__);
// Do we have entries found?
-if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != "Y"))) {
+if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) {
// Switch to matching SQL resource
$result_load = $result_main;
if ((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) $result_load = $result_total;
function ADD_SELECTION ($type, $DEFAULT, $prefix="", $id="0") {
$OUT = '';
- if ($type == "yn") {
+ if ($type == 'yn') {
// This is a yes/no selection only!
if ($id > 0) $prefix .= "[".$id."]";
$OUT .= " <select name=\"".$prefix."\" class=\"register_select\" size=\"1\">\n";
case "day": // Day
for ($idx = 1; $idx < 32; $idx++) {
$OUT .= "<option value=\"".$idx."\"";
- if ($DEFAULT == $idx) $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == $idx) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
} // END - for
break;
case "month": // Month
foreach ($GLOBALS['month_descr'] as $month => $descr) {
$OUT .= "<option value=\"".$month."\"";
- if ($DEFAULT == $month) $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == $month) $OUT .= ' selected="selected"';
$OUT .= ">".$descr."</option>\n";
} // END - for
break;
if (($DEFAULT > $minYear) && ($DEFAULT >= $YEAR)) {
for ($idx = $YEAR; $idx < ($YEAR + 11); $idx++) {
$OUT .= "<option value=\"".$idx."\"";
- if ($DEFAULT == $idx) $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == $idx) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
} // END - for
} elseif ($DEFAULT == -1) {
// Construct year selection list
for ($idx = $minYear; $idx <= $YEAR; $idx++) {
$OUT .= "<option value=\"".$idx."\"";
- if ($DEFAULT == $idx) $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == $idx) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
} // END - for
}
for ($idx = 0; $idx < 60; $idx+=5) {
if (strlen($idx) == 1) $idx = "0".$idx;
$OUT .= "<option value=\"".$idx."\"";
- if ($DEFAULT == $idx) $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == $idx) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
} // END - for
break;
for ($idx = 0; $idx < 24; $idx++) {
if (strlen($idx) == 1) $idx = "0".$idx;
$OUT .= "<option value=\"".$idx."\"";
- if ($DEFAULT == $idx) $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == $idx) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
} // END - for
break;
- case "yn":
+ case 'yn':
$OUT .= "<option value=\"Y\"";
- if ($DEFAULT == 'Y') $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == 'Y') $OUT .= ' selected="selected"';
$OUT .= ">{--YES--}</option>\n<option value=\"N\"";
- if ($DEFAULT == 'N') $OUT .= " selected=\"selected\"";
+ if ($DEFAULT == 'N') $OUT .= ' selected="selected"';
$OUT .= ">{--NO--}</option>\n";
break;
}
$OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_ye\" size=\"1\">\n";
for ($idx = 0; $idx <= 10; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
- if ($idx == $Y) $OUT .= " selected=\"selected\"";
+ if ($idx == $Y) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
}
$OUT .= " </select></td>\n";
for ($idx = 0; $idx <= 11; $idx++)
{
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
- if ($idx == $M) $OUT .= " selected=\"selected\"";
+ if ($idx == $M) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
}
$OUT .= " </select></td>\n";
$OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_we\" size=\"1\">\n";
for ($idx = 0; $idx <= 4; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
- if ($idx == $W) $OUT .= " selected=\"selected\"";
+ if ($idx == $W) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
}
$OUT .= " </select></td>\n";
$OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_da\" size=\"1\">\n";
for ($idx = 0; $idx <= 31; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
- if ($idx == $D) $OUT .= " selected=\"selected\"";
+ if ($idx == $D) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
}
$OUT .= " </select></td>\n";
$OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_ho\" size=\"1\">\n";
for ($idx = 0; $idx <= 23; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
- if ($idx == $h) $OUT .= " selected=\"selected\"";
+ if ($idx == $h) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
}
$OUT .= " </select></td>\n";
$OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_mi\" size=\"1\">\n";
for ($idx = 0; $idx <= 59; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
- if ($idx == $m) $OUT .= " selected=\"selected\"";
+ if ($idx == $m) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
}
$OUT .= " </select></td>\n";
$OUT .= " <td align=\"center\"><select class=\"mini_select\" name=\"".$prefix."_se\" size=\"1\">\n";
for ($idx = 0; $idx <= 59; $idx++) {
$OUT .= " <option class=\"mini_select\" value=\"".$idx."\"";
- if ($idx == $s) $OUT .= " selected=\"selected\"";
+ if ($idx == $s) $OUT .= ' selected="selected"';
$OUT .= ">".$idx."</option>\n";
}
$OUT .= " </select></td>\n";
// No cache instance!
DEBUG_LOG(__FUNCTION__, __LINE__, " No cache instance found.");
return false;
- } elseif ((!isConfigEntrySet('cache_admin_menu')) || (getConfig('cache_admin_menu') != "Y")) {
+ } elseif ((!isConfigEntrySet('cache_admin_menu')) || (getConfig('cache_admin_menu') != 'Y')) {
// Caching disabled (currently experiemental!)
return false;
}
<td>
<select name=\"omode\" size=\"1\" class=\"install_select\">
<option value=\"render\"");
- if (constant('OUTPUT_MODE') == "render") OUTPUT_HTML(" selected=\"selected\"");
+ if (constant('OUTPUT_MODE') == "render") OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--MODE_RENDER--}</option>
<option value=\"direct\"");
- if (constant('OUTPUT_MODE') == "direct") OUTPUT_HTML(" selected=\"selected\"");
+ if (constant('OUTPUT_MODE') == "direct") OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--MODE_DIRECT--}</option>
</select>
</td>
<td>
<select name=\"warn_no_pass\" size=\"1\" class=\"install_select\">
<option value=\"true\"");
- if (isBooleanConstantAndTrue('warn_no_pass')) OUTPUT_HTML(" selected=\"selected\"");
+ if (isBooleanConstantAndTrue('warn_no_pass')) OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--YES--}</option>
<option value=\"false\"");
- if (!isBooleanConstantAndTrue('warn_no_pass')) OUTPUT_HTML(" selected=\"selected\"");
+ if (!isBooleanConstantAndTrue('warn_no_pass')) OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--NO--}</option>
</select>
</td>
<td>
<select name=\"wfooter\" size=\"1\" class=\"install_select\">
<option value=\"true\"");
- if (isBooleanConstantAndTrue('WRITE_FOOTER')) OUTPUT_HTML(" selected=\"selected\"");
+ if (isBooleanConstantAndTrue('WRITE_FOOTER')) OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--YES--}</option>
<option value=\"false\"");
- if (!isBooleanConstantAndTrue('WRITE_FOOTER')) OUTPUT_HTML(" selected=\"selected\"");
+ if (!isBooleanConstantAndTrue('WRITE_FOOTER')) OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--NO--}</option>
</select>
</td>
<td>
<select name=\"blink\" size=\"1\" class=\"install_select\">
<option value=\"true\"");
- if (isBooleanConstantAndTrue('ENABLE_BACKLINK')) OUTPUT_HTML(" selected=\"selected\"");
+ if (isBooleanConstantAndTrue('ENABLE_BACKLINK')) OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--YES--}</option>
<option value=\"false\"");
- if (!isBooleanConstantAndTrue('ENABLE_BACKLINK')) OUTPUT_HTML(" selected=\"selected\"");
+ if (!isBooleanConstantAndTrue('ENABLE_BACKLINK')) OUTPUT_HTML(' selected="selected"');
OUTPUT_HTML(">{--NO--}</option>
</select>
</td>
function BEG_ADD_POINTS ($uid, $points) {
// Set mode depending on how many mails the member has to confirm
$locked = false;
- if ((getConfig('ref_payout') > 0) && (getConfig('allow_direct_pay') != "Y")) $locked = true;
+ if ((getConfig('ref_payout') > 0) && (getConfig('allow_direct_pay') != 'Y')) $locked = true;
// Is begging rallye active?
if (getConfig('beg_rallye') == 'Y') {
// This function must be run *BEFORE* a link is removed from table 'mxchange_user_links' !
function BONUS_ADD_TURBO_POINTS ($mid, $uid, $type) {
// Shall we add bonus points?
- if (getConfig('bonus_active') != "Y") return false;
+ if (getConfig('bonus_active') != 'Y') return false;
// Init variables
$sql = ''; $bonys = 0; $mail = 0; $column = '';
//
function BONUS_POINTS_HANDLER ($MODE) {
// Shall we add bonus points?
- if (getConfig('bonus_active') != "Y") return;
+ if (getConfig('bonus_active') != 'Y') return;
// Switch to jackpot-mode when no UID is supplied but userid-mode is selected
if ((getConfig('bonus_mode') == "UID") && (getConfig('bonus_uid') == "0")) {
$OUT = '';
foreach ($LIST as $item) {
$selected = '';
- if ($item == $default) $selected = " selected=\"selected\"";
+ if ($item == $default) $selected = ' selected="selected"';
$OUT .= "<option value=\"".$item."\"".$selected.">{--ORDER_SELECT_COLUMN_".strtoupper($item)."--}</option>\n";
}
<option value=\"\">{--SELECT_NONE--}</option>\n";
foreach ($ral as $rallye) {
$OUT .= " <option value=\"".$rallye."\"";
- if ($default == $rallye) $OUT .= " selected=\"selected\"";
+ if ($default == $rallye) $OUT .= ' selected="selected"';
$OUT .= ">".$rallye."</option>\n";
}
$OUT .= "</select>\n";
$OUT = '';
foreach ($themesArray['theme_unix'] as $key => $theme) {
$OUT .= " <option value=\"".$theme."\"";
- if ($theme == GET_CURR_THEME()) $OUT .= " selected=\"selected\"";
+ if ($theme == GET_CURR_THEME()) $OUT .= ' selected="selected"';
$OUT .= ">".$themesArray['theme_name'][$key]."</option>\n";
} // END - foreach
// Widthdraw this amount
function WERNIS_EXECUTE_WITHDRAW ($wdsId, $userMd5, $amount) {
// Is the sponsor extension installed?
- if (getConfig('wernis_withdraw_active') != "Y") {
+ if (getConfig('wernis_withdraw_active') != 'Y') {
if (!EXT_IS_ACTIVE('sponsor')) {
// No, abort here
return false;
while ($content = SQL_FETCHARRAY($result)) {
$OUT .= " <option value=\"".bigintval($content['userid'])."\"";
- if ($def == $content['userid']) $OUT .= " selected=\"selected\"";
+ if ($def == $content['userid']) $OUT .= ' selected="selected"';
$OUT .= ">".$content['surname']." ".$content['family']." (".bigintval($content['userid']).")</option>\n";
} // END - while
// @TODO Try to rewrite this to $content = SQL_FETCHARRAY(). Please look some lines above for the dynamic query
while (list($menu, $title) = SQL_FETCHROW($result)) {
$OUT .= " <option value=\"".$menu."\"";
- if ((!empty($default)) && ($default == $menu)) $OUT .= " selected=\"selected\"";
+ if ((!empty($default)) && ($default == $menu)) $OUT .= ' selected="selected"';
$OUT .= ">".$title."</option>\n";
} // END - while
// Is that part different from the overview?
if ($part != "overview") {
$OUT .= " <option value=\"".$part."\"";
- if ($part == $default) $OUT .= " selected=\"selected\"";
+ if ($part == $default) $OUT .= ' selected="selected"';
$OUT .= ">".$part."</option>\n";
} // END - if
} // END - if
// @TODO Can this be rewritten???
$OUT .= "<select name=\"admin_id[".$content['id']."]\" size=\"1\" class=\"admin_select\">
<option value=\"0\"";
- if ($content['admin_id'] == "0") $OUT .= " selected=\"selected\"";
+ if ($content['admin_id'] == "0") $OUT .= ' selected="selected"';
$OUT .=">{--ADMINS_ALL_ADMINS--}</option>\n";
if (EXT_IS_ACTIVE('events')) {
$OUT .= "<option value=\"-1\"";
- if ($content['admin_id'] == "-1") $OUT .= " selected=\"selected\"";
+ if ($content['admin_id'] == "-1") $OUT .= ' selected="selected"';
$OUT .= ">{--ADMINS_TO_USER_EVENTS--}</option>\n";
}
$OUT .= ADD_OPTION_LINES('admins', "id", "login", $content['admin_id'], 'email');
ADMIN_SAVE_SETTINGS_POST();
} else {
// Output de-/activation selections
- define('__AP_INACTIVE_SELECTION' , ADD_SELECTION("yn", getConfig('autopurge_inactive') , "autopurge_inactive"));
- define('__AP_UNCONFIRMED_SELECTION', ADD_SELECTION("yn", getConfig('autopurge_unconfirmed'), "autopurge_unconfirmed"));
- define('__AP_TASKS_SELECTION' , ADD_SELECTION("yn", getConfig('ap_tasks') , "autopurge_tasks"));
- define('__AP_DEL_MAILS_SELECTION' , ADD_SELECTION("yn", getConfig('ap_del_mails') , "ap_del_mails"));
+ define('__AP_INACTIVE_SELECTION' , ADD_SELECTION('yn', getConfig('autopurge_inactive') , "autopurge_inactive"));
+ define('__AP_UNCONFIRMED_SELECTION', ADD_SELECTION('yn', getConfig('autopurge_unconfirmed'), "autopurge_unconfirmed"));
+ define('__AP_TASKS_SELECTION' , ADD_SELECTION('yn', getConfig('ap_tasks') , "autopurge_tasks"));
+ define('__AP_DEL_MAILS_SELECTION' , ADD_SELECTION('yn', getConfig('ap_del_mails') , "ap_del_mails"));
// Output notification selections
- define('__AP_NOTIFY_INACTIVE' , ADD_SELECTION("yn", getConfig('ap_in_notify') , "ap_in_notify"));
- define('__AP_NOTIFY_UNCONFIRMED' , ADD_SELECTION("yn", getConfig('ap_un_notify') , "ap_un_notify"));
- define('__AP_NOTIFY_TASKS' , ADD_SELECTION("yn", getConfig('ap_tasks_notify'), "ap_tasks_notify"));
- define('__AP_NOTIFY_DEL_MAILS' , ADD_SELECTION("yn", getConfig('ap_dm_notify') , "ap_dm_notify"));
+ define('__AP_NOTIFY_INACTIVE' , ADD_SELECTION('yn', getConfig('ap_in_notify') , "ap_in_notify"));
+ define('__AP_NOTIFY_UNCONFIRMED' , ADD_SELECTION('yn', getConfig('ap_un_notify') , "ap_un_notify"));
+ define('__AP_NOTIFY_TASKS' , ADD_SELECTION('yn', getConfig('ap_tasks_notify'), "ap_tasks_notify"));
+ define('__AP_NOTIFY_DEL_MAILS' , ADD_SELECTION('yn', getConfig('ap_dm_notify') , "ap_dm_notify"));
// Output time selection boxes
define('__AP_IN_SINCE' , CREATE_TIME_SELECTIONS(getConfig('ap_inactive_since'), "ap_inactive_since" , "MWDh"));
// Mail confirmation links
define('_CFG_AUTO_PURGE', CREATE_TIME_SELECTIONS(getConfig('auto_purge'), "auto_purge", "MWD"));
- if (getConfig('auto_purge_active') != "Y") {
+ if (getConfig('auto_purge_active') != 'Y') {
define('_CFG_AP_ACTIVE_N', ' chkecked="checked"');
define('_CFG_AP_ACTIVE_Y', '');
} else {
switch (getConfig('beg_pay_mode')) {
case "IMG":
- define('__BEG_PAY_MODE_IMG' , " selected=\"selected\"");
+ define('__BEG_PAY_MODE_IMG' , ' selected="selected"');
define('__BEG_PAY_MODE_JS' , '');
define('__BEG_PAY_MODE_BOTH', '');
define('__BEG_PAY_MODE_NONE', '');
case "JS":
define('__BEG_PAY_MODE_IMG' , '');
- define('__BEG_PAY_MODE_JS' , " selected=\"selected\"");
+ define('__BEG_PAY_MODE_JS' , ' selected="selected"');
define('__BEG_PAY_MODE_BOTH', '');
define('__BEG_PAY_MODE_NONE', '');
break;
case "BOTH":
define('__BEG_PAY_MODE_IMG' , '');
define('__BEG_PAY_MODE_JS' , '');
- define('__BEG_PAY_MODE_BOTH', " selected=\"selected\"");
+ define('__BEG_PAY_MODE_BOTH', ' selected="selected"');
define('__BEG_PAY_MODE_NONE', '');
break;
define('__BEG_PAY_MODE_IMG' , '');
define('__BEG_PAY_MODE_JS' , '');
define('__BEG_PAY_MODE_BOTH', '');
- define('__BEG_PAY_MODE_NONE', " selected=\"selected\"");
+ define('__BEG_PAY_MODE_NONE', ' selected="selected"');
break;
}
'sw' => $SW,
'id' => $id,
'cat' => $cat,
- 'vis' => ADD_SELECTION("yn", $vis, "vis", $id),
+ 'vis' => ADD_SELECTION('yn', $vis, "vis", $id),
'sort' => $sort,
);
} else {
// Prepare data for the template
$content = array_fill(-1, 60, '');
- $content[getConfig('index_delay')] = " selected=\"selected\"";
+ $content[getConfig('index_delay')] = ' selected="selected"';
define('__INDEX_COOKIE_SELECTION', CREATE_TIME_SELECTIONS(getConfig('index_cookie'), "index_cookie", "YMWD"));
LOAD_TEMPLATE("admin_config_home_settings", false, $content);
switch (getConfig('order_mode'))
{
case "ASC":
- define('__ASC_DEFAULT' , " selected=\"selected\"");
+ define('__ASC_DEFAULT' , ' selected="selected"');
define('__DESC_DEFAULT', '');
break;
case "DESC":
define('__ASC_DEFAULT' , '');
- define('__DESC_DEFAULT', " selected=\"selected\"");
+ define('__DESC_DEFAULT', ' selected="selected"');
break;
}
define('_CFG_UNCONFIRMED' , getConfig('unconfirmed'));
define('_CFG_MAX_TLENGTH' , getConfig('max_tlength'));
- if (getConfig('test_text') != "Y") {
+ if (getConfig('test_text') != 'Y') {
define('_CFG_TEST_TEXT_N', ' chkecked="checked"');
define('_CFG_TEST_TEXT_Y', '');
} else {
switch (getConfig('repay_deleted_mails')) {
case "REPAY":
- define('_CFG_REPAY_POINTS_REPAY' , " selected=\"selected\"");
+ define('_CFG_REPAY_POINTS_REPAY' , ' selected="selected"');
define('_CFG_REPAY_POINTS_JACKPOT', '');
define('_CFG_REPAY_POINTS_SHRED' , '');
break;
case "JACKPOT":
define('_CFG_REPAY_POINTS_REPAY' , '');
- define('_CFG_REPAY_POINTS_JACKPOT', " selected=\"selected\"");
+ define('_CFG_REPAY_POINTS_JACKPOT', ' selected="selected"');
define('_CFG_REPAY_POINTS_SHRED' , '');
break;
case "SHRED":
define('_CFG_REPAY_POINTS_REPAY' , '');
define('_CFG_REPAY_POINTS_JACKPOT', '');
- define('_CFG_REPAY_POINTS_SHRED' , " selected=\"selected\"");
+ define('_CFG_REPAY_POINTS_SHRED' , ' selected="selected"');
break;
}
- if (getConfig('test_subj') != "Y") {
+ if (getConfig('test_subj') != 'Y') {
define('_CFG_TEST_SUBJ_N', ' chkecked="checked"');
define('_CFG_TEST_SUBJ_Y', '');
} else {
define('_CFG_TEST_SUBJ_Y', ' chkecked="checked"');
}
- if (getConfig('url_blacklist') != "Y") {
+ if (getConfig('url_blacklist') != 'Y') {
define('_CFG_URL_BLIST_N', ' chkecked="checked"');
define('_CFG_URL_BLIST_Y', '');
} else {
define('_CFG_ORDER_MULTI_Y', ' chkecked="checked"');
}
- if (getConfig('autosend_active') != "Y") {
+ if (getConfig('autosend_active') != 'Y') {
define('_CFG_AUTOSEND_ACTIVE_N', ' chkecked="checked"');
define('_CFG_AUTOSEND_ACTIVE_Y', '');
} else {
define('_CFG_AUTOSEND_ACTIVE_Y', ' chkecked="checked"');
}
- if (getConfig('send_prof_update') != "Y") {
+ if (getConfig('send_prof_update') != 'Y') {
define('_CFG_SEND_UPDATE_N', ' chkecked="checked"');
define('_CFG_SEND_UPDATE_Y', '');
} else {
define('_CFG_SEND_UPDATE_Y', ' chkecked="checked"');
}
- if (getConfig('admin_notify') != "Y") {
+ if (getConfig('admin_notify') != 'Y') {
define('_CFG_ADMIN_NOTIFY_N', ' chkecked="checked"');
define('_CFG_ADMIN_NOTIFY_Y', '');
} else {
'title' => COMPILE_CODE($title),
'rate' => TRANSLATE_COMMA($rate),
'mpoi' => TRANSLATE_COMMA($mpoi),
- 'allow' => ADD_SELECTION("yn", $allow, "allow[".$id."]"),
+ 'allow' => ADD_SELECTION('yn', $allow, "allow[".$id."]"),
);
// Load row template and switch color
switch (getConfig('refid_target')) {
case 'index':
- define('__DEF_RT_INDEX' , " selected=\"selected\"");
+ define('__DEF_RT_INDEX' , ' selected="selected"');
define('__DEF_RT_REGISTER', '');
break;
case 'register':
define('__DEF_RT_INDEX' , '');
- define('__DEF_RT_REGISTER', " selected=\"selected\"");
+ define('__DEF_RT_REGISTER', ' selected="selected"');
break;
default: // Invalid config!
switch (getConfig('select_user_zero_refid')) {
case 'Y':
- define('__RAND_REFID_Y', " selected=\"selected\"");
+ define('__RAND_REFID_Y', ' selected="selected"');
define('__RAND_REFID_N', '');
break;
case 'N':
define('__RAND_REFID_Y', '');
- define('__RAND_REFID_N', " selected=\"selected\"");
+ define('__RAND_REFID_N', ' selected="selected"');
break;
default: // Invalid config!
// Add more data
$content['sw'] = $SW;
- $content['seleciton'] = ADD_SELECTION("yn", $content['field_required'], "sel[".$content['id']."]");
+ $content['seleciton'] = ADD_SELECTION('yn', $content['field_required'], "sel[".$content['id']."]");
// @TODO Move this HTML code into a template
$OUT .= "<tr>
} else {
// Remember stuff in constants
define('LEAST_CATS_VALUE' , round(getConfig('least_cats')));
- define('__CFG_SHOW_REFID' , ADD_SELECTION("yn", getConfig('display_refid') , "display_refid"));
+ define('__CFG_SHOW_REFID' , ADD_SELECTION('yn', getConfig('display_refid') , "display_refid"));
define('__TIMEOUT_SELECTION', CREATE_TIME_SELECTIONS(getConfig('ip_timeout') , "ip_timeout", "Dhm"));
- define('__CFG_DBL_EMAIL' , ADD_SELECTION("yn", getConfig('check_double_email') , "check_double_email"));
- define('__CFG_DBL_PASS' , ADD_SELECTION("yn", getConfig('check_double_pass') , "check_double_pass"));
- define('__CFG_CAT_DEFAULT' , ADD_SELECTION("yn", getConfig('register_default'), "register_default"));
+ define('__CFG_DBL_EMAIL' , ADD_SELECTION('yn', getConfig('check_double_email') , "check_double_email"));
+ define('__CFG_DBL_PASS' , ADD_SELECTION('yn', getConfig('check_double_pass') , "check_double_pass"));
+ define('__CFG_CAT_DEFAULT' , ADD_SELECTION('yn', getConfig('register_default'), "register_default"));
// Load normal template
LOAD_TEMPLATE("admin_config_register2");
switch (getConfig('anonymous_ip')) {
case "127.0.0.1":
- define('__CFG_ANONYMOUS_IP_LOCAL' , " selected=\"selected\"");
+ define('__CFG_ANONYMOUS_IP_LOCAL' , ' selected="selected"');
define('__CFG_ANONYMOUS_IP_ZERO' , '');
define('__CFG_ANONYMOUS_IP_RANDOM', '');
break;
case "0.0.0.0":
define('__CFG_ANONYMOUS_IP_LOCAL' , '');
- define('__CFG_ANONYMOUS_IP_ZERO' , " selected=\"selected\"");
+ define('__CFG_ANONYMOUS_IP_ZERO' , ' selected="selected"');
define('__CFG_ANONYMOUS_IP_RANDOM', '');
break;
case "RANDOM":
define('__CFG_ANONYMOUS_IP_LOCAL' , '');
define('__CFG_ANONYMOUS_IP_ZERO' , '');
- define('__CFG_ANONYMOUS_IP_RANDOM', " selected=\"selected\"");
+ define('__CFG_ANONYMOUS_IP_RANDOM', ' selected="selected"');
break;
} // END - switch
switch (getConfig('guest_stats'))
{
case "MEMBERS":
- define('__MEMBERS_RADIO', " selected=\"selected\"");
+ define('__MEMBERS_RADIO', ' selected="selected"');
define('__MODULES_RADIO', '');
define('__INACTIVE_RADIO', '');
break;
case "MODULES":
define('__MEMBERS_RADIO', '');
- define('__MODULES_RADIO', " selected=\"selected\"");
+ define('__MODULES_RADIO', ' selected="selected"');
define('__INACTIVE_RADIO', '');
break;
case "INACTIVE":
define('__MEMBERS_RADIO', '');
define('__MODULES_RADIO', '');
- define('__INACTIVE_RADIO', " selected=\"selected\"");
+ define('__INACTIVE_RADIO', ' selected="selected"');
break;
}
// Notification mode
if (getConfig('surfbar_notification_mode') == "INSTANT") {
// Instant notification
- define('__CONFIG_SURFBAR_NOTIFICATION_MODE_INSTANT', " selected=\"selected\"");
+ define('__CONFIG_SURFBAR_NOTIFICATION_MODE_INSTANT', ' selected="selected"');
define('__CONFIG_SURFBAR_NOTIFICATION_MODE_RESET' , '');
} else {
// Only daily reset
define('__CONFIG_SURFBAR_NOTIFICATION_MODE_INSTANT', '');
- define('__CONFIG_SURFBAR_NOTIFICATION_MODE_RESET' , " selected=\"selected\"");
+ define('__CONFIG_SURFBAR_NOTIFICATION_MODE_RESET' , ' selected="selected"');
}
// Load template
define('__CFG_TITLE_LEFT' , getConfig('title_left'));
define('__CFG_TITLE_MIDDLE' , getConfig('title_middle'));
define('__CFG_TITLE_RIGHT' , getConfig('title_right'));
- define('__CFG_TITLE_DECOS' , ADD_SELECTION("yn", getConfig('enable_title_deco'), "enable_title_deco"));
- define('__CFG_TITLE_MOD_SHOW' , ADD_SELECTION("yn", getConfig('enable_mod_title') , "enable_mod_title" ));
- define('__CFG_TITLE_WHAT_SHOW', ADD_SELECTION("yn", getConfig('enable_what_title'), "enable_what_title"));
+ define('__CFG_TITLE_DECOS' , ADD_SELECTION('yn', getConfig('enable_title_deco'), "enable_title_deco"));
+ define('__CFG_TITLE_MOD_SHOW' , ADD_SELECTION('yn', getConfig('enable_mod_title') , "enable_mod_title" ));
+ define('__CFG_TITLE_WHAT_SHOW', ADD_SELECTION('yn', getConfig('enable_what_title'), "enable_what_title"));
// Load template
LOAD_TEMPLATE("admin_config_title");
// Autppurge expired transfer entries?
switch (getConfig('ap_transfer')) {
case 'Y':
- define('__YES_AP', " selected=\"selected\"");
+ define('__YES_AP', ' selected="selected"');
define('__NO_AP', '');
break;
case 'N':
define('__YES_AP', '');
- define('__NO_AP', " selected=\"selected\"");
+ define('__NO_AP', ' selected="selected"');
break;
}
// Erotic?
switch (getConfig('yoomedia_erotic_allowed')) {
case 0: // No erotic at all
- define('__CFG_YOOMEDIA_EROTIC_NONE' , " selected=\"selected\"");
+ define('__CFG_YOOMEDIA_EROTIC_NONE' , ' selected="selected"');
define('__CFG_YOOMEDIA_EROTIC_INCLUDE', '');
define('__CFG_YOOMEDIA_EROTIC_ONLY' , '');
break;
case 1: // Include erotic
define('__CFG_YOOMEDIA_EROTIC_NONE' , '');
- define('__CFG_YOOMEDIA_EROTIC_INCLUDE', " selected=\"selected\"");
+ define('__CFG_YOOMEDIA_EROTIC_INCLUDE', ' selected="selected"');
define('__CFG_YOOMEDIA_EROTIC_ONLY' , '');
break;
case 2: // Erotic only
define('__CFG_YOOMEDIA_EROTIC_NONE' , '');
define('__CFG_YOOMEDIA_EROTIC_INCLUDE', '');
- define('__CFG_YOOMEDIA_EROTIC_ONLY' , " selected=\"selected\"");
+ define('__CFG_YOOMEDIA_EROTIC_ONLY' , ' selected="selected"');
break;
}
switch ($DATA['gender'])
{
case "M":
- define('__GENDER_M', " selected=\"selected\"");
+ define('__GENDER_M', ' selected="selected"');
define('__GENDER_F', '');
define('__GENDER_C', '');
break;
case "F":
define('__GENDER_M', '');
- define('__GENDER_F', " selected=\"selected\"");
+ define('__GENDER_F', ' selected="selected"');
define('__GENDER_C', '');
break;
case "C":
define('__GENDER_M', '');
define('__GENDER_F', '');
- define('__GENDER_C', " selected=\"selected\"");
+ define('__GENDER_C', ' selected="selected"');
break;
}
define('__SURNAME' , $DATA['surname']);
define('__EMAIL' , $DATA['email']);
define('__URL' , $DATA['url']);
// Warning because low points
- define('__REC_WARNING', ADD_SELECTION("yn", $DATA['receive_warnings'], "receive_warning"));
+ define('__REC_WARNING', ADD_SELECTION('yn', $DATA['receive_warnings'], "receive_warning"));
define('__INTERVAL' , CREATE_TIME_SELECTIONS($DATA['warning_interval'], "warning_interval", "MWDh"));
// Init variables here
switch ($gender)
{
case "M":
- define('_GENDER_M', " selected=\"selected\"");
+ define('_GENDER_M', ' selected="selected"');
define('_GENDER_F', '');
define('_GENDER_C', '');
break;
case "F":
define('_GENDER_M', '');
- define('_GENDER_F', " selected=\"selected\"");
+ define('_GENDER_F', ' selected="selected"');
define('_GENDER_C', '');
break;
case "C":
define('_GENDER_M', '');
define('_GENDER_F', '');
- define('_GENDER_C', " selected=\"selected\"");
+ define('_GENDER_C', ' selected="selected"');
break;
}
// Output row
$cssSelection = "---";
- if (GET_EXT_VERSION('sql_patches') >= '0.0.6') $cssSelection = ADD_SELECTION("yn", $css, "css", $ext_id);
+ if (GET_EXT_VERSION('sql_patches') >= '0.0.6') $cssSelection = ADD_SELECTION('yn', $css, "css", $ext_id);
// Prepare data for the row template
$content = array(
'sw' => $SW,
'id' => $ext_id,
'name' => $name,
- 'active' => ADD_SELECTION("yn", $active, 'active', $ext_id),
+ 'active' => ADD_SELECTION('yn', $active, 'active', $ext_id),
'css' => $cssSelection,
);
'menu' => $menu,
'sel' => $sel,
'sw' => $SW,
- 'visible' => ADD_SELECTION("yn", $vis , "visible", $sel),
- 'locked' => ADD_SELECTION("yn", $locked, "locked" , $sel),
+ 'visible' => ADD_SELECTION('yn', $vis , "visible", $sel),
+ 'locked' => ADD_SELECTION('yn', $locked, "locked" , $sel),
);
// Load template
'menu' => $menu,
'sel' => $sel,
'sw' => $SW,
- 'visible' => ADD_SELECTION("yn", $vis , "visible", $sel),
- 'locked' => ADD_SELECTION("yn", $locked, "locked" , $sel),
+ 'visible' => ADD_SELECTION('yn', $vis , "visible", $sel),
+ 'locked' => ADD_SELECTION('yn', $locked, "locked" , $sel),
);
// Load template
'id' => $id,
'url' => $url,
'alt' => $alt,
- 'vis' => ADD_SELECTION("yn", $vis , "visible"),
+ 'vis' => ADD_SELECTION('yn', $vis , "visible"),
);
// Load row template and switch color
// Load main template
LOAD_TEMPLATE("admin_unlock_emails");
- } elseif ((REQUEST_ISSET_POST(('lock'))) && (getConfig('url_blacklist') != "Y")) {
+ } elseif ((REQUEST_ISSET_POST(('lock'))) && (getConfig('url_blacklist') != 'Y')) {
// URL blacklist not activated
LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_URL_BLACKLIST_DISABLED'));
} else {
// First we only check the submitted data then we continue... :)
//
// Did he agree to our Terms Of Usage?
- if (REQUEST_POST('agree') != "Y") {
+ if (REQUEST_POST('agree') != 'Y') {
REQUEST_SET_POST('agree', "!");
$FAILED = true;
} // END - if
// First comes first: begging rallye
if (GET_EXT_VERSION('beg') >= '0.1.7') {
// Okay, shall I disable now?
- if (getConfig('beg_new_mem_notify') != "Y") {
+ if (getConfig('beg_new_mem_notify') != 'Y') {
$ADD1 .= ", beg_ral_notify, beg_ral_en_notify";
$ADD2 .= ", UNIX_TIMESTAMP(), UNIX_TIMESTAMP()";
} // END - if
// Second: active rallye
if (GET_EXT_VERSION('bonus') >= '0.7.7') {
// Okay, shall I disable now?
- if (getConfig('bonus_new_mem_notify') != "Y") {
+ if (getConfig('bonus_new_mem_notify') != 'Y') {
$ADD1 .= ", bonus_ral_notify, bonus_ral_en_notify";
$ADD2 .= ", UNIX_TIMESTAMP(), UNIX_TIMESTAMP()";
} // END - if
switch (REQUEST_POST('gender'))
{
case "M": // Male
- define('__GENDER_M' , " selected=\"selected\"");
+ define('__GENDER_M' , ' selected="selected"');
define('__GENDER_F' , '');
define('__GENDER_C' , '');
break;
case "F": // Female
define('__GENDER_M' , '');
- define('__GENDER_F' , " selected=\"selected\"");
+ define('__GENDER_F' , ' selected="selected"');
define('__GENDER_C' , '');
break;
case "C": // Company
define('__GENDER_M' , '');
define('__GENDER_F' , '');
- define('__GENDER_C' , " selected=\"selected\"");
+ define('__GENDER_C' , ' selected="selected"');
break;
}
switch (REQUEST_POST('receive_warnings'))
{
case 'Y':
- define('__REC_Y' , " selected=\"selected\"");
+ define('__REC_Y' , ' selected="selected"');
define('__REC_N' , '');
break;
case 'N':
define('__REC_Y' , '');
- define('__REC_N' , " selected=\"selected\"");
+ define('__REC_N' , ' selected="selected"');
break;
}
switch ($DATA[10])
{
case "M":
- define('M_DEFAULT', " selected=\"selected\"");
+ define('M_DEFAULT', ' selected="selected"');
define('F_DEFAULT', '');
define('C_DEFAULT', '');
break;
case "F":
define('M_DEFAULT', '');
- define('F_DEFAULT', " selected=\"selected\"");
+ define('F_DEFAULT', ' selected="selected"');
define('C_DEFAULT', '');
break;
case "C":
define('M_DEFAULT', '');
define('F_DEFAULT', '');
- define('C_DEFAULT', " selected=\"selected\"");
+ define('C_DEFAULT', ' selected="selected"');
break;
}
$DOB = '';
SQL_FREERESULT($result);
// 01 2 21 12 2 23 443 3 3210
- if ((REQUEST_ISSET_POST(('data'))) || ((getConfig('order_multi_page') != "Y") && ((!IS_ADMIN()) && (!EXT_IS_ACTIVE('html_mail'))))) {
+ if ((REQUEST_ISSET_POST(('data'))) || ((getConfig('order_multi_page') != 'Y') && ((!IS_ADMIN()) && (!EXT_IS_ACTIVE('html_mail'))))) {
// Pre-output categories
$CAT = '';
foreach ($CATS['id'] as $key => $value) {
$CAT .= " <option value=\"".$value."\"";
- if (($OLD_ORDER) && ($content['cat'] == $value)) $CAT .= " selected=\"selected\"";
+ if (($OLD_ORDER) && ($content['cat'] == $value)) $CAT .= ' selected="selected"';
$CAT .= ">".$CATS['name'][$key]." (".$CATS['uids'][$key]." {--USER_IN_CAT--})</option>\n";
} // END - foreach
if (is_array($value)) {
// Output option line
$type .= " <option value=\"".$typeS[$key][0]."\"";
- if (($OLD_ORDER) && ($payment == $typeS[$key][0])) $type .= " selected=\"selected\"";
+ if (($OLD_ORDER) && ($payment == $typeS[$key][0])) $type .= ' selected="selected"';
$type .= ">".$P." {--PER_MAIL--} - ".$typeS[$key][3]." - ".round($typeS[$key][2])." {--PAYMENT--}</option>\n";
} // END - if
} // END - foreach
// Output rows
define('__SPECIAL_ROWS', LOAD_TEMPLATE("member_points_bonus_rows", true));
-} elseif (getConfig('bonus_active') != "Y") {
+} elseif (getConfig('bonus_active') != 'Y') {
// Bonus active rallye deactivated
define('__SPECIAL_ROWS', LOAD_TEMPLATE("member_points_bonus_disabled", true));
} elseif ((IS_ADMIN()) && (EXT_VERSION_IS_OLDER('bonus', '0.2.2')) && (EXT_IS_ACTIVE('bonus'))) {
}
// Is the refback system enabled?
-if (getConfig('refback_enabled') != "Y") {
+if (getConfig('refback_enabled') != 'Y') {
// Output message
LOAD_TEMPLATE('admin_settings_saved', false, getMessage('MEMBER_REFBACK_DISABLED'));
// Abort here
$OUT = ''; $SW = 2;
foreach ($THEMES['theme_unix'] as $key => $unix) {
$default = '';
- if (get_session('mxchange_theme') == $unix) $default = " selected=\"selected\"";
+ if (get_session('mxchange_theme') == $unix) $default = ' selected="selected"';
// Add row
$OUT .= "<tr>
// @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
while (list($uid, $nick) = SQL_FETCHROW($result)) {
$OUT .= " <option value=\"".$uid."\"";
- if ((REQUEST_ISSET_POST(('to_uid'))) && (REQUEST_POST('to_uid') == $uid)) $OUT .= " selected=\"selected\"";
+ if ((REQUEST_ISSET_POST(('to_uid'))) && (REQUEST_POST('to_uid') == $uid)) $OUT .= ' selected="selected"';
$OUT .= ">";
if (($nick != $uid) && (!empty($nick))) {
// Output nickname
switch ($content['gender'])
{
case "M": // Male
- define('__GENDER_M', " selected=\"selected\"");
+ define('__GENDER_M', ' selected="selected"');
define('__GENDER_F', '');
define('__GENDER_C', '');
break;
case "F": // Female
define('__GENDER_M', '');
- define('__GENDER_F', " selected=\"selected\"");
+ define('__GENDER_F', ' selected="selected"');
define('__GENDER_C', '');
break;
case "C": // Company
define('__GENDER_M', '');
define('__GENDER_F', '');
- define('__GENDER_C', " selected=\"selected\"");
+ define('__GENDER_C', ' selected="selected"');
break;
}
}
// Do not execute when script is in CSS mode or no daily reset
-if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled()) || (getConfig('beg_rallye') != "Y")) return;
+if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled()) || (getConfig('beg_rallye') != 'Y')) return;
//* DEBUG: */ echo basename(__FILE__)."<br />\n";
// Get current month (2 digits)
$whereStatement2 = getConfig(('beg_ranks'));
// Shall we exclude webmaster's own userid?
- if ((getConfig('beg_include_own') != "Y") && (getConfig('beg_uid') > 0)) {
+ if ((getConfig('beg_include_own') != 'Y') && (getConfig('beg_uid') > 0)) {
// Exclude it
$whereStatement1 = sprintf(" AND userid != %s", getConfig(('beg_uid')));
} // END - if
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
$OUT .= " <option value=\"".$content['value']."\"";
- if (REQUEST_POST('max_mails') == $content['value']) $OUT .= " selected=\"selected\"";
+ if (REQUEST_POST('max_mails') == $content['value']) $OUT .= ' selected="selected"';
$OUT .= ">".$content['value']." {--PER_DAY--}";
if (!empty($content['comment'])) $OUT .= " (".$content['comment'].")";
$OUT .= "</option>\n";
// Both are arrays
foreach ($id as $idx => $value) {
$ret .= "<option value=\"".$value."\"";
- if ($default == $value) $ret .= " selected=\"selected\"";
+ if ($default == $value) $ret .= ' selected="selected"';
$ret .= ">".$name[$idx]."</option>\n";
} // END - foreach
} // END - if
while (list($value, $title, $add) = SQL_FETCHROW($result)) {
if (empty($special)) $add = '';
$ret .= "<option value=\"".$value."\"";
- if ($default == $value) $ret .= " selected=\"selected\"";
+ if ($default == $value) $ret .= ' selected="selected"';
if (!empty($add)) $add = " (".$add.")";
$ret .= ">".$title.$add."</option>\n";
} // END - while