]> git.mxchange.org Git - mailer.git/commitdiff
Email templates added when member edits his/her URLs
authorRoland Häder <roland@mxchange.org>
Thu, 27 Nov 2008 23:49:22 +0000 (23:49 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 27 Nov 2008 23:49:22 +0000 (23:49 +0000)
.gitattributes
inc/databases.php
inc/libs/surfbar_functions.php
templates/de/emails/admin/admin_surfbar_url_edited.tpl [new file with mode: 0644]
templates/de/emails/member/member_surfbar_url_depleted.tpl
templates/de/emails/member/member_surfbar_url_edited.tpl [new file with mode: 0644]

index 4947c0a6e7fe1a5011e4f0820d9267dd2857fae8..e16bba4df2f20911a2eec895e112f935f1ad4b68 100644 (file)
@@ -655,6 +655,7 @@ templates/de/emails/admin/admin_support-reflink.tpl -text
 templates/de/emails/admin/admin_support-unconfirmed.tpl -text
 templates/de/emails/admin/admin_surfbar_url_confirmed.tpl -text
 templates/de/emails/admin/admin_surfbar_url_depleted.tpl -text
+templates/de/emails/admin/admin_surfbar_url_edited.tpl -text
 templates/de/emails/admin/admin_surfbar_url_migrate.tpl -text
 templates/de/emails/admin/admin_surfbar_url_pending.tpl -text
 templates/de/emails/admin/admin_surfbar_url_reg.tpl -text
@@ -730,6 +731,7 @@ templates/de/emails/member/member_support-unconfirmed.tpl -text
 templates/de/emails/member/member_surfbar_low_points.tpl -text
 templates/de/emails/member/member_surfbar_url_confirmed.tpl -text
 templates/de/emails/member/member_surfbar_url_depleted.tpl -text
+templates/de/emails/member/member_surfbar_url_edited.tpl -text
 templates/de/emails/member/member_surfbar_url_migrate.tpl -text
 templates/de/emails/member/member_surfbar_url_pending.tpl -text
 templates/de/emails/member/member_surfbar_url_reg.tpl -text
index 74522f8b05d1491281d9bde8c989b5b9ac06502e..dbc806f85874f2973e3d3ef77ee1c2e5c85ca174 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "565");
+define('CURR_SVN_REVISION', "566");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index a4623cdf85980ef146c31f012782f62b958d8b0c..321a76a64e8b1f1947fe9dd14304886bbc41fee6 100644 (file)
@@ -402,8 +402,7 @@ function SURFBAR_MEMBER_EXECUTE_EDIT_ACTION ($urlData) {
        $url2 = COMPILE_CODE($urlData['edit']['url']);
 
        // Has the URL or limit changed?
-       if (true) {
-       //if (($urlData['views_allowed'] != $urlData['edit']['limit']) || ($url1 != $url2)) {
+       if (($urlData['views_allowed'] != $urlData['edit']['limit']) || ($url1 != $url2)) {
                // Run the query
                SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_surfbar_urls SET url='%s', views_allowed=%s, views_max=%s WHERE id=%s AND status='%s' LIMIT 1",
                        array($urlData['url'], $urlData['edit']['limit'], $urlData['edit']['limit'], $urlData['id'], $urlData['status']), __FILE__, __LINE__);
@@ -418,10 +417,13 @@ function SURFBAR_MEMBER_EXECUTE_EDIT_ACTION ($urlData) {
 
                // Send user notification
                SURFBAR_NOTIFY_USER("url_edited", $urlData);
-       } // END - if
 
-       // All fine!
-       return true;
+               // All fine
+               return true;
+       }
+
+       // Not updated
+       return false;
 }
 //
 // -----------------------------------------------------------------------------
