* -------------------------------------------------------------------- *
* *
* -------------------------------------------------------------------- *
- * Copyleft (c) 2003, 2004, 2005 by Roland Haeder *
+ * Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software. You can redistribute it and/or modify *
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
require($INC);
} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
- $FATAL[] = EXTENSION_PROBLEM_EXT_INACTIVE;
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE);
return;
} elseif (!IS_SPONSOR()) {
// No sponsor!
- $FATAL[] = SPONSOR_ONLY_AREA_ENTERED;
+ ADD_FATAL(SPONSOR_ONLY_AREA_ENTERED);
return;
}
// Data for the formular
$result = SQL_QUERY_ESC("SELECT company, position, tax_ident,
-salut, surname, family, street_nr1, street_nr2, zip, city, country,
+gender, surname, family, street_nr1, street_nr2, zip, city, country,
phone, fax, cell, email, url,
status, receive_warnings
FROM "._MYSQL_PREFIX."_sponsor_data
$OUT = LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_NO_MESSAGE_GENERATED);
}
} else {
- // Check for salutation selection
- switch ($content['salut'])
+ // Check for gender selection
+ switch ($content['gender'])
{
case "M": // Male
- define('__SALUT_M', " selected");
- define('__SALUT_F', "");
- define('__SALUT_C', "");
+ define('__GENDER_M', " selected");
+ define('__GENDER_F', "");
+ define('__GENDER_C', "");
break;
case "F": // Female
- define('__SALUT_M', "");
- define('__SALUT_F', " selected");
- define('__SALUT_C', "");
+ define('__GENDER_M', "");
+ define('__GENDER_F', " selected");
+ define('__GENDER_C', "");
break;
case "C": // Company
- define('__SALUT_M', "");
- define('__SALUT_F', "");
- define('__SALUT_C', " selected");
+ define('__GENDER_M', "");
+ define('__GENDER_F', "");
+ define('__GENDER_C', " selected");
break;
}