Surfbar continued:
authorRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 02:14:42 +0000 (02:14 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 02:14:42 +0000 (02:14 +0000)
- Template for unlocking locked URLs renamed
- Fix in status handler function
- Again status commented out for developing

.gitattributes
inc/databases.php
inc/libs/surfbar_functions.php
inc/modules/admin/admin-inc.php
templates/de/emails/admin/admin_lock_active_surfbar_urls.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_lock_confirmed_surfbar_urls.tpl [deleted file]
templates/de/emails/member/member_lock_active_surfbar_urls.tpl [new file with mode: 0644]
templates/de/emails/member/member_lock_confirmed_surfbar_urls.tpl [deleted file]

index 8835d5b..5440dc2 100644 (file)
@@ -630,7 +630,7 @@ templates/de/emails/admin/admin_edit_surfbar_urls.tpl -text
 templates/de/emails/admin/admin_holiday_deactivated.tpl -text
 templates/de/emails/admin/admin_holiday_request.tpl -text
 templates/de/emails/admin/admin_holiday_unlock.tpl -text
-templates/de/emails/admin/admin_lock_confirmed_surfbar_urls.tpl -text
+templates/de/emails/admin/admin_lock_active_surfbar_urls.tpl -text
 templates/de/emails/admin/admin_lock_locked_surfbar_urls.tpl -text
 templates/de/emails/admin/admin_mydata_notify.tpl -text
 templates/de/emails/admin/admin_newsletter_request.tpl -text
@@ -714,7 +714,7 @@ templates/de/emails/member/member_holiday_activated.tpl -text
 templates/de/emails/member/member_holiday_removed.tpl -text
 templates/de/emails/member/member_holiday_request.tpl -text
 templates/de/emails/member/member_holiday_unlock.tpl -text
-templates/de/emails/member/member_lock_confirmed_surfbar_urls.tpl -text
+templates/de/emails/member/member_lock_active_surfbar_urls.tpl -text
 templates/de/emails/member/member_lock_locked_surfbar_urls.tpl -text
 templates/de/emails/member/member_mydata_notify.tpl -text
 templates/de/emails/member/member_newsletter_done.tpl -text
index d059295..f268fd4 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', "573");
+define('CURR_SVN_REVISION', "574");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index e64aac3..26610a4 100644 (file)
@@ -1205,15 +1205,15 @@ function SURFBAR_CHANGE_STATUS ($urlId, $prevStatus, $newStatus, $data=array())
 
        // Update the status now
        // ---------- Comment out for debugging/developing member actions! ---------
-       SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_surfbar_urls SET status='%s' WHERE id=%s LIMIT 1",
-               array($newStatus, bigintval($urlId)), __FILE__, __LINE__);
+       //SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_surfbar_urls SET status='%s' WHERE id=%s LIMIT 1",
+       //      array($newStatus, bigintval($urlId)), __FILE__, __LINE__);
        // ---------- Comment out for debugging/developing member actions! ---------
 
        // Was that fine?
-       if (SQL_AFFECTEDROWS() != 1) {
-               // No, something went wrong
-               return false;
-       } // END - if
+       //if (SQL_AFFECTEDROWS() != 1) {
+       //      // No, something went wrong
+       //      return false;
+       //} // END - if
 
        // Prepare content for notification routines
        $data[$urlId]['uid']         = $data[$urlId]['userid'];
index 355d5ef..b6fa6a8 100644 (file)
@@ -987,6 +987,9 @@ function ADMIN_BUILD_STATUS_HANDLER ($mode, $IDs, $table, $columns, $filterFunct
                                        } else {
                                                // Add regular entry
                                                $SQL .= sprintf(" %s='%s',", SQL_ESCAPE($key), SQL_ESCAPE($entries[$id]));
+
+                                               // Add entry
+                                               $content[$key] = $entries[$id];
                                        }
                                } // END - if
                        } // END - foreach
