templates/de/emails/add-points.tpl svneol=native#text/plain
templates/de/emails/admin-del_links.tpl svneol=native#text/plain
templates/de/emails/admin/.htaccess svneol=native#text/plain
+templates/de/emails/admin/admin_add_forced_ads.tpl svneol=native#text/plain
+templates/de/emails/admin/admin_add_forced_campaigns.tpl svneol=native#text/plain
+templates/de/emails/admin/admin_add_forced_costs.tpl svneol=native#text/plain
templates/de/emails/admin/admin_add_user_subids.tpl svneol=native#text/plain
templates/de/emails/admin/admin_admin_add_all_direct.tpl svneol=native#text/plain
templates/de/emails/admin/admin_admin_add_all_ref_referral.tpl svneol=native#text/plain
templates/de/html/select/select_admins_option.tpl svneol=native#text/plain
templates/de/html/select/select_forced_ads_id_popup_box.tpl svneol=native#text/plain
templates/de/html/select/select_forced_ads_id_popup_option.tpl svneol=native#text/plain
+templates/de/html/select/select_forced_ads_id_textlink_box.tpl svneol=native#text/plain
templates/de/html/select/select_forced_ads_id_textlink_option.tpl svneol=native#text/plain
templates/de/html/select/select_forced_ads_type_box.tpl svneol=native#text/plain
templates/de/html/select/select_forced_ads_type_option.tpl svneol=native#text/plain
} // END - if
// Just call it
- //* DEBUG: */ die('callbackFunction=' . $callbackName . ',columnIndex=' . $columnIndex . ',args=<pre>'.print_r($args, TRUE).'</pre>');
+ //* DEBUG: */ die(__FUNCTION__.':callbackFunction=' . $callbackName . ',columnIndex=' . $columnIndex . ',args=<pre>'.print_r($args, TRUE).'</pre>');
call_user_func_array($callbackName, $args);
}
'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_STATUS' => "Kampagnen-Status",
'ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS' => "Klicks übrig",
'ADMIN_FORCED_CAMPAIGN_PAYMENT_API' => "Vergütung von API",
'ADMIN_FORCED_CAMPAIGNS_ACTIVATED_FAILED' => "Bei der Aktivierung von Forced-Kampagnen ist ein Fehler unterlaufen, haben Sie auch nur Kampagnen mit dem Status <u>{--ADMIN_FORCED_CAMPAIGN_TYPE_PENDING--}</u> ausgewählt?",
// Admin - subject lines
+ 'ADMIN_ADD_FORCED_ADS_SUBJECT' => "Forced-Werbemittel hinzugefügt",
'ADMIN_EDIT_FORCED_ADS_SUBJECT' => "Änderungen an Forced-Werbemitteln",
+ '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_FORCED_NOTIFY_CAMPAIGN_PENDING_ACTIVE_SUBJECT' => "Eine Forced-Kampagne wurde freigeschaltet",
// Member - subject lines
return $return;
}
-// "Getter" for an array of data from all Forced-PopUps except user's
+// "Getter" for an array of data from all forced-popups except user's own
function getForcedPopupDataByEarningArray ($content) {
- die('content=<pre>' . print_r($content, TRUE) . '</pre>' . debug_get_printable_backtrace());
+ die(__FUNCTION__.':content=<pre>' . print_r($content, TRUE) . '</pre>' . debug_get_printable_backtrace());
// Finally return the content
return $content;
function addXmlSpecialAdminAddDoForcedAds () {
// So set it all here
$GLOBALS['__COLUMN_INDEX']['doXmlCallbackFunction'] = 'column';
- $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_values'] = array();
$GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['column_index'] = 'column';
}
function addXmlSpecialAdminAddDoForcedCosts () {
// So set it all here
$GLOBALS['__COLUMN_INDEX']['doXmlCallbackFunction'] = 'column';
- $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_values'] = array();
$GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['column_index'] = 'column';
}
// Adds a given entry to the database
function adminAddEntries ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $timeColumns = array(), $columnIndex = NULL) {
+ // Is the userid set?
+ if (!isPostRequestElementSet('userid')) {
+ // Then set NULL here
+ setPostRequestElement('userid', NULL);
+ } // END - if
+
// Call inner function
doGenericAddEntries($tableName, $columns, $filterFunctions, $extraValues, $timeColumns, $columnIndex);
// Adds a given entry to the database
function doGenericAddEntries ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $timeColumns = array(), $columnIndex = NULL) {
- //* DEBUG: */ die('columns=<pre>'.print_r($columns,TRUE).'</pre>,filterFunctions=<pre>'.print_r($filterFunctions,TRUE).'</pre>,extraValues=<pre>'.print_r($extraValues,TRUE).'</pre>,POST=<pre>'.print_r($_POST,TRUE).'</pre>');
+ //* DEBUG: */ die(__FUNCTION__.':columns=<pre>'.print_r($columns,TRUE).'</pre>,filterFunctions=<pre>'.print_r($filterFunctions,TRUE).'</pre>,extraValues=<pre>'.print_r($extraValues,TRUE).'</pre>,timeColumns=<pre>'.print_r($timeColumns,TRUE).'</pre>,columnIndex=<pre>'.print_r($columnIndex,TRUE).'</pre>,POST=<pre>'.print_r($_POST,TRUE).'</pre>');
// Verify that tableName and columns are not empty
if ((!is_array($tableName)) || (count($tableName) != 1)) {
// No tableName specified
// Send data through the filter function if found
if ((isset($filterFunctions[$key])) && (isset($extraValues[$key . '_list']))) {
// Filter function set!
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
$sqlValues[$key] = call_user_func_array($filterFunctions[$key], merge_array(array($columnName), $extraValues[$key . '_list']));
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
- } elseif ((isset($filterFunctions[$key])) && (!empty($filterFunctions[$key]))) {
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
+ } elseif ((isset($filterFunctions[$key])) && (!empty($filterFunctions[$key])) && (!empty($sqlValues[$key]))) {
// Run through an extra filter
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
+ /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
$sqlValues[$key] = handleExtraValues($filterFunctions[$key], $sqlValues[$key], NULL);
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
+ /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
}
// Is the value not a number?
--- /dev/null
+Hallo Administrator,
+
+Es wurde soeben Forced-Werbemittel hinzugefügt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Forced-Werbemittel-Id: $content[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--}: {%pipe,fixEmptyContentToDashes=$content[userid]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_TYPE--}: {%pipe,translateForcedAdsType=$content[forced_ads_type]%}
+------------------------------------------
+{--ADMIN_FORCED_ADS_HAS_FRAMEBREAKER--}: {%pipe,translateYesNo=$content[forced_ads_framebreaker]%}
+------------------------------------------
+
+Mit freundlichen Grüßen,
+ Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
--- /dev/null
+Hallo Administrator,
+
+Es wurde soeben Forced-Kampagne hinzugefügt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Forced-Kampagnen-Id: $content[id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ORDERED_CLICKS--}: {%pipe,translateComma=$content[forced_campaign_ordered_clicks]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_MINIMUM_STAY--}: {%pipe,createFancyTime=$content[forced_campaign_minimum_stay]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_ADS_ID--} $content[forced_ads_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_USERID--} {%pipe,fixEmptyContentToDashes=$content[forced_campaign_userid]%}
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_COSTS_ID--} $content[forced_costs_id]
+------------------------------------------
+{--ADMIN_FORCED_CAMPAIGN_RELOAD_LOCK--}: {%pipe,createFancyTime=$content[forced_campaign_reload_lock]%}
+------------------------------------------
+
+Mit freundlichen Grüßen,
+ Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
--- /dev/null
+Hallo Administrator,
+
+Es wurde soeben Forced-Preise hinzugefügt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Forced-Preis-Id: $content[id]
+------------------------------------------
+{--ADMIN_FORCED_COSTS_PRICE_CLICK--}: {%pipe,translateComma=$content[forced_costs_price_click]%}
+------------------------------------------
+{--ADMIN_FORCED_COSTS_PAYMENT_CLICK--}: {%pipe,translateComma=$content[forced_costs_payment_click]%}
+------------------------------------------
+{--ADMIN_FORCED_COSTS_VISIBILITY--}: {%pipe,translateForcedCostsVisibility=$content[forced_costs_visibility]%}
+------------------------------------------
+
+Mit freundlichen Grüßen,
+ Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
--- /dev/null
+<div>
+ $content[selection_box]
+</div>