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_grade_data.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
$ret = $value;
// Is there a special filter function?
- if (!empty($filterFunction)) {
- // Does the filter function exist?
- if (function_exists($filterFunction)) {
- // Is there extra parameters here?
- if ((!is_null($extraValue)) && (!empty($extraValue))) {
- // Put both parameters in one new array by default
- $args = array($value, $extraValue);
-
- // If we have an array simply use it and pre-extend it with our value
- if (is_array($extraValue)) {
- // Make the new args array
- $args = merge_array(array($value), $extraValue);
- } // END - if
+ if ((empty($filterFunction)) || (!function_exists($filterFunction))) {
+ // Call-back function does not exist or is empty
+ reportBug(__FUNCTION__, __LINE__, 'Filter function ' . $filterFunction . ' does not exist or is empty: value[' . gettype($value) . ']=' . $value . ',extraValue[' . gettype($extraValue) . ']=' . $extraValue);
+ } // END - if
- // Call the multi-parameter call-back
- $ret = call_user_func_array($filterFunction, $args);
+ // Is there extra parameters here?
+ if ((!is_null($extraValue)) && (!empty($extraValue))) {
+ // Put both parameters in one new array by default
+ $args = array($value, $extraValue);
- // Is $ret 'true'?
- if ($ret === TRUE) {
- // Test passed, so write direct value
- $ret = $args;
- } // END - if
- } else {
- // One parameter call
- $ret = call_user_func($filterFunction, $value);
- //* BUG */ die('ret['.gettype($ret).']=' . $ret . ',value=' . $value.',filterFunction=' . $filterFunction);
-
- // Is $ret 'true'?
- if ($ret === TRUE) {
- // Test passed, so write direct value
- $ret = $value;
- } // END - if
- }
+ // If we have an array simply use it and pre-extend it with our value
+ if (is_array($extraValue)) {
+ // Make the new args array
+ $args = merge_array(array($value), $extraValue);
} // END - if
- } // END - if
+
+ // Call the multi-parameter call-back
+ $ret = call_user_func_array($filterFunction, $args);
+
+ // Is $ret 'true'?
+ if ($ret === TRUE) {
+ // Test passed, so write direct value
+ $ret = $args;
+ } // END - if
+ } else {
+ // One parameter call
+ $ret = call_user_func($filterFunction, $value);
+ //* BUG */ die('ret['.gettype($ret).']=' . $ret . ',value=' . $value.',filterFunction=' . $filterFunction);
+
+ // Is $ret 'true'?
+ if ($ret === TRUE) {
+ // Test passed, so write direct value
+ $ret = $value;
+ } // END - if
+ }
// Return the value
return $ret;
return $GLOBALS[__FUNCTION__][$address];
}
+// Returns the string if not empty or FALSE if empty
+function validateIsEmpty ($str) {
+ // Trim it
+ $trimmed = trim($str);
+
+ // Is the string empty?
+ if (empty($trimmed)) {
+ // Then set FALSE
+ $str = FALSE;
+ } // END - if
+
+ // Return it
+ return $str;
+}
+
// ----------------------------------------------------------------------------
// "Translatation" functions for points_data table
// ----------------------------------------------------------------------------
// Admin - submit buttons
'ADMIN_ADD_GRADE_DATA_SUBMIT' => "Neue Accountstufe hinzufügen",
+ // Admin - subject lines
+ 'ADMIN_ADD_GRADE_DATA_SUBJECT' => "Neue Accountstufe hinzugefügt",
+
// Admin - notices
'ADMIN_ADD_GRADE_DATA_NOTICE' => "<strong>Hinweise:</strong> Geben Sie als Namen z.B. <strong>Bronze</strong>, <strong>Silber</strong>, <strong>Gold</strong> oder <strong>Platinum</strong> ein. Als beschreibender Text könnten Sie z.B. eingeben, was alles ausserdem noch zu beachten gibt oder es dazu gibt. Mit der Eltern-Accountstufe wählen Sie aus, welche Accountstufe nötig ist, um die neue Stufe zu erreichen. Beispielsweise könnte die Stufe <strong>Silber</strong> die Stufe <strong>Bronze</strong> als Eltern-Accountstufe haben, damit zuerst Bronze und dann Silber erreicht werden muss.",
+
+ // Admin - grade_data table
+ 'ADMIN_GRADE_DATA_ID' => "Stufen-Id:",
+ 'ADMIN_GRADE_DATA_NAME' => "Name für Stufe:",
+ 'ADMIN_GRADE_DATA_DESCRIPTION' => "Beschreibung:",
+ 'ADMIN_GRADE_DATA_PARENT_ID' => "Eltern-Stufe:",
));
// [EOF]
return $GLOBALS[__FUNCTION__][$defaultId];
}
+// ----------------------------------------------------------------------------
+// XML call-back functions
+// ----------------------------------------------------------------------------
+
+// For 'doing' add grade data, the column-index is required
+function addXmlSpecialAdminAddDoGradeData () {
+ // So set it all here
+ $GLOBALS['__COLUMN_INDEX']['doXmlCallbackFunction'] = 'column';
+ $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['column_index'] = 'column';
+}
+
// [EOF]
?>
} // END - if
// Debug message
- //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',columnName[' . gettype($columnName) . ']=' . $columnName . ',filterFunctions=' . $filterFunctions[$key] . ',extraValues=' . intval(isset($extraValues[$key])) . ',extraValuesName=' . intval(isset($extraValues[$columnName . '_list'])) . '<br />');
+ //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',columnName[' . gettype($columnName) . ']=' . $columnName . ',filterFunctions=' . $filterFunctions[$key] . ',extraValues=' . intval(isset($extraValues[$key])) . ',extraValuesName=' . intval(isset($extraValues[$columnName . '_list'])));
// Copy entry securely to the final arrays
$sqlColumns[$key] = SQL_ESCAPE($columnName);
// Then log it
//* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',sqlValues[' . $key . '][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - AFTER!');
} // END - if
- } elseif ((isset($filterFunctions[$key])) && (!empty($filterFunctions[$key])) && (!empty($sqlValues[$key]))) {
+ } elseif (isset($filterFunctions[$key])) {
// Debug mode enabled?
if (isDebugModeEnabled()) {
// Then log it
// Run the SQL query
SQL_QUERY($sql, __FUNCTION__, __LINE__);
- // Add id
+ // Add id number
setPostRequestElement('id', SQL_INSERTID());
// Prepare filter data array
--- /dev/null
+Hallo Administrator,
+
+Es wurde soeben eine Accounstufe hinzugefügt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+{--ADMIN_GRADE_DATA_ID--} $content[id]
+------------------------------------------
+{--ADMIN_GRADE_DATA_NAME--} $content[grade_name]
+------------------------------------------
+{--ADMIN_GRADE_DATA_DESCRIPTION--} {%pipe,fixEmptyContentToDashes=$content[grade_description]%}
+------------------------------------------
+{--ADMIN_GRADE_DATA_PARENT_ID--} {%pipe,fixEmptyContentToDashes=$content[grade_parent_id]%}
+------------------------------------------
+
+Mit freundlichen Grüßen,
+ Ihr {?MAIN_TITLE?} Script
+
+{?URL?}/admin.php
//-->
<database-table name="" type="string" value="forced_ads" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_campaigns" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_costs" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+This template provides meta data for adding grade data to the database.
+
+@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="adminAddEntries" />
+ <!--
+ Name of the database table where the entries should be read/write from/to.
+ //-->
+ <database-table name="" type="string" value="grade_data" />
+ <!--
+ 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="grade_name" alias="" function="" />
+ <database-column-list-entry name="" type="string" table="" value="grade_description" alias="" function="" />
+ <database-column-list-entry name="" type="string" table="" value="grade_parent_id" 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="validateIsEmpty" />
+ <callback-function-list-entry name="" type="string" value="validateIsEmpty" />
+ <callback-function-list-entry name="" type="string" value="convertZeroToNull" />
+ </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>
+</admin-entry-meta-data>
//-->
<database-table name="" type="string" value="user_booking" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_ads" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_costs" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="history" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="subid_log" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_ads" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_costs" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
<!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
//-->
<database-table name="" type="string" value="forced_ads" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_costs" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="points_data" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_actions" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_ads" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_campaigns" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="forced_costs" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="points_data" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
A call-back function list entry
//-->
<callback-function-list-entry name="" type="string" value="bigintval" />
+ <callback-function-list-entry name="" type="string" value="bigintval" />
</callback-function-list>
<!--
Extra parameters (2nd, 3rd, ...) for above call-back functions. If an array
//-->
<database-table name="" type="string" value="surfbar_actions" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<callback-function-list-entry name="" type="string" value="bigintval" />
<callback-function-list-entry name="member_list" type="string" value="addMemberSelectionBox" />
+ <callback-function-list-entry name="" type="string" value="" />
</callback-function-list>
<!--
Extra parameters (2nd, 3rd, ...) for above call-back functions. If an array
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="surfbar_urls" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="table_name" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>
//-->
<callback-function-list>
<!--
- Use again prepareSubId() to validate it.
+ Use again validateSubId() to validate it.
//-->
<callback-function-list-entry name="" type="string" value="validateSubId" />
</callback-function-list>
//-->
<database-table name="" type="string" value="user_subids" />
<!--
- The following three lists must have the same count of list entries, else an
- error may occur.
- //-->
- <!--
And all column names to read/write, leave this list tag empty for all (*).
//-->
<database-column-list>