setContentType('text/html');
setHttpStatus('404 Not Found');
-// Is the extension mailid active?
+// Is ext-mailid active?
redirectOnUninstalledExtension('mailid');
-// Is the extension other active?
+// Is ext-other active?
redirectOnUninstalledExtension('other');
// Init data
// @TODO Improve check on $data['type'], empty() is not very much ...
if ((isValidId($data['userid'])) && (isValidId($data['id'])) && (!empty($data['type'])) && (!ifFatalErrorsDetected())) {
- // No image?
- if ($data['do'] != 'img') {
- // ... then output header
- loadIncludeOnce('inc/header.php');
- } // END - fi
-
// Is 'do' still "frames"?
if ($data['do'] == 'frames') {
// This is a frameset module
$GLOBALS['frameset_mode'] = TRUE;
} // END - if
+ // No image?
+ if ($data['do'] != 'img') {
+ // ... then output header
+ loadIncludeOnce('inc/header.php');
+ } // END - fi
+
// Init result for below sqlNumRows() function
$result_main = FALSE;
// @TODO Rewrite this to a filter/function
switch ($data['link_type']) {
case 'NORMAL':
- $result_mailid = sqlQueryEscaped("SELECT `pool_id`, `userid` AS `sender` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
+ $result_mailid = sqlQueryEscaped("SELECT `pool_id`, `userid` AS `sender`, `url` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
array($data['id']), __FILE__, __LINE__);
break;
case 'BONUS':
- $result_mailid = sqlQueryEscaped("SELECT `id` AS `pool_id`, `is_notify` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+ $result_mailid = sqlQueryEscaped("SELECT `id` AS `pool_id`, `is_notify`, `url` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
array($data['id']), __FILE__, __LINE__);
break;