//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "TO={$toEmail},SUBJECT={$subject}<br />");
// Compile subject line (for POINTS constant etc.)
- eval("\$subject = decodeEntities(\"".compileRawCode(escapeQuotes($subject))."\");");
+ eval('$subject = decodeEntities("' . compileRawCode(escapeQuotes($subject)) . '");');
// Set from header
if ((!isInStringIgnoreCase('@', $toEmail)) && ($toEmail > 0)) {
}
// Compile "TO"
- eval("\$toEmail = \"".compileRawCode(escapeQuotes($toEmail))."\";");
+ eval('$toEmail = "' . compileRawCode(escapeQuotes($toEmail)) . '";');
// Compile "MSG"
- eval("\$message = \"".str_replace('$', '$', compileRawCode(escapeQuotes($message)))."\";");
+ eval('$message = "' . str_replace('$', '$', compileRawCode(escapeQuotes($message))) . '";');
// Fix HTML parameter (default is no!)
if (empty($isHtml)) $isHtml = 'N';
// Display selected "action form"
function SURFBAR_MEMBER_DISPLAY_ACTION_FORM ($action, $urlData) {
// Translate some data
- $urlData['url_registered'] = generateDateTime($urlData['url_registered'], 2);
- $urlData['views_total'] = translateComma($urlData['views_total']);
- $urlData['views_max'] = translateComma($urlData['views_max']);
- $urlData['views_allowed'] = translateComma($urlData['views_allowed']);
- $urlData['last_locked'] = generateDateTime($urlData['last_locked'], 2);
+ $urlData['url_registered'] = generateDateTime($urlData['url_registered'], 2);
+ $urlData['views_total'] = translateComma($urlData['views_total']);
+ $urlData['views_max'] = translateComma($urlData['views_max']);
+ $urlData['views_allowed'] = translateComma($urlData['views_allowed']);
+ $urlData['url_last_locked'] = generateDateTime($urlData['url_last_locked'], 2);
// Is the lock reason empty?
if (empty($urlData['lock_reason'])) {
$result = SQL_QUERY_ESC("SELECT
`id`, `userid`, `url`,
`views_total`, `views_max`, `views_allowed`, `status`,
- UNIX_TIMESTAMP(`registered`) AS `url_registered`, UNIX_TIMESTAMP(`last_locked`) AS `last_locked`, `lock_reason`,
+ UNIX_TIMESTAMP(`registered`) AS `url_registered`, UNIX_TIMESTAMP(`last_locked`) AS `url_last_locked`, `lock_reason`,
`views_max`, `views_allowed`, `fixed_reload`
FROM
`{?_MYSQL_PREFIX?}_surfbar_urls`
} // END - if
// Translate some data if present
- if (isset($content['status'])) $content['status'] = translateSurfbarUrlStatus($content['status']);
- if (isset($content['url_registered'])) $content['url_registered'] = generateDateTime($content['url_registered'], 2);
- if (isset($content['last_locked'])) $content['last_locked'] = generateDateTime($content['last_locked'], 2);
- if (isset($content['views_total'])) $content['views_total'] = translateComma($content['views_total']);
- if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
- if (isset($content['views_max'])) $content['views_max'] = translateComma($content['views_max']);
+ if (isset($content['status'])) $content['status'] = translateSurfbarUrlStatus($content['status']);
+ if (isset($content['url_registered'])) $content['url_registered'] = generateDateTime($content['url_registered'], 2);
+ if (isset($content['url_last_locked'])) $content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
+ if (isset($content['views_total'])) $content['views_total'] = translateComma($content['views_total']);
+ if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
+ if (isset($content['views_max'])) $content['views_max'] = translateComma($content['views_max']);
// Send the notification out
return sendAdminNotification($subject, $templateName, $content, $content['userid']);
} // END - if
// Translate some data if present
- if (isset($content['status'])) $content['status'] = translateSurfbarUrlStatus($content['status']);
- if (isset($content['url_registered'])) $content['url_registered'] = generateDateTime($content['url_registered'], 2);
- if (isset($content['last_locked'])) $content['last_locked'] = generateDateTime($content['last_locked'], 2);
- if (isset($content['views_total'])) $content['views_total'] = translateComma($content['views_total']);
- if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
- if (isset($content['views_max'])) $content['views_max'] = translateComma($content['views_max']);
+ if (isset($content['status'])) $content['status'] = translateSurfbarUrlStatus($content['status']);
+ if (isset($content['url_registered'])) $content['url_registered'] = generateDateTime($content['url_registered'], 2);
+ if (isset($content['url_last_locked'])) $content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
+ if (isset($content['views_total'])) $content['views_total'] = translateComma($content['views_total']);
+ if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
+ if (isset($content['views_max'])) $content['views_max'] = translateComma($content['views_max']);
// Load template
$mailText = loadEmailTemplate($templateName, $content, $content['userid']);
u.id, u.userid, u.url, u.status,
u.views_total, u.views_max, u.views_allowed,
UNIX_TIMESTAMP(u.registered) AS url_registered,
- UNIX_TIMESTAMP(u.last_locked) AS last_locked,
+ UNIX_TIMESTAMP(u.last_locked) AS url_last_locked,
u.lock_reason AS lock_reason
FROM
`{?_MYSQL_PREFIX?}_surfbar_urls` AS u