More fields rewritten, statement added when the bug-report mails got removed
authorRoland Häder <roland@mxchange.org>
Wed, 10 Mar 2010 00:32:43 +0000 (00:32 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 10 Mar 2010 00:32:43 +0000 (00:32 +0000)
inc/functions.php
inc/libs/surfbar_functions.php
templates/de/html/ext/ext_report.tpl

index 1f462bd..0a6f17f 100644 (file)
@@ -536,7 +536,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '
        //* 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)) {
@@ -582,10 +582,10 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '
        }
 
        // Compile "TO"
-       eval("\$toEmail = \"".compileRawCode(escapeQuotes($toEmail))."\";");
+       eval('$toEmail = "' . compileRawCode(escapeQuotes($toEmail)) . '";');
 
        // Compile "MSG"
-       eval("\$message = \"".str_replace('$', '&#36;', compileRawCode(escapeQuotes($message)))."\";");
+       eval('$message = "' . str_replace('$', '&#36;', compileRawCode(escapeQuotes($message))) . '";');
 
        // Fix HTML parameter (default is no!)
        if (empty($isHtml)) $isHtml = 'N';
index ab04a7f..9b1b5be 100644 (file)
@@ -364,11 +364,11 @@ function SURFBAR_MEMBER_RESUBMIT_ACTION ($urlData) {
 // 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'])) {
@@ -556,7 +556,7 @@ function SURFBAR_GET_URL_DATA ($searchTerm, $column = 'id', $order = 'id', $sort
        $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`
@@ -684,12 +684,12 @@ function SURFBAR_NOTIFY_ADMIN ($messageType, $content) {
        } // 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']);
@@ -717,12 +717,12 @@ function SURFBAR_NOTIFY_USER ($messageType, $content) {
        } // 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']);
@@ -1488,7 +1488,7 @@ function SURFBAR_GET_USER_URLS () {
        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
index 623d2c4..0f536c7 100644 (file)
@@ -35,6 +35,7 @@ Reproduzierung n&ouml;tig)</li>
 <div class="para">
 Die Daten aus den Bugs werden stets vertraulich behandelt und unterliegen den
 aktuellen Datenschutzgesetzen. Es erfolgt ausnahmelos keine Weitergabe oder
-Weiterleitung in jeglicher Form an Dritte.
+Weiterleitung in jeglicher Form an Dritte. Die Mails werden nach der Behebung
+des Fehlers von mir vollst&auml;ndig und r&uuml;ckstandlos gel&ouml;scht.
 </div>