./inc/modules/order.php:76: // @TODO Unused: 2,4
./inc/monthly/monthly_bonus.php:69: // @TODO Rewrite this to a filter
./inc/mysql-manager.php:1173: // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1420: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
-./inc/mysql-manager.php:1518: // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1885: // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1929:// @TODO Fix inconsistency between last_module and getWhat()
+./inc/mysql-manager.php:1428: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:1536: // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:1903: // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:1947:// @TODO Fix inconsistency between last_module and getWhat()
./inc/mysql-manager.php:370: // @TODO Try to rewrite this to one or more functions
./inc/mysql-manager.php:46:// @TODO Can we cache this?
./inc/reset/reset_beg.php:51:// @TODO This should be converted in a daily beg rallye
### ### DEPRECATION FOLLOWS: ### ###
./inc/modules/admin/admin-inc.php:439:// @DEPRECATED
./inc/modules/admin/what-list_network_array_translation.php:2:// @DEPRECATED
+./inc/modules/admin/what-list_network_translations.php:2:// @DEPRECATED
./templates/de/html/admin/admin_add_banner.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_add_network_array_translation.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_admin_add.tpl:1:<!-- @DEPRECATED //-->
) TYPE={?_TABLE_TYPE?} COMMENT='Reload locks'");
// Insert API response array translations, these will be used for calling the right filter function
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('id')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('name')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('alternate_text')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('reload')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('remain')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('reward')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('banner_id')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('size')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('text')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES ('minimum_stay')");
// Insert error code types
// - Affiliate id or interface password wrong
'ADMIN_NETWORK_REQUESTS_DEPLETED_ERROR_CODE' => "API-Abfragen erschöpft",
'ADMIN_NETWORK_REQUEST_PARAMETER_INCOMPLETE_ERROR_CODE' => "API-Abfrageparameter nicht komplett",
'ADMIN_NETWORK_SITE_ID_NOT_ALLOWED_TYPE_ERROR_CODE' => "Seiten-Id nicht freigegeben",
+ // Text-represations of column translate_name
+ 'ADMIN_NETWORK_TRANSLATE_ALTERNATE_TEXT_NAME' => "Alternativer Bildtext",
+ 'ADMIN_NETWORK_TRANSLATE_BANNER_ID_NAME' => "Banner-Id",
+ 'ADMIN_NETWORK_TRANSLATE_ID_NAME' => "Kampagnen-Id",
+ 'ADMIN_NETWORK_TRANSLATE_MINIMUM_STAY_NAME' => "Mindestauffenthalt",
+ 'ADMIN_NETWORK_TRANSLATE_NAME_NAME' => "Kampagnen-Name",
+ 'ADMIN_NETWORK_TRANSLATE_RELOAD_NAME' => "Reloadzeit",
+ 'ADMIN_NETWORK_TRANSLATE_REMAIN_NAME' => "Mindestanzahl restlicher Klicks",
+ 'ADMIN_NETWORK_TRANSLATE_REWARD_NAME' => "Mindestvergütung",
+ 'ADMIN_NETWORK_TRANSLATE_SIZE_NAME' => "Bannerformat",
+ 'ADMIN_NETWORK_TRANSLATE_TEXT_NAME' => "Werbetext",
));
// [EOF]
'',
'',
$GLOBALS['network_translation_disabled'],
- 'ADMIN_NETWORK_TRANSLATION_'
+ 'translateNetworkTranslationName'
);
} // END - if
return $GLOBALS['network_translation'][$default];
}
+// Translates 'translate_name' for e.g. templates
+function translateNetworkTranslationName ($name) {
+ // Get the message id
+ return getMessage('ADMIN_NETWORK_TRANSLATE_' . strtoupper($name) . '_NAME');
+}
+
//------------------------------------------------------------------------------
// Call-back functions
//------------------------------------------------------------------------------
// Return it
return $code;
}
-
// [EOF]
?>
// Add options list for network type
$networkData['translation_index'] = (SQL_NUMROWS($result) + 1);
- $networkData['type_options'] = generateNetworkTypeOptions(getRequestParameter('network_type_id'));
// Free result
SQL_FREERESULT($result);
}
// Generates an option list from various parameters
-function generateOptionList ($table, $id, $name, $default='', $special='', $where='', $disabled=array()) {
+function generateOptionList ($table, $id, $name, $default = '', $special = '', $where = '', $disabled = array(), $callback = '') {
$ret = '';
if ($table == '/ARRAY/') {
// Selection from array
// Disabled!
$ret .= ' disabled="disabled"';
}
+
+ // Is the call-back function set?
+ if (!empty($callback)) {
+ // Call it
+ $name[$idx] = call_user_func_array($callback, array($name[$idx]));
+ } // END - if
+
+ // Finish option tag
$ret .= '>' . $name[$idx] . '</option>';
} // END - foreach
} else {
// Disabled!
$ret .= ' disabled="disabled"';
}
+
+ // Add it, if set
if (!empty($add)) $add = ' ('.$add.')';
+
+ // Is the call-back function set?
+ if (!empty($callback)) {
+ // Call it
+ $title = call_user_func_array($callback, array($title));
+ } // END - if
+
+ // Finish option list
$ret .= '>' . $title . $add . '</option>';
} // END - while
} else {
<td align="right" width="250">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
<td>
<select name="network_type_handle" class="admin_select" size="1">
- $content[type_options]
+ {%pipe,generateNetworkTypeOptions={%pipe,getRequestParameter=network_type_id%}%}
</select>
</td>
</tr>