@@ -1165,6 +1167,9 @@ function SURFBAR_DETERMINE_WAIT_TIME () {
 function SURFBAR_CHANGE_STATUS ($urlId, $prevStatus, $newStatus, $data=array()) {
        global $_CONFIG;
 
+       // Make new status always lower-case
+       $newStatus = strtolower($newStatus);
+
        // Get URL data for status comparison if missing
        if ((!is_array($data)) || (count($data) == 0)) {
                // Fetch missing URL data
@@ -1202,8 +1207,6 @@ function SURFBAR_CHANGE_STATUS ($urlId, $prevStatus, $newStatus, $data=array())
        $data[$urlId]['reward']      = TRANSLATE_COMMA($_CONFIG['surfbar_static_reward']);
        $data[$urlId]['costs']       = TRANSLATE_COMMA($_CONFIG['surfbar_static_costs']);
        $data[$urlId]['status']      = SURFBAR_TRANSLATE_STATUS($newStatus);
-       $data[$urlId]['registered']  = MAKE_DATETIME($data[$urlId]['registered'], "2");
-       $newStatus = strtolower($newStatus);
 
        // Send admin notification
        SURFBAR_NOTIFY_ADMIN("url_{$newStatus}", $data[$urlId]);
diff --git a/templates/de/emails/admin/admin_surfbar_url_edited.tpl b/templates/de/emails/admin/admin_surfbar_url_edited.tpl
new file mode 100644 (file)
index 0000000..2864f2d
--- /dev/null
@@ -0,0 +1,33 @@
+{--HELLO_ADMIN--},
+
+Ein Mitglied hat soeben seine URL ge&auml;ndert:
+
+Hier sind alle Daten dazu:
+------------------------------------------
+User-ID: $content[userid]
+------------------------------------------
+Email: $content[email]
+------------------------------------------
+Name: $content[surname] $content[family]
+------------------------------------------
+Gebuchte URL: $content[url] (Neu: $content[new_url])
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+URL angemeldet: $content[registered]
+------------------------------------------
+Zuletzt gesperrt: $content[last_locked]
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Gesamteinblendungen: $content[views_total]
+------------------------------------------
+Maximale Einblendungen: $content[views_allowed] (Neu: $content[new_limit])
+------------------------------------------
+Davon &uuml;brig: $content[views_max] (Neu: $content[new_limit])
+------------------------------------------
+
+{--ADMIN_THANX--}
+  {--YOUR--} {!MAIN_TITLE!} {--SCRIPT--}
+
+{!URL!}/admin.php
index e3cf5ea877c24fc64696b520f80de5c6a59cfac7..d40466914b8357fa10ec45c6ef213584ddc96b32 100644 (file)
@@ -12,12 +12,12 @@ Status: $content[status]
 ------------------------------------------
 Datum der Buchung: $content[registered]
 ------------------------------------------
-Gesamteinblendungen: $content[views_total] 
------------------------------------------- 
-Maximale Einblendungen: $content[views_allowed] 
------------------------------------------- 
-Davon &uuml;brig: $content[views_max] 
------------------------------------------- 
+Gesamteinblendungen: $content[views_total]
+------------------------------------------
+Maximale Einblendungen: $content[views_allowed]
+------------------------------------------
+Davon &uuml;brig: $content[views_max]
+------------------------------------------
 Kosten/Aufruf: $content[costs] {!POINTS!}
 ------------------------------------------
 ID in der Surfbar: $content[id]
diff --git a/templates/de/emails/member/member_surfbar_url_edited.tpl b/templates/de/emails/member/member_surfbar_url_edited.tpl
new file mode 100644 (file)
index 0000000..5113c0b
--- /dev/null
@@ -0,0 +1,25 @@
+Hallo $content[gender] $content[surname] $content[family],
+
+Sie hatten soeben Ihre gebuchte URL ge&auml;ndert. Dabei wurde sie eventuell auf "Wartend" gestellt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+User-ID: $content[userid]
+------------------------------------------
+Gebuchte URL: $content[url] (Neu: $content[new_url])
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+URL angemeldet: $content[registered]
+------------------------------------------
+Zuletzt gesperrt: $content[last_locked]
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Neue maximale Einblendungen: $content[new_limit]
+------------------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {!MAIN_TITLE!} Team
+
+{!URL!}/login.php ({!WEBMASTER!})