setPostRequestElement('percents', array($id => convertCommaToDot(postRequestElement('percents', $id))));
// Update entry
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`=%s, `percents`=%s WHERE `id`=%s LIMIT 1",
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`=%s,`percents`=%s WHERE `id`=%s LIMIT 1",
array(bigintval($value), convertCommaToDot(postRequestElement('percents', $id)), $id), __FILE__, __LINE__);
} // END - foreach
- $message = '{--ADMIN_REFERAL_DEPTHS_SAVED--}';
+ $message = '{--ADMIN_REFERRAL_DEPTHS_SAVED--}';
break;
case 'delete':
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
} // END - foreach
- $message = '{--ADMIN_REFERAL_DEPTHS_DELETED--}';
+ $message = '{--ADMIN_REFERRAL_DEPTHS_DELETED--}';
break;
} // END - switch
rebuildCache('config', 'config');
} else {
// Prepare failed-message
- $message = '<span class="notice">{--SETTINGS_NOT_SAVED--}</span>';
+ $message = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
}
// Remove SQL queries
} // END - if
} elseif (getRequestElement('sub') == 'settings') {
// Setup some settings like direct pay and so on
- // Including new add-mode for one-time referal bonus
+ // Including new add-mode for one-time referral bonus
foreach (array('allow_direct_pay') as $entry) {
$content[$entry . '_y'] = '';
$content[$entry . '_n'] = '';
// Load main template
loadTemplate('admin_edit_reflevel', false, $OUT);
} else {
- // Referal levels
+ // Referral levels
$result = SQL_QUERY("SELECT `id`,`level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
if (!SQL_HASZERONUMS($result)) {
- // Make referal levels editable and deletable
+ // Make referral levels editable and deletable
$OUT = '';
// List already existing categories for editing
loadTemplate('admin_list_reflevel', false, $OUT);
}
- // Form for adding new referal levels
+ // Form for adding new referral levels
loadTemplate('admin_add_reflevel');
}
} elseif (getRequestElement('sub') == 'points') {