Mostly ext-forced continued:
authorRoland Häder <roland@mxchange.org>
Sat, 10 Nov 2012 17:06:21 +0000 (17:06 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Nov 2012 17:06:21 +0000 (17:06 +0000)
- Missing email templates for forced ads and campaigns added
- More fixes for XML callback-handlers
- Added new (temporary) configuration variable DEBUG_BUILD_MAILS to allow easy
  debugging of "build mails"

26 files changed:
.gitattributes
DOCS/TODOs.txt
inc/config-local.php.dist
inc/email-functions.php
inc/filters.php
inc/language/forced_de.php
inc/libs/forced_functions.php
inc/mysql-manager.php
inc/wrapper-functions.php
templates/de/emails/admin/admin_add_forced_ads.tpl
templates/de/emails/admin/admin_add_forced_campaigns.tpl
templates/de/emails/admin/admin_add_forced_costs.tpl
templates/de/emails/admin/admin_add_grade_data.tpl
templates/de/emails/admin/admin_autopurge_points.tpl
templates/de/emails/admin/admin_coupon_code.tpl
templates/de/emails/admin/admin_delete_surfbar_urls.tpl
templates/de/emails/admin/admin_edit_forced_ads.tpl
templates/de/emails/admin/admin_edit_forced_campaigns.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_edit_forced_costs.tpl
templates/de/emails/admin/admin_edit_surfbar_urls.tpl
templates/de/emails/admin/admin_holiday_unlock.tpl
templates/de/emails/admin/admin_report_bug.tpl
templates/de/emails/member/member_edit_forced_ads.tpl [new file with mode: 0644]
templates/de/emails/member/member_edit_forced_campaigns.tpl [new file with mode: 0644]
templates/de/html/admin/admin_edit_forced_campaigns_row.tpl
templates/xml/admin/admin_edit_do_forced_campaigns.xml [new file with mode: 0644]

index a1f294a5e6860634398671b72d3dbd88638421c7..08acc8d1bff2635c417fd4ed62649469c0d9b6a5 100644 (file)
@@ -888,6 +888,7 @@ templates/de/emails/admin/admin_delete_user_subids.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_earning_added.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_earning_updated.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_edit_forced_ads.tpl svneol=native#text/plain
+templates/de/emails/admin/admin_edit_forced_campaigns.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_edit_forced_costs.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_edit_mem_edit_user_subids.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_edit_points_data.tpl svneol=native#text/plain
@@ -1015,6 +1016,8 @@ templates/de/emails/member/member_delete_user_subids.tpl svneol=native#text/plai
 templates/de/emails/member/member_doubler.tpl svneol=native#text/plain
 templates/de/emails/member/member_earning_added.tpl svneol=native#text/plain
 templates/de/emails/member/member_earning_updated.tpl svneol=native#text/plain
+templates/de/emails/member/member_edit_forced_ads.tpl svneol=native#text/plain
+templates/de/emails/member/member_edit_forced_campaigns.tpl svneol=native#text/plain
 templates/de/emails/member/member_edit_mem_edit_user_subids.tpl svneol=native#text/plain
 templates/de/emails/member/member_edit_surfbar_urls.tpl svneol=native#text/plain
 templates/de/emails/member/member_edit_user_subids.tpl svneol=native#text/plain
index e0baf6e4b2547e0115ced9e3ba9016a2c95325e9..20aa9a9232bc9ec89044720de04a41236f672c81 100644 (file)
@@ -11,7 +11,7 @@
 ./inc/email-functions.php:109: * @TODO Rewrite this to an extension 'smtp'
 ./inc/email-functions.php:227:// @TODO $rawUserId is currently unused
 ./inc/expression-functions.php:173:// @TODO FILTER_COMPILE_CONFIG does not handle call-back functions so we handle it here again
-./inc/expression-functions.php:46:     // @TODO is escapeQuotes() enougth for strings with single/double quotes?
+./inc/expression-functions.php:46:     // @TODO is escapeQuotes() enough for strings with single/double quotes?
 ./inc/extensions/ext-html_mail.php:136:                // @TODO Move these arrays into config
 ./inc/extensions/ext-menu.php:52:              // @TODO Convert menu-Id to one coding-standard. admin(edit|_add) => admin_menu_(edit|add), mem(edit|_add) => (edit|add)_(admin|guest|member)_menu
 ./inc/extensions/ext-network.php:100:          // @TODO network_type_handler is an internal name and needs documentation
 ./inc/functions.php:1102:                      // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
 ./inc/functions.php:1188:                      // @TODO Are these convertions still required?
 ./inc/functions.php:1209:// @TODO Rewrite this function to use readFromFile() and writeToFile()
-./inc/functions.php:1796:      // @TODO Find a way to cache this
-./inc/functions.php:1901:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:2108:      // @TODO Rename column data_type to e.g. mail_status
-./inc/functions.php:2458:// @TODO cacheFiles is not yet supported
+./inc/functions.php:1814:      // @TODO Find a way to cache this
+./inc/functions.php:1919:      // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:2126:      // @TODO Rename column data_type to e.g. mail_status
+./inc/functions.php:2476:// @TODO cacheFiles is not yet supported
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/header.php:66:// @TODO Find a way to not use direct module comparison
 ./inc/install-functions.php:91:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
 ./inc/template-functions.php:288:      // @TODO Remove these sanity checks if all is fine
 ./inc/template-functions.php:625:// @TODO $simple/$constants are deprecated
 ./inc/template-functions.php:723:                      // @TODO $userid is deprecated and should be removed from loadEmailTemplate() and replaced with $content[userid] in all templates
-./inc/wrapper-functions.php:3031:      // @TODO Find a way to not use direct module comparison
-./inc/wrapper-functions.php:500:// @TODO Do some more sanity check here
+./inc/wrapper-functions.php:2970:      // @TODO Find a way to not use direct module comparison
+./inc/wrapper-functions.php:512:// @TODO Do some more sanity check here
 ./inc/xml-functions.php:240:   // @TODO Handle characters
 ./mailid.php:102:              // @TODO Rewrite this to a filter
 ./mailid.php:145:                                      // @TODO Rewrite this to a filter
index d98b9dc8a572181bb7a939f6d920f50de7d919a5..87a2e3024c5847b6833a62960c798730eb0e8a17 100644 (file)
@@ -101,6 +101,9 @@ setConfigEntry('DEBUG_TEMPLATE_CACHE', 'N');
 // CFG: DEBUG-REGEX (comment in to debug regular expressions)
 //setConfigEntry('DEBUG_REGEX', 'Y');
 
+// CFG: DEBUG-BUILD-MAILS
+//setConfigEntry('DEBUG_BUILD_MAILS', 'Y');
+
 // CFG: ALLOW-TESTER-ACCOUNTS (comment in to allow tester accounts being re-included)
 //setConfigEntry('ALLOW_TESTER_ACCOUNTS', 'Y');
 
index e0cf2a251e3889e9ddeb2fcb8ba1c0ac42245c37..1bd2e4e7d74a3cce2e565a3874d4648738c174a9 100644 (file)
@@ -245,7 +245,10 @@ function sendGenericBuildMails ($mode, $tableName, $content, $id, $subjectPart =
        } // END - if
 
        // Is the raw userid set?
-       if (postRequestElement($userIdColumn[0], $id) > 0) {
+       if (isValidUserId(postRequestElement($userIdColumn[0], $id))) {
+               // Set it in content
+               $content[$userIdColumn[0]] = bigintval(postRequestElement($userIdColumn[0], $id));
+
                // Load email template
                if (!empty($subjectPart)) {
                        $mail = loadEmailTemplate('member_' . $mode . '_' . strtolower($subjectPart) . '_' . $tableName[0], $content);
index e1c892448ff434da7490c20eb5261e7268070af9..5f2dc52d1886c224b2e8846905515b2dae4d52c8 100644 (file)
@@ -1259,7 +1259,7 @@ function FILTER_INIT_SESSION ($filterData) {
 // Filter for sending "build mail" to admin
 function FILTER_SEND_BUILD_MAIL ($filterData) {
        // Was one line updated?
-       if ($filterData['affected'] > 0) {
+       if (($filterData['affected'] > 0) || (isDebugBuildMailsEnabled())) {
                // Then call the proper function
                call_user_func_array('sendGenericBuildMails', $filterData);
        } // END - if
index 3200142cf7c07107ff66f4ccc15c1d2593996d86..8ac5d6e025941d0f70dcac36212403b4eb0d19b1 100644 (file)
@@ -55,6 +55,7 @@ addMessages(array(
        'ADMIN_ENTER_FORCED_ALTERNATE_TEXT' => "Alternativen Text/Titel des Forced-Werbemittels eingeben:",
        'ADMIN_ENTER_FORCED_AD_WIDTH' => "Breite (in Pixel) des Forced-Werbemittels eingeben:",
        'ADMIN_ENTER_FORCED_AD_HEIGHT' => "H&ouml;he (in Pixel) des Forced-Werbemittels eingeben:",
+       'ADMIN_FORCED_ADS_ID' => "Forced-Werbemittel-Id",
        'ADMIN_FORCED_ADS_CLICK_URL' => "Klick-URL",
        'ADMIN_FORCED_ADS_WIDTH' => "Breite (in Pixel) bei PopUp/Banner",
        'ADMIN_FORCED_ADS_HEIGHT' => "H&ouml;he (in Pixel) bei PopUp/Banner",
@@ -83,9 +84,10 @@ addMessages(array(
        'ADMIN_SELECT_FORCED_AD' => "Forced-Werbemittel ausw&auml;hlen:",
        'ADMIN_SELECT_FORCED_CAMPAIGN_USERID' => "Mitgliedsaccount ausw&auml;hlen, dass dieser Kampagne zugewiesen werden soll:",
        'ADMIN_SELECT_FORCED_COSTS' => "Forced-Preis ausw&auml;hlen:",
-       'ADMIN_FORCED_CAMPAIGN_ADS_ID' => "Verkn&uuml;pftes Forced-Werbemittel:",
-       'ADMIN_FORCED_CAMPAIGN_USERID' => "Verkn&uuml;pftes Mitgliedsaccount:",
-       'ADMIN_FORCED_CAMPAIGN_COSTS_ID' => "Verkn&uuml;pfte Forced-Kosten:",
+       'ADMIN_FORCED_CAMPAIGN_ID' => "Forced-Kampagnen-Id",
+       'ADMIN_FORCED_CAMPAIGN_ADS_ID' => "Verkn&uuml;pftes Forced-Werbemittel",
+       'ADMIN_FORCED_CAMPAIGN_USERID' => "Verkn&uuml;pftes Mitgliedsaccount",
+       'ADMIN_FORCED_CAMPAIGN_COSTS_ID' => "Verkn&uuml;pfte Forced-Kosten",
        'ADMIN_FORCED_CAMPAIGN_STATUS' => "Kampagnen-Status",
        'ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS' => "Klicks &uuml;brig",
        'ADMIN_FORCED_CAMPAIGN_PAYMENT_API' => "Verg&uuml;tung von API",
@@ -177,9 +179,12 @@ addMessages(array(
        'ADMIN_ADD_FORCED_COSTS_SUBJECT' => "Forced-Preis hinzugef&uuml;gt",
        'ADMIN_EDIT_FORCED_COSTS_SUBJECT' => "&Auml;nderung an Forced-Preisen",
        'ADMIN_ADD_FORCED_CAMPAIGNS_SUBJECT' => "Forced-Kampagne erstellt",
+       'ADMIN_EDIT_FORCED_CAMPAIGNS_SUBJECT' => "&Auml;nderung an einer Forced-Kampagne",
        'ADMIN_FORCED_NOTIFY_CAMPAIGN_PENDING_ACTIVE_SUBJECT' => "Eine Forced-Kampagne wurde freigeschaltet",
 
        // Member - subject lines
+       'MEMBER_EDIT_FORCED_ADS_SUBJECT' => "&Auml;nderung Ihres Forced-Werbemittels",
+       'MEMBER_EDIT_FORCED_CAMPAIGNS_SUBJECT' => "&Auml;nderung Ihrer Forced-Kampagne",
        'MEMBER_FORCED_NOTIFY_CAMPAIGN_PENDING_ACTIVE_SUBJECT' => "Ihre Forced-Kampagne wurde freigeschaltet",
 
        // All - earning names
index 21a7327a31b94b939ccf91502d38b03e34b9a30b..eb6ac6cb64ff67f90c748274c04374614ddd434e 100644 (file)
@@ -424,7 +424,7 @@ function doForcedNotifyAdmin ($messageType, $content) {
 // Notify the user about the performed action
 function doForcedNotifyMember ($messageType, $content) {
        // Skip notification if userid is NULL
-       if (is_null($content['forced_campaign_userid'])) {
+       if (!isValidUserId($content['forced_campaign_userid'])) {
                // NULL is silently ignored
                return TRUE;
        } // END - if
@@ -502,7 +502,7 @@ function doTemplateForcedAdSelectionBox ($templateName, $clear, $default = NULL)
        $forcedAds = getArrayFromForcedAdsByType();
 
        // Handle it over to generateSelectionBoxFromArray()
-       $content = generateSelectionBoxFromArray($forcedAds, 'forced_ads_id', 'forced_ads_id', '', '', '', $default, 'forced_ads_type');
+       $content = generateSelectionBoxFromArray($forcedAds, 'forced_ads_id', 'forced_ads_id', '', '', '', $default, 'forced_ads_type', FALSE, TRUE);
 
        // Return prepared content
        return $content;
@@ -514,7 +514,7 @@ function doTemplateForcedCostsSelectionBox ($templateName, $clear, $default = NU
        $forcedCosts = getArrayFromForcedCostsByVisibility();
 
        // Handle it over to generateSelectionBoxFromArray()
-       $content = generateSelectionBoxFromArray($forcedCosts, 'forced_costs_id', 'forced_costs_id', '', '', '', $default, '', TRUE);
+       $content = generateSelectionBoxFromArray($forcedCosts, 'forced_costs_id', 'forced_costs_id', '', '', '', $default, '', TRUE, TRUE);
 
        // Return prepared content
        return $content;
@@ -523,7 +523,7 @@ function doTemplateForcedCostsSelectionBox ($templateName, $clear, $default = NU
 // Template helper function to create selection box for foreced campaign userid
 function doTemplateForcedCampaignUseridSelectionBox ($templateName, $clear, $default = NULL) {
        // Generate the selection box without all
-       $content = addMemberSelectionBox($default, FALSE, TRUE, TRUE, 'forced_campaign_userid');
+       $content = addMemberSelectionBox($default, FALSE, TRUE, TRUE, 'forced_campaign_userid[]');
 
        // Return prepared content
        return $content;
index 2b48644bdfcb8477ceaf7af1bc84c1d37995937a..419859d5cb83839c112e1185c22d5841fa180d55 100644 (file)
@@ -2116,14 +2116,14 @@ function doGenericEditEntriesConfirm ($tableName, $columns = array(), $filterFun
                // "Walk" through all entries
                foreach (postRequestArray() as $key => $entries) {
                        // Skip raw userid which is always invalid
-                       if (($key == $rawUserId[0]) || ($key == 'do_edit')) {
+                       if (($key == $rawUserId[0]) || ($key == ($rawUserId[0] . '_raw')) || ($key == 'do_edit')) {
                                // Continue with next field
                                //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',idColumn[0]=' . $idColumn[0] . ',rawUserId=' . $rawUserId[0]);
                                continue;
                        } // END - if
 
                        // Debug message
-                       /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',id=' . $id . ',idColumn[0]=' . $idColumn[0] . ',entries=<pre>'.print_r($entries,TRUE).'</pre>');
+                       //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',id=' . $id . ',idColumn[0]=' . $idColumn[0] . ',entries=<pre>'.print_r($entries,TRUE).'</pre>');
 
                        // Is entries an array?
                        if (($key != $idColumn[0]) && (is_array($entries)) && (isset($entries[$id]))) {
@@ -2147,7 +2147,7 @@ function doGenericEditEntriesConfirm ($tableName, $columns = array(), $filterFun
                                //* BUG: */ die($key.'/<pre>'.print_r($search, TRUE).'</pre>=<pre>'.print_r($columns, TRUE).'</pre>');
 
                                // Debug message
-                               /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',entries[' . gettype($entries) . ']=' . $entries . ',search=' . $search . ' - BEFORE!');
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',entries[' . gettype($entries) . ']=' . $entries . ',search=' . $search . ' - BEFORE!');
 
                                // Add normal entries as well
                                $content[$key] = $entries;
@@ -2156,7 +2156,7 @@ function doGenericEditEntriesConfirm ($tableName, $columns = array(), $filterFun
                                $entries = doHandleExtraValues($filterFunctions, $extraValues, $key, $entries, $userIdColumn, $search);
 
                                // Debug message
-                               /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',entries[' . gettype($entries) . ']=' . $entries . ',search=' . $search . ' - AFTER!');
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',entries[' . gettype($entries) . ']=' . $entries . ',search=' . $search . ' - AFTER!');
 
                                // Add key/value pair to SQL string
                                $sql .= addKeyValueSql($key, $entries);
@@ -2164,8 +2164,8 @@ function doGenericEditEntriesConfirm ($tableName, $columns = array(), $filterFun
                } // END - foreach
 
                // Finish SQL command
-               $sql = substr($sql, 0, -1) . " WHERE `" . SQL_ESCAPE($idColumn[0]) . "`=" . bigintval($id);
-               if ((isset($rawUserId[0])) && (isPostRequestElementSet($rawUserId[0])) && (isset($userIdColumn[0]))) {
+               $sql = substr($sql, 0, -1) . " WHERE `" . SQL_ESCAPE($idColumn[0]) . "`=" . $id;
+               if ((isset($rawUserId[0])) && (isset($userIdColumn[0])) && (isPostRequestElementSet($rawUserId[0])) && (!is_array(postRequestElement($rawUserId[0])))) {
                        // Add user id as well
                        $sql .= ' AND `' . $userIdColumn[0] . '`=' . bigintval(postRequestElement($rawUserId[0]));
                } // END - if
index d8f31433575d1afa84ba71801b28c093d5c1e33d..da71a257dfaf64ccb12ae72633ea648add793d38 100644 (file)
@@ -443,6 +443,18 @@ function isDebugRegularExpressionEnabled () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether debugging of build mails is enabled
+function isDebugBuildMailsEnabled () {
+       // Is cache set?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Simply check it
+               $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('DEBUG_BUILD_MAILS')) && (getConfig('DEBUG_BUILD_MAILS') == 'Y'));
+       } // END - if
+
+       // Return it
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Checks whether the cache instance is valid
 function isCacheInstanceValid () {
        // Is there cache?
@@ -1291,7 +1303,7 @@ function isValidUserId ($userid) {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Check it out
-               $GLOBALS[__FUNCTION__][$userid] = ((!is_null($userid)) && (!empty($userid)) && ($userid > 0));
+               $GLOBALS[__FUNCTION__][$userid] = ((!is_null($userid)) && (!empty($userid)) && ($userid != 'NULL') && ($userid > 0));
        } // END - if
 
        // Return cache
index 78cbc4499ad88c07f086141b9d47c6ac405b7548..a8d568d1e08c97204fcf035b720089ce46856d02 100644 (file)
@@ -1,10 +1,10 @@
 Hallo Administrator,
 
-Es wurde soeben Forced-Werbemittel hinzugef&uuml;gt.
+es wurde soeben Forced-Werbemittel hinzugef&uuml;gt.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
-Forced-Werbemittel-Id: $content[id]
+{--ADMIN_FORCED_ADS_ID--}: $content[id]
 ------------------------------------------
 {--ADMIN_FORCED_ADS_AD_URL--}: $content[forced_ads_ad_url]
 ------------------------------------------
index 283472540af795d8705944be44916d145074a0f8..4fab61e21e8ecb847669f8b113d81fb45562a4a5 100644 (file)
@@ -1,10 +1,10 @@
 Hallo Administrator,
 
-Es wurde soeben Forced-Kampagne hinzugef&uuml;gt.
+es wurde soeben Forced-Kampagne hinzugef&uuml;gt.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
-Forced-Kampagnen-Id: $content[id]
+{--ADMIN_FORCED_CAMPAIGN_ID--} $content[id]
 ------------------------------------------
 {--ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS--}: {%pipe,translateComma=$content[forced_campaign_ordered_clicks]%}
 ------------------------------------------
index cf73fd95164a699f70fb0258c40f8b3565408525..0170fbc0077ea39205fcdc8cbadd2a60e41c867e 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurde soeben Forced-Preise hinzugef&uuml;gt.
+es wurde soeben Forced-Preise hinzugef&uuml;gt.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
index c5ec92d2c90b6a845d4ff36f4e7a358f8aa8978a..fbbec3673c387ffcb30b67e7c0e91185cd5482ce 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurde soeben eine Accounstufe hinzugef&uuml;gt.
+es wurde soeben eine Accounstufe hinzugef&uuml;gt.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
index fe400ff718fe7bb9d266fba893d3898ad85af4e3..538c9f6edf09cadfc6f4241a8b5c76ce9ba1d010 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurden soeben {%pipe,translateComma=$content%} {?POINTS?} durch die automatische Loeschung von Best&auml;tigungslinks in den Jackpot transferiert!
+es wurden soeben {%pipe,translateComma=$content%} {?POINTS?} durch die automatische Loeschung von Best&auml;tigungslinks in den Jackpot transferiert!
 
 Mit freundlichen Gr&uuml;&szlig;en,
   Ihr {?MAIN_TITLE?} Script
index deb38a45a08cc1065b091c15efd0850c5b3b0aaa..7417d23efadd764426b81f4379fe62561a774325 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurde soeben ein Gutschein erstellt.
+es wurde soeben ein Gutschein erstellt.
 
 Hier sind alle Daten des Gutscheins: (keine Codes)
 --------------------------------------------------
index 7b31e1426d1e203aabc9c8744176e4ddecb5b707..51db99fbbd2321bd665e14cc558601dfacf2b0e8 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurde eine URL aus der Surfbar gel&ouml;scht.
+es wurde eine URL aus der Surfbar gel&ouml;scht.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
index a5e2c6e7cfd4985b69fb14f9cd113932cc249fc7..eeadb2472575654c6fde7d7188096e318319a11c 100644 (file)
@@ -1,10 +1,10 @@
 Hallo Administrator,
 
-Es wurde soeben Forced-Werbemittel ge&auml;ndert.
+es wurde soeben Forced-Werbemittel ge&auml;ndert.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
-Forced-Werbemittel-Id: $content[forced_ads_id]
+{--ADMIN_FORCED_ADS_ID--}: $content[forced_ads_id]
 ------------------------------------------
 {--ADMIN_FORCED_ADS_AD_URL--}: $content[forced_ads_ad_url]
 ------------------------------------------
diff --git a/templates/de/emails/admin/admin_edit_forced_campaigns.tpl b/templates/de/emails/admin/admin_edit_forced_campaigns.tpl
new file mode 100644 (file)
index 0000000..c5df136
--- /dev/null
@@ -0,0 +1,31 @@
+Hallo Administrator,
+
+es wurde soeben Forced-Kampagne ge&auml;ndert.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ID--}: $content[forced_campaign_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ADS_ID--}: $content[forced_ads_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_COSTS_ID--}: $content[forced_costs_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_USERID--}: {%pipe,convertZeroToNull=$content[forced_campaign_userid]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_CREATED--}: $content[forced_campaign_created]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS--}: {%pipe,translateComma=$content[forced_campaign_ordered_clicks]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_PAYMENT_API--}: {%pipe,translateComma=$content[forced_campaign_payment_api]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_MINIMUM_STAY--}: {%pipe,createFancyTime=$content[forced_campaign_minimum_stay]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_RELOAD_LOCK--}: {%pipe,createFancyTime=$content[forced_campaign_reload_lock]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_STATUS--}: {%pipe,translateForcedCampaignStatus=$content[forced_campaign_status]%}
+------------------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
index 36a7e46be1e2f06e1d03ea1b4cb1e522867a0c87..95431d53a2289fba4b97834fc550e607907eea4e 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurde soeben Forced-Preise ge&auml;ndert.
+es wurde soeben Forced-Preise ge&auml;ndert.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
index d486231604fc4c1be0802402062eead528a39915..d4941d9f08bd437140b927a4f4c9332654d56f57 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurde eine URL aus der Surfbar ge&auml;ndert.
+es wurde eine URL aus der Surfbar ge&auml;ndert.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
index 5d1bc9e165146c5fbb6c6bcdd3c6ceceb320f3ef..b3a9aa34b7bae36619f691e4ddfdd7113caa595e 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurden folgende Mitglieder-Account durch die Urlaubsschaltung wieder freigegeben:
+es wurden folgende Mitglieder-Account durch die Urlaubsschaltung wieder freigegeben:
 
 --------------------------------
 $content
index 51e42f356308b13317febfb5603ff358daa13a47..1981f441dc533ae413d8f86f2d42bc6c1e4d6c2c 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
-Es wurde soeben ein Bug im {?mt_word?}-Script erkannt. Hier ist der Fehlertext:
+es wurde soeben ein Bug im {?mt_word?}-Script erkannt. Hier ist der Fehlertext:
 
 ------------------------------
 Fehlermeldung: $content[message]
diff --git a/templates/de/emails/member/member_edit_forced_ads.tpl b/templates/de/emails/member/member_edit_forced_ads.tpl
new file mode 100644 (file)
index 0000000..d28dfaa
--- /dev/null
@@ -0,0 +1,35 @@
+Hallo {%user,gender,translateGender=$content[forced_ads_userid]%} {%user,surname=$content[forced_ads_userid]%} {%user,family=$content[forced_ads_userid]%},
+
+es wurde soeben eines Ihrer Forced-Werbemittel ge&auml;ndert.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+{--ADMIN_FORCED_ADS_ID--}: $content[forced_ads_id]
+------------------------------------------
+{--ADMIN_FORCED_ADS_AD_URL--}: $content[forced_ads_ad_url]
+------------------------------------------
+{--ADMIN_FORCED_ADS_ALTERNATE_TEXT--}: $content[forced_ads_alt_text]
+------------------------------------------
+{--ADMIN_FORCED_ADS_CLICK_URL--}: $content[forced_ads_click_url]
+------------------------------------------
+{--ADMIN_FORCED_ADS_WIDTH--}: {%pipe,translateComma=$content[forced_ads_width]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_HEIGHT--}: {%pipe,translateComma=$content[forced_ads_height]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_USERID--}: $content[forced_ads_userid]
+------------------------------------------
+{--ADMIN_FORCED_ADS_TYPE--}: {%pipe,translateForcedAdsType=$content[forced_ads_type]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_HAS_FRAMEBREAKER--}: {%pipe,translateYesNo=$content[forced_ads_framebreaker]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_VIEWS_COUNTER--}: {%pipe,translateComma=$content[forced_ads_views_counter]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_CLICKS_COUNTER--}: {%pipe,translateComma=$content[forced_ads_clicks_counter]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_ADDED--}: $content[forced_ads_added]
+------------------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Team
+
+{?URL?}/login.php ({?WEBMASTER?})
diff --git a/templates/de/emails/member/member_edit_forced_campaigns.tpl b/templates/de/emails/member/member_edit_forced_campaigns.tpl
new file mode 100644 (file)
index 0000000..eaadce0
--- /dev/null
@@ -0,0 +1,31 @@
+Hallo {%user,gender,translateGender=$content[forced_campaign_userid]%} {%user,surname=$content[forced_campaign_userid]%} {%user,family=$content[forced_campaign_userid]%},
+
+es wurde soeben einer Ihrer Forced-Kampagnen ge&auml;ndert.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ID--}: $content[forced_campaign_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ADS_ID--}: $content[forced_ads_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_COSTS_ID--}: $content[forced_costs_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_USERID--}: {%pipe,convertZeroToNull=$content[forced_campaign_userid]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_CREATED--}: $content[forced_campaign_created]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS--}: {%pipe,translateComma=$content[forced_campaign_ordered_clicks]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_PAYMENT_API--}: {%pipe,translateComma=$content[forced_campaign_payment_api]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_MINIMUM_STAY--}: {%pipe,createFancyTime=$content[forced_campaign_minimum_stay]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_RELOAD_LOCK--}: {%pipe,createFancyTime=$content[forced_campaign_reload_lock]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_STATUS--}: {%pipe,translateForcedCampaignStatus=$content[forced_campaign_status]%}
+------------------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Team
+
+{?URL?}/login.php ({?WEBMASTER?})
index f04793b2aa7b9bd97c278f7246b3f42672c59c5c..386e198540e9b7efade4711145c5b048ed4f9c71 100644 (file)
@@ -31,9 +31,9 @@
 </tr>
 <tr>
        <td class="{%template,ColorSwitch%} bottom">
-               <legend for="forced_campaign_userid_raw">{--ADMIN_CHANGE_FORCED_CAMPAIGN_USERID--}</legend>
+               <legend for="forced_campaign_userid">{--ADMIN_CHANGE_FORCED_CAMPAIGN_USERID--}</legend>
                $content[forced_campaign_userid]
-               <input type="hidden" name="forced_campaign_userid_raw" value="$content[forced_campaign_userid_raw]" />
+               <!--<input type="hidden" name="forced_campaign_userid_raw[$content[forced_campaign_id]]" value="$content[forced_campaign_userid_raw]" />//-->
        </td>
        <td class="{%template,ColorSwitch%} bottom">
                <legend for="">{--ADMIN_CHANGE_FORCED_CAMPAIGN_COSTS_ID--}</legend>
diff --git a/templates/xml/admin/admin_edit_do_forced_campaigns.xml b/templates/xml/admin/admin_edit_do_forced_campaigns.xml
new file mode 100644 (file)
index 0000000..e01db82
--- /dev/null
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+This template provides meta data for doing edits on forced campaigns
+
+@author                Roland Haeder <webmaster@mxchange.org>
+@version       0.2.1-FINAL
+@copyright     (c) 2003 - 2009 by Roland Haeder
+@copyright     (c) 2009 - 2012 by Mailer Developer Team
+@license       GNU GPL 2.0 or any newer version
+@link          http://mxchange.org
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+MA  02110-1301  USA
+//-->
+<admin-entry-meta-data>
+       <!--
+       Call-back function which should all following parameter handled over
+       to. This will always be type of string but we like homogene XMLs.
+       //-->
+       <callback-function type="string" value="adminEditEntriesConfirm" />
+       <!--
+       Name of the database table where the entries should be read/write from/to.
+       //-->
+       <database-table name="" type="string" value="forced_campaigns" />
+       <!--
+       And all column names to read/write, leave this list tag empty for all (*).
+       //-->
+       <database-column-list>
+               <database-column-list-entry name="" type="string" table="" value="forced_campaign_userid" alias="" function="" />
+               <database-column-list-entry name="" type="string" table="" value="forced_campaign_reload_lock" alias="" function="" />
+       </database-column-list>
+       <!--
+       "Filter" call-back functions to call back for piping the fetched data
+       through (can be left empty, no call-back function will be called)
+       //-->
+       <callback-function-list>
+               <callback-function-list-entry name="" type="string" value="convertZeroToNull" />
+               <callback-function-list-entry name="" type="string" value="bigintval" />
+       </callback-function-list>
+       <!--
+       Extra parameters (2nd, 3rd, ...) for above call-back functions. If an array
+       is provided, we have more than two parameters to handle over to the
+       call-back function. See function handleExtraValues() for details.
+       //-->
+       <extra-parameter-list>
+       </extra-parameter-list>
+       <!--
+       Columns for converting single time selections into a timestamp
+       //-->
+       <time-columns-list>
+               <time-columns-list-entry name="" type="string" value="forced_campaign_reload_lock" />
+       </time-columns-list>
+       <!--
+       Wether to 'edit/delete/change' (change) the entries (true) or just read them for displaying (false)
+       //-->
+       <enable-modify-entries name="" type="bool" value="true" />
+       <!--
+       The table column which should be taken for the ids (see first parameter).
+       This' type can again only be 'string' (remember why?).
+       //-->
+       <table-id-column name="" type="string" value="forced_campaign_id" />
+       <!--
+       The table column which should be taken for user ids
+       This' type can again only be 'string' (remember why?).
+       //-->
+       <table-userid-column name="" type="string" value="forced_campaign_userid" />
+       <!--
+       Raw userid column ($key) to skip which is always an invalid (?) entry
+       This' type can again only be 'string' (remember why?).
+       //-->
+       <raw-userid-column-key name="" type="string" value="" />
+       <!--
+       Cache file to delete
+       //-->
+       <cache-file name="" type="string" value="" />
+</admin-entry-meta-data>