* -------------------------------------------------------------------- *
* *
* -------------------------------------------------------------------- *
- * 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;
}
// Load some data
-$result = SQL_QUERY_ESC("SELECT salut, surname, family, (points_amount - points_used) AS points
+$result = SQL_QUERY_ESC("SELECT gender, surname, family, (points_amount - points_used) AS points
FROM "._MYSQL_PREFIX."_sponsor_data
WHERE id='%s' AND password='%s' LIMIT 1",
array(bigintval($_COOKIE['sponsorid']), $_COOKIE['sponsorpass']), __FILE__, __LINE__);
-list($salut, $surname, $family, $points) = SQL_FETCHROW($result);
+list($gender, $surname, $family, $points) = SQL_FETCHROW($result);
// Free memory
SQL_FREERESULT($result);
// Prepare data for the template
-define('__SALUT' , TRANSLATE_SEX($salut));
+define('__GENDER' , TRANSLATE_GENDER($gender));
define('__SURNAME', $surname);
define('__FAMILY' , $family);
define('__POINTS' , TRANSLATE_COMMA($points));