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
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
./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
// 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');
} // 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);
// 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
'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ö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öhe (in Pixel) bei PopUp/Banner",
'ADMIN_SELECT_FORCED_AD' => "Forced-Werbemittel auswählen:",
'ADMIN_SELECT_FORCED_CAMPAIGN_USERID' => "Mitgliedsaccount auswählen, dass dieser Kampagne zugewiesen werden soll:",
'ADMIN_SELECT_FORCED_COSTS' => "Forced-Preis auswählen:",
- 'ADMIN_FORCED_CAMPAIGN_ADS_ID' => "Verknüpftes Forced-Werbemittel:",
- 'ADMIN_FORCED_CAMPAIGN_USERID' => "Verknüpftes Mitgliedsaccount:",
- 'ADMIN_FORCED_CAMPAIGN_COSTS_ID' => "Verknüpfte Forced-Kosten:",
+ 'ADMIN_FORCED_CAMPAIGN_ID' => "Forced-Kampagnen-Id",
+ 'ADMIN_FORCED_CAMPAIGN_ADS_ID' => "Verknüpftes Forced-Werbemittel",
+ 'ADMIN_FORCED_CAMPAIGN_USERID' => "Verknüpftes Mitgliedsaccount",
+ 'ADMIN_FORCED_CAMPAIGN_COSTS_ID' => "Verknüpfte Forced-Kosten",
'ADMIN_FORCED_CAMPAIGN_STATUS' => "Kampagnen-Status",
'ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS' => "Klicks übrig",
'ADMIN_FORCED_CAMPAIGN_PAYMENT_API' => "Vergütung von API",
'ADMIN_ADD_FORCED_COSTS_SUBJECT' => "Forced-Preis hinzugefügt",
'ADMIN_EDIT_FORCED_COSTS_SUBJECT' => "Änderung an Forced-Preisen",
'ADMIN_ADD_FORCED_CAMPAIGNS_SUBJECT' => "Forced-Kampagne erstellt",
+ 'ADMIN_EDIT_FORCED_CAMPAIGNS_SUBJECT' => "Ä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' => "Änderung Ihres Forced-Werbemittels",
+ 'MEMBER_EDIT_FORCED_CAMPAIGNS_SUBJECT' => "Änderung Ihrer Forced-Kampagne",
'MEMBER_FORCED_NOTIFY_CAMPAIGN_PENDING_ACTIVE_SUBJECT' => "Ihre Forced-Kampagne wurde freigeschaltet",
// All - earning names
// 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
$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;
$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;
// 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;
// "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]))) {
//* 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;
$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);
} // 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
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?
// 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
Hallo Administrator,
-Es wurde soeben Forced-Werbemittel hinzugefügt.
+es wurde soeben Forced-Werbemittel hinzugefü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]
------------------------------------------
Hallo Administrator,
-Es wurde soeben Forced-Kampagne hinzugefügt.
+es wurde soeben Forced-Kampagne hinzugefü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]%}
------------------------------------------
Hallo Administrator,
-Es wurde soeben Forced-Preise hinzugefügt.
+es wurde soeben Forced-Preise hinzugefügt.
Hier sind alle Daten dazu:
------------------------------------------
Hallo Administrator,
-Es wurde soeben eine Accounstufe hinzugefügt.
+es wurde soeben eine Accounstufe hinzugefügt.
Hier sind alle Daten dazu:
------------------------------------------
Hallo Administrator,
-Es wurden soeben {%pipe,translateComma=$content%} {?POINTS?} durch die automatische Loeschung von Bestätigungslinks in den Jackpot transferiert!
+es wurden soeben {%pipe,translateComma=$content%} {?POINTS?} durch die automatische Loeschung von Bestätigungslinks in den Jackpot transferiert!
Mit freundlichen Grüßen,
Ihr {?MAIN_TITLE?} Script
Hallo Administrator,
-Es wurde soeben ein Gutschein erstellt.
+es wurde soeben ein Gutschein erstellt.
Hier sind alle Daten des Gutscheins: (keine Codes)
--------------------------------------------------
Hallo Administrator,
-Es wurde eine URL aus der Surfbar gelöscht.
+es wurde eine URL aus der Surfbar gelöscht.
Hier sind alle Daten dazu:
------------------------------------------
Hallo Administrator,
-Es wurde soeben Forced-Werbemittel geändert.
+es wurde soeben Forced-Werbemittel geä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]
------------------------------------------
--- /dev/null
+Hallo Administrator,
+
+es wurde soeben Forced-Kampagne geä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üßen,
+ Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
Hallo Administrator,
-Es wurde soeben Forced-Preise geändert.
+es wurde soeben Forced-Preise geändert.
Hier sind alle Daten dazu:
------------------------------------------
Hallo Administrator,
-Es wurde eine URL aus der Surfbar geändert.
+es wurde eine URL aus der Surfbar geändert.
Hier sind alle Daten dazu:
------------------------------------------
Hallo Administrator,
-Es wurden folgende Mitglieder-Account durch die Urlaubsschaltung wieder freigegeben:
+es wurden folgende Mitglieder-Account durch die Urlaubsschaltung wieder freigegeben:
--------------------------------
$content
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]
--- /dev/null
+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ä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üßen,
+ Ihr {?MAIN_TITLE?} Team
+
+{?URL?}/login.php ({?WEBMASTER?})
--- /dev/null
+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ä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üßen,
+ Ihr {?MAIN_TITLE?} Team
+
+{?URL?}/login.php ({?WEBMASTER?})
</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>
--- /dev/null
+<?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>