@@ -1156,7 +1159,7 @@ function ADMIN_LOCK_ENTRIES_CONFIRM ($IDs, $table, $columns=array(), $filterFunc
                // Shall we un-/lock here or list for locking?
                if ($lockNow) {
                        // Un-/lock entries
-                       ADMIN_BUILD_STATUS_HANDLER("lock", $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
+                       ADMIN_BUILD_STATUS_HANDLER("lock", $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $statusArray);
                } else {
                        // List for editing
                        ADMIN_BUILD_LIST("lock", $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
diff --git a/templates/de/emails/admin/admin_lock_active_surfbar_urls.tpl b/templates/de/emails/admin/admin_lock_active_surfbar_urls.tpl
new file mode 100644 (file)
index 0000000..ad32d2f
--- /dev/null
@@ -0,0 +1,26 @@
+{--HELLO_ADMIN--},
+
+Es wurde eine URL in der Surfbar freigegeben.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+URL: $content[url]
+------------------------------------------
+Framekiller-Test:
+$content[frametester]
+------------------------------------------
+User-ID: $content[userid]
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Letzte Sperrung: $content[last_locked]
+------------------------------------------
+Angemeldet: $content[registered]
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+
+{--ADMIN_THANX--}
+  {--YOUR--} {!MAIN_TITLE!} {--SCRIPT--}
+
+{!URL!}/admin.php
diff --git a/templates/de/emails/admin/admin_lock_confirmed_surfbar_urls.tpl b/templates/de/emails/admin/admin_lock_confirmed_surfbar_urls.tpl
deleted file mode 100644 (file)
index ad32d2f..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-{--HELLO_ADMIN--},
-
-Es wurde eine URL in der Surfbar freigegeben.
-
-Hier sind alle Daten dazu:
-------------------------------------------
-URL: $content[url]
-------------------------------------------
-Framekiller-Test:
-$content[frametester]
-------------------------------------------
-User-ID: $content[userid]
-------------------------------------------
-Sperrgrund: $content[lock_reason]
-------------------------------------------
-Letzte Sperrung: $content[last_locked]
-------------------------------------------
-Angemeldet: $content[registered]
-------------------------------------------
-ID in der Surfbar: $content[id]
-------------------------------------------
-
-{--ADMIN_THANX--}
-  {--YOUR--} {!MAIN_TITLE!} {--SCRIPT--}
-
-{!URL!}/admin.php
diff --git a/templates/de/emails/member/member_lock_active_surfbar_urls.tpl b/templates/de/emails/member/member_lock_active_surfbar_urls.tpl
new file mode 100644 (file)
index 0000000..9c7b73c
--- /dev/null
@@ -0,0 +1,19 @@
+Hallo Mitglied,
+
+wir haben soeben Ihre URL in der Surfbar wieder freigegeben.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Gebuchte URL: $content[url]
+------------------------------------------
+Angemeldet: $content[registered]
+------------------------------------------
+Ihre User-ID: $content[userid]
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {!MAIN_TITLE!} Team
+
+{!URL!}/login.php ({!WEBMASTER!})
diff --git a/templates/de/emails/member/member_lock_confirmed_surfbar_urls.tpl b/templates/de/emails/member/member_lock_confirmed_surfbar_urls.tpl
deleted file mode 100644 (file)
index 9c7b73c..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Hallo Mitglied,
-
-wir haben soeben Ihre URL in der Surfbar wieder freigegeben.
-
-Hier sind alle Daten dazu:
-------------------------------------------
-Gebuchte URL: $content[url]
-------------------------------------------
-Angemeldet: $content[registered]
-------------------------------------------
-Ihre User-ID: $content[userid]
-------------------------------------------
-ID in der Surfbar: $content[id]
-------------------------------------------
-
-Mit freundlichem Gruss,
-  Ihr {!MAIN_TITLE!} Team
-
-{!URL!}/login.php ({!WEBMASTER!})