$DATA['keys'][] = 'status';
if ((!$NO_UPDATE) && (IS_ADMIN()) && ($GLOBALS['what'] == "add_sponsor")) {
// Only allowed for admin
$DATA['keys'][] = 'status';
if ((!$NO_UPDATE) && (IS_ADMIN()) && ($GLOBALS['what'] == "add_sponsor")) {
// Only allowed for admin
if (!empty($sql)) {
// Run SQL command
$result = SQL_QUERY_ESC($sql, $DATA['values'], __FUNCTION__, __LINE__);
if (!empty($sql)) {
// Run SQL command
$result = SQL_QUERY_ESC($sql, $DATA['values'], __FUNCTION__, __LINE__);
// Output message
if ((!$NO_UPDATE) && (IS_ADMIN())) {
LOAD_TEMPLATE('admin_settings_saved', false, $message);
// Output message
if ((!$NO_UPDATE) && (IS_ADMIN())) {
LOAD_TEMPLATE('admin_settings_saved', false, $message);
LOAD_TEMPLATE('admin_settings_saved', false, $message);
}
// Shall we return the status?
LOAD_TEMPLATE('admin_settings_saved', false, $message);
}
// Shall we return the status?
// Search for an email address in the database
function SPONSOR_FOUND_EMAIL_DB ($email) {
// Do we already have the provided email address in our DB?
// Search for an email address in the database
function SPONSOR_FOUND_EMAIL_DB ($email) {
// Do we already have the provided email address in our DB?
- $ret = (GET_TOTAL_DATA($email, "sponsor_data", "id", 'email', true) == 1);
+ $ret = (GET_TOTAL_DATA($email, "sponsor_data", 'id', 'email', true) == 1);