// Is the extension active
if (!EXT_IS_ACTIVE("mailid", true)) {
// Is not activated/installed yet!
// Is the extension active
if (!EXT_IS_ACTIVE("mailid", true)) {
// Is not activated/installed yet!
array($url_mid, $url_uid), __FILE__, __LINE__);
$type = "mailid"; $DATA = $url_mid;
} elseif ($url_bid > 0) {
// Bonus-Mail
array($url_mid, $url_uid), __FILE__, __LINE__);
$type = "mailid"; $DATA = $url_mid;
} elseif ($url_bid > 0) {
// Bonus-Mail
array($url_bid, $url_uid), __FILE__, __LINE__);
$type = "bonusid"; $DATA = $url_bid;
} else {
array($url_bid, $url_uid), __FILE__, __LINE__);
$type = "bonusid"; $DATA = $url_bid;
} else {
- $result = SQL_QUERY_ESC("SELECT pool_id, url FROM "._MYSQL_PREFIX."_user_stats WHERE id=%d LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT pool_id, url, subject FROM "._MYSQL_PREFIX."_user_stats WHERE id=%s LIMIT 1",
- $result = SQL_QUERY_ESC("SELECT id, url FROM "._MYSQL_PREFIX."_bonus WHERE id=%d LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT id, url, subject FROM "._MYSQL_PREFIX."_bonus WHERE id=%s LIMIT 1",
array($url_bid), __FILE__, __LINE__);
break;
}
if (SQL_NUMROWS($result) == 1) {
// Load data
array($url_bid), __FILE__, __LINE__);
break;
}
if (SQL_NUMROWS($result) == 1) {
// Load data
- $result = SQL_QUERY_ESC("SELECT status, sex, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%d LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT status, gender, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
array($url_uid), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
array($url_uid), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
- list($status, $sex, $sname, $fname) = SQL_FETCHROW($result);
+ list($status, $gender, $sname, $fname) = SQL_FETCHROW($result);
array(bigintval($pool)), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1)
{
array(bigintval($pool)), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1)
{
array($url_bid), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1)
{
array($url_bid), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1)
{
// Was that mail a valid one?
if ($VALID) {
// If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
// Was that mail a valid one?
if ($VALID) {
// If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
- case "index": // Redirect to index page
- LOAD_URL("modules.php?module=index&msg=".$msg);
+ case "INDEX": // Redirect to index page
+ LOAD_URL("modules.php?module=index&msg=".$msg."&ext=mailid");