A lot has been rewritten, ext-teams added, ext-forced continued:
authorRoland Häder <roland@mxchange.org>
Thu, 28 Jul 2011 04:07:10 +0000 (04:07 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 28 Jul 2011 04:07:10 +0000 (04:07 +0000)
- Adding of (admin only) forced-ads basicly finished
- Listing of forced-ads in admin area basicly finished
- Extension ext-teams introduced (stub only)
- Many rewrites/refacturings (I cannot recall them all!) here and there,
  including more usage of EL code and filters
- TODOs.txt updated

256 files changed:
.gitattributes
DOCS/TODOs.txt
DOCS/de/country/countries-europe.sql
DOCS/de/country/countries-full.sql
DOCS/de/country/countries-sorted.sql
DOCS/de/surfbar/README.txt
DOCS/en/README.txt
DOCS/en/country/countries-europe.sql
DOCS/en/country/countries-full.sql
DOCS/en/country/countries-sorted.sql
beg.php
doubler.php
inc/callback-functions.php
inc/classes/cachesystem.class.php
inc/classes/resolver.class.php
inc/daily/daily_100_bonus.php
inc/daily/daily_birthday.php
inc/daily/daily_holiday.php
inc/db/lib-mysql3.php
inc/extensions-functions.php
inc/extensions/ext-admins.php
inc/extensions/ext-autopurge.php
inc/extensions/ext-bank.php
inc/extensions/ext-beg.php
inc/extensions/ext-bitcoins.php
inc/extensions/ext-bonus.php
inc/extensions/ext-cache.php
inc/extensions/ext-coupon.php
inc/extensions/ext-debug.php
inc/extensions/ext-doubler.php
inc/extensions/ext-forced.php
inc/extensions/ext-funcoins.php
inc/extensions/ext-grade.php
inc/extensions/ext-holiday.php
inc/extensions/ext-iso3166.php
inc/extensions/ext-mailid.php
inc/extensions/ext-network.php
inc/extensions/ext-newsletter.php
inc/extensions/ext-online.php
inc/extensions/ext-rallye.php
inc/extensions/ext-refback.php
inc/extensions/ext-register.php
inc/extensions/ext-sponsor.php
inc/extensions/ext-sql_patches.php
inc/extensions/ext-surfbar.php
inc/extensions/ext-teams.php [new file with mode: 0644]
inc/extensions/ext-transfer.php
inc/extensions/ext-user.php
inc/extensions/ext-wernis.php
inc/extensions/ext-yacy.php
inc/extensions/ext-yoomedia.php
inc/filter-functions.php
inc/filter/admins_filter.php
inc/filter/bonus_filter.php
inc/filter/forced_filter.php [new file with mode: 0644]
inc/filter/online_filter.php
inc/filter/register_filter.php
inc/filters.php
inc/fix_filters.php
inc/fix_menu.php
inc/fix_refsystem.php
inc/fix_user_points.php
inc/functions.php
inc/language/beg_de.php
inc/language/de.php
inc/language/forced_de.php [new file with mode: 0644]
inc/libs/admins_functions.php
inc/libs/beg_functions.php
inc/libs/bonus_functions.php
inc/libs/booking_functions.php
inc/libs/country_functions.php
inc/libs/doubler_functions.php
inc/libs/forced_functions.php [new file with mode: 0644]
inc/libs/holiday_functions.php
inc/libs/jackpot_functions.php
inc/libs/mediadata_functions.php
inc/libs/network_functions.php
inc/libs/payout_functions.php
inc/libs/rallye_functions.php
inc/libs/refback_functions.php
inc/libs/register_functions.php
inc/libs/sponsor_functions.php
inc/libs/surfbar_functions.php
inc/libs/task_functions.php
inc/libs/theme_functions.php
inc/libs/user_functions.php
inc/libs/wernis_functions.php
inc/libs/yoomedia_functions.php
inc/load_cache.php
inc/loader/load-admins.php
inc/loader/load-extension.php
inc/loader/load-imprint.php
inc/loader/load-modules.php
inc/loader/load-refdepths.php
inc/loader/load-refsystem.php
inc/loader/load-themes.php
inc/mails/beg_mails.php
inc/mails/bonus_mails.php
inc/mails/doubler_mails.php
inc/module-functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-add_rallye.php
inc/modules/admin/what-admin_add.php
inc/modules/admin/what-adminedit.php
inc/modules/admin/what-admins_mails.php
inc/modules/admin/what-config_cats.php
inc/modules/admin/what-config_home.php
inc/modules/admin/what-config_imprint.php
inc/modules/admin/what-config_mods.php
inc/modules/admin/what-config_payouts.php
inc/modules/admin/what-config_points.php
inc/modules/admin/what-config_rallye_prices.php
inc/modules/admin/what-config_register.php
inc/modules/admin/what-config_rewrite.php
inc/modules/admin/what-del_email.php
inc/modules/admin/what-del_holiday.php
inc/modules/admin/what-del_sponsor.php
inc/modules/admin/what-del_transfer.php
inc/modules/admin/what-edit_emails.php
inc/modules/admin/what-edit_sponsor.php
inc/modules/admin/what-edit_user.php
inc/modules/admin/what-email_archiv.php
inc/modules/admin/what-email_details.php
inc/modules/admin/what-extensions.php
inc/modules/admin/what-guest_add.php
inc/modules/admin/what-guestedit.php
inc/modules/admin/what-list_admins_acls.php
inc/modules/admin/what-list_bank_package.php
inc/modules/admin/what-list_beg.php
inc/modules/admin/what-list_bonus.php
inc/modules/admin/what-list_cats.php
inc/modules/admin/what-list_country.php
inc/modules/admin/what-list_email_max_rec.php
inc/modules/admin/what-list_forced_ads.php [new file with mode: 0644]
inc/modules/admin/what-list_links.php
inc/modules/admin/what-list_network_types.php
inc/modules/admin/what-list_notifications.php
inc/modules/admin/what-list_payouts.php
inc/modules/admin/what-list_primera.php
inc/modules/admin/what-list_rallyes.php
inc/modules/admin/what-list_refs.php
inc/modules/admin/what-list_sponsor.php
inc/modules/admin/what-list_sponsor_pay.php
inc/modules/admin/what-list_task.php
inc/modules/admin/what-list_transfer.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-lock_sponsor.php
inc/modules/admin/what-mem_add.php
inc/modules/admin/what-memedit.php
inc/modules/admin/what-payments.php
inc/modules/admin/what-refbanner.php
inc/modules/admin/what-repair_amnu.php
inc/modules/admin/what-repair_gmnu.php
inc/modules/admin/what-repair_mmnu.php
inc/modules/admin/what-send_coupon.php
inc/modules/admin/what-send_newsletter.php
inc/modules/admin/what-stats_mods.php
inc/modules/admin/what-sub_points.php
inc/modules/admin/what-theme_import.php
inc/modules/admin/what-unlock_emails.php
inc/modules/admin/what-unlock_sponsor.php
inc/modules/admin/what-usr_online.php
inc/modules/frametester.php
inc/modules/guest/what-active.php
inc/modules/guest/what-sponsor_infos.php
inc/modules/guest/what-sponsor_login.php
inc/modules/guest/what-sponsor_reg.php
inc/modules/guest/what-stats.php
inc/modules/guest/what-top10.php
inc/modules/member/what-beg2.php
inc/modules/member/what-bonus.php
inc/modules/member/what-cash_coupon.php
inc/modules/member/what-categories.php
inc/modules/member/what-holiday.php
inc/modules/member/what-mydata.php
inc/modules/member/what-order.php
inc/modules/member/what-payout.php
inc/modules/member/what-points.php
inc/modules/member/what-primera.php
inc/modules/member/what-reflinks.php
inc/modules/member/what-reflist.php
inc/modules/member/what-stats.php
inc/modules/member/what-transfer.php
inc/modules/member/what-unconfirmed.php
inc/modules/member/what-wernis.php
inc/modules/order.php
inc/modules/sponsor/account.php
inc/modules/sponsor/settings.php
inc/modules/sponsor/welcome.php
inc/monthly/monthly_beg.php
inc/monthly/monthly_bonus.php
inc/mysql-manager.php
inc/pool/pool-bonus.php
inc/pool/pool-user.php
inc/purge/purge-general.php
inc/purge/purge-inact.php
inc/purge/purge-unconfirmed.php
inc/referal-functions.php
inc/request-functions.php
inc/session-functions.php
inc/stats-functions.php
inc/template-functions.php
inc/wrapper-functions.php
inc/xml-functions.php
index.php
install/menu-de.sql
install/menu-en.sql
install/tables.sql
mailid.php
mailid_top.php
modules.php
templates/de/emails/member/member_surfbar_url_pending_rejected.tpl
templates/de/html/admin/admin_add_forced_ad.tpl [new file with mode: 0644]
templates/de/html/admin/admin_config_bonus.tpl
templates/de/html/admin/admin_config_home.tpl
templates/de/html/admin/admin_config_home_row.tpl
templates/de/html/admin/admin_config_home_settings.tpl
templates/de/html/admin/admin_delete_surfbar_urls_row.tpl
templates/de/html/admin/admin_edit_surfbar_urls_row.tpl
templates/de/html/admin/admin_list_forced_ads.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_forced_ads_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_home.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_home_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_mods_stats.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_mods_stats2.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_mods_stats2_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_mods_stats_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_lock_surfbar_urls_row.tpl
templates/de/html/admin/admin_mods_stats.tpl
templates/de/html/admin/admin_mods_stats2.tpl
templates/de/html/admin/admin_mods_stats2_row.tpl
templates/de/html/admin/admin_mods_stats_row.tpl
templates/de/html/admin/admin_undelete_surfbar_urls_row.tpl
templates/de/html/beg/beg_banner.tpl
templates/de/html/beg/beg_done.tpl
templates/de/html/beg/beg_footer_banner.tpl [new file with mode: 0644]
templates/de/html/beg/beg_header_banner.tpl [new file with mode: 0644]
templates/de/html/beg/beg_link.tpl
templates/de/html/ext/ext_forced.tpl
templates/de/html/ext/ext_surfbar.tpl
templates/de/html/ext/ext_teams.tpl [new file with mode: 0644]
templates/de/html/select/select_forced_ads_type_box.tpl [new file with mode: 0644]
templates/de/html/select/select_forced_ads_type_option.tpl [new file with mode: 0644]
templates/xml/admin/admin_add_do_forced_ads.xml [new file with mode: 0644]
templates/xml/admin/admin_delete_do_surfbar_urls.xml
templates/xml/admin/admin_delete_show_surfbar_urls.xml
templates/xml/admin/admin_edit_do_surfbar_urls.xml
templates/xml/admin/admin_edit_show_surfbar_urls.xml
templates/xml/admin/admin_list_forced_ads.xml [new file with mode: 0644]
templates/xml/admin/admin_lock_do_surfbar_urls.xml
templates/xml/admin/admin_lock_show_surfbar_urls.xml
templates/xml/admin/admin_undelete_do_surfbar_urls.xml
templates/xml/admin/admin_undelete_show_surfbar_urls.xml
templates/xml/admin_data_template.xml

index 8a32f57ca364bd293b557cfcbf3c7cf0bdb5165b..e161a0089b4973935acc3be4e7316a9634f0cfb1 100644 (file)
@@ -188,6 +188,7 @@ inc/extensions/ext-sql_patches.php svneol=native#text/plain
 inc/extensions/ext-support.php svneol=native#text/plain
 inc/extensions/ext-surfbar.php svneol=native#text/plain
 inc/extensions/ext-task.php svneol=native#text/plain
+inc/extensions/ext-teams.php svneol=native#text/plain
 inc/extensions/ext-terms.php svneol=native#text/plain
 inc/extensions/ext-theme.php svneol=native#text/plain
 inc/extensions/ext-timezone.php svneol=native#text/plain
@@ -210,6 +211,7 @@ inc/filter/bonus_filter.php svneol=native#text/plain
 inc/filter/booking_filter.php svneol=native#text/plain
 inc/filter/cache_filter.php svneol=native#text/plain
 inc/filter/coupon_filter.php svneol=native#text/plain
+inc/filter/forced_filter.php svneol=native#text/plain
 inc/filter/mediadata_filter.php svneol=native#text/plain
 inc/filter/online_filter.php svneol=native#text/plain
 inc/filter/order_filter.php svneol=native#text/plain
@@ -272,6 +274,7 @@ inc/language/de.php svneol=native#text/plain
 inc/language/debug_de.php svneol=native#text/plain
 inc/language/doubler_de.php svneol=native#text/plain
 inc/language/en.php svneol=native#text/plain
+inc/language/forced_de.php svneol=native#text/plain
 inc/language/funcoins_de.php svneol=native#text/plain
 inc/language/holiday_de.php svneol=native#text/plain
 inc/language/html_mail_de.php svneol=native#text/plain
@@ -328,6 +331,7 @@ inc/libs/coupon_functions.php svneol=native#text/plain
 inc/libs/debug_functions.php svneol=native#text/plain
 inc/libs/doubler_functions.php svneol=native#text/plain
 inc/libs/events_functions.php svneol=native#text/plain
+inc/libs/forced_functions.php svneol=native#text/plain
 inc/libs/funcoins_functions.php svneol=native#text/plain
 inc/libs/holiday_functions.php svneol=native#text/plain
 inc/libs/html_mail_functions.php svneol=native#text/plain
@@ -522,6 +526,7 @@ inc/modules/admin/what-list_country.php svneol=native#text/plain
 inc/modules/admin/what-list_coupon.php svneol=native#text/plain
 inc/modules/admin/what-list_doubler.php svneol=native#text/plain
 inc/modules/admin/what-list_email_max_rec.php svneol=native#text/plain
+inc/modules/admin/what-list_forced_ads.php svneol=native#text/plain
 inc/modules/admin/what-list_holiday.php svneol=native#text/plain
 inc/modules/admin/what-list_links.php svneol=native#text/plain
 inc/modules/admin/what-list_network_api_translation.php svneol=native#text/plain
@@ -1011,6 +1016,7 @@ templates/de/html/admin/admin_add_admins_acl.tpl svneol=native#text/plain
 templates/de/html/admin/admin_add_bank_package.tpl svneol=native#text/plain
 templates/de/html/admin/admin_add_cat.tpl svneol=native#text/plain
 templates/de/html/admin/admin_add_country.tpl svneol=native#text/plain
+templates/de/html/admin/admin_add_forced_ad.tpl svneol=native#text/plain
 templates/de/html/admin/admin_add_guest_menu.tpl svneol=native#text/plain
 templates/de/html/admin/admin_add_max.tpl svneol=native#text/plain
 templates/de/html/admin/admin_add_member_menu.tpl svneol=native#text/plain
@@ -1265,8 +1271,12 @@ templates/de/html/admin/admin_list_email_max_rec.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_email_max_rec_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_emails.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_emails_row.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_forced_ads.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_forced_ads_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_holiday.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_holiday_row.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_home.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_home_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_imprint.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_imprint_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_imprint_row_none.tpl svneol=native#text/plain
@@ -1275,6 +1285,10 @@ templates/de/html/admin/admin_list_links_problem.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_links_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_mods.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_mods_row.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_mods_stats.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_mods_stats2.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_mods_stats2_row.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_mods_stats_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_network_api_translation.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_network_api_translation_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_list_network_config.tpl svneol=native#text/plain
@@ -1451,6 +1465,8 @@ templates/de/html/beg/.htaccess svneol=native#text/plain
 templates/de/html/beg/beg_banner.tpl svneol=native#text/plain
 templates/de/html/beg/beg_done.tpl svneol=native#text/plain
 templates/de/html/beg/beg_failed.tpl svneol=native#text/plain
+templates/de/html/beg/beg_footer_banner.tpl svneol=native#text/plain
+templates/de/html/beg/beg_header_banner.tpl svneol=native#text/plain
 templates/de/html/beg/beg_link.tpl svneol=native#text/plain
 templates/de/html/beg/beg_login.tpl svneol=native#text/plain
 templates/de/html/beg/beg_pay_mode_both.tpl svneol=native#text/plain
@@ -1534,6 +1550,7 @@ templates/de/html/ext/ext_sql_patches.tpl svneol=native#text/plain
 templates/de/html/ext/ext_support.tpl svneol=native#text/plain
 templates/de/html/ext/ext_surfbar.tpl svneol=native#text/plain
 templates/de/html/ext/ext_task.tpl svneol=native#text/plain
+templates/de/html/ext/ext_teams.tpl svneol=native#text/plain
 templates/de/html/ext/ext_terms.tpl svneol=native#text/plain
 templates/de/html/ext/ext_theme.tpl svneol=native#text/plain
 templates/de/html/ext/ext_timezone.tpl svneol=native#text/plain
@@ -1838,6 +1855,8 @@ templates/de/html/removeip_level.tpl svneol=native#text/plain
 templates/de/html/runtime_fatal_row.tpl svneol=native#text/plain
 templates/de/html/runtime_fatal_table.tpl svneol=native#text/plain
 templates/de/html/select/.htaccess 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
 templates/de/html/select/select_network_box.tpl svneol=native#text/plain
 templates/de/html/select/select_network_option.tpl svneol=native#text/plain
 templates/de/html/select/select_network_type_box.tpl svneol=native#text/plain
index bec09bfb35872510cd7e24b7a3b9ba0379f4bcf5..9bc31bcda9bc9f3ee5e17964f03c19cdb72f7958 100644 (file)
@@ -1,7 +1,7 @@
 ### WARNING: THIS FILE IS AUTO-GENERATED BY ./DOCS/todo-builder.sh (uid=/user=quix0r) ###
 ### DO NOT EDIT THIS FILE. ###
 ./autoreg.php:58:// @TODO Add processing of request here
-./beg.php:168:                 // @TODO Opps, what is missing here???
+./beg.php:175:                 // @TODO Opps, what is missing here???
 ./inc/cache/config-local.php:124:// @TODO Rewrite the following three constants, somehow...
 ./inc/classes/cachesystem.class.php:504:       // @TODO Add support for more types which break in last else-block
 ./inc/config-functions.php:136:        // @TODO Make this all better... :-/
 ./inc/functions.php:1310:                      // @TODO Are these convertions still required?
 ./inc/functions.php:1330:// @TODO Rewrite this function to use readFromFile() and writeToFile()
 ./inc/functions.php:156:// @TODO Rewrite this to an extension 'smtp'
-./inc/functions.php:1939:      // @TODO Find a way to cache this
-./inc/functions.php:2040:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:2232:      // @TODO Rename column data_type to e.g. mail_status
+./inc/functions.php:1940:      // @TODO Find a way to cache this
+./inc/functions.php:2041:      // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:2233:      // @TODO Rename column data_type to e.g. mail_status
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:57:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
-./inc/language/de.php:1067:    // @TODO Rewrite these two constants
-./inc/language/de.php:1083:    // @TODO Rewrite these three constants
+./inc/language/de.php:1072:    // @TODO Rewrite these two constants
+./inc/language/de.php:1088:    // @TODO Rewrite these three constants
 ./inc/language/de.php:757:// @TODO Are these constants longer used?
 ./inc/language-functions.php:255:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:44:// @TODO Rewrite all language constants to this function.
@@ -76,7 +76,7 @@
 ./inc/libs/register_functions.php:290: // @TODO Rewrite these all to a single filter
 ./inc/libs/sponsor_functions.php:159:                                  // @TODO Rewrite this to API function
 ./inc/libs/sponsor_functions.php:430:                  // @TODO Rewrite this to API function
-./inc/libs/surfbar_functions.php:1623:         // @TODO This can be somehow rewritten
+./inc/libs/surfbar_functions.php:1624:         // @TODO This can be somehow rewritten
 ./inc/libs/surfbar_functions.php:731:// @TODO Can't we use our new expression language instead of this ugly code?
 ./inc/libs/task_functions.php:247:             // @TODO These can be rewritten to filter
 ./inc/libs/task_functions.php:51:// @TODO Move all extension-dependent queries into filters
@@ -90,7 +90,7 @@
 ./inc/mails/doubler_mails.php:53:// @TODO Can this be rewritten to a filter?
 ./inc/module-functions.php:267:                        // @TODO Nothing helped???
 ./inc/module-functions.php:308:                        // @TODO Rewrite this to a filter
-./inc/modules/admin/admin-inc.php:1236:                                // @TODO If we can rewrite the EL sub-system to support more than one parameter, this call_user_func_array() can be avoided
+./inc/modules/admin/admin-inc.php:1373:                                // @TODO If we can rewrite the EL sub-system to support more than one parameter, this call_user_func_array() can be avoided
 ./inc/modules/admin/admin-inc.php:171:         // @TODO This and the next getCurrentAdminId() call might be moved into the templates?
 ./inc/modules/admin/admin-inc.php:242:         // @TODO This can be rewritten into a filter
 ./inc/modules/admin/admin-inc.php:274:         // @TODO Rewrite this to $content = SQL_FETCHARRAY()
 ./inc/modules/admin/what-list_admins_acls.php:108:     // @TODO Rewrite this to a filter
 ./inc/modules/admin/what-list_admins_acls.php:136:     // @TODO Rewrite this to filter 'run_sqls'
 ./inc/modules/admin/what-list_autopurge.php:47:// @TODO Rewrite those lines to filter
-./inc/modules/admin/what-list_bonus.php:133:           // @TODO Can't this be moved into our expression language?
+./inc/modules/admin/what-list_bonus.php:139:           // @TODO Can't this be moved into our expression language?
 ./inc/modules/admin/what-list_cats.php:54:             // @TODO No longer needed? define('__CATEGORIES_BASE'   , '<a href="{%url=modules.php?module=admin&amp;userid=');
 ./inc/modules/admin/what-list_cats.php:68:                             // @TODO Rewrite this to countSum.....() function
 ./inc/modules/admin/what-list_links.php:55:            // @TODO Try to rewrite this to a filter
 ./inc/modules/guest/what-stats.php:82:// @TODO This can be rewritten in a dynamic include
 ./inc/modules/member/what-beg.php:54:// @TODO Can't this be moved into EL?
 ./inc/modules/member/what-beg.php:63:// @TODO No more needed? define('__BEG_USERID_TIMEOUT', createFancyTime(getBegUseridTimeout()));
-./inc/modules/member/what-bonus.php:55:        // @TODO Rewrite this to a filter
 ./inc/modules/member/what-categories.php:131:          // @TODO Rewrite this to use $OUT .= ...
 ./inc/modules/member/what-logout.php:17: * @TODO Rewrite the code to a filter                                   *
 ./inc/modules/member/what-order.php:488:                       // @TODO Rewrite this to a filter
 ./inc/modules/member/what-unconfirmed.php:162: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
 ./inc/modules/member/what-unconfirmed.php:227:                         // @TODO This 'userid' cannot be saved because of encapsulated EL code
 ./inc/modules/order.php:74:            // @TODO Unused: 2,4
-./inc/monthly/monthly_bonus.php:64:    // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1252:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
-./inc/mysql-manager.php:1316:          // @TODO Rewrite these lines to a filter
-./inc/mysql-manager.php:1340:  // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1599:                  // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1645:// @TODO Fix inconsistency between last_module and getWhat()
-./inc/mysql-manager.php:372:   // @TODO Try to rewrite this to one or more functions
+./inc/mysql-manager.php:1267:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:1331:          // @TODO Rewrite these lines to a filter
+./inc/mysql-manager.php:1355:  // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:1614:                  // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:1660:// @TODO Fix inconsistency between last_module and getWhat()
+./inc/mysql-manager.php:387:   // @TODO Try to rewrite this to one or more functions
 ./inc/mysql-manager.php:44:// @TODO Can we cache this?
 ./inc/purge/purge-inact.php:55:        // @TODO Rewrite these if() blocks to a filter
 ./inc/revision-functions.php:169:// @TODO This function does also set and get in 'cache_array'
-./inc/template-functions.php:1084:                     // @TODO Deprecate this thing
-./inc/template-functions.php:1095:                     // @TODO Deprecate this thing
-./inc/template-functions.php:1185:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/template-functions.php:1218:             // @TODO Add a little more infos here
-./inc/template-functions.php:1532:// @TODO Lame description for this function
-./inc/template-functions.php:1554:                     // @TODO Move this in a filter
-./inc/template-functions.php:189:       * @TODO On some pages this is buggy
-./inc/template-functions.php:278:              // @TODO Remove this sanity-check if all is fine
-./inc/template-functions.php:441:      // @TODO $DATA is deprecated and should be avoided and replaced with $content
-./inc/template-functions.php:607:// @TODO $simple/$constants are deprecated
-./inc/template-functions.php:633:      // @TODO Do only use $content and deprecate $DATA in templates
+./inc/template-functions.php:1075:                     // @TODO Deprecate this thing
+./inc/template-functions.php:1086:                     // @TODO Deprecate this thing
+./inc/template-functions.php:1176:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
+./inc/template-functions.php:1209:             // @TODO Add a little more infos here
+./inc/template-functions.php:1535:// @TODO Lame description for this function
+./inc/template-functions.php:1557:                     // @TODO Move this in a filter
+./inc/template-functions.php:184:       * @TODO On some pages this is buggy
+./inc/template-functions.php:273:              // @TODO Remove this sanity-check if all is fine
+./inc/template-functions.php:436:      // @TODO $DATA is deprecated and should be avoided and replaced with $content
+./inc/template-functions.php:602:// @TODO $simple/$constants are deprecated
+./inc/template-functions.php:628:      // @TODO Do only use $content and deprecate $DATA in templates
 ./inc/wrapper-functions.php:130:// @TODO Implement $compress
 ./inc/wrapper-functions.php:137:// @TODO Implement $decompress
 ./inc/wrapper-functions.php:514:// @TODO Do some more sanity check here
 ./templates/de/html/admin/admin_config_email_edit.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_email_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_email.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_config_home_row.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_config_home_settings.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_order_form.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_payouts_del_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_payouts_del.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_list_country_del_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_list_country_edit_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_list_user_sort_form.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_mods_stats2_row.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_mods_stats2.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_mods_stats_row.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_mods_stats.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_reset_pass_done.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_send_reset_link.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/beg/beg_banner.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/guest/guest_active_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/guest/guest_active_table.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/guest/guest_no_rallyes.tpl:1:<!-- @DEPRECATED //-->
index a1250b19ca539939730f6a844d9acde85d5b63cc..4a65c61c68a4d8ed32900cc53e24efbd2a7bec3c 100644 (file)
@@ -1,36 +1,36 @@
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AT','Austria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BE','Belgium','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BG','Bulgaria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CH','Switzerland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CZ','Czech Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DK','Denmark','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EE','Estonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ES','Spain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EU','European Union','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FI','Finland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','United Kingdom','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','England','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Great Britain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Scotland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Channel Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GR','Greece','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HR','Croatia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HU','Hungary','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IE','Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IF','Northern Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IS','Iceland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IT','Italy','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LI','Liechtenstein','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LU','Luxembourg','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MC','Monaco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NL','Netherlands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NO','Norway','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NZ','New Zealand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PL','Poland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PT','Portugal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RO','Romania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SE','Sweden','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SI','Slovenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TR','Turkey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AT','Austria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BE','Belgium','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BG','Bulgaria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CH','Switzerland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CZ','Czech Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DK','Denmark','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EE','Estonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ES','Spain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EU','European Union','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FI','Finland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','United Kingdom','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','England','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Great Britain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Scotland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Channel Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GR','Greece','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HR','Croatia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HU','Hungary','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IE','Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IF','Northern Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IS','Iceland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IT','Italy','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LI','Liechtenstein','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LU','Luxembourg','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MC','Monaco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NL','Netherlands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NO','Norway','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NZ','New Zealand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PL','Poland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PT','Portugal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RO','Romania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SE','Sweden','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SI','Slovenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TR','Turkey','Y');
index 6520114db7efc87796bb85a728e9ef40f203774f..b91029e0c44127ae804008d82ea5f4b76e8ecaa8 100644 (file)
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AC','Ascension','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AD','Andorra','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AE','United Arab Emirates','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AF','Afghanistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AG','Antigua and Barbuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AI','Anguilla','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AL','Albania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AM','Armenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AN','Netherlands Antilles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AO','Angola','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AQ','Antarctica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AR','Argentina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AS','American Samoa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AT','Austria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AU','Australia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AW','Aruba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AZ','Azerbaijan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BB','Barbados','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BD','Bangladesh','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BE','Belgium','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BF','Burkina Faso','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BG','Bulgaria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BH','Bahrain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BI','Burundi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BJ','Benin','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BM','Bermuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BN','Brunei Darussalam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BO','Bolivia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BR','Brazil','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BS','Bahamas','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BT','Bhutan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BV','Bouvet','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BW','Botswana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BY','Belarus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BZ','Belize','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CA','Canada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CC','Cocos','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CF','Central African Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CG','Congo Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CH','Switzerland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CI','Cote D Ivoire','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CK','Cook Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CL','Chile','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CM','Cameroon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CN','China','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CO','Colombia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CR','Costa Rica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CS','Serbia and Montenegro','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CT','Canton and Enderbury','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CU','Cuba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CV','Cape Verde','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CX','Christmas Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CY','Cyprus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CZ','Czech Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DJ','Djibuti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DK','Denmark','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DM','Dominica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DO','Dominican Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DZ','Algeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EC','Ecuador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EE','Estonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EG','Egypt','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EH','Western Sahara','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ER','Eritrea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ES','Spain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ET','Ethiopia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EU','European Union','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FI','Finland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FJ','Fiji','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FK','Falkland Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FO','Faroe Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FR','Frabce','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GA','Gabon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','United Kingdom','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','England','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Great Britain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Scotland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Channel Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GD','Grenada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GE','Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GF','French Guiana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GG','Guernsey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GH','Ghana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GI','Gibraltar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GL','Greenland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GM','Gambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GN','Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GP','Guadeloupe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GQ','Guinea Equatorial','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GR','Greece','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GS','South Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GT','Guatemala','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GU','Guam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GW','Guinea-Bissau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GY','Guyana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HK','Hong Kong','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HN','Honduras','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HR','Croatia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HT','Haiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HU','Hungary','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ID','Indonesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IE','Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IF','Northern Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IL','Israel','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IM','Isle of Man','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IN','India','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IO','British Indian O.T.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IQ','Iraq','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IR','Iran Islamic Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IS','Iceland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IT','Italy','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JE','Jersey Bailwick','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JM','Jamaica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JO','Jordan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JP','Japan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JT','Johnston Atoll','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KE','Kenya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KG','Kyrgyzstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KH','Cambodia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KI','Kiribati','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KM','Comoros','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KR','Korea Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KW','Kuwait','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KY','Cayman Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KZ','Kazakhstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LB','Lebanon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LC','St. Lucia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LI','Liechtenstein','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LK','Sri Lanka','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LR','Liberia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LS','Lesotho','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LT','Lithuania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LU','Luxembourg','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LV','Latvia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MA','Morocco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MC','Monaco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MD','Moldova Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MG','Madagascar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MH','Marshall Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MI','Midway Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MK','Macedonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ML','Mali','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MM','Myanmar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MN','Mongolia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MO','Macau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MQ','Martinique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MR','Mauritania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MS','Montserat','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MT','Malta','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MU','Mauritius','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MV','Maldives','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MW','Malawi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MX','Mexico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MY','Malaysia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MZ','Mozambique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NA','Namibia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NC','New Caledonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NE','Niger','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NF','Norfolk Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NG','Nigeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NI','Nicaragua','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NL','Netherlands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NO','Norway','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NP','Nepal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NR','Nauru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NU','Niue','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NZ','New Zealand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('OM','Oman','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PA','Panama','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PE','Peru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PF','French Polynesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PG','Papua New Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PH','Philippines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PK','Parkistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PL','Poland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PN','Pitcairn Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PR','Puerto Rico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Palestian Authority','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Gaza Strip','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','West Bank','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PT','Portugal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PW','Palau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PY','Paraguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('QA','Qatar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RE','Reunion','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RO','Romania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RU','Russian Federation','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RW','Rwanda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SA','Saudi Arabia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SB','Solomon Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SC','Seychelles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SD','Sudan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SE','Sweden','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SG','Singapore','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SH','St. Helena','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SI','Slovenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SL','Sierra Leone','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SM','San Marino','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SN','Senegal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SO','Somalia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SR','Suriname','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ST','Sao Tome and Principe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SV','El Salvador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SZ','Swaziland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TA','Tahiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TD','Chad','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TF','French Southern Ter.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TG','Togo','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TH','Thailand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TJ','Tajikistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TK','Ttokelau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TM','Turkmenistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TN','Tunisia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TO','Tonga','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TP','East Timor','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TR','Turkey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TT','Trinidad and Tobago','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TV','Tuvalu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TW','Taiwan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UA','Ukraine','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UG','Uganda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('US','United States','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UY','Uruguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UZ','Uzbekistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Vatican City State','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Holy See','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VE','Venezuela','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VG','Virgin Iland (British)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VN','Viet Nam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VU','Vanuatu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WK','Wake Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WS','Samoa West','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YE','Yemen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YT','Mayotte','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZA','South Africa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZM','Zambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZW','Zimbabwe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AC','Ascension','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AD','Andorra','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AE','United Arab Emirates','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AF','Afghanistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AG','Antigua and Barbuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AI','Anguilla','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AL','Albania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AM','Armenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AN','Netherlands Antilles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AO','Angola','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AQ','Antarctica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AR','Argentina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AS','American Samoa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AT','Austria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AU','Australia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AW','Aruba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AZ','Azerbaijan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BB','Barbados','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BD','Bangladesh','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BE','Belgium','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BF','Burkina Faso','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BG','Bulgaria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BH','Bahrain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BI','Burundi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BJ','Benin','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BM','Bermuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BN','Brunei Darussalam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BO','Bolivia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BR','Brazil','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BS','Bahamas','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BT','Bhutan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BV','Bouvet','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BW','Botswana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BY','Belarus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BZ','Belize','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CA','Canada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CC','Cocos','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CF','Central African Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CG','Congo Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CH','Switzerland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CI','Cote D Ivoire','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CK','Cook Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CL','Chile','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CM','Cameroon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CN','China','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CO','Colombia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CR','Costa Rica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CS','Serbia and Montenegro','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CT','Canton and Enderbury','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CU','Cuba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CV','Cape Verde','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CX','Christmas Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CY','Cyprus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CZ','Czech Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DJ','Djibuti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DK','Denmark','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DM','Dominica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DO','Dominican Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DZ','Algeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EC','Ecuador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EE','Estonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EG','Egypt','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EH','Western Sahara','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ER','Eritrea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ES','Spain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ET','Ethiopia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EU','European Union','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FI','Finland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FJ','Fiji','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FK','Falkland Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FO','Faroe Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FR','Frabce','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GA','Gabon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','United Kingdom','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','England','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Great Britain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Scotland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Channel Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GD','Grenada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GE','Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GF','French Guiana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GG','Guernsey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GH','Ghana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GI','Gibraltar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GL','Greenland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GM','Gambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GN','Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GP','Guadeloupe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GQ','Guinea Equatorial','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GR','Greece','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GS','South Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GT','Guatemala','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GU','Guam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GW','Guinea-Bissau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GY','Guyana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HK','Hong Kong','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HN','Honduras','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HR','Croatia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HT','Haiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HU','Hungary','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ID','Indonesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IE','Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IF','Northern Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IL','Israel','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IM','Isle of Man','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IN','India','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IO','British Indian O.T.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IQ','Iraq','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IR','Iran Islamic Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IS','Iceland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IT','Italy','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JE','Jersey Bailwick','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JM','Jamaica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JO','Jordan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JP','Japan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JT','Johnston Atoll','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KE','Kenya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KG','Kyrgyzstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KH','Cambodia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KI','Kiribati','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KM','Comoros','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KR','Korea Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KW','Kuwait','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KY','Cayman Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KZ','Kazakhstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LB','Lebanon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LC','St. Lucia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LI','Liechtenstein','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LK','Sri Lanka','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LR','Liberia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LS','Lesotho','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LT','Lithuania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LU','Luxembourg','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LV','Latvia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MA','Morocco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MC','Monaco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MD','Moldova Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MG','Madagascar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MH','Marshall Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MI','Midway Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MK','Macedonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ML','Mali','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MM','Myanmar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MN','Mongolia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MO','Macau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MQ','Martinique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MR','Mauritania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MS','Montserat','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MT','Malta','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MU','Mauritius','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MV','Maldives','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MW','Malawi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MX','Mexico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MY','Malaysia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MZ','Mozambique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NA','Namibia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NC','New Caledonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NE','Niger','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NF','Norfolk Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NG','Nigeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NI','Nicaragua','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NL','Netherlands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NO','Norway','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NP','Nepal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NR','Nauru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NU','Niue','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NZ','New Zealand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('OM','Oman','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PA','Panama','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PE','Peru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PF','French Polynesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PG','Papua New Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PH','Philippines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PK','Parkistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PL','Poland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PN','Pitcairn Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PR','Puerto Rico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Palestian Authority','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Gaza Strip','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','West Bank','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PT','Portugal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PW','Palau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PY','Paraguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('QA','Qatar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RE','Reunion','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RO','Romania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RU','Russian Federation','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RW','Rwanda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SA','Saudi Arabia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SB','Solomon Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SC','Seychelles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SD','Sudan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SE','Sweden','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SG','Singapore','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SH','St. Helena','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SI','Slovenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SL','Sierra Leone','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SM','San Marino','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SN','Senegal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SO','Somalia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SR','Suriname','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ST','Sao Tome and Principe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SV','El Salvador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SZ','Swaziland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TA','Tahiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TD','Chad','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TF','French Southern Ter.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TG','Togo','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TH','Thailand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TJ','Tajikistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TK','Ttokelau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TM','Turkmenistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TN','Tunisia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TO','Tonga','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TP','East Timor','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TR','Turkey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TT','Trinidad and Tobago','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TV','Tuvalu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TW','Taiwan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UA','Ukraine','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UG','Uganda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('US','United States','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UY','Uruguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UZ','Uzbekistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Vatican City State','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Holy See','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VE','Venezuela','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VG','Virgin Iland (British)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VN','Viet Nam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VU','Vanuatu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WK','Wake Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WS','Samoa West','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YE','Yemen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YT','Mayotte','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZA','South Africa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZM','Zambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZW','Zimbabwe','Y');
index 6b3a5266c005b846ba1cd674d3d130e9368952b1..945429541ccf02eee5786fbe0d548527d97974c0 100644 (file)
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AT','Austria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BE','Belgium','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CH','Switzerland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CR','Costa Rica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CZ','Czech Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DK','Denmark','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ES','Spain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FI','Finland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FR','Frabce','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','United Kingdom','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','England','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Great Britain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Scotland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Channel Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GR','Greece','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HR','Croatia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HU','Hungary','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IE','Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IF','Northern Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IS','Iceland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IT','Italy','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LI','Liechtenstein','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LU','Luxembourg','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MC','Monaco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NL','Netherlands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NO','Norway','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PL','Poland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RO','Romania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RU','Russian Federation','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SE','Sweden','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SI','Slovenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TR','Turkey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AC','Ascension','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AD','Andorra','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AE','United Arab Emirates','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AF','Afghanistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AG','Antigua and Barbuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AI','Anguilla','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AL','Albania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AM','Armenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AN','Netherlands Antilles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AO','Angola','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AQ','Antarctica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AR','Argentina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AS','American Samoa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AU','Australia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AW','Aruba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AZ','Azerbaijan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BB','Barbados','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BD','Bangladesh','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BF','Burkina Faso','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BG','Bulgaria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BH','Bahrain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BI','Burundi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BJ','Benin','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BM','Bermuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BN','Brunei Darussalam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BO','Bolivia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BR','Brazil','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BS','Bahamas','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BT','Bhutan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BV','Bouvet','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BW','Botswana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BY','Belarus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BZ','Belize','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CA','Canada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CC','Cocos','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CF','Central African Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CG','Congo Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CI','Cote D Ivoire','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CK','Cook Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CL','Chile','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CM','Cameroon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CN','China','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CO','Colombia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CS','Serbia and Montenegro','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CT','Canton and Enderbury','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CU','Cuba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CV','Cape Verde','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CX','Christmas Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CY','Cyprus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DJ','Djibuti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DM','Dominica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DO','Dominican Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DZ','Algeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EC','Ecuador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EE','Estonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EG','Egypt','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EH','Western Sahara','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ER','Eritrea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ET','Ethiopia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EU','European Union','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FJ','Fiji','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FK','Falkland Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FO','Faroe Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GA','Gabon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GD','Grenada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GE','Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GF','French Guiana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GG','Guernsey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GH','Ghana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GI','Gibraltar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GL','Greenland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GM','Gambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GN','Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GP','Guadeloupe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GQ','Guinea Equatorial','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GS','South Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GT','Guatemala','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GU','Guam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GW','Guinea-Bissau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GY','Guyana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HK','Hong Kong','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HN','Honduras','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HT','Haiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ID','Indonesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IL','Israel','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IM','Isle of Man','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IN','India','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IO','British Indian O.T.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IQ','Iraq','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IR','Iran Islamic Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JE','Jersey Bailwick','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JM','Jamaica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JO','Jordan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JP','Japan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JT','Johnston Atoll','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KE','Kenya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KG','Kyrgyzstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KH','Cambodia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KI','Kiribati','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KM','Comoros','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KR','Korea Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KW','Kuwait','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KY','Cayman Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KZ','Kazakhstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LB','Lebanon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LC','St. Lucia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LK','Sri Lanka','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LR','Liberia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LS','Lesotho','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LT','Lithuania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LV','Latvia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MA','Morocco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MD','Moldova Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MG','Madagascar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MH','Marshall Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MI','Midway Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MK','Macedonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ML','Mali','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MM','Myanmar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MN','Mongolia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MO','Macau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MQ','Martinique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MR','Mauritania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MS','Montserat','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MT','Malta','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MU','Mauritius','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MV','Maldives','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MW','Malawi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MX','Mexico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MY','Malaysia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MZ','Mozambique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NA','Namibia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NC','New Caledonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NE','Niger','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NF','Norfolk Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NG','Nigeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NI','Nicaragua','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NP','Nepal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NR','Nauru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NU','Niue','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NZ','New Zealand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('OM','Oman','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PA','Panama','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PE','Peru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PF','French Polynesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PG','Papua New Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PH','Philippines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PK','Parkistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PN','Pitcairn Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PR','Puerto Rico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Palestian Authority','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Gaza Strip','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','West Bank','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PT','Portugal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PW','Palau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PY','Paraguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('QA','Qatar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RE','Reunion','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RW','Rwanda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SA','Saudi Arabia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SB','Solomon Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SC','Seychelles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SD','Sudan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SG','Singapore','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SH','St. Helena','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SL','Sierra Leone','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SM','San Marino','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SN','Senegal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SO','Somalia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SR','Suriname','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ST','Sao Tome and Principe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SV','El Salvador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SZ','Swaziland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TA','Tahiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TD','Chad','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TF','French Southern Ter.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TG','Togo','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TH','Thailand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TJ','Tajikistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TK','Ttokelau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TM','Turkmenistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TN','Tunisia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TO','Tonga','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TP','East Timor','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TT','Trinidad and Tobago','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TV','Tuvalu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TW','Taiwan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UA','Ukraine','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UG','Uganda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('US','United States','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UY','Uruguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UZ','Uzbekistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Vatican City State','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Holy See','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VE','Venezuela','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VG','Virgin Iland (British)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VN','Viet Nam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VU','Vanuatu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WK','Wake Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WS','Samoa West','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YE','Yemen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YT','Mayotte','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZA','South Africa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZM','Zambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZW','Zimbabwe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AT','Austria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BE','Belgium','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CH','Switzerland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CR','Costa Rica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CZ','Czech Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DK','Denmark','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ES','Spain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FI','Finland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FR','Frabce','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','United Kingdom','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','England','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Great Britain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Scotland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Channel Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GR','Greece','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HR','Croatia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HU','Hungary','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IE','Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IF','Northern Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IS','Iceland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IT','Italy','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LI','Liechtenstein','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LU','Luxembourg','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MC','Monaco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NL','Netherlands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NO','Norway','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PL','Poland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RO','Romania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RU','Russian Federation','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SE','Sweden','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SI','Slovenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TR','Turkey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AC','Ascension','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AD','Andorra','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AE','United Arab Emirates','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AF','Afghanistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AG','Antigua and Barbuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AI','Anguilla','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AL','Albania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AM','Armenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AN','Netherlands Antilles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AO','Angola','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AQ','Antarctica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AR','Argentina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AS','American Samoa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AU','Australia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AW','Aruba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AZ','Azerbaijan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BB','Barbados','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BD','Bangladesh','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BF','Burkina Faso','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BG','Bulgaria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BH','Bahrain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BI','Burundi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BJ','Benin','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BM','Bermuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BN','Brunei Darussalam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BO','Bolivia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BR','Brazil','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BS','Bahamas','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BT','Bhutan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BV','Bouvet','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BW','Botswana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BY','Belarus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BZ','Belize','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CA','Canada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CC','Cocos','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CF','Central African Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CG','Congo Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CI','Cote D Ivoire','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CK','Cook Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CL','Chile','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CM','Cameroon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CN','China','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CO','Colombia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CS','Serbia and Montenegro','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CT','Canton and Enderbury','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CU','Cuba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CV','Cape Verde','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CX','Christmas Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CY','Cyprus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DJ','Djibuti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DM','Dominica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DO','Dominican Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DZ','Algeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EC','Ecuador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EE','Estonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EG','Egypt','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EH','Western Sahara','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ER','Eritrea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ET','Ethiopia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EU','European Union','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FJ','Fiji','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FK','Falkland Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FO','Faroe Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GA','Gabon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GD','Grenada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GE','Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GF','French Guiana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GG','Guernsey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GH','Ghana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GI','Gibraltar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GL','Greenland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GM','Gambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GN','Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GP','Guadeloupe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GQ','Guinea Equatorial','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GS','South Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GT','Guatemala','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GU','Guam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GW','Guinea-Bissau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GY','Guyana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HK','Hong Kong','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HN','Honduras','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HT','Haiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ID','Indonesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IL','Israel','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IM','Isle of Man','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IN','India','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IO','British Indian O.T.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IQ','Iraq','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IR','Iran Islamic Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JE','Jersey Bailwick','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JM','Jamaica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JO','Jordan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JP','Japan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JT','Johnston Atoll','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KE','Kenya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KG','Kyrgyzstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KH','Cambodia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KI','Kiribati','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KM','Comoros','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KR','Korea Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KW','Kuwait','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KY','Cayman Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KZ','Kazakhstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LB','Lebanon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LC','St. Lucia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LK','Sri Lanka','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LR','Liberia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LS','Lesotho','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LT','Lithuania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LV','Latvia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MA','Morocco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MD','Moldova Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MG','Madagascar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MH','Marshall Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MI','Midway Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MK','Macedonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ML','Mali','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MM','Myanmar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MN','Mongolia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MO','Macau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MQ','Martinique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MR','Mauritania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MS','Montserat','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MT','Malta','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MU','Mauritius','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MV','Maldives','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MW','Malawi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MX','Mexico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MY','Malaysia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MZ','Mozambique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NA','Namibia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NC','New Caledonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NE','Niger','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NF','Norfolk Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NG','Nigeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NI','Nicaragua','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NP','Nepal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NR','Nauru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NU','Niue','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NZ','New Zealand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('OM','Oman','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PA','Panama','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PE','Peru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PF','French Polynesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PG','Papua New Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PH','Philippines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PK','Parkistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PN','Pitcairn Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PR','Puerto Rico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Palestian Authority','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Gaza Strip','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','West Bank','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PT','Portugal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PW','Palau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PY','Paraguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('QA','Qatar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RE','Reunion','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RW','Rwanda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SA','Saudi Arabia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SB','Solomon Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SC','Seychelles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SD','Sudan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SG','Singapore','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SH','St. Helena','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SL','Sierra Leone','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SM','San Marino','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SN','Senegal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SO','Somalia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SR','Suriname','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ST','Sao Tome and Principe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SV','El Salvador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SZ','Swaziland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TA','Tahiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TD','Chad','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TF','French Southern Ter.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TG','Togo','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TH','Thailand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TJ','Tajikistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TK','Ttokelau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TM','Turkmenistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TN','Tunisia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TO','Tonga','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TP','East Timor','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TT','Trinidad and Tobago','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TV','Tuvalu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TW','Taiwan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UA','Ukraine','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UG','Uganda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('US','United States','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UY','Uruguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UZ','Uzbekistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Vatican City State','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Holy See','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VE','Venezuela','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VG','Virgin Iland (British)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VN','Viet Nam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VU','Vanuatu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WK','Wake Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WS','Samoa West','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YE','Yemen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YT','Mayotte','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZA','South Africa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZM','Zambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZW','Zimbabwe','Y');
index 4cd512256e145e33f4b38de461a887a15d1aa359..05f34edd984beeb3940763fdd807857d1bd92227 100644 (file)
@@ -1,10 +1,11 @@
 README zur Surfbar (aka. Besuchertausch):
 =========================================
 
-Die Surfbar erlaubt nun seit der SVN-Revision 1168 das Einblenden eines
-Loginformulars, wenn ein Gast die Surfbar aufgerufen hat. Du kannst also deinen
-Mitgliedern problemlos nun gestatten, die URL http://dein-mailtausch/surfbar.php
-in ihre Favoriten (IE) bzw. Lesezeichen (Firefox) einzubinden.
+Der Besuchertausch 'ext-surfbar' erlaubt nun seit der SVN-Revision 1168 das
+Einblenden eines Loginformulars, wenn ein Gast die Surfbar aufgerufen hat. Du
+kannst also deinen Mitgliedern problemlos nun gestatten, die
+URL http://dein-mailtausch/surfbar.php in ihre Favoriten (IE) bzw. Lesezeichen
+(Firefox) einzubinden.
 
 Was diese Erweiterung wird:
 ---------------------------
index 358e1107f3da9cb83fb6dae52b57b702cc0d7f6d..72280ab2799f6c47b49f8afd6803f3e1f1a1e861 100644 (file)
@@ -1,7 +1,7 @@
 The installation is kept as easy as possbile (we hope so... ;-)):
 
 - Uncompress the downloaded archive (e.g. with WinZIP or your favourite program)
-  into a new directory on your harddisc. A Directory called 'mxchange-x.x.x'
+  into a new directory on your hard drive. A Directory called 'mxchange-x.x.x'
   will be created by x.x.x is the current version and the non-free PRO version
   contains a "pro" directory.
 
index a1250b19ca539939730f6a844d9acde85d5b63cc..4a65c61c68a4d8ed32900cc53e24efbd2a7bec3c 100644 (file)
@@ -1,36 +1,36 @@
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AT','Austria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BE','Belgium','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BG','Bulgaria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CH','Switzerland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CZ','Czech Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DK','Denmark','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EE','Estonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ES','Spain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EU','European Union','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FI','Finland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','United Kingdom','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','England','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Great Britain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Scotland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Channel Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GR','Greece','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HR','Croatia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HU','Hungary','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IE','Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IF','Northern Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IS','Iceland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IT','Italy','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LI','Liechtenstein','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LU','Luxembourg','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MC','Monaco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NL','Netherlands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NO','Norway','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NZ','New Zealand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PL','Poland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PT','Portugal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RO','Romania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SE','Sweden','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SI','Slovenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TR','Turkey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AT','Austria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BE','Belgium','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BG','Bulgaria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CH','Switzerland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CZ','Czech Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DK','Denmark','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EE','Estonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ES','Spain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EU','European Union','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FI','Finland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','United Kingdom','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','England','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Great Britain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Scotland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Channel Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GR','Greece','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HR','Croatia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HU','Hungary','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IE','Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IF','Northern Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IS','Iceland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IT','Italy','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LI','Liechtenstein','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LU','Luxembourg','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MC','Monaco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NL','Netherlands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NO','Norway','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NZ','New Zealand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PL','Poland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PT','Portugal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RO','Romania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SE','Sweden','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SI','Slovenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TR','Turkey','Y');
index 6520114db7efc87796bb85a728e9ef40f203774f..b91029e0c44127ae804008d82ea5f4b76e8ecaa8 100644 (file)
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AC','Ascension','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AD','Andorra','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AE','United Arab Emirates','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AF','Afghanistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AG','Antigua and Barbuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AI','Anguilla','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AL','Albania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AM','Armenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AN','Netherlands Antilles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AO','Angola','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AQ','Antarctica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AR','Argentina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AS','American Samoa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AT','Austria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AU','Australia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AW','Aruba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AZ','Azerbaijan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BB','Barbados','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BD','Bangladesh','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BE','Belgium','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BF','Burkina Faso','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BG','Bulgaria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BH','Bahrain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BI','Burundi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BJ','Benin','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BM','Bermuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BN','Brunei Darussalam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BO','Bolivia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BR','Brazil','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BS','Bahamas','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BT','Bhutan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BV','Bouvet','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BW','Botswana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BY','Belarus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BZ','Belize','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CA','Canada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CC','Cocos','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CF','Central African Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CG','Congo Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CH','Switzerland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CI','Cote D Ivoire','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CK','Cook Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CL','Chile','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CM','Cameroon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CN','China','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CO','Colombia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CR','Costa Rica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CS','Serbia and Montenegro','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CT','Canton and Enderbury','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CU','Cuba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CV','Cape Verde','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CX','Christmas Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CY','Cyprus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CZ','Czech Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DJ','Djibuti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DK','Denmark','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DM','Dominica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DO','Dominican Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DZ','Algeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EC','Ecuador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EE','Estonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EG','Egypt','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EH','Western Sahara','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ER','Eritrea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ES','Spain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ET','Ethiopia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EU','European Union','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FI','Finland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FJ','Fiji','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FK','Falkland Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FO','Faroe Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FR','Frabce','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GA','Gabon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','United Kingdom','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','England','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Great Britain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Scotland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Channel Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GD','Grenada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GE','Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GF','French Guiana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GG','Guernsey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GH','Ghana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GI','Gibraltar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GL','Greenland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GM','Gambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GN','Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GP','Guadeloupe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GQ','Guinea Equatorial','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GR','Greece','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GS','South Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GT','Guatemala','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GU','Guam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GW','Guinea-Bissau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GY','Guyana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HK','Hong Kong','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HN','Honduras','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HR','Croatia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HT','Haiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HU','Hungary','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ID','Indonesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IE','Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IF','Northern Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IL','Israel','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IM','Isle of Man','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IN','India','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IO','British Indian O.T.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IQ','Iraq','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IR','Iran Islamic Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IS','Iceland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IT','Italy','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JE','Jersey Bailwick','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JM','Jamaica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JO','Jordan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JP','Japan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JT','Johnston Atoll','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KE','Kenya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KG','Kyrgyzstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KH','Cambodia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KI','Kiribati','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KM','Comoros','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KR','Korea Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KW','Kuwait','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KY','Cayman Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KZ','Kazakhstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LB','Lebanon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LC','St. Lucia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LI','Liechtenstein','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LK','Sri Lanka','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LR','Liberia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LS','Lesotho','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LT','Lithuania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LU','Luxembourg','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LV','Latvia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MA','Morocco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MC','Monaco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MD','Moldova Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MG','Madagascar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MH','Marshall Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MI','Midway Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MK','Macedonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ML','Mali','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MM','Myanmar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MN','Mongolia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MO','Macau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MQ','Martinique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MR','Mauritania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MS','Montserat','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MT','Malta','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MU','Mauritius','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MV','Maldives','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MW','Malawi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MX','Mexico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MY','Malaysia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MZ','Mozambique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NA','Namibia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NC','New Caledonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NE','Niger','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NF','Norfolk Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NG','Nigeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NI','Nicaragua','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NL','Netherlands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NO','Norway','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NP','Nepal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NR','Nauru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NU','Niue','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NZ','New Zealand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('OM','Oman','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PA','Panama','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PE','Peru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PF','French Polynesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PG','Papua New Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PH','Philippines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PK','Parkistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PL','Poland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PN','Pitcairn Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PR','Puerto Rico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Palestian Authority','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Gaza Strip','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','West Bank','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PT','Portugal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PW','Palau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PY','Paraguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('QA','Qatar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RE','Reunion','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RO','Romania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RU','Russian Federation','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RW','Rwanda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SA','Saudi Arabia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SB','Solomon Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SC','Seychelles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SD','Sudan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SE','Sweden','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SG','Singapore','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SH','St. Helena','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SI','Slovenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SL','Sierra Leone','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SM','San Marino','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SN','Senegal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SO','Somalia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SR','Suriname','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ST','Sao Tome and Principe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SV','El Salvador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SZ','Swaziland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TA','Tahiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TD','Chad','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TF','French Southern Ter.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TG','Togo','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TH','Thailand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TJ','Tajikistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TK','Ttokelau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TM','Turkmenistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TN','Tunisia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TO','Tonga','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TP','East Timor','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TR','Turkey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TT','Trinidad and Tobago','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TV','Tuvalu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TW','Taiwan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UA','Ukraine','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UG','Uganda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('US','United States','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UY','Uruguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UZ','Uzbekistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Vatican City State','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Holy See','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VE','Venezuela','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VG','Virgin Iland (British)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VN','Viet Nam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VU','Vanuatu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WK','Wake Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WS','Samoa West','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YE','Yemen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YT','Mayotte','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZA','South Africa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZM','Zambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZW','Zimbabwe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AC','Ascension','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AD','Andorra','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AE','United Arab Emirates','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AF','Afghanistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AG','Antigua and Barbuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AI','Anguilla','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AL','Albania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AM','Armenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AN','Netherlands Antilles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AO','Angola','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AQ','Antarctica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AR','Argentina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AS','American Samoa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AT','Austria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AU','Australia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AW','Aruba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AZ','Azerbaijan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BB','Barbados','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BD','Bangladesh','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BE','Belgium','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BF','Burkina Faso','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BG','Bulgaria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BH','Bahrain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BI','Burundi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BJ','Benin','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BM','Bermuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BN','Brunei Darussalam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BO','Bolivia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BR','Brazil','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BS','Bahamas','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BT','Bhutan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BV','Bouvet','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BW','Botswana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BY','Belarus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BZ','Belize','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CA','Canada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CC','Cocos','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CF','Central African Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CG','Congo Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CH','Switzerland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CI','Cote D Ivoire','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CK','Cook Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CL','Chile','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CM','Cameroon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CN','China','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CO','Colombia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CR','Costa Rica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CS','Serbia and Montenegro','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CT','Canton and Enderbury','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CU','Cuba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CV','Cape Verde','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CX','Christmas Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CY','Cyprus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CZ','Czech Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DJ','Djibuti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DK','Denmark','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DM','Dominica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DO','Dominican Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DZ','Algeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EC','Ecuador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EE','Estonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EG','Egypt','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EH','Western Sahara','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ER','Eritrea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ES','Spain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ET','Ethiopia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EU','European Union','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FI','Finland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FJ','Fiji','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FK','Falkland Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FO','Faroe Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FR','Frabce','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GA','Gabon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','United Kingdom','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','England','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Great Britain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Scotland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Channel Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GD','Grenada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GE','Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GF','French Guiana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GG','Guernsey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GH','Ghana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GI','Gibraltar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GL','Greenland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GM','Gambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GN','Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GP','Guadeloupe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GQ','Guinea Equatorial','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GR','Greece','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GS','South Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GT','Guatemala','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GU','Guam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GW','Guinea-Bissau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GY','Guyana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HK','Hong Kong','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HN','Honduras','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HR','Croatia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HT','Haiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HU','Hungary','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ID','Indonesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IE','Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IF','Northern Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IL','Israel','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IM','Isle of Man','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IN','India','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IO','British Indian O.T.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IQ','Iraq','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IR','Iran Islamic Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IS','Iceland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IT','Italy','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JE','Jersey Bailwick','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JM','Jamaica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JO','Jordan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JP','Japan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JT','Johnston Atoll','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KE','Kenya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KG','Kyrgyzstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KH','Cambodia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KI','Kiribati','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KM','Comoros','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KR','Korea Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KW','Kuwait','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KY','Cayman Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KZ','Kazakhstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LB','Lebanon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LC','St. Lucia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LI','Liechtenstein','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LK','Sri Lanka','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LR','Liberia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LS','Lesotho','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LT','Lithuania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LU','Luxembourg','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LV','Latvia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MA','Morocco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MC','Monaco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MD','Moldova Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MG','Madagascar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MH','Marshall Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MI','Midway Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MK','Macedonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ML','Mali','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MM','Myanmar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MN','Mongolia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MO','Macau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MQ','Martinique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MR','Mauritania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MS','Montserat','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MT','Malta','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MU','Mauritius','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MV','Maldives','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MW','Malawi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MX','Mexico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MY','Malaysia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MZ','Mozambique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NA','Namibia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NC','New Caledonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NE','Niger','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NF','Norfolk Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NG','Nigeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NI','Nicaragua','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NL','Netherlands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NO','Norway','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NP','Nepal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NR','Nauru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NU','Niue','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NZ','New Zealand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('OM','Oman','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PA','Panama','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PE','Peru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PF','French Polynesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PG','Papua New Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PH','Philippines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PK','Parkistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PL','Poland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PN','Pitcairn Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PR','Puerto Rico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Palestian Authority','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Gaza Strip','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','West Bank','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PT','Portugal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PW','Palau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PY','Paraguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('QA','Qatar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RE','Reunion','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RO','Romania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RU','Russian Federation','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RW','Rwanda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SA','Saudi Arabia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SB','Solomon Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SC','Seychelles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SD','Sudan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SE','Sweden','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SG','Singapore','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SH','St. Helena','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SI','Slovenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SL','Sierra Leone','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SM','San Marino','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SN','Senegal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SO','Somalia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SR','Suriname','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ST','Sao Tome and Principe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SV','El Salvador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SZ','Swaziland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TA','Tahiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TD','Chad','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TF','French Southern Ter.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TG','Togo','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TH','Thailand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TJ','Tajikistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TK','Ttokelau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TM','Turkmenistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TN','Tunisia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TO','Tonga','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TP','East Timor','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TR','Turkey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TT','Trinidad and Tobago','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TV','Tuvalu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TW','Taiwan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UA','Ukraine','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UG','Uganda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('US','United States','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UY','Uruguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UZ','Uzbekistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Vatican City State','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Holy See','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VE','Venezuela','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VG','Virgin Iland (British)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VN','Viet Nam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VU','Vanuatu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WK','Wake Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WS','Samoa West','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YE','Yemen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YT','Mayotte','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZA','South Africa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZM','Zambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZW','Zimbabwe','Y');
index 6b3a5266c005b846ba1cd674d3d130e9368952b1..945429541ccf02eee5786fbe0d548527d97974c0 100644 (file)
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AT','Austria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BE','Belgium','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CH','Switzerland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CR','Costa Rica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CZ','Czech Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DK','Denmark','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ES','Spain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FI','Finland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FR','Frabce','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','United Kingdom','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','England','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Great Britain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Scotland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GB','Channel Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GR','Greece','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HR','Croatia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HU','Hungary','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IE','Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IF','Northern Ireland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IS','Iceland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IT','Italy','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LI','Liechtenstein','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LU','Luxembourg','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MC','Monaco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NL','Netherlands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NO','Norway','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PL','Poland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RO','Romania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RU','Russian Federation','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SE','Sweden','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SI','Slovenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TR','Turkey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AC','Ascension','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AD','Andorra','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AE','United Arab Emirates','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AF','Afghanistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AG','Antigua and Barbuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AI','Anguilla','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AL','Albania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AM','Armenia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AN','Netherlands Antilles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AO','Angola','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AQ','Antarctica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AR','Argentina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AS','American Samoa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AU','Australia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AW','Aruba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('AZ','Azerbaijan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BB','Barbados','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BD','Bangladesh','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BF','Burkina Faso','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BG','Bulgaria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BH','Bahrain','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BI','Burundi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BJ','Benin','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BM','Bermuda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BN','Brunei Darussalam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BO','Bolivia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BR','Brazil','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BS','Bahamas','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BT','Bhutan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BV','Bouvet','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BW','Botswana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BY','Belarus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('BZ','Belize','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CA','Canada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CC','Cocos','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CF','Central African Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CG','Congo Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CI','Cote D Ivoire','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CK','Cook Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CL','Chile','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CM','Cameroon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CN','China','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CO','Colombia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CS','Serbia and Montenegro','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CT','Canton and Enderbury','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CU','Cuba','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CV','Cape Verde','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CX','Christmas Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('CY','Cyprus','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DJ','Djibuti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DM','Dominica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DO','Dominican Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('DZ','Algeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EC','Ecuador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EE','Estonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EG','Egypt','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EH','Western Sahara','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ER','Eritrea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ET','Ethiopia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('EU','European Union','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FJ','Fiji','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FK','Falkland Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('FO','Faroe Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GA','Gabon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GD','Grenada','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GE','Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GF','French Guiana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GG','Guernsey','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GH','Ghana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GI','Gibraltar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GL','Greenland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GM','Gambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GN','Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GP','Guadeloupe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GQ','Guinea Equatorial','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GS','South Georgia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GT','Guatemala','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GU','Guam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GW','Guinea-Bissau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('GY','Guyana','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HK','Hong Kong','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HN','Honduras','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('HT','Haiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ID','Indonesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IL','Israel','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IM','Isle of Man','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IN','India','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IO','British Indian O.T.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IQ','Iraq','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('IR','Iran Islamic Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JE','Jersey Bailwick','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JM','Jamaica','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JO','Jordan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JP','Japan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('JT','Johnston Atoll','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KE','Kenya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KG','Kyrgyzstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KH','Cambodia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KI','Kiribati','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KM','Comoros','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KR','Korea Republic','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KW','Kuwait','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KY','Cayman Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('KZ','Kazakhstan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LB','Lebanon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LC','St. Lucia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LK','Sri Lanka','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LR','Liberia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LS','Lesotho','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LT','Lithuania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LV','Latvia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MA','Morocco','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MD','Moldova Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MG','Madagascar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MH','Marshall Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MI','Midway Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MK','Macedonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ML','Mali','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MM','Myanmar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MN','Mongolia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MO','Macau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MQ','Martinique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MR','Mauritania','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MS','Montserat','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MT','Malta','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MU','Mauritius','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MV','Maldives','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MW','Malawi','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MX','Mexico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MY','Malaysia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('MZ','Mozambique','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NA','Namibia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NC','New Caledonia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NE','Niger','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NF','Norfolk Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NG','Nigeria','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NI','Nicaragua','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NP','Nepal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NR','Nauru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NU','Niue','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('NZ','New Zealand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('OM','Oman','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PA','Panama','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PE','Peru','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PF','French Polynesia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PG','Papua New Guinea','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PH','Philippines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PK','Parkistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PN','Pitcairn Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PR','Puerto Rico','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Palestian Authority','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','Gaza Strip','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PS','West Bank','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PT','Portugal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PW','Palau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('PY','Paraguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('QA','Qatar','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RE','Reunion','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('RW','Rwanda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SA','Saudi Arabia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SB','Solomon Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SC','Seychelles','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SD','Sudan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SG','Singapore','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SH','St. Helena','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SL','Sierra Leone','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SM','San Marino','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SN','Senegal','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SO','Somalia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SR','Suriname','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ST','Sao Tome and Principe','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SV','El Salvador','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('SZ','Swaziland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TA','Tahiti','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TD','Chad','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TF','French Southern Ter.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TG','Togo','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TH','Thailand','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TJ','Tajikistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TK','Ttokelau','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TM','Turkmenistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TN','Tunisia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TO','Tonga','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TP','East Timor','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TT','Trinidad and Tobago','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TV','Tuvalu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TW','Taiwan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UA','Ukraine','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UG','Uganda','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('US','United States','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UY','Uruguay','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('UZ','Uzbekistan','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Vatican City State','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VA','Holy See','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VE','Venezuela','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VG','Virgin Iland (British)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VN','Viet Nam','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('VU','Vanuatu','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WK','Wake Iland','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('WS','Samoa West','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YE','Yemen','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('YT','Mayotte','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZA','South Africa','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZM','Zambia','Y');
-INSERT INTO `mxchange_countries` (`code`, `descr`, `is_active`) VALUES ('ZW','Zimbabwe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AT','Austria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BE','Belgium','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CH','Switzerland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CR','Costa Rica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CZ','Czech Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DK','Denmark','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ES','Spain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FI','Finland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FR','Frabce','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','United Kingdom','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','England','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Great Britain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Scotland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GB','Channel Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GR','Greece','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HR','Croatia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HU','Hungary','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IE','Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IF','Northern Ireland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IS','Iceland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IT','Italy','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LI','Liechtenstein','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LU','Luxembourg','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MC','Monaco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NL','Netherlands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NO','Norway','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PL','Poland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RO','Romania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RU','Russian Federation','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SE','Sweden','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SI','Slovenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SK','Slovakia Slovak Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TR','Turkey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AC','Ascension','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AD','Andorra','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AE','United Arab Emirates','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AF','Afghanistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AG','Antigua and Barbuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AI','Anguilla','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AL','Albania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AM','Armenia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AN','Netherlands Antilles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AO','Angola','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AQ','Antarctica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AR','Argentina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AS','American Samoa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AU','Australia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AW','Aruba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('AZ','Azerbaijan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BA','Bosnia and Herzegovina','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BB','Barbados','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BD','Bangladesh','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BF','Burkina Faso','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BG','Bulgaria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BH','Bahrain','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BI','Burundi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BJ','Benin','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BM','Bermuda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BN','Brunei Darussalam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BO','Bolivia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BR','Brazil','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BS','Bahamas','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BT','Bhutan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BV','Bouvet','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BW','Botswana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BY','Belarus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('BZ','Belize','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CA','Canada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CC','Cocos','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CD','Congo Democratc Repuplic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CF','Central African Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CG','Congo Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CI','Cote D Ivoire','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CK','Cook Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CL','Chile','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CM','Cameroon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CN','China','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CO','Colombia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CS','Serbia and Montenegro','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CT','Canton and Enderbury','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CU','Cuba','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CV','Cape Verde','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CX','Christmas Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('CY','Cyprus','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DJ','Djibuti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DM','Dominica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DO','Dominican Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('DZ','Algeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EC','Ecuador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EE','Estonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EG','Egypt','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EH','Western Sahara','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ER','Eritrea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ET','Ethiopia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('EU','European Union','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FJ','Fiji','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FK','Falkland Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FM','Micronesia Fed. S.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('FO','Faroe Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GA','Gabon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GD','Grenada','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GE','Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GF','French Guiana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GG','Guernsey','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GH','Ghana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GI','Gibraltar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GL','Greenland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GM','Gambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GN','Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GP','Guadeloupe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GQ','Guinea Equatorial','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GS','South Georgia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GT','Guatemala','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GU','Guam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GW','Guinea-Bissau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('GY','Guyana','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HK','Hong Kong','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HM','Heard- and MC Donald Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HN','Honduras','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('HT','Haiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ID','Indonesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IL','Israel','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IM','Isle of Man','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IN','India','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IO','British Indian O.T.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IQ','Iraq','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('IR','Iran Islamic Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JE','Jersey Bailwick','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JM','Jamaica','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JO','Jordan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JP','Japan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('JT','Johnston Atoll','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KE','Kenya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KG','Kyrgyzstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KH','Cambodia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KI','Kiribati','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KM','Comoros','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KN','Saint Kitts and  Nevis','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KP','Korea Democratic P. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KR','Korea Republic','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KW','Kuwait','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KY','Cayman Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('KZ','Kazakhstan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LA','Lao People Democratic Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LB','Lebanon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LC','St. Lucia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LK','Sri Lanka','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LR','Liberia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LS','Lesotho','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LT','Lithuania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LV','Latvia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('LY','Libyan Arab Jamahiriya','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MA','Morocco','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MD','Moldova Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MG','Madagascar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MH','Marshall Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MI','Midway Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MK','Macedonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ML','Mali','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MM','Myanmar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MN','Mongolia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MO','Macau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MP','Northern Mariana Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MQ','Martinique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MR','Mauritania','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MS','Montserat','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MT','Malta','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MU','Mauritius','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MV','Maldives','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MW','Malawi','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MX','Mexico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MY','Malaysia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('MZ','Mozambique','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NA','Namibia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NC','New Caledonia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NE','Niger','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NF','Norfolk Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NG','Nigeria','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NI','Nicaragua','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NP','Nepal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NQ','Dronning Mauds Land','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NR','Nauru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NU','Niue','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('NZ','New Zealand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('OM','Oman','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PA','Panama','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PE','Peru','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PF','French Polynesia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PG','Papua New Guinea','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PH','Philippines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PK','Parkistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PM','St. Pierre and Miquelon','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PN','Pitcairn Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PR','Puerto Rico','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Palestian Authority','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','Gaza Strip','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PS','West Bank','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PT','Portugal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PW','Palau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('PY','Paraguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('QA','Qatar','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RE','Reunion','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('RW','Rwanda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SA','Saudi Arabia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SB','Solomon Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SC','Seychelles','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SD','Sudan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SG','Singapore','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SH','St. Helena','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SJ','Svalbard and Jan Mayen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SL','Sierra Leone','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SM','San Marino','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SN','Senegal','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SO','Somalia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SR','Suriname','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ST','Sao Tome and Principe','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SV','El Salvador','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SY','Syrian Arab Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('SZ','Swaziland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TA','Tahiti','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TC','Turks and Caicos Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TD','Chad','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TF','French Southern Ter.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TG','Togo','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TH','Thailand','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TJ','Tajikistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TK','Ttokelau','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TM','Turkmenistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TN','Tunisia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TO','Tonga','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TP','East Timor','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TT','Trinidad and Tobago','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TV','Tuvalu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TW','Taiwan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('TZ','Tanzania U. Rep.','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UA','Ukraine','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UG','Uganda','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UM','U.S. Minor Outlying Ilands','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('US','United States','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UY','Uruguay','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('UZ','Uzbekistan','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Vatican City State','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VA','Holy See','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VC','St. Vincent and Grenadines','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VE','Venezuela','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VG','Virgin Iland (British)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VI','Virgin Iland (U.S.)','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VN','Viet Nam','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('VU','Vanuatu','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WF','Wallis anf Futuna Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WK','Wake Iland','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('WS','Samoa West','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YE','Yemen','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('YT','Mayotte','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZA','South Africa','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZM','Zambia','Y');
+INSERT INTO `mxchange_countries` (`code`,`descr`,`is_active`) VALUES ('ZW','Zimbabwe','Y');
diff --git a/beg.php b/beg.php
index 14d19efe31ff64b344359158f4dc44816c0eb4ca..f73f1a89941ce292a3a35c3d2fdcba390205794c 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -44,7 +44,7 @@ $GLOBALS['startTime'] = microtime(true);
 // Set module
 $GLOBALS['module'] = 'beg';
 $GLOBALS['output_mode'] = -1;
-$errorCode = null;
+$errorCode = NULL;
 
 // Load the required file(s)
 require('inc/config-global.php');
@@ -88,10 +88,11 @@ if (isGetRequestParameterSet('userid')) {
                $points = mt_rand((getBegPoints() * 100000), (getBegPointsMax() * 100000)) / 100000;
 
                // Set nickname / userid for template
-               $content['userid'] = getRequestParameter('userid');
-               $content['clicks'] = (getUserData('beg_clicks') + 1);
-               $content['banner'] = loadTemplate('beg_banner', true);
-               $content['points'] = $points;
+               $content['userid']        = getRequestParameter('userid');
+               $content['clicks']        = (getUserData('beg_clicks') + 1);
+               $content['header_banner'] = loadTemplate('beg_header_banner', true);
+               $content['footer_banner'] = loadTemplate('beg_footer_banner', true);
+               $content['points']        = $points;
        } // END - if
 
        // User id valid and not webmaster's id?
@@ -102,10 +103,18 @@ if (isGetRequestParameterSet('userid')) {
 
                // Check for last entry for userid w/o IP number                            12              33                               2    23              44            3                                          21     1                              1
                $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE ((UNIX_TIMESTAMP() - `timeout`) >= {?beg_timeout?} OR ((UNIX_TIMESTAMP() - `timeout`) >= {?beg_userid_timeout?} AND `userid`=%s)) AND (`remote_ip`='%s' OR `sid`='%s') LIMIT 1",
-                       array(getUserData('userid'), detectRemoteAddr(), session_id()), __FILE__, __LINE__);
+                       array(
+                               getUserData('userid'),
+                               detectRemoteAddr(),
+                               session_id()
+                       ), __FILE__, __LINE__);
 
                // Entry not found, points set and not logged in?
-               if (((SQL_HASZERONUMS($result)) || (isAdmin())) && ($points > 0) && (!isMember()) && (getBegPayMode() == 'NONE')) {
+               //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'SQL_HASZERONUMS()=' . intval(SQL_HASZERONUMS($result)) . ',isAdmin()=' . intval(isAdmin()) . ',points=' . $points . ',isMember()=' . intval(isMember()) . ',getBegPayMode()=' . getBegPayMode());
+               if ((SQL_HASZERONUMS($result)) && ($points > 0) && (getBegPayMode() == 'NONE') && ((!isMember()) || (isAdmin()))) {
+                       // Default is result from isAdmin(), mostly false
+                       $pay = isAdmin();
+
                        // Admin is testing?
                        if (!isAdmin()) {
                                /*
@@ -113,7 +122,7 @@ if (isGetRequestParameterSet('userid')) {
                                 * but only when there is no admin begging.
                                 * Admins shall be able to test it!
                                 */
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_beg_ips` (`userid`, `remote_ip`, `sid`, `timeout`) VALUES ('%s','%s','%s', UNIX_TIMESTAMP())",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_beg_ips` (`userid`,`remote_ip`,`sid`,`timeout`) VALUES ('%s','%s','%s', UNIX_TIMESTAMP())",
                                        array(
                                                getUserData('userid'),
                                                detectRemoteAddr(),
@@ -121,13 +130,11 @@ if (isGetRequestParameterSet('userid')) {
                                        ), __FILE__, __LINE__);
 
                                // Was is successfull?
-                               $pay (!SQL_HASZEROAFFECTED());
-                       } else {
-                               // Is admin!
-                               $pay = true;
-                       }
+                               $pay = (!SQL_HASZEROAFFECTED());
+                       } // END - if
 
                        // Pay points?
+                       //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'pay=' . intval($pay));
                        if ($pay === true) {
                                // Add points to user or begging rallye account
                                if (addPointsBeg(getUserData('userid'), $points)) {
@@ -196,7 +203,7 @@ if (isGetRequestParameterSet('userid')) {
        }
 
        // Reload to index module if an error happens
-       if (!empty($errorCode)) {
+       if (!is_null($errorCode)) {
                redirectToUrl('modules.php?module=index&amp;code=' . $errorCode . '&amp;ext=beg');
        } // END - if
 } else {
index a7f83cfeb2d256584fe926214ffca49c118a3765..e62f1583c35295ff873af81ca964afc5989d1664 100644 (file)
@@ -99,7 +99,7 @@ if (isFormSent()) {
                        if (($points - getConfig('doubler_left') - postRequestParameter('points') * getConfig('doubler_charge') / 100) >= 0) {
                                // Enough points are left so let's continue with the doubling process
                                // Create doubling "account" with *DOUBLED* points
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`, `refid`, `points`, `remote_ip`, `timemark`, `completed`, `is_ref`) VALUES (%s,%s,%s,'%s', UNIX_TIMESTAMP(), 'N','N')",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`,`refid`,`points`,`remote_ip`,`timemark`,`completed`,`is_ref`) VALUES (%s,%s,%s,'%s', UNIX_TIMESTAMP(), 'N','N')",
                                        array(
                                                getUserData('userid'),
                                                makeZeroToNull(determineReferalId()),
@@ -107,7 +107,7 @@ if (isFormSent()) {
                                                detectRemoteAddr()
                                        ), __FILE__, __LINE__);
 
-                               // Subtract entered points
+                               // Subtract entered points and ignore return status
                                subtractPoints('doubler', getUserData('userid'), postRequestParameter('points'));
 
                                // Add points to "total payed" including charge
@@ -118,7 +118,7 @@ if (isFormSent()) {
                                // Add second line for the referal but only when userid != refid
                                if ((isValidUserId(determineReferalId())) && (determineReferalId() != getUserData('userid'))) {
                                        // Okay add a refid line and apply refid percents
-                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`, `refid`, `points`, `remote_ip`, `timemark`, `completed`, `is_ref`) VALUES (%s,0,%s,'%s',UNIX_TIMESTAMP(),'N','Y')",
+                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`,`refid`,`points`,`remote_ip`,`timemark`,`completed`,`is_ref`) VALUES (%s,0,%s,'%s',UNIX_TIMESTAMP(),'N','Y')",
                                                array(
                                                        makeZeroToNull(determineReferalId()),
                                                        (postRequestParameter('points') * 2 * getConfig('doubler_ref') / 100),
index aad0498b59475488733bacb3c62a9b6d5ad1cce4..0d7456a6983215d735040fbb23a7f20bbfcf76c4 100644 (file)
@@ -75,37 +75,6 @@ function doXmlCallbackFunction ($resource, $attributes) {
        $GLOBALS['__XML_ARGUMENTS'][__FUNCTION__] = array();
 }
 
-// Handles the XML node 'post-data-identify-index'
-function doXmlPostDataIdentifyIndex ($resource, $attributes) {
-       // There are three attributes, by default
-       if (count($attributes) != 3) {
-               // Not the right count
-               debug_report_bug(__FUNCTION__, __LINE__, 'Expected 3 attributes, got ' . count($attributes));
-       } elseif (!isset($attributes['NAME'])) {
-               // 'NAME' not found
-               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute NAME not found.');
-       } elseif (!isset($attributes['TYPE'])) {
-               // 'TYPE' not found
-               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute TYPE not found.');
-       } elseif (!isInvalidXmlType($attributes['TYPE'])) {
-               // No valid type
-               debug_report_bug(__FUNCTION__, __LINE__, 'TYPE is not valid, got: ' . $attributes['TYPE']);
-       } elseif (!isset($attributes['VALUE'])) {
-               // 'VALUE' not found
-               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute VALUE not found.');
-       } elseif (!isXmlValueValid($attributes['TYPE'], $attributes['VALUE'])) {
-               // Not valid/verifyable
-               debug_report_bug(__FUNCTION__, __LINE__, 'Attribute VALUE does not validate. TYPE=' . $attributes['TYPE'] . ',VALUE=' . $attributes['VALUE']);
-       } elseif (!isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'])) {
-               // doXmlCallbackFunction is missing
-               debug_report_bug(__FUNCTION__, __LINE__, 'Required XML node callback-function not included around this node. Please fix your XML.');
-       }
-
-       // Add the POST data index for 'id'
-       addXmlValueToCallbackAttributes('id_index', $attributes);
-       //$GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['id_index'] = $attributes['VALUE'];
-}
-
 // Handles the XML node 'database-table'
 function doXmlDatabaseTable ($resource, $attributes) {
        // There are three attributes, by default
@@ -953,17 +922,37 @@ function isXmlTypeInt ($value) {
        return (bigintval($value) == $value);
 }
 
+// Check for callback type
+function isXmlTypeCallback ($value) {
+       // Trim value
+       $value = trim($value);
+
+       // This value is always a string
+       return (function_exists($value));
+}
+
 //-----------------------------------------------------------------------------
 //                               Private XML functions
 //-----------------------------------------------------------------------------
 
 // Adds given attribut to element
 function addXmlValueToCallbackAttributes ($element, $attributes, $extraKey = '', $key = '') {
+       //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',key=' . $key . ' - ENTERED!');
+       // Is it boolean type?
+       if (($attributes['TYPE'] == 'bool') && (isset($attributes['VALUE']))) {
+               // Then convert VALUE
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'TYPE=' . $attributes['TYPE'] . ',element=' . $element . ' - CONVERTING!');
+               $attributes['VALUE'] = convertStringToBoolean($attributes['VALUE']);
+       } elseif ($attributes['TYPE'] == 'callback') {
+               // It is a simple call-back type
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'TYPE=' . $attributes['TYPE'] . ',element=' . $element . ' - CALLING!');
+               $attributes['VALUE'] = call_user_func($attributes['VALUE']);
+       }
+
        // What do we need to add?
-       /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',key=' . $key . ' - ENTERED!');
        if ($attributes['TYPE'] == 'array') {
                // Another nested array
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'TYPE=ARRAY, element=' . $element);
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'TYPE=' . $attributes['TYPE'] . ',element=' . $element);
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$attributes['VALUE'] . '_list'] = array();
        } elseif (!empty($extraKey)) {
                // Is it bool?
@@ -973,18 +962,18 @@ function addXmlValueToCallbackAttributes ($element, $attributes, $extraKey = '',
                } // END - if
 
                // Sub-array (one level only)
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ' - ANALYSING...');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ' - ANALYSING...');
                if (trim($attributes['NAME']) == '') {
                        // Numerical index
-                       /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NUMERICAL!');
+                       //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NUMERICAL!');
                        $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$extraKey][] = $attributes['VALUE'];
                } elseif (!empty($key)) {
                        // Use from $key
-                       /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - KEY! (key=' . $attributes[$key] . ')');
+                       //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - KEY! (key=' . $attributes[$key] . ')');
                        $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$extraKey][$attributes[$key]] = $attributes['VALUE'];
                } else {
                        // Use from NAME
-                       /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NAME! (NAME=' . $attributes['NAME'] . ')');
+                       //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NAME! (NAME=' . $attributes['NAME'] . ')');
                        $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$extraKey][$attributes['NAME']] = $attributes['VALUE'];
                }
        } elseif ((isset($attributes['FUNCTION'])) && (isset($attributes['ALIAS']))) {
@@ -1001,7 +990,7 @@ function addXmlValueToCallbackAttributes ($element, $attributes, $extraKey = '',
                );
 
                // Add the entry
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',ALIAS[' . gettype($attributes['ALIAS']) . ']=' . $attributes['ALIAS'] . ',FUNCTION[' . gettype($attributes['FUNCTION']) . ']=' . $attributes['FUNCTION'] . ' - FUNCTION! (VALUE=' . $attributes['VALUE'] . ')');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',ALIAS[' . gettype($attributes['ALIAS']) . ']=' . $attributes['ALIAS'] . ',FUNCTION[' . gettype($attributes['FUNCTION']) . ']=' . $attributes['FUNCTION'] . ' - FUNCTION! (VALUE=' . $attributes['VALUE'] . ')');
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][] = $array;
        } elseif ((isset($attributes['CONDITION'])) && (isset($attributes['LOOK-FOR']))) {
                // CONDITION/LOOK-FOR detected
@@ -1013,33 +1002,33 @@ function addXmlValueToCallbackAttributes ($element, $attributes, $extraKey = '',
                        'look_for'  => trim($attributes['LOOK-FOR'])
                );
 
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',CONDITION[' . gettype($attributes['CONDITION']) . ']=' . $attributes['CONDITION'] . ',LOOK-FOR[' . gettype($attributes['LOOK-FOR']) . ']=' . $attributes['LOOK-FOR'] . ' - CONDITION! (VALUE=' . $attributes['VALUE'] . ')');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',CONDITION[' . gettype($attributes['CONDITION']) . ']=' . $attributes['CONDITION'] . ',LOOK-FOR[' . gettype($attributes['LOOK-FOR']) . ']=' . $attributes['LOOK-FOR'] . ' - CONDITION! (VALUE=' . $attributes['VALUE'] . ')');
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][] = $array;
        } elseif (isset($attributes['CALLBACK'])) {
                // CALLBACK/VALUE detected
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',CALLBACK[' . gettype($attributes['CALLBACK']) . ']=' . $attributes['CALLBACK'] . ' - CALLBACK! (VALUE=' . $attributes['VALUE'] . ')');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',CALLBACK[' . gettype($attributes['CALLBACK']) . ']=' . $attributes['CALLBACK'] . ' - CALLBACK! (VALUE=' . $attributes['VALUE'] . ')');
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$attributes['VALUE']] = $attributes['CALLBACK'];
        } elseif (isset($attributes['ORDER'])) {
                // ORDER/TABLE detected
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',ORDER[' . gettype($attributes['ORDER']) . ']=' . $attributes['ORDER'] . ' - ORDER! (VALUE=' . $attributes['VALUE'] . ')');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',TYPE=' . $attributes['TYPE'] . ',ORDER[' . gettype($attributes['ORDER']) . ']=' . $attributes['ORDER'] . ' - ORDER! (VALUE=' . $attributes['VALUE'] . ')');
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$attributes['ORDER']][$attributes['TABLE']] = $attributes['VALUE'];
        } elseif (isset($attributes['COLUMN'])) {
                // COLUMN/VALUE detected
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ',COLUMN[' . gettype($attributes['COLUMN']) . ']=' . $attributes['COLUMN'] . ' - COLUMN!');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ',COLUMN[' . gettype($attributes['COLUMN']) . ']=' . $attributes['COLUMN'] . ' - COLUMN!');
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$attributes['COLUMN']][] = $attributes['VALUE'];
        } elseif ((!isset($attributes['NAME'])) || (trim($attributes['NAME']) == '')) {
                // Numerical index
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NUMERICAL!');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NUMERICAL!');
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][] = $attributes['VALUE'];
        } elseif (isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$attributes['NAME']])) {
                // Already created
                debug_report_bug(__FUNCTION__, __LINE__, 'NAME=' . $attributes['NAME'] . ' already addded to ' . $element . ' attributes=<pre>' . print_r($attributes, true) . '</pre>');
        } else {
                // Use from NAME
-               /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',NAME=' . $attributes['NAME'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NAME!');
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',NAME=' . $attributes['NAME'] . ',VALUE[' . gettype($attributes['VALUE']) . ']=' . $attributes['VALUE'] . ' - NAME!');
                $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'][$element][$attributes['NAME']] = $attributes['VALUE'];
        }
-       /* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',key=' . $key . ' - EXIT!');
+       //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',extraKey=' . $extraKey . ',key=' . $key . ' - EXIT!');
 }
 
 //-----------------------------------------------------------------------------
@@ -1047,7 +1036,7 @@ function addXmlValueToCallbackAttributes ($element, $attributes, $extraKey = '',
 //-----------------------------------------------------------------------------
 
 // Execute function for doXmlCallbackFunction()
-function doXmlCallbackFunctionExecute ($function, $args) {
+function doXmlCallbackFunctionExecute ($callbackFunction, $args) {
        // Is 'id_index' set and form sent?
        if ((isset($args['id_index'])) && (isFormSent())) {
                // Prepare 'id_index'
@@ -1055,8 +1044,8 @@ function doXmlCallbackFunctionExecute ($function, $args) {
        } // END - if
 
        // Just call it
-       //* DEBUG: */ die('<pre>'.print_r($args, true).'</pre>');
-       call_user_func_array($function, $args);
+       //* DEBUG: */ die('callbackFunction=' . $callbackFunction . ',args=<pre>'.print_r($args, true).'</pre>');
+       call_user_func_array($callbackFunction, $args);
 }
 
 // [EOF]
index acf69a541067d475ec34b8097532a2a59d8129d7..7d722b121e489c20177117b568e37b951505054e 100644 (file)
@@ -520,7 +520,7 @@ class CacheSystem {
                        $line = '$this->' . $prefix . "['" . $this->name . "']['" . $key . "']" . $extender . " = '" . escapeQuotes($value) . "';";
                } elseif (is_null($value)) {
                        // Null
-                       $line = '$this->' . $prefix . "['" . $this->name . "']['" . $key . "']" . $extender . ' = null;';
+                       $line = '$this->' . $prefix . "['" . $this->name . "']['" . $key . "']" . $extender . ' = NULL;';
                } elseif (is_bool($value)) {
                        // Boolean value
                        if ($value === true) {
index 57afe95342d8d9be749d9a8c65d5847161205bc2..190111b946999f9dc908196de7727ce3281b651e 100644 (file)
@@ -92,7 +92,7 @@ class HostnameResolver {
                                // Seems to be an IP! Now check deeper...
                                if (($matches[0] == $ip) && ($matches[1] >= 0) && ($matches[1] <= 255) && ($matches[2] >= 0) && ($matches[2] <= 255) && ($matches[3] >= 0) && ($matches[3] <= 255) && ($matches[4] > 0) && ($matches[4] < 255)) {
                                        // We also cache IP addresses
-                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_dns_cache` (`ip`, `hostname`, `added`) VALUES ('%s', '%s', NOW())",
+                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_dns_cache` (`ip`,`hostname`,`added`) VALUES ('%s', '%s', NOW())",
                                                array($ip, $hostname), __METHOD__, __LINE__);
 
                                        // Set return value to $ip
@@ -106,7 +106,7 @@ class HostnameResolver {
                                //* DEBUG: */ logDebugMessage(__METHOD__, __LINE__, sprintf("Cannot lookup: %s", $hostname));
                        } else {
                                // Put entry in DB
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_dns_cache` (`ip`, `hostname`, `added`) VALUES ('%s', '%s', NOW())",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_dns_cache` (`ip`,`hostname`,`added`) VALUES ('%s', '%s', NOW())",
                                        array($ip, $hostname), __METHOD__, __LINE__);
 
                                // Set return value to $ip
index 868dce98e0997b041addad43465eeb691e0a8ffc..2b8e783868ddbe0e19a79978ff09f0596e0b7d9a 100644 (file)
@@ -51,7 +51,7 @@ if (!defined('__SECURITY')) {
 
 // Check for 100% klickrate mails
 $result_bonus = SQL_QUERY("SELECT
-       `id`, `userid`, `subject`, `timestamp_ordered`, `clicks`, `url`
+       `id`,`userid`,`subject`,`timestamp_ordered`,`clicks`,`url`
 FROM
        `{?_MYSQL_PREFIX?}_user_stats`
 WHERE
index 25ba924b186edfd266d730195b0c4c37808ce1f6..e9c4d83c86a6fcf5bafc5b22cbde613101afb5f6 100644 (file)
@@ -65,7 +65,7 @@ if ((getConfig('birthday_active')  == 'Y') && (isExtensionActive('autopurge')) &
 
 // Only confirmed members shall receive birthday mails...
 $result_birthday = SQL_QUERY_ESC("SELECT
-       `userid`, `email`, `birth_year`
+       `userid`,`email`,`birth_year`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -99,7 +99,7 @@ if (!SQL_HASZERONUMS($result_birthday)) {
                        } // END - for
 
                        // Insert row into database
-                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_birthday` (`userid`, `points`, `chk_value`) VALUES (%s,{?birthday_points?},'%s' )",
+                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_birthday` (`userid`,`points`,`chk_value`) VALUES (%s,{?birthday_points?},'%s' )",
                                array(
                                        bigintval($content['userid']),
                                        $content['check']
index 7fe78a87c56edefdd7c4b2d53d7b670014964040..a8ae1c744acfb5f79140e97c28ad71f34c612b87 100644 (file)
@@ -51,7 +51,7 @@ if (!defined('__SECURITY')) {
 
 // Check for holidays we need to enable and send email to user
 $result_main = SQL_QUERY("SELECT
-       `userid`, `holiday_activated`
+       `userid`,`holiday_activated`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -71,7 +71,7 @@ if (!SQL_HASZERONUMS($result_main)) {
        while ($content = SQL_FETCHARRAY($result_main)) {
                // Check if his holiday can be activated
                $result_holiday = SQL_QUERY_ESC("SELECT
-       `holiday_start`, `holiday_end`
+       `holiday_start`,`holiday_end`
 FROM
        `{?_MYSQL_PREFIX?}_user_holidays`
 WHERE
index 2d25cdea884311a5e9502aeec0868c1380437160..5d346e48ff5ac65462357d97aadd9a9b2921f24a 100644 (file)
@@ -339,7 +339,7 @@ function SQL_RESULT_FROM_ARRAY ($table, $columns, $idRow, $id, $F, $L) {
        } // END  - if
 
        // Prepare the SQL statement
-       $sql = "SELECT `".implode("`, `", $columns)."` FROM `{?_MYSQL_PREFIX?}_%s` WHERE `%s`='%s' LIMIT 1";
+       $sql = "SELECT `".implode("`,`", $columns)."` FROM `{?_MYSQL_PREFIX?}_%s` WHERE `%s`='%s' LIMIT 1";
 
        // Return the result
        return SQL_QUERY_ESC($sql,
@@ -474,7 +474,7 @@ function SQL_ALTER_TABLE ($sql, $F, $L, $enableCodes = true) {
 // Getter for SQL link
 function SQL_GET_LINK () {
        // Init link
-       $link = null;
+       $link = NULL;
 
        // Is it in the globals?
        if (isset($GLOBALS['sql_link'])) {
index 40be9d52b49d7aa9846d4dd083e45fcdca445d1a..229277c0a312c9005d895b73ab04a8b26197da8d 100644 (file)
@@ -359,7 +359,7 @@ function registerExtension ($ext_name, $taskId, $dry_run = false, $ignoreUpdates
                                if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
                                        // New way, with CSS
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . getCurrentExtensionName() . ',always_active=' . getThisExtensionAlwaysActive() . ', ext_ver=' . getCurrentExtensionVersion() . 'ext_css=' . getExtensionHasCss());
-                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_extensions` (`ext_name`, `ext_active`, `ext_version`, `ext_has_css`) VALUES ('%s','%s','%s','%s')",
+                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_extensions` (`ext_name`,`ext_active`,`ext_version`,`ext_has_css`) VALUES ('%s','%s','%s','%s')",
                                                array(
                                                        getCurrentExtensionName(),
                                                        getThisExtensionAlwaysActive(),
@@ -369,7 +369,7 @@ function registerExtension ($ext_name, $taskId, $dry_run = false, $ignoreUpdates
                                } else {
                                        // Old way, no CSS
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . getCurrentExtensionName() . ',always_active=' . getThisExtensionAlwaysActive() . ', ext_ver=' . getCurrentExtensionVersion());
-                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_extensions` (`ext_name`, `ext_active`, `ext_version`) VALUES ('%s','%s','%s')",
+                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_extensions` (`ext_name`,`ext_active`,`ext_version`) VALUES ('%s','%s','%s')",
                                                array(
                                                        getCurrentExtensionName(),
                                                        getThisExtensionAlwaysActive(),
@@ -1793,7 +1793,7 @@ function addAdminMenuSql ($action, $what, $title, $descr, $sort) {
                // Is what null?
                if (is_null($what)) {
                        // Add main menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('%s',NULL,'%s','%s',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('%s',NULL,'%s','%s',%s)",
                                $action,
                                $title,
                                $descr,
@@ -1801,7 +1801,7 @@ function addAdminMenuSql ($action, $what, $title, $descr, $sort) {
                        );
                } else {
                        // Add sub menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('%s','%s','%s','%s',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('%s','%s','%s','%s',%s)",
                                $action,
                                $what,
                                $title,
@@ -1825,14 +1825,14 @@ function addGuestMenuSql ($action, $what, $title, $sort) {
                // Is what null?
                if (is_null($what)) {
                        // Add main menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `visible`, `locked`, `sort`) VALUES ('%s',NULL,'%s','N','Y',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('%s',NULL,'%s','N','Y',%s)",
                                $action,
                                $title,
                                bigintval($sort)
                        );
                } else {
                        // Add sub menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `visible`, `locked`, `sort`) VALUES ('%s','%s','%s','N','Y',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','N','Y',%s)",
                                $action,
                                $what,
                                $title,
@@ -1855,14 +1855,14 @@ function addMemberMenuSql ($action, $what, $title, $sort) {
                // Is what null?
                if (is_null($what)) {
                        // Add main menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `visible`, `locked`, `sort`) VALUES ('%s',NULL,'%s','N','Y',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('%s',NULL,'%s','N','Y',%s)",
                                $action,
                                $title,
                                bigintval($sort)
                        );
                } else {
                        // Add sub menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `visible`, `locked`, `sort`) VALUES ('%s','%s','%s','N','Y',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','N','Y',%s)",
                                $action,
                                $what,
                                $title,
@@ -1885,7 +1885,7 @@ function addSponsorMenuSql ($action, $what, $title, $active, $sort) {
                // Is what null?
                if (is_null($what)) {
                        // Add main menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_menu` (`action`, `what`, `title`, `active`, `sort`) VALUES ('%s',NULL,'%s','%s',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_menu` (`action`,`what`,`title`,`active`,`sort`) VALUES ('%s',NULL,'%s','%s',%s)",
                                $action,
                                $title,
                                $active,
@@ -1893,7 +1893,7 @@ function addSponsorMenuSql ($action, $what, $title, $active, $sort) {
                        );
                } else {
                        // Add sub menu
-                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_menu` (`action`, `what`, `title`, `active`, `sort`) VALUES ('%s','%s','%s','%s',%s)",
+                       $sql = sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_menu` (`action`,`what`,`title`,`active`,`sort`) VALUES ('%s','%s','%s','%s',%s)",
                                $action,
                                $what,
                                $title,
index 441307bbb5a9a165121b2641d64290766311d943..271ea351b6f65a7a7ac050f5fbc23e2958b27005 100644 (file)
@@ -130,7 +130,7 @@ INDEX (`admin_id`)",
 PRIMARY KEY (`id`),
 INDEX (`admin_id`)",
                                        'Mail template -> admin connection table');
-                               addExtensionSql("INSERT INTO  `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('admins','admins_mails','Admin-Mails','Stellen Sie hier ein, welcher Admin welche Mail erhalten soll. Sie k&ouml;nnen dies (derzeit) jedoch erst, wenn einmal die Mail versendet wurde!',5)");
+                               addExtensionSql("INSERT INTO  `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('admins','admins_mails','Admin-Mails','Stellen Sie hier ein, welcher Admin welche Mail erhalten soll. Sie k&ouml;nnen dies (derzeit) jedoch erst, wenn einmal die Mail versendet wurde!',5)");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Kontrollieren Sie, welche Mails welcher Admin oder alle (admin_id=0) bekommen soll oder im UserLog (admin_id=-1) verzeichnet werden soll. Standardm&auml;ssig wird weiter an alle versendet.");
index 517afd2a52ba98308c98cd60d90334b71b59bd9b..6528263acf82d236e3f7d9fbb11c5d4208a42d81 100644 (file)
@@ -254,7 +254,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.4.1': // SQL queries for v0.4.1
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('autopurge_add','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('autopurge_add','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
index 2a146ade0bfe156803a31c8e5adc0ff47e590ce1..eaaa1a8b76cb8e9774c8ff2eccb1e6be3e8ab99f 100644 (file)
@@ -74,7 +74,7 @@ switch (getExtensionMode()) {
 `overdraft_credit` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
 PRIMARY KEY (`id`),
 UNIQUE (`pin`),
-INDEX `userid_type` (`userid`, `account_type`),
+INDEX `userid_type` (`userid`,`account_type`),
 INDEX (`account_created`),
 INDEX (`account_locked`),
 INDEX (`last_tan_stamp`)",
@@ -90,8 +90,8 @@ INDEX (`last_tan_stamp`)",
 `day_available` CHAR(4) NOT NULL DEFAULT '0000',
 `transfer_purpose` TINYTEXT,
 PRIMARY KEY (`id`),
-INDEX (`to_account_id`, `from_account_id`),
-INDEX (`day_bookkeeping`, `day_available`)",
+INDEX (`to_account_id`,`from_account_id`),
+INDEX (`day_bookkeeping`,`day_available`)",
                        'Bank user->user transfers');
 
                addDropTableSql('bank_packages');
@@ -127,7 +127,7 @@ PRIMARY KEY (`id`)",
 `tan` VARCHAR(50) NOT NULL DEFAULT '',
 `used` ENUM('Y','N') NOT NULL DEFAULT 'N',
 PRIMARY KEY (`id`),
-UNIQUE (`account_id`, `tan`)",
+UNIQUE (`account_id`,`tan`)",
                        'Bank TAN lists per user');
 
                // Admin menu queries
index 78d462322a0715b4adc2ddc7f71303fb5f539668..56e8c9fdbe699d5a98fcea79377baaa47cb91355 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.3.1');
+setThisExtensionVersion('0.3.2');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2'));
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running
@@ -79,6 +79,9 @@ INDEX (`userid`)",
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what` IN ('config_beg','list_beg','list_beg_referal_urls')");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `what`='beg'");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what` IN ('beg','beg2')");
+
+               // Unregister module
+               addExtensionSql("DELETE LOW_PRIRITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='beg' LIMIT 1");
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -86,6 +89,7 @@ INDEX (`userid`)",
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y', `locked`='N' WHERE `what`='beg' LIMIT 1");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y', `locked`='N' WHERE `what` IN ('beg','beg2') LIMIT 2");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='beg' LIMIT 1");
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='beg' LIMIT 1");
                break;
 
        case 'deactivate': // Do stuff when admin deactivates this extension
@@ -93,6 +97,7 @@ INDEX (`userid`)",
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='N', `locked`='Y' WHERE `what`='beg' LIMIT 1");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N', `locked`='Y' WHERE `what` IN('beg','beg2') LIMIT 2");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='beg' LIMIT 1");
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='beg' LIMIT 1");
                break;
 
        case 'update': // Update an extension
@@ -297,8 +302,8 @@ INDEX (`userid`)",
 
                        case '0.3.0': // SQL queries for v0.3.0
                                addConfigDropSql('beg_mode');
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('beg','points','LOCKED','DIRECT')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('monthly_beg','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('beg','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('monthly_beg','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
@@ -316,6 +321,17 @@ INDEX (`userid`)",
                                // Update notes
                                setExtensionUpdateNotes("Bettel-Rallye re-hinzugef&uuml;gt.");
                                break;
+
+                       case '0.3.2': // SQL queries for v0.3.2
+                               // Add module entry
+                               addModuleSql('beg', 'Y', 'Y', 'N', 'N');
+
+                               // Set module title
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='Betteln bei {OPEN_CONFIG}MAIN_TITLE{CLOSE_CONFIG}' WHERE `module`='beg' AND `title`='' LIMIT 1");
+
+                               // Update notes
+                               setExtensionUpdateNotes("Modul registriert und bei leerem Titel mit einem Standarttitel versehen.");
+                               break;
                } // END - switch
                break;
 
index ea53903d1e48d5fa0fd7c791fee9b2aa8c44f267..ae379b2fbfc3684baa92631e3560d02b28d784fd 100644 (file)
@@ -59,6 +59,7 @@ switch (getExtensionMode()) {
 
        case 'remove': // Do stuff when removing extension
                // SQL commands to run
+               //addExtensionSql("DELETE LOW_PRIRITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='foo' LIMIT 1");
                break;
 
        case 'activate': // Do stuff when admin activates this extension
index e215afd7b0af7074b1498310710c62abf34a26ec..375853e1b2c193582e421d1c4fee0d2aabd7ba9d 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version of this extension
-setThisExtensionVersion('0.9.6');
+setThisExtensionVersion('0.9.7');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.1.6', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4', '0.9.5', '0.9.6'));
+setExtensionVersionHistory(array('0.0.0', '0.1.6', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4', '0.9.5', '0.9.6', '0.9.7'));
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running
@@ -91,6 +91,7 @@ INDEX (`cat_id`)",
                // Unregister filter
                unregisterFilter(__FUNCTION__, __LINE__, 'member_login_check', 'ADD_LOGIN_BONUS', true, isExtensionDryRun());
                unregisterFilter(__FUNCTION__, __LINE__, 'generate_admin_mail_links', 'GENERATE_BONUS_MAIL_LINKS', true, isExtensionDryRun());
+               unregisterFilter(__FUNCTION__, __LINE__, 'add_bonus_points_user_columns', 'ADD_BONUS_POINTS_USER_COLUMNS', true, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -609,7 +610,7 @@ ORDER BY
                                break;
 
                        case '0.9.6': // SQL queries for v0.9.6
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('monthly_bonus','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('monthly_bonus','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
@@ -617,6 +618,20 @@ ORDER BY
                                // Update notes
                                setExtensionUpdateNotes("Monatlicher Bonus wird nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
+
+                       case '0.9.7': // SQL queries for v0.9.7
+                               addConfigChangeSql('bonus_order_yn', 'include_bonus_order', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+                               addConfigChangeSql('bonus_ref_yn'  , 'include_bonus_ref'  , "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+                               addConfigChangeSql('bonus_stats_yn', 'include_bonus_stats', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+                               addConfigChangeSql('bonus_login_yn', 'include_bonus_login', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+                               addConfigChangeSql('bonus_click_yn', 'include_bonus_click', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+
+                               // Register filter
+                               registerFilter('add_bonus_points_user_columns', 'ADD_BONUS_POINTS_USER_COLUMNS', false, true, isExtensionDryRun());
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Konfigurationseintr&auml;ge umbenannt.");
+                               break;
                } // END - switch
                break;
 
index b77955a9f6dd2b9497af0eb0256d1c96751d9ab2..2636d50e19815a0ab38b721bbb4bddf6c1e8f61c 100644 (file)
@@ -6,7 +6,7 @@
  * -------------------------------------------------------------------- *
  * File              : ext-cache.php                                    *
  * -------------------------------------------------------------------- *
- * Short description : Caching system for SQL tables on hard disc       *
+ * Short description : Caching system for SQL tables on hard drive      *
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Caching-System zum Auslagern von SQL-Tabellen    *
  *                     auf der Festplatte des Servers                   *
index 0e0b934bd44f0c2c551e651a595f7c702ef3945e..fb4450575a6b8e2d44b9ca7487baff7416dae6c0 100644 (file)
@@ -77,7 +77,7 @@ PRIMARY KEY (`id`)",
 `coupon_code` VARCHAR(30) NULL DEFAULT NULL,
 `cashed_on` TIMESTAMP NULL DEFAULT NULL,
 PRIMARY KEY (`id`),
-UNIQUE `coupon_user` (`coupon_id`, `userid`),
+UNIQUE `coupon_user` (`coupon_id`,`userid`),
 UNIQUE (`coupon_code`)",
                        'Coupon->user connection');
 
@@ -138,7 +138,7 @@ UNIQUE (`coupon_code`)",
                                addExtensionDependency('order');
 
                                // Insert data in new table
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('coupon_cashed','order_points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('coupon_cashed','order_points','LOCKED','DIRECT')");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes('');
index 121ca72587e3fda349e167422b97491e11fa403f..a4c4d1ac36ac170336559b176f11b6c44436fe5d 100644 (file)
@@ -100,7 +100,7 @@ UNIQUE (`url`)",
                        'Debug clients');
 
                // Add this exchange as first client
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_debug_client` (`url`, `title`, `webmaster`, `status`) VALUES ('{?URL?}','{?MAIN_TITLE?}','{?WEBMASTER?}','ACTIVE')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_debug_client` (`url`,`title`,`webmaster`,`status`) VALUES ('{?URL?}','{?MAIN_TITLE?}','{?WEBMASTER?}','ACTIVE')");
 
                // Table for debug log <-> client connection
                addDropTableSql('debug_client_log');
@@ -110,7 +110,7 @@ UNIQUE (`url`)",
 `log_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
 UNIQUE (`log_id`),
-INDEX `client_log` (`client_id`, `log_id`)",
+INDEX `client_log` (`client_id`,`log_id`)",
                        'Debug client <-> log connection');
 
                // Guest menus
index da45567cbb93c2fffe6079e67dc60f730afefd84..3c7410914b5256f4d0afd6c7219334b545bf7161 100644 (file)
@@ -239,8 +239,8 @@ INDEX (`userid`)",
                                break;
 
                        case '0.1.8': // SQL queries for v0.1.8
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('doubler_direct','points','LOCKED','DIRECT')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('doubler_reset','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('doubler_direct','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('doubler_reset','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
index dea5bb9fab368c0bd7e9a0ca22e830f9a76a3747..0694e013d046db42b8d6e158eaad81d71db43926 100644 (file)
@@ -51,9 +51,6 @@ enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running
-               // This depends on 'sponsor' now
-               addExtensionDependency('sponsor');
-
                // All required tables for this extension:
                // - Ads
                addDropTableSql('forced_ads');
@@ -65,11 +62,15 @@ switch (getExtensionMode()) {
 `forced_ads_height` SMALLINT(3) UNSIGNED NULL DEFAULT NULL,
 `forced_ads_alt_text` VARCHAR(255) NULL DEFAULT NULL,
 `forced_ads_framebreaker` ENUM('Y','N') NOT NULL DEFAULT 'Y',
+`forced_ads_type` VARCHAR(255) NOT NULL DEFAULT 'INVALID',
 `forced_ads_views_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `forced_ads_clicks_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `forced_ads_reload_lock` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `forced_ads_min_stay` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-PRIMARY KEY ( `forced_ads_id` )",
+`forced_ads_added` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+`forced_ads_last_locked` TIMESTAMP NULL DEFAULT NULL,
+`forced_ads_lock_reason` TINYTEXT,
+PRIMARY KEY (`forced_ads_id`)",
                        'Forced Ads Data');
 
                // - Campaigns
@@ -96,19 +97,19 @@ INDEX (`forced_costs_id`)",
 `forced_campaign_id` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
 `forced_ads_id` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
 PRIMARY KEY (`forced_campaign_ads_id`),
-UNIQUE `ads_campaign` ( `forced_campaign_id`, `forced_ads_id` )",
+UNIQUE `ads_campaign`(`forced_campaign_id`,`forced_ads_id`)",
                        'Forced Campaigns<->Ads');
 
-               // - Campaigns <-> User
+               // - Campaigns <-> "User" (could be a member, sponsor, admin or "API")
                addDropTableSql('forced_campaigns_user');
                addCreateTableSql('forced_campaigns_user', "
 `forced_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 `forced_campaign_id` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
 `forced_user_id` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
-`forced_user_type` ENUM('MEMBER','SPONSOR','ADMIN','API') NULL DEFAULT NULL,
-PRIMARY KEY ( `forced_id` ),
-UNIQUE `forced_campaign_user` ( `forced_campaign_id`, `forced_user_id`, `forced_user_type` ),
-INDEX ( `forced_user_id` )",
+`forced_user_type` ENUM('MEMBER','SPONSOR','ADMIN','API') NOT NULL DEFAULT 'ADMIN',
+PRIMARY KEY (`forced_id`),
+UNIQUE `forced_campaign_user` (`forced_campaign_id`,`forced_user_id`,`forced_user_type`),
+INDEX (`forced_user_id`)",
                        'Forced Campaigns<->User');
 
                // - Campaign costs
@@ -118,7 +119,7 @@ INDEX ( `forced_user_id` )",
 `forced_costs_price_click` FLOAT(20,5) UNSIGNED NULL DEFAULT NULL,
 `forced_costs_payment_click` FLOAT(20,5) UNSIGNED NULL DEFAULT NULL,
 `forced_costs_visibility` ENUM('MEMBER','SPONSOR','ALL','NONE') NOT NULL DEFAULT 'NONE',
-PRIMARY KEY ( `forced_costs_id` )",
+PRIMARY KEY (`forced_costs_id`)",
                        'Forced Campaign Costs');
 
                // - Campaign Statistics
@@ -134,22 +135,27 @@ PRIMARY KEY ( `forced_costs_id` )",
 `forced_stats_ua` VARCHAR(255) NULL DEFAULT NULL,
 `forced_stats_is_proxy` ENUM('Y','N') NOT NULL DEFAULT 'N',
 `forced_stats_session_id` VARCHAR(100) NULL DEFAULT NULL,
-PRIMARY KEY ( `forced_stats_id` ),
-INDEX ( `forced_stats_campaign_id` ),
-INDEX ( `forced_stats_user_id` )",
+PRIMARY KEY (`forced_stats_id`),
+INDEX (`forced_stats_campaign_id`),
+INDEX (`forced_stats_user_id`)",
                        'Forced Campaign Statistics');
 
                // Menu system
                // - Administrator
-               addAdminMenuSql('forced',NULL,'Forced-Ads','Verwalten Sie hier bequem alle laufenden Forced-Banner und -Textlinks und deren Kampgnen. Sie k&ouml;nnen hier auch neue Werbmittel (Ads) hinzuf&uuml;gen oder laufende Forced-Kampagnen bei z.B. Regelverst&ouml;ssen sperren oder l&ouml;schen. Auch das natr&auml;gliche Editieren von Ads und Kampagnen ist jederzeit m&ouml;glich. Kampagnen dienen der einfacheren Verwaltung und der Trennung von dem Werbemittel selbst dienen. Sie brauchen also z.B. einen Forced-Banner nur einmal einf&uuml;gen und k&ouml;nnen dann bei Bedarf weitere Kampagnen starten.',5);
-               addAdminMenuSql('forced','list_forced_ads','Werbemittel verwalten','Listet alle eingetragenen Werbmittel (Ads) auf. Sie k&ouml;nnen hier diese nachtr&auml;glich editieren falls Sie mal eine falsche URL eingegeben haben oder den Text &auml;ndern wollen. L&ouml;schen Sie hier auch Forced-Banner, die nicht mehr g&uuml;ltig sind (z.B. abgelaufen sind). Sollten doch mit dem Werbmittel verkn&uuml;pfte Kampagnen vorhanden sein, erhalten Sie einen Warnhinweis. Neue Werbmittel k&ouml;nnen Sie hier ebenfalls hinzuf&uuml;gen. Denken Sie aber daran, dass ohne Kampagne dieses nicht angezeigt wird. Achten Sie hier auch die Reload-Sperre.',1);
-               addAdminMenuSql('forced','list_forced_campaigns','Kampagnen verwalten','Listet alle Kampagnen auf und zeigt deren Status an. Jederzeit k&ouml;nnen Sie Kampagnen stoppen, falls Sie dies w&uuml;nschen oder ein Regelverstoss vorliegt. Haben Sie ein Werbemittel hinzugef&uuml;gt, so f&uuml;gen Sie bitte unbedingt eine Kampagne hinzu, da es sonst nicht angezeigt wird.',2);
-               addAdminMenuSql('forced','list_forced_costs','Kosten verwalten','Legen Sie die Preise pro Klick zum Buchen Forced-Werbemittel fest und wie viele {OPEN_CONFIG}POINTS{CLOSE_CONFIG} Ihre Mitglieder erhalten sollen. Generell sollten Sie bei Mitgliederbuchungen h&ouml;here Kosten pro Klick als was Ihre Mitglieder pro Klick erhalten einstellen, da so die {OPEN_CONFIG}POINTS{CLOSE_CONFIG} abgebaut werden (Sie k&ouml;nnen an Accountaufladungen z.B. verdienen).',3);
-               addAdminMenuSql('forced','stats_forced','Statistiken','Zeigt Gesamtstatistiken und zu den einzelnen Kampagnen und Werbmitteln an. Die hier angezeigte Statistik kann jedoch nicht manuell gel&ouml;scht werden (bitte auch nicht selber tun) da sie auch gleichzeitigt als Reload-Sperre dient.',4);
+               addAdminMenuSql('forced', NULL, 'Forced-Ads', 'Verwalten Sie hier bequem alle laufenden Forced-Banner und -Textlinks und deren Kampgnen. Sie k&ouml;nnen hier auch neue Werbmittel (Ads) hinzuf&uuml;gen oder laufende Forced-Kampagnen bei z.B. Regelverst&ouml;ssen sperren oder l&ouml;schen. Auch das natr&auml;gliche Editieren von Ads und Kampagnen ist jederzeit m&ouml;glich. Kampagnen dienen der einfacheren Verwaltung und der Trennung von dem Werbemittel selbst dienen. Sie brauchen also z.B. einen Forced-Banner nur einmal einf&uuml;gen und k&ouml;nnen dann bei Bedarf weitere Kampagnen starten.', 5);
+               addAdminMenuSql('forced', 'list_forced_ads', 'Werbemittel verwalten', 'Listet alle eingetragenen Werbmittel (Ads) auf und f&uuml;gt neue hinzu. Sie k&ouml;nnen hier diese nachtr&auml;glich editieren falls Sie mal eine falsche URL eingegeben haben oder den Text &auml;ndern wollen. L&ouml;schen Sie hier auch Forced-Banner, die nicht mehr g&uuml;ltig sind (z.B. abgelaufen sind). Sollten doch mit dem Werbmittel verkn&uuml;pfte Kampagnen vorhanden sein, erhalten Sie einen Warnhinweis. Neue Werbmittel k&ouml;nnen Sie hier ebenfalls hinzuf&uuml;gen. Denken Sie aber daran, dass ohne Kampagne dieses nicht angezeigt wird. Achten Sie hier auch die Reload-Sperre.', 2);
+               addAdminMenuSql('forced', 'list_forced_campaigns', 'Kampagnen verwalten', 'Listet alle Kampagnen auf und zeigt deren Status an. Jederzeit k&ouml;nnen Sie Kampagnen stoppen, falls Sie dies w&uuml;nschen oder ein Regelverstoss vorliegt. Haben Sie ein Werbemittel hinzugef&uuml;gt, so f&uuml;gen Sie bitte unbedingt eine Kampagne hinzu, da es sonst nicht angezeigt wird.', 3);
+               addAdminMenuSql('forced', 'list_forced_costs', 'Kosten verwalten', 'Legen Sie die Preise pro Klick zum Buchen Forced-Werbemittel fest und wie viele {OPEN_CONFIG}POINTS{CLOSE_CONFIG} Ihre Mitglieder erhalten sollen. Generell sollten Sie bei Mitgliederbuchungen h&ouml;here Kosten pro Klick als was Ihre Mitglieder pro Klick erhalten einstellen, da so die {OPEN_CONFIG}POINTS{CLOSE_CONFIG} abgebaut werden (Sie k&ouml;nnen an Accountaufladungen z.B. verdienen).', 4);
+               addAdminMenuSql('forced', 'stats_forced', 'Statistiken', 'Zeigt Gesamtstatistiken und zu den einzelnen Kampagnen und Werbmitteln an. Die hier angezeigte Statistik kann jedoch nicht manuell gel&ouml;scht werden (bitte auch nicht selber tun) da sie auch gleichzeitigt als Reload-Sperre dient.', 5);
 
                // - Members
                addMemberMenuSql('earn', 'forced_banner', 'Forced-Banner', 2);
                addMemberMenuSql('earn', 'forced_textlink', 'Forced-Textlinks', 3);
+               addMemberMenuSql('extras','book_forced_banner','Forced-Banner buchen', 3);
+               addMemberMenuSql('extras','book_forced_textlink','Forced-Textlink buchen', 4);
+
+               // Register filter for default forced ad types
+               registerFilter('add_forced_ads_types', 'FORCED_AD_TYPE_DEFAULTS', false, true, isExtensionDryRun());
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -164,6 +170,9 @@ INDEX ( `forced_stats_user_id` )",
                // Menu systems
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='forced' LIMIT 5");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what` IN ('forced_banner','forced_textlink') LIMIT 2");
+
+               // Remove filter
+               unregisterFilter(__FUNCTION__, __LINE__, 'add_forced_ads_types', 'FORCED_AD_TYPE_DEFAULTS', true, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
index 14c54e5636dda05c4f338aa4a6ddac2de5200336..d3e8e1e7e20abe7670f830f480eb565ebe6010e9 100644 (file)
@@ -88,7 +88,7 @@ INDEX (`userid`)",
                addConfigAddSql('funcoins_withdraw_fee_fix', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
 
                // Points data
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('funcoins_withdraw','order_points','LOCKED','DIRECT')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('funcoins_withdraw','order_points','LOCKED','DIRECT')");
 
                // User data
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `funcoins_userid` BIGINT(20) NULL DEFAULT NULL");
index 5302dc70e6b65626823dbc4e39a53bb198b70040..abd36e7c82d5c725f371d547b205671494cc7bcf 100644 (file)
@@ -83,7 +83,7 @@ UNIQUE (`grade_cash_name`)",
 `grade_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `grade_cash_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE `grade_cash` (`grade_id`, `grade_cash_id`),
+UNIQUE `grade_cash` (`grade_id`,`grade_cash_id`),
 INDEX (`grade_cash_id`)",
                        'Grade<->cash data connection');
 
@@ -95,7 +95,7 @@ INDEX (`grade_cash_id`)",
 `grade_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `grade_expired` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
 PRIMARY KEY (`id`),
-UNIQUE (`userid`, `grade_id`),
+UNIQUE (`userid`,`grade_id`),
 INDEX (`grade_id`)",
                        'Grade<->user connection');
 
index 765fd276d72de362de9cdb52ffc4ab4b0ab21afb..6f595ce84acbd751284fb9ec7ba3448af78c17ab 100644 (file)
@@ -82,7 +82,7 @@ INDEX (`userid`)",
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='holiday' LIMIT 1");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='holiday' LIMIT 4");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `value`=0 LIMIT 1");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (0,'Urlaub')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (0,'Urlaub')");
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -187,9 +187,9 @@ INDEX (`userid`)",
                                break;
 
                        case '0.1.8': // SQL queries for v0.1.8
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'list_holiday')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_holiday')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_holiday')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`,`la_action`,`la_what`) VALUES ('member', '', 'list_holiday')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`,`la_action`,`la_what`) VALUES ('member', '', 'del_holiday')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`,`la_action`,`la_what`) VALUES ('config', '', 'config_holiday')");
 
                                // Depends on ext-sql_patches (or you have to execute these both SQL statements by phpMyAdmin
                                addExtensionDependency('sql_patches');
index 4dbab08b303598a9acf34fb4f72e7621197e21b2..28aa12dd97e52d9b1d3e1a2eb189d6b11cb85250 100644 (file)
@@ -73,7 +73,7 @@ switch (getExtensionMode()) {
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.2
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_countries` ADD `provider` ENUM('user','ext-iso3166') NOT NULL DEFAULT 'user'");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (`code`, `descr`, `provider`)
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (`code`,`descr`,`provider`)
 VALUES ('AD', 'Andorra', 'ext-iso3166'),
 ('AE', 'Vereinigte Arabische Emirate', 'ext-iso3166'),
 ('AF', 'Afghanistan', 'ext-iso3166'),
index e83b2905defa063942a425183bb7c0f95d795f51..09e59108250c2c7d17c898ca51f63ce3e0c43cf9 100644 (file)
@@ -234,7 +234,7 @@ switch (getExtensionMode()) {
                                addExtensionDependency('sql_patches');
 
                                // Insert data in points_data
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('mailid_payback','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('mailid_payback','points','LOCKED','DIRECT')");
                                break;
                } // END - switch
                break;
index fa9f57f4edd1b54b83f684670fdb4cf01dc78531..ec17c1f5865faca692b149337b7d9d1befe76d26 100644 (file)
@@ -100,7 +100,7 @@ UNIQUE (`network_short_name`)",
 `network_type_click_url` VARCHAR(255) NOT NULL DEFAULT '',
 `network_type_banner_url` VARCHAR(255) NULL DEFAULT NULL,
 PRIMARY KEY (`network_type_id`),
-UNIQUE `provider_type` (`network_id`, `network_type_handle`)",
+UNIQUE `provider_type` (`network_id`,`network_type_handle`)",
                        'Types provideable by networks');
 
                // HTTP parameters (names) for URLs
@@ -113,8 +113,8 @@ UNIQUE `provider_type` (`network_id`, `network_type_handle`)",
 `request_param_value` VARCHAR(20) NOT NULL DEFAULT 'invalid',
 `request_param_default` VARCHAR(255) NULL DEFAULT NULL,
 PRIMARY KEY (`network_param_id`),
-UNIQUE `provider_type_key` (`network_id`, `network_type_id`, `request_param_key`),
-UNIQUE `provider_type_value` (`network_id`, `network_type_id`, `request_param_value`),",
+UNIQUE `provider_type_key` (`network_id`,`network_type_id`,`request_param_key`),
+UNIQUE `provider_type_value` (`network_id`,`network_type_id`,`request_param_value`),",
                        'Request parameters for GET/POST request');
 
                // Error status codes
@@ -125,7 +125,7 @@ UNIQUE `provider_type_value` (`network_id`, `network_type_id`, `request_param_va
 `network_type_code_value` VARCHAR(50) NOT NULL DEFAULT '',
 `network_type_code_type` VARCHAR(100) NOT NULL DEFAULT 'INVALID_TYPE',
 PRIMARY KEY (`network_type_code_id`),
-UNIQUE `code_type` (`network_type_code_value`, `network_type_id`),
+UNIQUE `code_type` (`network_type_code_value`,`network_type_id`),
 INDEX (`network_type_id`)",
                        'Error codes for all types');
 
@@ -156,7 +156,7 @@ UNIQUE (`network_translation_name`)",
 `network_api_index` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0,
 `sort` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`network_api_id`),
-UNIQUE `provider_type_key` (`network_id`, `network_type_id`, `network_api_index`),
+UNIQUE `provider_type_key` (`network_id`,`network_type_id`,`network_api_index`),
 INDEX (`sort`)",
                        'Translation of API responses, generic data, DO NOT ALTER!');
 
@@ -170,8 +170,8 @@ INDEX (`sort`)",
 `network_query_amount` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `network_active` ENUM('Y','N') NOT NULL DEFAULT 'Y',
 PRIMARY KEY (`network_id`),
-UNIQUE `network_affiliate` (`network_id`, `network_affiliate_id`),
-UNIQUE `affiliate_site` (`network_affiliate_id`, `network_site_id`)",
+UNIQUE `network_affiliate` (`network_id`,`network_affiliate_id`),
+UNIQUE `affiliate_site` (`network_affiliate_id`,`network_site_id`)",
                        'Configuration data from the webmaster (you!)');
 
                // Configuration data for e.g. reload-time
@@ -186,7 +186,7 @@ UNIQUE `affiliate_site` (`network_affiliate_id`, `network_site_id`)",
 `min_payment` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
 `allow_erotic` VARCHAR(10) NOT NULL DEFAULT '',
 PRIMARY KEY (`network_data_id`),
-UNIQUE `provider_type` (`network_id`, `network_type_id`)",
+UNIQUE `provider_type` (`network_id`,`network_type_id`)",
                        'Configuration data for every type (e.g. reload-time)');
 
                // Cache for queried APIs. Re-check depends on config
@@ -200,7 +200,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 `network_cache_data` MEDIUMBLOB,
 `network_cache_timestamp` TIMESTAMP NULL DEFAULT NULL,
 PRIMARY KEY (`network_cache_id`),
-UNIQUE `provider_type` (`network_id`, `network_type_id`)",
+UNIQUE `provider_type` (`network_id`,`network_type_id`)",
                        'Cache for all queried APIs');
 
                // Reload locks for several types
@@ -212,7 +212,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 `network_reload_lock` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0,
 `network_inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY (`network_reload_id`),
-UNIQUE `provider_type` (`network_id`, `network_type_id`)",
+UNIQUE `provider_type` (`network_id`,`network_type_id`)",
                        'Reload locks');
 
                // Insert API response array translations, these will be used for calling the right filter function
@@ -270,7 +270,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 ('REQUEST_PARAMETER_INCOMPLETE')");
 
                // Sponsor networks
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_data` (`network_short_name`, `network_title`, `network_reflink`, `network_data_seperator`, `network_row_seperator`, `network_request_type`, `network_charset`, `network_require_id_card`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_data` (`network_short_name`,`network_title`,`network_reflink`,`network_data_seperator`,`network_row_seperator`,`network_request_type`,`network_charset`,`network_require_id_card`) VALUES
 ('a3h', 'A3H', 'http://www.a3h.de?ref=1447', '|', '|', 'GET', 'WINDOWS-1252','N'),
 ('abiszed','AbisZED-Netz','http://abiszed-netz.de/index.php?ref=557', '|', '|', 'GET', 'WINDOWS-1252','Y'),
 ('admagnet', 'AD-Magnet', 'http://www.ad-magnet.de/index.php?ref=495', '|', '|', 'GET', 'ISO-8859-1','N'),
@@ -290,7 +290,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 ('megad', 'Mega-Ad', 'http://www.mega-ad.de/?ref=303', '|', '|', 'GET', 'WINDOWS-1252','N'),
 ('power-promo', 'Power-Promo', 'http://www.power-promo.de?ref=1231', '|', '|', 'GET', 'WINDOWS-1252','N'),
 ('secash', 'SeCash', 'http://www.secash.de?ref=758', '|', '|', 'GET', 'WINDOWS-1252','N'),
-('swizerland', 'The-Swizerland-Ad-Network', 'http://www.the-switzerland-ad-network.ch?ref=3', '|', '|', 'GET', 'WINDOWS-1252','N'),
+('weltpromotion', 'Welt-Promotion', 'http://www.weltpromotion.de?ref=3', '|', '|', 'GET', 'WINDOWS-1252','N'),
 ('ultrapromo', 'UltraPROMO', 'http://www.ultrapromo.eu?ref=485', '|', '|', 'GET', 'WINDOWS-1252','N'),
 ('werbepartnercc', 'Der Werbepartner.cc', 'http://www.werbepartner.cc/sponsor/?ref=696', '|', '|', 'GET', 'WINDOWS-1252','N'),
 ('yoomedia', 'Yoo!Media Solutions', 'http://www.yoomedia.de?ref=1715', '|', '|', 'GET', 'WINDOWS-1252','N'),
@@ -303,7 +303,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 ('adconvention', 'AdConvention', 'http://www.adconvention.de?ref=233', '|', '|', 'GET', 'WINDOWS-1252','N')");
 
                // Network type handlers - A3H
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (1, 1, 'banner', 'http://www.a3h.de/interface/out_banner.php', 'http://www.a3h.de/bannerklf.php?id=%CID%', 'http://www.a3h.de/banner.php?id=%CID%'),
 (2, 1, 'textlink', 'http://www.a3h.de/interface/out_textlink.php', 'http://www.a3h.de/textlinkklick.php?id=%CID%', NULL),
 (3, 1, 'surfbar', 'http://www.a3h.de/interface/out_sbanner.php', 'http://www.a3h.de/bannerklf.php?id=%CID%', 'http://www.a3h.de/banner.php?id=%CID%'),
@@ -317,7 +317,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (11, 1, 'htmlmail', 'http://www.a3h.de/interface/out_paidmail.php', 'http://www.a3h.de/emailf.php?id=%CID%', NULL)");
 
                // Network type handlers - AbisZED-Netz
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (187, 2, 'banner_click', 'http://www.abiszed-netz.de/interface/out_banner.php', 'http://www.abiszed-netz.de/bannerklf.php?id=%CID%', 'http://www.abiszed-netz.de/banner.php?id=%CID%'),
 (188, 2, 'banner_view', 'http://www.abiszed-netz.de/interface/out_banner.php', 'http://www.abiszed-netz.de/bannerklf.php?id=%CID%', 'http://www.abiszed-netz.de/banner.php?id=%CID%'),
 (189, 2, 'textlink_click', 'http://www.abiszed-netz.de/interface/out_textlink.php', 'http://www.abiszed-netz.de/textlinkklick.php?id=%CID%', NULL),
@@ -337,12 +337,12 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
                // Network type handlers - Ad-Magnet
 
                // Network type handlers - AdCocktail
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (13, 4, 'forcedbanner', 'http://www.adcocktail.com/sc/kas/kas_fk.php', 'http://fk.adcocktail.com/fk_k.php?uid=%UID%&wid=%CID%&wsid=%SID%', 'http://fk.adcocktail.com/fk_v.php?uid=%UID%&wid=%CID%&wsid=%SID%'),
 (12, 4, 'textmail', 'http://www.adcocktail.com/sc/kas/kas_pm.php', 'http://pm.adcocktail.com/pm.php?uid=%UID%&wid=%CID%&wsid=%SID%', NULL)");
 
                // Network type handlers - AdConvention
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (295, 30, 'banner_click', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.adconvention.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (294, 30, 'banner_view', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%CID%', 'http://www.adconvention.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (297, 30, 'button_view', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.adconvention.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -355,7 +355,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (299, 30, 'traffic', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)");
 
                // Network type handlers - AdPaid
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (177, 5, 'banner', 'http://www.adpaid.de/interface/out_banner.php', 'http://www.adpaid.de/bannerklf.php?id=%CID%', 'http://www.adpaid.de/banner.php?id=%CID%'),
 (178, 5, 'textlink', 'http://www.adpaid.de/interface/out_textlink.php', 'http://www.adpaid.de/textlinkklick.php?id=%CID%', NULL),
 (179, 5, 'surfbar', 'http://www.adpaid.de/interface/out_sbanner.php', 'http://www.adpaid.de/bannerklf.php?id=%CID%', 'http://www.adpaid.de/banner.php?id=%CID%'),
@@ -368,14 +368,14 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (186, 5, 'sale', 'http://www.adpaid.de/interface/out_sale.php', 'http://www.adpaid.de/sale.php?id=%CID%', NULL)");
 
                // Network type handlers - Ads4
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (14, 6, 'forcedbanner', 'http://www.ads4.de/interface/interface.php', 'http://www.ads4.de/forced_click.php?fb_id=%CID%&sid=%SID%', 'http://www.ads4.de/forced_view.php?fb_id=%CID%&sid=%SID%'),
 (16, 6, 'htmlmail', 'http://www.ads4.de/interface/interface.php', 'http://www.ads4.de/paidmail_click.php?pm=%CID%&%sid=%SID%', NULL),
 (15, 6, 'textmail', 'http://www.ads4.de/interface/interface.php', 'http://www.ads4.de/paidmail_click.php?pm=%CID%&%sid=%SID%', NULL),
 (119, 6, 'traffic', 'http://www.ads4.de/interface/interface.php', 'http://www.ads4.de/traffic_click.php?tr_id=%CID%&sid=%SID%', '')");
 
                // Network type handlers - Ads4Webbis
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (20, 7, 'banner_click', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.ads4webbis.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (19, 7, 'banner_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads4webbis.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (22, 7, 'button_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.ads4webbis.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -388,7 +388,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (120, 7, 'traffic', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL)");
 
                // Network type handlers - Ads4World
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (29, 8, 'banner_click', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (28, 8, 'banner_view', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (31, 8, 'button_view', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -403,7 +403,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
                // Network type handlers - Affiliblatt
 
                // Network type handlers - AllAds4You
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (167, 10, 'forcedbanner', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (168, 10, 'forcedtextlink', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%', NULL),
 (169, 10, 'banner_view', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -416,7 +416,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (176, 10, 'textmail', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)");
 
                // Network type handlers - Alster-Marketing
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (35, 11, 'banner_click', 'http://if.alstermarketing.de/interface/out_banner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
 (45, 11, 'banner_view', 'http://if.alstermarketing.de/interface/out_banner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
 (38, 11, 'forcedbanner', 'http://if.alstermarketing.de/interface/out_fbanner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
@@ -434,7 +434,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (39, 11, 'textmail', 'http://if.alstermarketing.de/interface/out_paidmail.php', 'http://www.alstermarketing.de/emailf.php?id=%CID%', NULL)");
 
                // Network type handlers - BonusSponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (50, 12, 'banner_click', 'http://www.bonussponsor.de/interface/out_banner.php', 'http://www.bonussponsor.de/bannerklf.php?id=%CID%', 'http://www.bonussponsor.de/banner.php?id=%CID%'),
 (51, 12, 'banner_view', 'http://www.bonussponsor.de/interface/out_banner.php', 'http://www.bonussponsor.de/bannerklf.php?id=%CID%', 'http://www.bonussponsor.de/banner.php?id=%CID%'),
 (54, 12, 'forcedbanner', 'http://www.bonussponsor.de/interface/out_fbanner.php', 'http://www.bonussponsor.de/bannerklf.php?id=%CID%', 'http://www.bonussponsor.de/banner.php?id=%CID%'),
@@ -450,7 +450,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (55, 12, 'textmail', 'http://www.bonussponsor.de/interface/out_paidmail.php', 'http://www.bonussponsor.de/emailf.php?id=%CID%', NULL)");
 
                // Network type handlers - City-Ads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (215, 24, 'banner_click', 'http://www.city-ads.de/interface/api_2.php', 'http://www.city-ads.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.city-ads.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (214, 24, 'banner_view', 'http://www.city-ads.de/interface/api_2.php', 'http://www.city-ads.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.city-ads.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (217, 24, 'button_view', 'http://www.city-ads.de/interface/api_2.php', 'http://www.city-ads.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.city-ads.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -463,7 +463,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (219, 24, 'traffic', 'http://www.city-ads.de/interface/api_2.php', 'http://www.city-ads.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL)");
 
                // Network type handlers - doubleads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (232, 26, 'banner_click', 'http://www.doubleads.de/interface/out_banner.php', 'http://www.doubleads.de/bannerklf.php?id=%CID%', 'http://www.doubleads.de/banner.php?id=%CID%'),
 (233, 26, 'banner_view', 'http://www.doubleads.de/interface/out_banner.php', 'http://www.doubleads.de/bannerklf.php?id=%CID%', 'http://www.doubleads.de/banner.php?id=%CID%'),
 (234, 26, 'textlink_click', 'http://www.doubleads.de/interface/out_textlink.php', 'http://www.doubleads.de/textlinkklick.php?id=%CID%', NULL),
@@ -481,7 +481,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (246, 26, 'sale', 'http://www.doubleads.de/interface/out_sale.php', 'http://www.doubleads.de/sale.php?id=%CID%', NULL)");
 
                // Network type handlers - FuCoExSponsor.net
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (273, 29, 'banner_click', 'http://fucoexsponsor.net/int/get.php', 'http://fucoexsponsor.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', 'http://fucoexsponsor.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%'),
 (274, 29, 'banner_view', 'http://fucoexsponsor.net/int/get.php', 'http://fucoexsponsor.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', 'http://fucoexsponsor.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%'),
 (275, 29, 'button_click', 'http://fucoexsponsor.net/int/get.php', 'http://fucoexsponsor.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', 'http://fucoexsponsor.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%'),
@@ -501,12 +501,12 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (289, 29, 'traffic', 'http://fucoexsponsor.net/int/get.php', 'http://fucoexsponsor.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', NULL)");
 
                // Network type handlers - Fusion-Ads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (290, 13, 'forcedbanner', 'http://www.fusion-ads.de/data/get.php', 'http://www.fusion-ads.de/data/werbung.php?uid=%UID%&kid=%CID%&sid=%SID%&art=32&step=1', 'http://www.fusion-ads.de/data/werbung.php?uid=%UID%&kid=%CID%&sid=%SID%&art=32'),
 (291, 13, 'textmail', 'http://www.fusion-ads.de/data/get.php', 'ttp://www.fusion-ads.de/data/werbung.php?uid=%UID%&kid=%CID%&sid=%SID%&art=33', NULL)");
 
                // Network type handlers - GigaPromo
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (102, 14, 'banner_view', 'http://www.gigapromo.de/interface/output_viewbanner.php', 'http://www.gigapromo.de/view/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.gigapromo.de/view/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (104, 14, 'forcedbanner', 'http://www.gigapromo.de/interface/output_forcedbanner.php', 'http://www.gigapromo.de/view/forcedclickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.gigapromo.de/view/forcedviewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (105, 14, 'forcedtextlink', 'http://www.gigapromo.de/interface/output_forcedtextlink.php', 'http://www.gigapromo.de/view/forcedclicktextlink.php?id=%UID%&bid=%CID%&aid=%SID%', NULL),
@@ -517,7 +517,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (122, 14, 'traffic', 'http://www.gigapromo.de/interface/output_traffic.php', 'http://www.gigapromo.de/view/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)");
 
                // Network type handlers - Gold-Sponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (225, 25, 'banner_click', 'http://www.gold-sponsor.de/interface/', 'http://www.gold-sponsor.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.gold-sponsor.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (224, 25, 'banner_view', 'http://www.gold-sponsor.de/interface/', 'http://www.gold-sponsor.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.gold-sponsor.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (227, 25, 'button_view', 'http://www.gold-sponsor.de/interface/', 'http://www.gold-sponsor.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.gold-sponsor.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -530,7 +530,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (229, 25, 'traffic', 'http://www.gold-sponsor.de/interface/', 'http://www.gold-sponsor.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)");
 
                // Network type handlers - homeADS
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (260, 28, 'banner_click', 'http://www.homeads.de/interface/out_banner.php', 'http://www.homeads.de/bannerklf.php?id=%CID%', 'http://www.homeads.de/banner.php?id=%CID%'),
 (261, 28, 'banner_view', 'http://www.homeads.de/interface/out_banner.php', 'http://www.homeads.de/bannerklf.php?id=%CID%', 'http://www.homeads.de/banner.php?id=%CID%'),
 (264, 28, 'forcedbanner', 'http://www.homeads.de/interface/out_fbanner.php', 'http://www.homeads.de/bannerklf.php?id=%CID%', 'http://www.homeads.de/banner.php?id=%CID%'),
@@ -546,7 +546,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (265, 28, 'textmail', 'http://www.homeads.de/interface/out_paidmail.php', 'http://www.homeads.de/emailf.php?id=%CID%', NULL)");
 
                // Network type handlers - HPSponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (135, 15, 'banner_click', 'http://hpsponsor.at/interface/api_2.php', 'http://hpsponsor.at/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://hpsponsor.at/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (136, 15, 'banner_view', 'http://hpsponsor.at/interface/api_2.php', 'http://hpsponsor.at/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://hpsponsor.at/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (137, 15, 'button_view', 'http://hpsponsor.at/interface/api_2.php', 'http://hpsponsor.at/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://hpsponsor.at/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -559,7 +559,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (144, 15, 'traffic', 'http://hpsponsor.at/interface/api_2.php', 'http://hpsponsor.at/codes/traffic.php?id=%UID%&bid=%CID%&aid=%CID%&trackid=%TID%', NULL)");
 
                // Network type handlers - Make-Euros
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (63, 16, 'banner_click', 'http://www.make-euros.de/interface/out_banner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
 (64, 16, 'banner_view', 'http://www.make-euros.de/interface/out_banner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
 (68, 16, 'forcedbanner', 'http://www.make-euros.de/interface/out_fbanner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
@@ -577,7 +577,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (70, 16, 'textmail', 'http://www.make-euros.de/interface/out_paidmail.php', 'http://www.make-euros.de/emailf.php?id=%CID%', NULL)");
 
                // Network type handlers - Mega-Ad
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (112, 17, 'banner_click', 'http://www.mega-ad.de/interface/', 'http://www.mega-ad.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.mega-ad.de/codes/view.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (111, 17, 'banner_view', 'http://www.mega-ad.de/interface/', 'http://www.mega-ad.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.mega-ad.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (114, 17, 'button_view', 'http://www.mega-ad.de/interface/', 'http://www.mega-ad.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.mega-ad.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -590,7 +590,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (123, 17, 'traffic', 'http://www.mega-ad.de/interface/', 'http://www.mega-ad.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)");
 
                // Network type handlers - Power-Promo
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (78, 18, 'banner_click', 'http://www.power-promo.de/interface/out_banner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
 (79, 18, 'banner_view', 'http://www.power-promo.de/interface/out_banner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
 (84, 18, 'forcedbanner', 'http://www.power-promo.de/interface/out_fbanner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
@@ -608,7 +608,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (85, 18, 'textmail', 'http://www.power-promo.de/interface/out_paidmail.php', 'http://www.power-promo.de/emailf.php?id=%CID%', NULL)");
 
                // Network type handlers - SeCash
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (93, 19, 'forcedbanner', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.secash.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (94, 19, 'forcedtextlink', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL),
 (95, 19, 'banner_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.secash.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -621,20 +621,20 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (124, 19, 'traffic', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL)");
 
                // Network type handlers - Swizerland
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
-(205, 20, 'banner_click', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.the-switzerland-ad-network.ch/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
-(204, 20, 'banner_view', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.the-switzerland-ad-network.ch/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
-(207, 20, 'button_view', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.the-switzerland-ad-network.ch/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
-(202, 20, 'forcedbanner', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.the-switzerland-ad-network.ch/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
-(203, 20, 'forcedtextlink', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
-(210, 20, 'popup', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
-(206, 20, 'skybanner_view', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.the-switzerland-ad-network.ch/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
-(208, 20, 'textlink_view', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
-(211, 20, 'textmail', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
-(209, 20, 'traffic', 'http://www.the-switzerland-ad-network.ch/interface/api_2.php', 'http://www.the-switzerland-ad-network.ch/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL)");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
+(205, 20, 'banner_click', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.weltpromotion.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
+(204, 20, 'banner_view', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.weltpromotion.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
+(207, 20, 'button_view', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.weltpromotion.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
+(202, 20, 'forcedbanner', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.weltpromotion.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
+(203, 20, 'forcedtextlink', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
+(210, 20, 'popup', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
+(206, 20, 'skybanner_view', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.weltpromotion.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
+(208, 20, 'textlink_view', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
+(211, 20, 'textmail', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL),
+(209, 20, 'traffic', 'http://www.weltpromotion.de/interface/api_2.php', 'http://www.weltpromotion.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL)");
 
                // Network type handlers - UltraPROMO
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (125, 21, 'banner_click', 'http://www.ultrapromo.eu/interface/', 'http://www.ultrapromo.eu/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ultrapromo.eu/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (126, 21, 'banner_view', 'http://www.ultrapromo.eu/interface/', 'http://www.ultrapromo.eu/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ultrapromo.eu/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'),
 (127, 21, 'button_view', 'http://www.ultrapromo.eu/interface/', 'http://www.ultrapromo.eu/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ultrapromo.eu/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'),
@@ -647,7 +647,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (134, 21, 'traffic', 'http://www.ultrapromo.eu/interface/', 'http://www.ultrapromo.eu/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)");
 
                // Network type handlers - VIPads.de
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (247, 27, 'banner_click', 'http://vipads.de/int/get.php', 'http://vipads.de/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', 'http://vipads.de/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%'),
 (248, 27, 'banner_view', 'http://vipads.de/int/get.php', 'http://vipads.de/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', 'http://vipads.de/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%'),
 (249, 27, 'button_click', 'http://vipads.de/int/get.php', 'http://vipads.de/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', 'http://vipads.de/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%'),
@@ -663,7 +663,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (259, 27, 'traffic', 'http://vipads.de/int/get.php', 'http://vipads.de/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', NULL)");
 
                // Network type handlers - Der Werbepartner.cc
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (145, 22, 'textlink_click', 'http://www.werbepartner.cc/sponsor/data/get.php', 'http://www.werbepartner.cc/sponsor/data/werbung.php', NULL),
 (146, 22, 'forcedbanner', 'http://www.werbepartner.cc/sponsor/data/get.php', 'http://www.werbepartner.cc/sponsor/data/werbung.php', 'http://www.werbepartner.cc/sponsor/data/werbung.php'),
 (147, 22, 'textmail', 'http://www.werbepartner.cc/sponsor/data/get.php', 'http://www.werbepartner.cc/sponsor/data/werbung.php', NULL),
@@ -677,7 +677,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (155, 22, 'traffic', 'http://www.werbepartner.cc/sponsor/data/get.php', 'http://www.werbepartner.cc/sponsor/data/get.php', NULL)");
 
                // Network type handlers - Yoo!Media
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES
 (156, 23, 'banner_click', 'http://www.yoomedia.de/interface_2.0/out_banner.php', 'http://www.yoomedia.de/code/z-bannerklf.php?id=%CID%&sid=%SID%', 'http://www.yoomedia.de/code/z-banner.php?id=%CID%&sid=%SID%&bid=%BID%'),
 (157, 23, 'textlink_click', 'http://www.yoomedia.de/interface_2.0/out_textlink.php', 'http://www.yoomedia.de/code/t-textlink.php?id=%CID%&sid=%SID%', NULL),
 (158, 23, 'surfbar_click', 'http://www.yoomedia.de/interface_2.0/out_sbanner.php', 'http://www.yoomedia.de/code/s-bannerklf.php?id=%CID%&sid=%SID%', 'http://www.yoomedia.de/code/s-banner.php?id=%CID%&sid=%SID%&bid=%BID%'),
@@ -691,7 +691,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (166, 23, 'lead', 'http://www.yoomedia.de/interface_2.0/out_lead.php', 'http://www.yoomedia.de/code/lead.php?id=%CID%&sid=%SID%', NULL)");
 
                // Request parameters per type handler - A3H
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (1, 1, 'id', 'id', NULL),
 (1, 1, 'minimum_stay', 'ma', NULL),
 (1, 1, 'password', 'pw', NULL),
@@ -772,7 +772,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (1, 11, 'type', 'typ', 'html')");
 
                // Request parameters per type handler - AbisZED-Netz
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (2, 187, 'id', 'id', NULL),
 (2, 187, 'password', 'pw', NULL),
 (2, 187, 'reload', 'reload', NULL),
@@ -887,7 +887,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
                // Request parameters per type handler - AdCocktail
 
                // Request parameters per type handler - AdConvention
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (30, 292, 'extra', 'typ', 'forcedbanner'),
 (30, 292, 'id', 'id', NULL),
 (30, 292, 'minimum_stay', 'ma', NULL),
@@ -960,7 +960,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (30, 301, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - AdPaid
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (5, 177, 'id', 'id', NULL),
 (5, 177, 'password', 'pw', NULL),
 (5, 177, 'reload', 'reload', NULL),
@@ -1033,7 +1033,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (5, 186, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - Ads4
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (6, 14, 'currency', 'waehrung', NULL),
 (6, 14, 'extra', 'mediatype', 'forced_banner'),
 (6, 14, 'id', 'id', NULL),
@@ -1068,7 +1068,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (6, 119, 'reward', 'verg', NULL)");
 
                // Request parameters per type handler - Ads4Webbis
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (7, 17, 'extra', 'typ', 'forcedbanner'),
 (7, 17, 'id', 'id', NULL),
 (7, 17, 'password', 'pw', NULL),
@@ -1133,7 +1133,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (7, 120, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - Ads4World
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (8, 26, 'extra', 'typ', 'forcedbanner'),
 (8, 26, 'id', 'id', NULL),
 (8, 26, 'password', 'pw', NULL),
@@ -1200,7 +1200,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
                // Request parameters per type handler - Affiliblatt
 
                // Request parameters per type handler - AllAds4You
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (10, 167, 'extra', 'typ', 'forcedbanner'),
 (10, 167, 'id', 'id', NULL),
 (10, 167, 'password', 'pw', NULL),
@@ -1273,7 +1273,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (10, 176, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - Alster-Marketing
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (11, 35, 'id', 'id', NULL),
 (11, 35, 'password', 'pw', NULL),
 (11, 35, 'reload', 'reload', NULL),
@@ -1384,7 +1384,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (11, 49, 'type', 'typ', 'view')");
 
                // Request parameters per type handler - BonusSponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (12, 50, 'id', 'id', NULL),
 (12, 50, 'password', 'pw', NULL),
 (12, 50, 'reload', 'reload', NULL),
@@ -1479,7 +1479,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (12, 62, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - City-Ads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (24, 212, 'extra', 'typ', 'forcedbanner'),
 (24, 212, 'id', 'id', NULL),
 (24, 212, 'password', 'pw', NULL),
@@ -1552,7 +1552,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (24, 221, 'minimum_stay', 'ma', NULL)");
 
                // Request parameters per type handler - doubleads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (26, 232, 'id', 'id', NULL),
 (26, 232, 'password', 'pw', NULL),
 (26, 232, 'reload', 'reload', NULL),
@@ -1663,7 +1663,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (26, 246, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - FuCoExSponsor.net
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (29, 273, 'extra', 'art', 'bannerklick'),
 (29, 273, 'id', 'uid', NULL),
 (29, 273, 'password', 'pw', NULL),
@@ -1791,7 +1791,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (29, 289, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - Fusion-Ads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (13, 290, 'extra', 'art', 'Forcedbanner'),
 (13, 290, 'id', 'uid', NULL),
 (13, 290, 'password', 'pw', NULL),
@@ -1808,7 +1808,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (13, 291, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - GigapPromo
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (14, 102, 'id', 'id', NULL),
 (14, 102, 'password', 'pw', NULL),
 (14, 102, 'reload', 'reload', NULL),
@@ -1859,7 +1859,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (14, 108, 'sid', 'aid', NULL)");
 
                // Request parameters per type handler - Gold-Sponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (25, 222, 'extra', 'typ', 'forcedbanner'),
 (25, 222, 'id', 'id', NULL),
 (25, 222, 'minimum_stay', 'ma', NULL),
@@ -1932,7 +1932,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (25, 231, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - homeADS
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (28, 260, 'id', 'id', NULL),
 (28, 260, 'password', 'pw', NULL),
 (28, 260, 'reload', 'reload', NULL),
@@ -2027,7 +2027,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (28, 272, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - HPSponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (15, 135, 'extra', 'typ', 'forcedbanner'),
 (15, 135, 'id', 'id', NULL),
 (15, 135, 'password', 'pw', NULL),
@@ -2092,7 +2092,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (15, 144, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - Make-Euros
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (16, 63, 'id', 'id', NULL),
 (16, 63, 'password', 'pw', NULL),
 (16, 63, 'reload', 'reload', NULL),
@@ -2203,7 +2203,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (16, 77, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - Mega-Ad
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (17, 109, 'extra', 'typ', 'forcedbanner'),
 (17, 109, 'id', 'id', NULL),
 (17, 109, 'password', 'pw', NULL),
@@ -2266,7 +2266,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (17, 123, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - Power-Promo
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (18, 78, 'id', 'id', NULL),
 (18, 78, 'password', 'pw', NULL),
 (18, 78, 'reload', 'reload', NULL),
@@ -2377,7 +2377,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (18, 92, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - SeCash
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (19, 93, 'extra', 'typ', 'forcedbanner'),
 (19, 93, 'id', 'id', NULL),
 (19, 93, 'password', 'pw', NULL),
@@ -2442,7 +2442,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (19, 124, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - Swizerland
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (20, 202, 'extra', 'typ', 'forcedbanner'),
 (20, 202, 'id', 'id', NULL),
 (20, 202, 'password', 'pw', NULL),
@@ -2507,7 +2507,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (20, 211, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - UltraPROMO
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (21, 125, 'extra', 'typ', 'bannerklick'),
 (21, 125, 'id', 'id', NULL),
 (21, 125, 'password', 'pw', NULL),
@@ -2572,7 +2572,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (21, 134, 'reward', 'verguetung', NULL)");
 
                // Request parameters per type handler - VIPads.de
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (27, 247, 'extra', 'art', 'bannerklick'),
 (27, 247, 'id', 'uid', NULL),
 (27, 247, 'password', 'pw', NULL),
@@ -2671,7 +2671,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (27, 259, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - Der Werbepartner.cc
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (22, 145, 'extra', 'art', 'Textlinkklick'),
 (22, 145, 'id', 'uid', NULL),
 (22, 145, 'password', 'pw', NULL),
@@ -2751,7 +2751,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (22, 155, 'sid', 'sid', NULL)");
 
                // Request parameters per type handler - Yoo!Media
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES
 (23, 156, 'erotic', 'erotik', NULL),
 (23, 156, 'id', 'id', NULL),
 (23, 156, 'password', 'pw', NULL),
@@ -2838,7 +2838,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (23, 166, 'sid', 'sid', NULL)");
 
                // API array elements - A3H
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (1, 1, 7, 1),
 (1, 1, 2, 2),
 (1, 1, 3, 3),
@@ -2915,7 +2915,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (1, 10, 25, 10)");
 
                // API array elements - AbisZED-Netz
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (2, 187, 7, 1),
 (2, 187, 2, 2),
 (2, 187, 3, 3),
@@ -3029,7 +3029,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
                // API array elements - ADCocktail
 
                // API array elements - AdConvention
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (30, 292, 1, 1),
 (30, 292, 2, 2),
 (30, 292, 4, 3),
@@ -3088,7 +3088,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (30, 301, 9, 7)");
 
                // API array elements - AdPaid
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (5, 177, 7, 1),
 (5, 177, 2, 2),
 (5, 177, 3, 3),
@@ -3147,7 +3147,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (5, 185, 9, 9)");
 
                // API array elements - Ads4.de
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (6, 14, 7, 1),
 (6, 14, 2, 2),
 (6, 14, 6, 3),
@@ -3174,7 +3174,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (6, 119, 10, 6)");
 
                // API array elements - Ads4Webbis
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (7, 17, 1, 1),
 (7, 17, 2, 2),
 (7, 17, 4, 3),
@@ -3257,7 +3257,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (7, 120, 27, 8)");
 
                // API array elements - Ads4World
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (8, 26, 1, 1),
 (8, 26, 2, 2),
 (8, 26, 4, 3),
@@ -3315,7 +3315,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
                // API array elements - Affiliblatt
 
                // API array elements - AllAds4You
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (10, 167, 1, 1),
 (10, 167, 2, 2),
 (10, 167, 4, 3),
@@ -3371,7 +3371,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (10, 176, 9, 7)");
 
                // API array elements - Alster-Marketing
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (11, 35, 7, 1),
 (11, 35, 2, 2),
 (11, 35, 3, 3),
@@ -3481,7 +3481,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (11, 49, 6, 5)");
 
                // API array elements - BonusSponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (12, 50, 7, 1),
 (12, 50, 2, 2),
 (12, 50, 3, 3),
@@ -3539,7 +3539,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (12, 62, 9, 19)");
 
                // API array elements - City-Ads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (24, 212, 1, 1),
 (24, 212, 2, 2),
 (24, 212, 4, 3),
@@ -3622,7 +3622,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (24, 221, 27, 8)");
 
                // API array elements - doubleads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (26, 232, 1, 1),
 (26, 232, 2, 2),
 (26, 232, 3, 3),
@@ -3732,7 +3732,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (26, 246, 25, 10)");
 
                // API array elements - FuCoExSponsor.net
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (29, 273, 7, 1),
 (29, 273, 2, 2),
 (29, 273, 5, 3),
@@ -3833,7 +3833,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (29, 289, 10, 6)");
 
                // API array elements - Fusion-Ads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (13, 290, 1, 1),
 (13, 290, 2, 2),
 (13, 290, 6, 3),
@@ -3852,7 +3852,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (13, 291, 10, 8)");
 
                // API array elements - GigaPromo
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (14, 102, 7, 1),
 (14, 102, 2, 2),
 (14, 102, 4, 3),
@@ -3902,7 +3902,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (14, 122, 6, 5)");
 
                // API array elements - Gold-Sponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (25, 222, 1, 1),
 (25, 222, 2, 2),
 (25, 222, 4, 3),
@@ -3958,7 +3958,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (25, 231, 9, 7)");
 
                // API array elements - homeADS
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (28, 260, 1, 1),
 (28, 260, 2, 2),
 (28, 260, 3, 3),
@@ -4054,7 +4054,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (28, 272, 5, 10)");
 
                // API array elements - HPSponsor
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (15, 135, 1, 1),
 (15, 135, 2, 2),
 (15, 135, 4, 3),
@@ -4137,7 +4137,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (15, 144, 27, 8)");
 
                // API array elements - Make-Euros.de
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (16, 63, 7, 1),
 (16, 63, 2, 2),
 (16, 63, 3, 3),
@@ -4235,7 +4235,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (16, 76, 9, 9)");
 
                // API array elements - Mega-Ad
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (17, 109, 1, 1),
 (17, 109, 2, 2),
 (17, 109, 4, 3),
@@ -4291,7 +4291,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (17, 123, 6, 5)");
 
                // API array elements - Power-Promo
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (18, 78, 7, 1),
 (18, 78, 2, 2),
 (18, 78, 3, 3),
@@ -4401,7 +4401,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (18, 92, 25, 10)");
 
                // API array elements - SeCash
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (19, 93, 1, 1),
 (19, 93, 2, 2),
 (19, 93, 4, 3),
@@ -4457,7 +4457,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (19, 124, 6, 5)");
 
                // API array elements - The Swizerland Ad Network
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (20, 200, 6, 5),
 (20, 202, 1, 1),
 (20, 202, 2, 2),
@@ -4540,7 +4540,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (20, 211, 27, 8)");
 
                // API array elements - UltraPOMO
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (21, 125, 1, 1),
 (21, 125, 2, 2),
 (21, 125, 4, 3),
@@ -4596,7 +4596,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (21, 134, 6, 5)");
 
                // API array elements - VIPads
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (27, 247, 7, 1),
 (27, 247, 2, 2),
 (27, 247, 5, 3),
@@ -4674,7 +4674,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (27, 259, 10, 6)");
 
                // API array elements - Der Werbepartner.cc
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (22, 145, 1, 1),
 (22, 145, 2, 2),
 (22, 145, 6, 3),
@@ -4754,7 +4754,7 @@ UNIQUE `provider_type` (`network_id`, `network_type_id`)",
 (22, 155, 10, 7)");
 
                // API array elements - Yoo!Media
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES
 (23, 156, 1, 1),
 (23, 156, 2, 2),
 (23, 156, 3, 3),
index a6211df68302821dc0f1f4157478d44e827269e2..b2b84b52e1fbb375682d721afa48f24f5150eae9 100644 (file)
@@ -179,7 +179,7 @@ INDEX `newsletter_id` (`nl_id`)",
 `nl_order_placed` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 `nl_order_accepted` ENUM('Y','N') NOT NULL DEFAULT 'N',
 PRIMARY KEY (`nl_order_id`),
-UNIQUE `sponsor_nl_topic` (`nl_sponsor_id`, `nl_id`, `nl_topic_id`),
+UNIQUE `sponsor_nl_topic` (`nl_sponsor_id`,`nl_id`,`nl_topic_id`),
 INDEX `topic` (`nl_topic_id`)",
                                        'Newsletter orders');
 
index c1494a11a8423a7dda2b39b730782b4a07bcff7d..068e6ed419c856dd9e9f3ccbb140cd2714334571 100644 (file)
@@ -65,7 +65,7 @@ switch (getExtensionMode()) {
 PRIMARY KEY (`id`),
 INDEX (`userid`),
 INDEX (`refid`),
-INDEX `admin_member` (`is_admin`, `is_member`)",
+INDEX `admin_member` (`is_admin`,`is_member`)",
                        'Who-is-where data');
                addAdminMenuSql('misc','usr_online','Online-Statistik','Eine Liste von derzeit &quot;Online&quot; Usern. Doppelte Eintr&auml;ge k&ouml;nnte auf mangelnden Cookie-Support des Browsers oder auf einen Spider hindeuten.', 1);
                break;
index 54842a0d8d10bd9d83e961d4c97bad8408972185..87d4aea7be94c4d4df287732069b58bdabb54808 100644 (file)
@@ -319,7 +319,7 @@ Zudem sollten Sie mindestens folgende Templates (in <strong>templates/".getLangu
                                break;
 
                        case '0.3.6': // SQL queries for v0.3.6
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('rallye_winner','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('rallye_winner','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
@@ -346,14 +346,14 @@ Zudem sollten Sie mindestens folgende Templates (in <strong>templates/".getLangu
                        // Add more data on higher versions
                        $ADD1 = ''; $ADD2 = ''; $OR = '';
                        if (isExtensionInstalledAndNewer('rallye', '0.2.0')) {
-                               $ADD1 = ", `min_users`, `min_prices`";
+                               $ADD1 = ", `min_users`,`min_prices`";
                                $ADD2 = ", d.`min_users`, d.`min_prices`";
                                $OR   = " OR (d.`min_users` <= " . $total . " AND d.`min_users` > 0)";
                        } // END  - if
 
                        // Check for new started but not notified rallyes
                        $result = SQL_QUERY("SELECT SQL_SMALL_RESULT
-       `id`, `title`, `start_time`, `end_time`, `send_notify`" . $ADD1 . "
+       `id`,`title`,`start_time`,`end_time`,`send_notify`" . $ADD1 . "
 FROM
        `{?_MYSQL_PREFIX?}_rallye_data`
 WHERE
index 8a46e266b7bec202c6a3664a40e46cbcd9e93774..4797cf27218f3d9f8f7d5ed7ecf44b2ff1a7c49b 100644 (file)
@@ -90,7 +90,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.0.3': // SQL queries for v0.0.3
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('refback','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('refback','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
index 5dbc85aaa25d26d580c41aab94ed3f756831d4e5..6a42dd815700fc2c00beec84838c5b72261c55ef 100644 (file)
@@ -84,12 +84,12 @@ PRIMARY KEY (`id`)",
                                        'Data which fields the user must fill out');
 
                                // Add all entries as required (DO NOT DELETE THEM FROM DATABASE!)
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('surname','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('family','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('street_nr','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('cntry','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('zip','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('city','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('surname','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('family','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('street_nr','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('cntry','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('zip','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('city','Y')");
 
                                // Add admin menu
                                addAdminMenuSql('setup','config_register','Pflichtfelder','Stellen Sie hier die Pflichtfelder sowohl im Anmeldeformular, als auch im Mitgliedsbereich unter <strong>Profildaten &auml;ndern</strong> ein.', 12);
@@ -321,10 +321,10 @@ PRIMARY KEY (`id`)",
                                registerFilter('register_must_fillout', 'REGISTER_MUST_FILLOUT', false, true, isExtensionDryRun());
 
                                // Run these SQLs
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('gender','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('email','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('birthday','Y')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('marker','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('gender','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('email','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('birthday','Y')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`,`field_required`) VALUES ('marker','Y')");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Filter <strong>register_must_fillout</strong> hinzugef&uuml;gt, weitere Felder in <em>{?_MYSQL_PREFIX?}_must_register</em> eingef&uuml;gt.");
@@ -345,7 +345,7 @@ PRIMARY KEY (`id`)",
                                break;
 
                        case '0.5.6': // SQL queries for v0.5.6
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('register_welcome','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('register_welcome','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
index 9508e428af74cbfd860685ee6e8b857ec855b365..f10ab2ca23541d0a7b24e2af473aa0be4eebeda6 100644 (file)
@@ -155,7 +155,7 @@ INDEX (`ext_name`)",
 `active` ENUM('Y','N') NOT NULL DEFAULT 'N',
 `sort` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE `action_what` (`action`, `what`),
+UNIQUE `action_what` (`action`,`what`),
 UNIQUE (`what`),
 INDEX (`action`)",
                        'Sponsor menu');
@@ -267,46 +267,46 @@ INDEX (`sponsor_id`)",
                //
                // Default allowed data to display
                //
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('id','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('company','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('position','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('tax_ident','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('gender','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('surname','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('family','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('street_nr1','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('street_nr2','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('zip','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('city','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('country','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('phone','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('fax','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('email','Y')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('url','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('password','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('remote_addr','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('sponsor_created','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_online','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_change','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('status','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('receive_warnings','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('warning_interval','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('points_amount','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('points_used','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('refid','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('ref_count','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('hash','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_payment','N')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_currency','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('id','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('company','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('position','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('tax_ident','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('gender','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('surname','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('family','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('street_nr1','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('street_nr2','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('zip','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('city','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('country','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('phone','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('fax','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('email','Y')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('url','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('password','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('remote_addr','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('sponsor_created','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('last_online','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('last_change','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('status','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('receive_warnings','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('warning_interval','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('points_amount','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('points_used','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('refid','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('ref_count','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('hash','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('last_payment','N')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`,`display`) VALUES ('last_currency','N')");
                //
                // Add default entries
                //
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`, `is_active`, `admin_id`, `stamp_added`) VALUES ('sponsor','N',".getCurrentAdminId().",NOW())");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_action_convert` (`ext_name`, `conv_rate`, `conv_name`) VALUES ('sponsor','10','Mails')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`, `pay_min_count`, `pay_rate`, `pay_currency`) VALUES ('Standard-Paket', 5, 1000.00000, '&euro;')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`, `pay_min_count`, `pay_rate`, `pay_currency`) VALUES ('Spar-Paket', 1, 200.00000, '&euro;')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`, `pay_min_count`, `pay_rate`, `pay_currency`) VALUES ('Power-Paket', 10, 2000.00000, '&euro;')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`, `pay_min_count`, `pay_rate`, `pay_currency`) VALUES ('Sponsor-Paket', 20, 4000.00000, '&euro;')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`,`is_active`,`admin_id`,`stamp_added`) VALUES ('sponsor','N',".getCurrentAdminId().",NOW())");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_action_convert` (`ext_name`,`conv_rate`,`conv_name`) VALUES ('sponsor','10','Mails')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Standard-Paket', 5, 1000.00000, '&euro;')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Spar-Paket', 1, 200.00000, '&euro;')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Power-Paket', 10, 2000.00000, '&euro;')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Sponsor-Paket', 20, 4000.00000, '&euro;')");
                //
                // Admin menu
                //
@@ -402,6 +402,7 @@ INDEX (`sponsor_id`)",
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='sponsor' OR `what` IN('repr_sponsor','sponsor_medit','sponsor_madd')");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `action`='sponsor'");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what` IN('sponsor_list','sponsor_reg')");
+               addExtensionSql("DELETE LOW_PRIRITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module` IN ('sponsor','sponsor_confirm','sponsor_ref') LIMIT 3");
                break;
 
        case 'activate': // Do stuff when admin activates this extension
index 756e873e5b1c1c5fdaa15cf7f43c8447dd705b61..9cc919db5d03ef2d2a1458f5eb082c27f5197ec4 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.8.2');
+setThisExtensionVersion('0.8.3');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
@@ -552,7 +552,7 @@ INDEX (`admin_id`)",
                        case '0.5.0': // SQL queries for v0.5.0
                                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` DROP INDEX `level`');
                                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` DROP INDEX `userid`');
-                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE `userid_level` (`userid`, `level`)');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE `userid_level` (`userid`,`level`)');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Referal-System unterst&uuml;tzt nun detailierte Referal-&Uuml;bersicht und vieles mehr.");
@@ -834,13 +834,20 @@ INDEX (`subject`)",
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_points_data` CHANGE `payment_method` `payment_method` ENUM('DIRECT','REFERAL') NOT NULL DEFAULT 'REFERAL'");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_points_data` ADD INDEX `subject` (`subject`)");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_points_data` ADD `notify_recipient` ENUM('Y','N') NOT NULL DEFAULT 'N'");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('pool_payback','points','LOCKED','DIRECT')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('mail_deleted','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('pool_payback','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('mail_deleted','points','LOCKED','DIRECT')");
                                addConfigDropSql('reg_points_mode');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Es sollte der Gutschriftenbetreff und nicht der Erweiterungsname gepeichert werden, zudem brauchen wir einen Konfigurationseintrag nicht mehr.");
                                break;
+
+                       case '0.8.3': // SQL queries for v0.8.3
+                               addConfigAddSql('display_home_in_index', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Es kann nun die &quot;Home&quot;-Seite in <strong>index.php</strong> angezeigt werden, anstelle der Weiterleitung.");
+                               break;
                } // END - switch
                break;
 
index 199fcef0cd05f4b6750bda4f9851c11c9623a178..1a40e0ea4e08015f923bbfde7f170f0c0f8c241f 100644 (file)
@@ -6,9 +6,9 @@
  * -------------------------------------------------------------------- *
  * File              : ext-surfbar.php                                  *
  * -------------------------------------------------------------------- *
- * Short description : A surfbar for your members                       *
+ * Short description : A visitor add-on for your members                *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Eine Surfbar fuer Ihre Mitglieder                *
+ * Kurzbeschreibung  : Ein Besuchertausch fuer Ihre Mitglieder          *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
@@ -68,9 +68,9 @@ switch (getExtensionMode()) {
 `url_reject_reason` VARCHAR(255) NOT NULL DEFAULT '',
 `url_fixed_reload` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`url_id`),
-UNIQUE `userid_url` (`url_userid`, `url`),
-INDEX `status_userid` (`url_status`, `url_userid`)",
-                       'Surfbar URLs');
+UNIQUE `userid_url` (`url_userid`,`url`),
+INDEX `status_userid` (`url_status`,`url_userid`)",
+                       'Visitor add-on URLs');
 
                // Reload locks
                addDropTableSql('surfbar_locks');
@@ -80,11 +80,11 @@ INDEX `status_userid` (`url_status`, `url_userid`)",
 `locks_url_id` BIGINT(20) UNSIGNED  NOT NULL DEFAULT 0,
 `locks_last_surfed` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY (`locks_id`),
-UNIQUE `userid_url` (`locks_userid`, `locks_url_id`),
+UNIQUE `userid_url` (`locks_userid`,`locks_url_id`),
 INDEX (`locks_url_id`)",
-                       'Surfbar reload locks');
+                       'Vistor-addon reload locks');
 
-               // Surfbar salts
+               // Visitor add-on salts
                addDropTableSql('surfbar_salts');
                addCreateTableSql('surfbar_salts', "
 `salts_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -92,9 +92,9 @@ INDEX (`locks_url_id`)",
 `salts_url_id` BIGINT(20) UNSIGNED  NOT NULL DEFAULT 0,
 `salts_last_salt` VARCHAR(255) NOT NULL DEFAULT '',
 PRIMARY KEY (`salts_id`),
-UNIQUE `salts_userid_url` (`salts_userid`, `salts_url_id`),
+UNIQUE `salts_userid_url` (`salts_userid`,`salts_url_id`),
 INDEX (`salts_url_id`)",
-                       'Surfbar last used salts');
+                       'Visitor add-on last used salts');
 
                // Statistics
                addDropTableSql('surfbar_stats');
@@ -105,9 +105,9 @@ INDEX (`salts_url_id`)",
 `stats_count` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `stats_last_surfed` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY (`stats_id`),
-UNIQUE `userid_url` (`stats_userid`, `stats_url_id`),
+UNIQUE `userid_url` (`stats_userid`,`stats_url_id`),
 INDEX (`stats_url_id`)",
-                       'Surfbar Statistics');
+                       'Visitor add-on Statistics');
 
                // Member actions pending on status
                addDropTableSql('surfbar_actions');
@@ -117,33 +117,33 @@ INDEX (`stats_url_id`)",
 `actions_action` ENUM('EDIT','DELETE','PAUSE','UNPAUSE','FRAMETEST','RETREAT','RESUBMIT','BOOKNOW') NULL DEFAULT NULL,
 `actions_new_status` ENUM('PENDING','ACTIVE','LOCKED','STOPPED','REJECTED','DELETED','MIGRATED','DEPLETED') NULL DEFAULT NULL,
 PRIMARY KEY (`actions_id`),
-UNIQUE `status_action` (`actions_status`, `actions_action`)",
-                       'Surfbar Member Actions');
+UNIQUE `status_action` (`actions_status`,`actions_action`)",
+                       'Visitor add-on Member Actions');
 
                // Member actions
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('PENDING','RETREAT','DELETED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('PENDING','FRAMETEST',NULL)");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('PENDING','EDIT',NULL)");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('ACTIVE','EDIT','PENDING')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('ACTIVE','DELETE','DELETED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('ACTIVE','PAUSE','STOPPED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('ACTIVE','FRAMETEST',NULL)");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('LOCKED','DELETE','DELETED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('LOCKED','FRAMETEST',NULL)");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('LOCKED','RESUBMIT','PENDING')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('STOPPED','EDIT','PENDING')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('STOPPED','DELETE','DELETED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('STOPPED','UNPAUSE','PENDING')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('DEPLETED','EDIT','PENDING')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('DEPLETED','DELETE','DELETED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('REJECTED','EDIT','PENDING')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('REJECTED','DELETE','DELETED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('REJECTED','FRAMETEST',NULL)");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('REJECTED','RESUBMIT','PENDING')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('MIGRATED','EDIT','MIGRATED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('MIGRATED','DELETE','DELETED')");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('MIGRATED','FRAMETEST',NULL)");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`, `actions_action`, `actions_new_status`) VALUES ('MIGRATED','BOOKNOW','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('PENDING','RETREAT','DELETED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('PENDING','FRAMETEST',NULL)");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('PENDING','EDIT',NULL)");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('ACTIVE','EDIT','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('ACTIVE','DELETE','DELETED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('ACTIVE','PAUSE','STOPPED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('ACTIVE','FRAMETEST',NULL)");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('LOCKED','DELETE','DELETED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('LOCKED','FRAMETEST',NULL)");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('LOCKED','RESUBMIT','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('STOPPED','EDIT','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('STOPPED','DELETE','DELETED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('STOPPED','UNPAUSE','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('DEPLETED','EDIT','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('DEPLETED','DELETE','DELETED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('REJECTED','EDIT','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('REJECTED','DELETE','DELETED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('REJECTED','FRAMETEST',NULL)");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('REJECTED','RESUBMIT','PENDING')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('MIGRATED','EDIT','MIGRATED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('MIGRATED','DELETE','DELETED')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('MIGRATED','FRAMETEST',NULL)");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_actions` (`actions_status`,`actions_action`,`actions_new_status`) VALUES ('MIGRATED','BOOKNOW','PENDING')");
 
                // Config entries
                addConfigAddSql('surfbar_payment_model', "ENUM('STATIC','DYNAMIC') NOT NULL DEFAULT 'STATIC'");
@@ -178,18 +178,18 @@ UNIQUE `status_action` (`actions_status`, `actions_action`)",
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `surfbar_low_notified` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'");
 
                // Member menus
-               addMemberMenuSql('surfbar', NULL, 'Surfbar', 4);
-               addMemberMenuSql('surfbar', 'start_surfbar', 'Surfbar starten', 1);
+               addMemberMenuSql('surfbar', NULL, 'Besuchertausch', 4);
+               addMemberMenuSql('surfbar', 'start_surfbar', 'Besuchertausch starten', 1);
                addMemberMenuSql('surfbar', 'book_surfbar', 'Seite buchen', 2);
                addMemberMenuSql('surfbar', 'list_surfbar', 'Seiten-Management', 3);
                addMemberMenuSql('surfbar', 'stats_surfbar', 'Seiten-Statistik', 4);
 
                // Admin menus
-               addAdminMenuSql('surfbar', NULL, 'Surfbar', 'URLs in der Surfbar verwalten, Einstellungen &auml;ndern und vieles mehr.', 7);
-               addAdminMenuSql('surfbar', 'add_surfbar_url', 'URL hinzuf&uuml;gen', 'F&uuml;gen Sie URLs z.B. von Werbenetzwerken hinzu, oder Ihre eigenen Projekte. <strong>Vorsicht!</strong> Ihnen muss es auch gestattet sein, URLs aus dem Werbenetzwerk in die Surfbar einzuf&uuml;gen.', 1);
-               addAdminMenuSql('surfbar', 'list_surfbar_urls', 'URLs verwalten', 'Verwalten Sie hier alle in der Surfbar befindlichen URLs mit nur wenigen Klicks.', 2);
-               addAdminMenuSql('surfbar', 'unlock_surfbar_urls', 'Wartende URLs freigeben', 'Geben Sie hier nur direkt in der Surfbar gebuchte URLs frei.', 3);
-               addAdminMenuSql('surfbar', 'config_surfbar', 'Einstellungen', 'Einstellungen an der Surfbar &auml;ndern, wie Festverg&uuml;tung, prozentuale Ref-Verg&uuml;tung und vieles mehr.', 4);
+               addAdminMenuSql('surfbar', NULL, 'Besuchertausch', 'URLs im Besuchertausch verwalten, Einstellungen &auml;ndern und vieles mehr.', 7);
+               addAdminMenuSql('surfbar', 'add_surfbar_url', 'URL hinzuf&uuml;gen', 'F&uuml;gen Sie URLs z.B. von Werbenetzwerken hinzu, oder Ihre eigenen Projekte. <strong>Vorsicht!</strong> Ihnen muss es auch gestattet sein, URLs aus dem Werbenetzwerk im Besuchertausch einzuf&uuml;gen.', 1);
+               addAdminMenuSql('surfbar', 'list_surfbar_urls', 'URLs verwalten', 'Verwalten Sie hier alle im Besuchertausch befindlichen URLs mit nur wenigen Klicks.', 2);
+               addAdminMenuSql('surfbar', 'unlock_surfbar_urls', 'Wartende URLs freigeben', 'Geben Sie hier f&uuml;r den Besuchertausch gebuchte URLs frei.', 3);
+               addAdminMenuSql('surfbar', 'config_surfbar', 'Einstellungen', 'Einstellungen am Besuchertausch &auml;ndern, wie Festverg&uuml;tung, prozentuale Ref-Verg&uuml;tung und vieles mehr.', 4);
                addAdminMenuSql('surfbar', 'surfbar_stats', 'Statistiken', 'Detailierte Statistiken zu einer ausgew&auml;hlten URL anzeigen.', 5);
                addAdminMenuSql('surfbar', 'list_surfbar_actions', 'Mitgliederaktionen', 'Listet alle Mitgliederaktionen auf.', 6);
 
@@ -197,7 +197,7 @@ UNIQUE `status_action` (`actions_status`, `actions_action`)",
                addModuleSql('surfbar', 'Y', 'Y', 'N', 'N');
 
                // Insert data for points accounts
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('monthly_bonus','points','LOCKED','DIRECT')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('monthly_bonus','points','LOCKED','DIRECT')");
 
                // This extension depends on ext-sql_patches
                addExtensionDependency('sql_patches');
diff --git a/inc/extensions/ext-teams.php b/inc/extensions/ext-teams.php
new file mode 100644 (file)
index 0000000..d7c9a89
--- /dev/null
@@ -0,0 +1,101 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 07/22/2011 *
+ * ===================                          Last change: 07/22/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : ext-teams.php                                    *
+ * -------------------------------------------------------------------- *
+ * Short description : Do things in teams and get more of it            *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  :                                                  *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
+
+// Version number
+setThisExtensionVersion('0.0.0');
+
+// Version history array (add more with , '0.0.1' and so on)
+setExtensionVersionHistory(array('0.0.0'));
+
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
+switch (getExtensionMode()) {
+       case 'register': // Do stuff when installation is running
+               // SQL commands to run
+
+               // Register module
+               //addModuleSql('foo','Y','Y','N','N');
+               break;
+
+       case 'remove': // Do stuff when removing extension
+               // SQL commands to run
+               //addExtensionSql("DELETE LOW_PRIRITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='foo' LIMIT 1");
+               break;
+
+       case 'activate': // Do stuff when admin activates this extension
+               // SQL commands to run
+               //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='foo' LIMIT 1");
+               break;
+
+       case 'deactivate': // Do stuff when admin deactivates this extension
+               // SQL commands to run
+               //addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='foo' LIMIT 1");
+               break;
+
+       case 'update': // Update an extension
+               switch (getCurrentExtensionVersion()) {
+                       case '0.0.1': // SQL queries for v0.0.1
+                               addExtensionSql('');
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes('');
+                               break;
+               } // END - switch
+               break;
+
+       case 'modify': // When the extension got modified
+               break;
+
+       case 'test': // For testing purposes
+               break;
+
+       case 'init': // Do stuff when extension is initialized
+               break;
+
+       default: // Unknown extension mode
+               logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
+               break;
+} // END - switch
+
+// [EOF]
+?>
index 875901f0b6e8cadf031da698467f3aa7ce142d2c..b395c513bf0eef491df09202658c5d11f4262133 100644 (file)
@@ -227,9 +227,9 @@ INDEX (`to_userid`)",
                                break;
 
                        case '0.2.3': // SQL queries for v0.2.3
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'list_transfer')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_transfer')");
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_transfer')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`,`la_action`,`la_what`) VALUES ('member', '', 'list_transfer')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`,`la_action`,`la_what`) VALUES ('member', '', 'del_transfer')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`,`la_action`,`la_what`) VALUES ('config', '', 'config_transfer')");
 
                                // Depends on ext-sql_patches (or you have to execute these both SQL statements by phpMyAdmin
                                addExtensionDependency('sql_patches');
@@ -271,7 +271,7 @@ INDEX (`to_userid`)",
                                break;
 
                        case '0.3.0': // SQL queries for v0.3.0
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('transfer','points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('transfer','points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
index 02fb15ab4f39fb13755ff3b27b0057842716f99f..e6e06e413d9fccb9ec940eb263c330c392f8d7b3 100644 (file)
@@ -99,7 +99,7 @@ INDEX (`cat_id`)",
 PRIMARY KEY (`userid`),
 UNIQUE (`user_hash`),
 INDEX (`refid`),
-INDEX `status_mails` (`status`, `max_mails`)",
+INDEX `status_mails` (`status`,`max_mails`)",
                        'Main user data');
 
                addDropTableSql('user_points');
@@ -372,7 +372,7 @@ INDEX (`userid`)",
 
                        case '0.3.6': // SQL queries for v0.3.6
                                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` DROP INDEX `userid`');
-                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` ADD UNIQUE `userid_catid` ( `userid` , `cat_id` )');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` ADD UNIQUE `userid_catid` (`userid` , `cat_id`)');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Der Sperrgrund wird nun mit abgespeichert und beim L&ouml;schen des Users mit ausgesendet.");
@@ -464,7 +464,7 @@ INDEX (`userid`)",
 `level` smallINT(6) UNSIGNED NOT NULL DEFAULT 0,
 `refid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE `user_refid` (`userid`, `level`, `refid`),
+UNIQUE `user_refid` (`userid`,`level`,`refid`),
 INDEX (`level`),
 INDEX (`refid`)",
                                        'User referals');
index c0cde98b9a4751ba1cf03842f7895b7dd342a0c8..96605d0c808ffbbe4c8db9b1966ef8c3cdf6f3e7 100644 (file)
@@ -136,7 +136,7 @@ INDEX (`userid`)",
                                break;
 
                        case '0.0.4': // SQL queries for v0.0.4
-                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('wernis_withdraw','order_points','LOCKED','DIRECT')");
+                               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`) VALUES ('wernis_withdraw','order_points','LOCKED','DIRECT')");
 
                                // This depends on ext-sql_patches
                                addExtensionDependency('sql_patches');
index ce13dffc940fd757e20d81be1d9736375bd8c0cb..1a2edd785ff53ba1c52d9835a26cae1d3240d538 100644 (file)
@@ -59,6 +59,7 @@ switch (getExtensionMode()) {
 
        case 'remove': // Do stuff when removing extension
                // SQL commands to run
+               //addExtensionSql("DELETE LOW_PRIRITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='foo' LIMIT 1");
                break;
 
        case 'activate': // Do stuff when admin activates this extension
index a1ae4ba2e25636a1f9b09f0b2a4c8bafdbed1e6b..7e52a3bb008f94115f4ce0342f49f4c0d50deb2b 100644 (file)
@@ -80,7 +80,7 @@ switch (getExtensionMode()) {
 `y_reload` SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0,
 `inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY (`id`),
-UNIQUE `y_type` (`type`, `y_id`)",
+UNIQUE `y_type` (`type`,`y_id`)",
                        'Reload lock reminder for Yoo!Media campaigns');
                break;
 
index be4d7d1fd556c3e75819bf1cd732bfe3a39d6a3f..bbcdb3711e000449ef81e76274ad601518ed8e1b 100644 (file)
@@ -64,7 +64,7 @@ function initFilterSystem () {
 
                // Load all filters
                $result = SQL_QUERY('SELECT
-       `filter_name`, `filter_function`, `filter_active`' . $add . '
+       `filter_name`,`filter_function`,`filter_active`' . $add . '
 FROM
        `{?_MYSQL_PREFIX?}_filters`
 ORDER BY
@@ -126,6 +126,7 @@ ORDER BY
 
        // 'You are here' navigation - post filter
        registerFilter('post_youhere_line', 'CALL_HANDLER_LOGIN_FAILTURES');
+       registerFilter('post_youhere_line', 'HANDLE_HOME_IN_INDEX_SETTING');
 
        // Filters for pre-extension-registration
        registerFilter('pre_extension_installed', 'RUN_SQLS');
@@ -259,7 +260,7 @@ function unregisterFilter ($F, $L, $filterName, $filterFunction, $force = false,
 }
 
 // "Runs" the given filters, filterData is optional and can be any type of data
-function runFilterChain ($filterName, $filterData = null) {
+function runFilterChain ($filterName, $filterData = NULL) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'filterName=' . $filterName . ',filterData[]=' . gettype($filterData) . ' - ENTERED!');
 
        // Is that filter chain there?
index d38acb9af7c467d8c16345e2b8f2eae52ea15b14..2a46f82d613ef5f484c8084a533ecdab553f67c1 100644 (file)
@@ -47,7 +47,7 @@ function FILTER_ADD_EXTRA_SQL_DATA ($add = '') {
        if (isExtensionInstalledAndNewer('admins', '0.3.0')) $add .= ', `default_acl` AS def_acl';
        if (isExtensionInstalledAndNewer('admins', '0.6.7')) $add .= ', `la_mode`';
        if (isExtensionInstalledAndNewer('admins', '0.7.2')) $add .= ', `login_failures`, UNIX_TIMESTAMP(`last_failure`) AS last_failure';
-       if (isExtensionInstalledAndNewer('admins', '0.7.3')) $add .= ', `expert_settings`, `expert_warning`';
+       if (isExtensionInstalledAndNewer('admins', '0.7.3')) $add .= ', `expert_settings`,`expert_warning`';
 
        // Return it
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
@@ -64,7 +64,7 @@ function FILTER_RESET_ADMINS_LOGIN_FAILURES ($filterData) {
        // Prepare update data
        $postData['login'][getCurrentAdminId()]          = $filterData['login'];
        $postData['login_failures'][getCurrentAdminId()] = '0';
-       $postData['last_failure'][getCurrentAdminId()]   = null;
+       $postData['last_failure'][getCurrentAdminId()]   = NULL;
 
        // Change it in the admin
        adminsChangeAdminAccount($postData);
index 33c129033884fbc0bee24ff58572e4fa366332a0..4520937f457d1eb3ad487c6a8c770b77014727f3 100644 (file)
@@ -51,7 +51,7 @@ function FILTER_ADD_LOGIN_BONUS ($filterData) {
 
        // Bonus is not given by default ;-)
        $bonus = false;
-       if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (getConfig('bonus_login_yn') == 'Y')) {
+       if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (getConfig('include_bonus_login') == 'Y')) {
                // Update last login if far enougth away
                // @TODO This query isn't right, it will only update if the user was for a longer time away!
                SQL_QUERY_ESC('UPDATE
@@ -98,5 +98,24 @@ function FILTER_GENERATE_BONUS_MAIL_LINKS ($filterData) {
        return $filterData;
 }
 
+// Filter for adding bonus columns with a plus (+) sign
+function FILTER_ADD_BONUS_POINTS_USER_COLUMNS ($add = '') {
+       // Skip out-dated extension, because this causes an error
+       if (isExtensionInstalledAndOlder('bonus', '0.9.7')) {
+               // Skip this silently
+               return $add;
+       } // END - if
+
+       // Add more columns only when the corresponding configuration is enabled, too
+       if (getConfig('include_bonus_click') == 'Y') $add .= ' + `turbo_bonus`';
+       if (getConfig('include_bonus_login') == 'Y') $add .= ' + `login_bonus`';
+       if (getConfig('include_bonus_order') == 'Y') $add .= ' + `bonus_order`';
+       if (getConfig('include_bonus_stats') == 'Y') $add .= ' + `bonus_stats`';
+       if (getConfig('include_bonus_ref')   == 'Y') $add .= ' + `bonus_ref`';
+
+       // Return $add
+       return $add;
+}
+
 // [EOF]
 ?>
diff --git a/inc/filter/forced_filter.php b/inc/filter/forced_filter.php
new file mode 100644 (file)
index 0000000..4076911
--- /dev/null
@@ -0,0 +1,65 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 07/27/2011 *
+ * ===================                          Last change: 07/27/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : forced_filter.php                                *
+ * -------------------------------------------------------------------- *
+ * Short description : Filters for ext-forced                           *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Filter fuer ext-forced                           *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
+
+// Filter to add default forced-ad types
+function FILTER_FORCED_AD_TYPE_DEFAULTS ($data) {
+       // Forced-Banner
+       $data[] = array(
+               'type'   => 'BANNER',
+       );
+
+       // Forced-Textlinks
+       $data[] = array(
+               'type'   => 'TEXTLINK',
+       );
+
+       // Forced-Popups
+       $data[] = array(
+               'type'   => 'POPUP',
+       );
+
+       // Return data
+       return $data;
+}
+
+// [EOF]
+?>
index 9c4855ab1890ee9ea1b462395262bac375004287..710e76d92137df2b57a122d9fa5e7873d19212ec 100644 (file)
@@ -102,7 +102,7 @@ LIMIT 1",
                ), __FUNCTION__, __LINE__);
        } else {
                // No entry does exists so we simply add it!
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_online` (`module`, `action`, `what`, `userid`, `refid`, `is_member`, `is_admin`, `timestamp`, `sid`, `ip`) VALUES ('%s','%s','%s', %s, %s, '%s','%s', UNIX_TIMESTAMP(), '%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_online` (`module`,`action`,`what`,`userid`,`refid`,`is_member`,`is_admin`,`timestamp`,`sid`,`ip`) VALUES ('%s','%s','%s', %s, %s, '%s','%s', UNIX_TIMESTAMP(), '%s','%s')",
                        array(
                                getModule(),
                                $action,
index 61af1b755e1e1647a003b755cba751cd4efeb2e3..7bd56bc650fd1b7d7b9442e311e38e8a6a90cc49 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 function FILTER_REGISTER_MUST_FILLOUT ($content) {
        // Get all fields for output
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
-       $result = SQL_QUERY('SELECT `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC',
+       $result = SQL_QUERY('SELECT `field_name`,`field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC',
                __FUNCTION__, __LINE__);
 
        // Walk through all entries
index 34574e46a599b1ca839a33a326f3610cc14ee2f8..2b241f52d69f48ad12796c5002bde464e67a0c87 100644 (file)
@@ -70,7 +70,7 @@ function FILTER_FLUSH_FILTERS () {
        $removed = '0';
 
        // Prepare SQL queries
-       $insertSQL = 'INSERT INTO `{?_MYSQL_PREFIX?}_filters` (`filter_name`, `filter_function`, `filter_active`) VALUES';
+       $insertSQL = 'INSERT INTO `{?_MYSQL_PREFIX?}_filters` (`filter_name`,`filter_function`,`filter_active`) VALUES';
        $removeSQL = 'DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_filters` WHERE';
 
        // Write all filters to database
@@ -487,7 +487,7 @@ function FILTER_COMPILE_EXPRESSION_CODE ($code) {
                        $callback       = '';
                        $extraFunction  = '';
                        $extraFunction2 = '';
-                       $value          = null;
+                       $value          = NULL;
 
                        // Extract command and call-back
                        $cmdArray = explode(',', $cmd);
@@ -842,9 +842,11 @@ function FILTER_INIT_RANDOM_NUMBER () {
 
 // Update module counter
 function FILTER_COUNT_MODULE () {
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'getModule()=' . getModule() . ' - ENTERED!');
        // Do count all other modules but not accesses on CSS file css.php!
        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `clicks`=`clicks`+1 WHERE `module`='%s' LIMIT 1",
                array(getModule()), __FUNCTION__, __LINE__);
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'getModule()=' . getModule() . ',SQL_AFFECTEDROWS()=' . SQL_AFFECTEDROWS() . ' - EXIT!');
 }
 
 // Handles fatal errors
@@ -861,10 +863,7 @@ function FILTER_HANDLE_FATAL_ERRORS () {
        // Load config here
        loadIncludeOnce('inc/load_config.php');
 
-       // Set unset variable
-       if (empty($check)) $check = '';
-
-       // Default is none
+       // Default content is none
        $content = '';
 
        // Installation phase or regular mode?
@@ -905,9 +904,9 @@ function FILTER_HANDLE_FATAL_ERRORS () {
        // Message to regular users (non-admin)
        $CORR = '{--FATAL_REPORT_ERRORS--}';
 
-       // PHP warnings fixed
-       if ($check == 'done') {
-               if (isAdmin()) $CORR = '{--FATAL_CORRECT_ERRORS--}';
+       // Maybe the admin wants to take a look?
+       if (isAdmin()) {
+               $CORR = '{--FATAL_CORRECT_ERRORS--}';
        } // END - if
 
        // Remember all in array
@@ -1128,5 +1127,20 @@ function FILTER_ACTIVATE_EXCHANGE () {
        } // END - if
 }
 
+// Filter to handle configuration
+function FILTER_HANDLE_HOME_IN_INDEX_SETTING ($data) {
+       // Is ext-sql_patches up-to-date?
+       if ((isExtensionInstalledAndNewer('sql_patches', '0.8.3')) && (isDisplayHomeInIndexEnabled())) {
+               // Is 'search' as same as 'index_home'?
+               if ($data['search'] == getIndexHome()) {
+                       // Then set 'content' to link to index.php
+                       $data['content'] = $data['prefix'] . '<strong><a class="you_are_here" href="{%url=index.php' . $data['link_add'] . '%}">' . getTitleFromMenu($data['access_level'], $data['search'], $data['type'], $data['add']) . '</a></strong>';
+               } // END - if
+       } // END - if
+
+       // Return data
+       return $data;
+}
+
 // [EOF]
 ?>
index 36be53b5a86ec9006ff9aaa10bcc9704db01f3a8..9209cbfaebc9ed90e1e2580b9df57f8639f31ad9 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
 
 // Get all filters
 $result = SQL_QUERY('SELECT
-       `filter_name`, `filter_function`
+       `filter_name`,`filter_function`
 FROM
        `{?_MYSQL_PREFIX?}_filters`
 ORDER BY
index 2f35edd2a175e72a86cce6f8a99ffc4a494eed0e..8c1193861403f2303f031f7fca3ddd5d9d846e78 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 // Get all menus
 foreach (array('guest','member','admin') as $menu) {
        // Query it
-       $result = SQL_QUERY_ESC("SELECT `action`, `what` FROM `{?_MYSQL_PREFIX?}_%s_menu` ORDER BY `action` ASC, `what` ASC",
+       $result = SQL_QUERY_ESC("SELECT `action`,`what` FROM `{?_MYSQL_PREFIX?}_%s_menu` ORDER BY `action` ASC, `what` ASC",
                array($menu), __FILE__, __LINE__);
 
        // Init array
index 8608d51d73f08ec42cbcff4e7618c4d74080a5bb..122d216ee4dabb32f6e489949ac51bc300b3f25b 100644 (file)
@@ -40,17 +40,17 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
-// Sanity-check: Do we have ref level 0?
-$result = SQL_QUERY('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `level`=0 OR `level` IS NULL', __FILE__, __LINE__);
+// Sanity-check: Do we have ref level 0? If so, this must be fixed to NULL and `level` must be increased by one
+$result = SQL_QUERY('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `level`=0', __FILE__, __LINE__);
 if (!SQL_HASZERONUMS($result)) {
        // Remove index temporaly
        SQL_ALTER_TABLE('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` DROP INDEX `userid_level`', __FILE__, __LINE__);
 
-       // Upgrade refsystem, ref-level 0 is silly here
+       // Upgrade refsystem
        SQL_QUERY('UPDATE `{?_MYSQL_PREFIX?}_refsystem` SET `level`=`level`+1', __FILE__, __LINE__);
 
        // Add it again
-       SQL_ALTER_TABLE('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE `userid_level` ( `userid`, `level` )', __FILE__, __LINE__);
+       SQL_ALTER_TABLE('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE `userid_level` (`userid`,`level`)', __FILE__, __LINE__);
 
        // Rebuild cache
        rebuildCache('refsystem', 'refsystem');
index 0d8dd917c26ec03b21f8b2252113f7f365fb0d0c..d17e02515be147c0b7b75ba0e2e0bfdc7f190698 100644 (file)
@@ -74,7 +74,7 @@ if (!SQL_HASZERONUMS($result)) {
                                // Nothing has been updated?
                                if (SQL_HASZEROAFFECTED()) {
                                        // Then insert it
-                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`, `ref_depth`, `%s`) VALUES (%s,NULL,%s)",
+                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`,`ref_depth`,`%s`) VALUES (%s,NULL,%s)",
                                                array(
                                                        $column,
                                                        $row['userid'],
index 610067aa8bdca0e6e91db3f1f13ae24dd360ebca..e65600e13e36994bee1d1796de5e7cea09bad849 100644 (file)
@@ -594,26 +594,26 @@ function redirectToUrl ($url, $allowSpider = true) {
  *                                                                      *
  ************************************************************************/
 function array_pk_sort (&$array, $a_sort, $primary_key = '0', $order = -1, $nums = false) {
-       $dummy = $array;
+       $temporaryArray = $array;
        while ($primary_key < count($a_sort)) {
-               foreach ($dummy[$a_sort[$primary_key]] as $key => $value) {
-                       foreach ($dummy[$a_sort[$primary_key]] as $key2 => $value2) {
+               foreach ($temporaryArray[$a_sort[$primary_key]] as $key => $value) {
+                       foreach ($temporaryArray[$a_sort[$primary_key]] as $key2 => $value2) {
                                $match = false;
                                if ($nums === false) {
                                        // Sort byte-by-byte (also numbers will be interpreted as chars! E.g.: "9" > "10")
-                                       if (($key != $key2) && (strcmp(strtolower($dummy[$a_sort[$primary_key]][$key]), strtolower($dummy[$a_sort[$primary_key]][$key2])) == $order)) $match = true;
+                                       if (($key != $key2) && (strcmp(strtolower($temporaryArray[$a_sort[$primary_key]][$key]), strtolower($temporaryArray[$a_sort[$primary_key]][$key2])) == $order)) $match = true;
                                } elseif ($key != $key2) {
                                        // Sort numbers (E.g.: 9 < 10)
-                                       if (($dummy[$a_sort[$primary_key]][$key] < $dummy[$a_sort[$primary_key]][$key2]) && ($order == -1)) $match = true;
-                                       if (($dummy[$a_sort[$primary_key]][$key] > $dummy[$a_sort[$primary_key]][$key2]) && ($order == 1))  $match = true;
+                                       if (($temporaryArray[$a_sort[$primary_key]][$key] < $temporaryArray[$a_sort[$primary_key]][$key2]) && ($order == -1)) $match = true;
+                                       if (($temporaryArray[$a_sort[$primary_key]][$key] > $temporaryArray[$a_sort[$primary_key]][$key2]) && ($order == 1))  $match = true;
                                }
 
                                if ($match) {
                                        // We have found two different values, so let's sort whole array
-                                       foreach ($dummy as $sort_key => $sort_val) {
-                                               $t                       = $dummy[$sort_key][$key];
-                                               $dummy[$sort_key][$key]  = $dummy[$sort_key][$key2];
-                                               $dummy[$sort_key][$key2] = $t;
+                                       foreach ($temporaryArray as $sort_key => $sort_val) {
+                                               $t                       = $temporaryArray[$sort_key][$key];
+                                               $temporaryArray[$sort_key][$key]  = $temporaryArray[$sort_key][$key2];
+                                               $temporaryArray[$sort_key][$key2] = $t;
                                                unset($t);
                                        } // END - foreach
                                } // END - if
@@ -625,7 +625,7 @@ function array_pk_sort (&$array, $a_sort, $primary_key = '0', $order = -1, $nums
        } // END - while
 
        // Write back sorted array
-       $array = $dummy;
+       $array = $temporaryArray;
 }
 
 
@@ -1453,6 +1453,7 @@ function handleExtraValues ($filterFunction, $value, $extraValue) {
 
                                // Call the multi-parameter call-back
                                $ret = call_user_func_array($filterFunction, $args);
+                               die('filterFunction='.$filterFunction.',args=<pre>'.print_r($args,true).',ret=<pre>'.print_r($ret,true).'</pre>');
                        } else {
                                // One parameter call
                                $ret = call_user_func($filterFunction, $value);
@@ -2251,7 +2252,7 @@ function generateAdminMailLinks ($mailType, $mailId) {
        // Is the mail type supported?
        if (!empty($table)) {
                // Query for the mail
-               $result = SQL_QUERY_ESC("SELECT `id`, `%s` AS `mail_status` FROM `{?_MYSQL_PREFIX?}_%s` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`%s` AS `mail_status` FROM `{?_MYSQL_PREFIX?}_%s` WHERE `id`=%s LIMIT 1",
                        array(
                                $statusColumn,
                                $table,
index 748598e43132c093e1aa613baa2bb68707810449..f182631dcdd5ae21e8a9dae341a65b7ff3865852 100644 (file)
@@ -118,7 +118,7 @@ addMessages(array(
        'BEG_LINK_HERE' => "Betteln Sie am Besten gleich los! Hier ist der Link dazu.",
        'ADMIN_CONFIG_BEG_RANKS' => "Anzahl Gewinner der Bettel-Rallye",
        'BEG_MONTHLY_RALLYE' => "GEWONNEN: Monatliche Bettel-Rallye",
-       'BEG_RALLYE_NO_ONE_JOINED' => "Niemand nimmt an der Bettel-Rallye dran teil, oder sie ist administrativ deaktiviert worden.",
+       'BEG_RALLYE_NO_ONE_JOINED' => "Niemand nimmt an der Bettel-Rallye dran teil, oder sie ist administrativ deaktiviert worden Fangen Sie doch an, <a href=\"{%url=modules.php?module=login&amp;what=beg%}\">betteln</a> Sie doch etwas . . .",
        'ADMIN_BEG_RALLYE_DEACTIVATED' => "Bettel-Rallye nicht aktiviert.",
        'ADMIN_CONFIG_BEG_RALLYE_NOTIFICATIONS_TITLE' => "Benachrichtungen per Mail zur Bettel-Rallye",
        'ADMIN_CONFIG_BEG_RALLYE_ENABLE_NOTIFY' => "Benachtigen, wenn Bettel-Rallye aktiviert wurde?",
index fd28a58d09061f632b65b045dfbf6107cab41ab3..17f6a4b657b7dc31207093780cc5561158db27c3 100644 (file)
@@ -773,12 +773,17 @@ addMessages(array(
        'ADMIN_CONFIG_HOME_SETTINGS_TITLE' => "Einstellungen an Eingangsseite",
        'ADMIN_CONFIG_HOME_SETTINGS' => "Einstellungen an der Eingangsseite",
        'ADMIN_CONFIG_HOME_MAIN_TITLE' => "Einstellungen an der Home-Seite",
-       'ADMIN_CONFIG_INDEX_DELAY' => "Verz&ouml;gerung bevor weitergeleitet wird",
+       'ADMIN_CONFIG_INDEX_DELAY' => "Verz&ouml;gerung bevor weitergeleitet wird:",
+       'ADMIN_CONFIG_INDEX_DISPLAY_HOME_IN_INDEX' => "Soll die ausgew&auml;hlte Home-Seite <span class=\"data\">{?index_home?}</span> in <strong>index.php</strong> gezeigt werden, anstelle des Templates <strong>index.tpl</strong>?",
        'ADMIN_INDEX_MANUAL_FORWARD' => "Klicken leitet weiter (kein JavaScript)",
        'ADMIN_INDEX_NO_DELAY' => "Sofort weiterleiten (302 Server-Redirect)",
        'ADMIN_CONTINUE_TO_CONFIG' => "Weiter zu den Einstellungen",
        'ADMIN_CONFIG_INDEX_COOKIE' => "Wie lange soll der Besucher die Eingangsseite nicht mehr sehen?",
+       'ADMIN_CONFIG_ENTRY_MISSING' => "Konnte den Konfigurationseintrag %s nicht finden. Muss eventuell ein Erweitertungsupdate noch ausgef&uuml;hrt oder eine fehlende Erweiterung installiert werden?",
+       'ADMIN_ENTRY_ADDED' => "Der Eintrag wurde der Datenbank hinzugef&uuml;gt.",
+       'ADMIN_ENTRY_NOT_ADDED' => "Der Eintrag wurde der Datenbank NICHT hinzugef&uuml;gt.",
        'BONUS_EXTENSION_UPGRADE' => "Bitte aktualisieren Sie Ihre Bonus-Erweiterung auf Version <span class=\"data\">v0.2.2</span> oder neuer.",
+       'WHAT_IS_OVERVIEW' => "Willkommen",
        '_ON' => "an",
        'MEMBER_CLICK_STATISTICS' => "Mail-Statistik",
        'ADMIN_CONFIG_SELECT_DEFAULT_REFID' => "Standard Referal-Id bei Anmeldung &uuml;ber <strong>keinen</strong> Ref-Link",
@@ -1161,6 +1166,7 @@ addMessages(array(
        'ADMIN_ACTION_DELETE_SUBMIT' => "L&ouml;schen",
        'ADMIN_ACTION_REMOVE_SUBMIT' => "Eintr&auml;ge l&ouml;schen",
        'ADMIN_ACTION_EDIT_SELECT_SUBMIT' => "Ausgew&auml;hlten Eintrag bearbeiten",
+       'ADMIN_ACTION_LOCK_SUBMIT' => "Ent-/sperren",
 
        // Admin 'pool' mail actions
        'ADMIN_EDIT_POOL_MAIL_LINK' => "Klick-Mail bearbeiten",
diff --git a/inc/language/forced_de.php b/inc/language/forced_de.php
new file mode 100644 (file)
index 0000000..ffda5a0
--- /dev/null
@@ -0,0 +1,74 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 07/23/2011 *
+ * ===================                          Last change: 07/23/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : forced_de.php                                    *
+ * -------------------------------------------------------------------- *
+ * Short description : German langugage support                         *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Deutsche Sprachunterstuetzung                    *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
+
+// Language definitions
+addMessages(array(
+       'ADMIN_FORCED_ADS_404' => "Es wurden keine Forced-Werbemittel gefunden.",
+       'ADMIN_ADD_FORCED_AD_TITLE' => "Hinzuf&uuml;gen eines Forced-Werbemittels:",
+       'ADMIN_ADD_FORCED_ADD_SUBMIT' => "Forced-Werbemittel hinzuf&uuml;gen",
+       'ADMIN_ENTER_FORCED_AD_CLICK_URL' => "Klick-URL des Forced-Werbemittels eingeben:",
+       'ADMIN_SELECT_FORCED_AD_TYPE' => "Forced-Werbemittelart ausw&auml;hlen:",
+       'ADMIN_SELECT_FORCED_HAS_FRAMEBREAKER' => "Hat das Forced-Werbemittel einen Framekiller?",
+       'ADMIN_ADD_FORCED_AD_POPUP_BANNER_ONLY' => "Nur f&uuml;r die Forced-Werbemittelarten Forced-PopUp oder -Banner eingeben:",
+       'ADMIN_ENTER_FORCED_AD_RELOAD_LOCK' => "Reloadsperre f&uuml;r Forced-Werbemittel einstellen:",
+       'ADMIN_ENTER_FORCED_AD_MINIMUM_STAY' => "Mindestauffenthalt f&uuml;r Forced-Werbemittel einstellen:",
+       'ADMIN_ENTER_FORCED_AD_URL' => "URL des Forced-Banners eingeben:",
+       'ADMIN_ADD_FORCED_AD_ADDITIONAL_DATA' => "Weitere Angaben f&uuml;r Forced-Banner:",
+       '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_AD_TYPE_UNKNOWN' => "Unbekanntes Forced-Werbemittel %s erkannt.",
+       'ADMIN_FORCED_AD_TYPE_BANNER' => "Forced-Banner",
+       'ADMIN_FORCED_AD_TYPE_TEXTLINK' => "Forced-Textlink",
+       'ADMIN_FORCED_AD_TYPE_POPUP' => "Forced-PopUp",
+       'ADMIN_LIST_FORCED_ADS_TITLE' => "Auflisten aller Forced-Werbemittel",
+       'ADMIN_FORCED_ADS_TYPE' => "Forced-Werbemittel",
+       'ADMIN_FORCED_ADS_VIEWS_COUNTER' => "Anzahl Forced-Views",
+       'ADMIN_FORCED_ADS_CLICKS_COUNTER' => "Anzahl Forced-Klicks",
+       'ADMIN_FORCED_ADS_HAS_FRAMEBREAKER' => "Framekiller?",
+       'ADMIN_FORCED_ADS_ADDED' => "Hinzugef&uuml;gt?",
+       'ADMIN_FORCED_ADS_LAST_LOCKED' => "Zuletzt gesperrt",
+       'ADMIN_FORCED_ADS_LOCK_REASON' => "Sperrgrund",
+));
+
+// [EOF]
+?>
index e81d6a13894c10fa0445d82050399f8149f69ce9..2b7c2de65247a1b10f0f0f6fc061e4be88451a49 100644 (file)
@@ -337,7 +337,7 @@ function adminsEditAdminAccount ($postData) {
                $id = bigintval($id);
 
                // Get the admin's data
-               $result = SQL_QUERY_ESC("SELECT `login`, `email`, `default_acl` AS mode, `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `login`,`email`,`default_acl` AS mode, `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                        array($id), __FUNCTION__, __LINE__);
                if ((SQL_NUMROWS($result) == 1) && ($selected == 1)) {
                        // Entry found
@@ -377,7 +377,7 @@ function adminsDeleteAdminAccount ($postData) {
                        $id = bigintval($id);
 
                        // Get the admin's data
-                       $result = SQL_QUERY_ESC("SELECT `login`, `email`, `default_acl` AS `mode`, `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `login`,`email`,`default_acl` AS `mode`,`la_mode` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                                array($id), __FUNCTION__, __LINE__);
 
                        // Do we have an entry?
@@ -433,7 +433,7 @@ function adminsRemoveAdminAccount ($postData) {
 // List all admin accounts
 function adminsListAdminAccounts() {
        // Select all admin accounts
-       $result = SQL_QUERY('SELECT `id`, `login`, `email`, `default_acl` AS mode, `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `login` ASC', __FUNCTION__, __LINE__);
+       $result = SQL_QUERY('SELECT `id`,`login`,`email`,`default_acl` AS mode, `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `login` ASC', __FUNCTION__, __LINE__);
        $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Compile some variables
@@ -467,7 +467,7 @@ function sendAdminsEmails ($subj, $template, $content, $userid) {
        // No entries found?
        if (SQL_HASZERONUMS($result)) {
                // Create new entry (to all admins)
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_mails` (`admin_id`, `mail_template`) VALUES (0, '%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_mails` (`admin_id`,`mail_template`) VALUES (0, '%s')",
                        array($template), __FUNCTION__, __LINE__);
        } else {
                // Load admin ids...
index 12941204e087ab21392c7207b88dd38cd7305bd6..144d9efedd0cc3e0a6dd8a5f29cceebf5ecd3373 100644 (file)
@@ -50,6 +50,9 @@ function addPointsBeg ($userid, $points) {
                // Add points to rallye account
                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `beg_points`=`beg_points`+%s WHERE `userid`=%s LIMIT 1",
                        array($points, $userid), __FUNCTION__, __LINE__);
+
+               // We need to set $add here, two
+               $added = (!SQL_HASZEROAFFECTED());
        } else {
                // Add points to account
                initReferalSystem();
@@ -57,9 +60,9 @@ function addPointsBeg ($userid, $points) {
        }
 
        // Subtract begged points from member account if the admin has selected one
-       if (isValidUserId(getBegUserid())) {
+       if (($added === true) && (isValidUserId(getBegUserid()))) {
                // Subtract from this account
-               subtractPoints('beg_payout', getBegUserid(), $points);
+               $added = ($added && subtractPoints('beg_payout', getBegUserid(), $points));
        } // END - if
 
        // Return result
index 6418d1e5431e9c5cc50a9cba5f361abd1ba72f17..ef8b7144c7676ce5ce7cc860a16337a678d4bd65 100644 (file)
@@ -100,7 +100,7 @@ function addTurboBonus ($mid, $userid, $type) {
                ), __FUNCTION__, __LINE__);
 
        // Rember this whole data for displaying ranking list
-       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_bonus_turbo` (`userid`, `mail_id`, `bonus_id`, `level`, `points`, `timemark`) VALUES (%s, %s, %s, %s, %s, UNIX_TIMESTAMP())",
+       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_bonus_turbo` (`userid`,`mail_id`,`bonus_id`,`level`,`points`,`timemark`) VALUES (%s, %s, %s, %s, %s, UNIX_TIMESTAMP())",
                array(
                        bigintval($userid),
                        bigintval($mail),
@@ -126,7 +126,7 @@ function addBonusRanks ($data, $type, $userid) {
        $ranks = count(explode(';', getConfig('turbo_rates'))) + 1;
 
        // Load current user's data
-       $result = SQL_QUERY_ESC("SELECT `level`, `points`, `timemark` FROM `{?_MYSQL_PREFIX?}_bonus_turbo` WHERE `%s`=%s AND `userid`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `level`,`points`,`timemark` FROM `{?_MYSQL_PREFIX?}_bonus_turbo` WHERE `%s`=%s AND `userid`=%s LIMIT 1",
                array(
                        $type,
                        $data,
@@ -156,7 +156,7 @@ function addBonusRanks ($data, $type, $userid) {
                for ($rank = 1; $rank <= SQL_NUMROWS($result); $rank++) {
                        // Load data
                        $result_users = SQL_QUERY_ESC("SELECT
-       `userid`, `points`
+       `userid`,`points`
 FROM
        `{?_MYSQL_PREFIX?}_bonus_turbo`
 WHERE
@@ -206,7 +206,12 @@ LIMIT 1",
 //
 function handleBonusPoints ($mode) {
        // Shall we add bonus points?
-       if (!isBonusRallyeActive()) return;
+       if (!isBonusRallyeActive()) {
+               return;
+       } // END - if
+
+       // Default is not working
+       $return = false;
 
        // Switch to jackpot-mode when no UID is supplied but userid-mode is selected
        if ((getBonusMode() == 'UID') && (getBonusUserid() == '0') && (isExtensionActive('jackpot'))) {
@@ -232,10 +237,10 @@ function handleBonusPoints ($mode) {
                        break;
 
                case 'JACKPOT': // ... jackpot
-                       if ((isExtensionActive('jackpot')) && (subtractPointsFromJackpot($points) == -1) && (isValidUserId(getBonusUserid()))) {
+                       if ((isExtensionActive('jackpot')) && (subtractPointsFromJackpot($points) === false) && (isValidUserId(getBonusUserid()))) {
                                if ($total >= $points) {
                                        // Subtract points from userid's account
-                                       subtractPointsFromJackpot('bonus_payout_jackpot', getBonusUserid(), $points);
+                                       $return = subtractPointsFromJackpot('bonus_payout_jackpot', getBonusUserid(), $points);
                                } // END - if
                        } // END - if
                        break;
@@ -243,10 +248,10 @@ function handleBonusPoints ($mode) {
                case 'UID': // ... userid's account
                        if ($total >= $points) {
                                // Subtract points from userid's account
-                               subtractPoints('bonus_payout_userid', getBonusUserid(), $points);
+                               $return = subtractPoints('bonus_payout_userid', getBonusUserid(), $points);
                        } elseif (isExtensionActive('jackpot')) {
                                // Try to subtract from jackpot
-                               $dummy = subtractPointsFromJackpot($points);
+                               $return = subtractPointsFromJackpot($points);
                        }
                        break;
 
@@ -254,6 +259,9 @@ function handleBonusPoints ($mode) {
                        debug_report_bug(__FUNCTION__, __LINE__, 'Invalid bonus-mode ' . getBonusMode() . ' detected.');
                        break;
        } // END - switch
+
+       // Return status
+       return $return;
 }
 
 // Purges expired fast-click bonus entries
index ece61e39c9a14729303d691995014168b1fdb39b..3de8f54540099462c334fd0aaf8947e67516c896 100644 (file)
@@ -49,7 +49,7 @@ function addBookingRecord ($subject, $userid, $points, $mode) {
        } // END - if
 
        // Add record entry here
-       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_booking` (`userid`, `subject`, `mode`, `points`) VALUES (%s,'%s','%s',%s)",
+       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_booking` (`userid`,`subject`,`mode`,`points`) VALUES (%s,'%s','%s',%s)",
                array(
                        bigintval($userid),
                        $subject,
index a001eef4658d86c5273e481dce3e7586324b5fdf..1b7980bae2fc166ba5ba8ce65deca0a7e5ca3936 100644 (file)
@@ -46,7 +46,7 @@ function generateCountryInfo ($id) {
        $ret = '{--COUNTRY_CODE_404--}';
 
        // Load code and description
-       $result = SQL_QUERY_ESC("SELECT `code`, `descr` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `code`,`descr` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
                array(bigintval($id)), __FUNCTION__, __LINE__);
 
        // Is there an entry?
index f5f7a233539a60c710032d2a74ef0b163bf62192..ecec2572b34b0b0d446b13d2cc677d5c950afa8e 100644 (file)
@@ -68,7 +68,7 @@ function generateDoublerTable ($userid = NULL, $done = 'N', $ref = 'N', $sort =
 
        // List entries
        $result = SQL_QUERY_ESC("SELECT
-       `userid`, `refid`, `points`, `timemark`
+       `userid`,`refid`,`points`,`timemark`
 FROM
        `{?_MYSQL_PREFIX?}_doubler`
 WHERE
diff --git a/inc/libs/forced_functions.php b/inc/libs/forced_functions.php
new file mode 100644 (file)
index 0000000..331f17e
--- /dev/null
@@ -0,0 +1,163 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 07/25/2011 *
+ * ===================                          Last change: 07/25/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : forced_functions.php                             *
+ * -------------------------------------------------------------------- *
+ * Short description : Functions for ext-forced                         *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Funktionen fuer ext-forced                       *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
+
+// Template helper function to create selection box for all forced-ad types
+function doTemplateForcedAdTypeSelectionBox ($templateName, $clear = false, $default = NULL) {
+       // Add all types through the filter
+       $forcedAdTypes = runFilterChain('add_forced_ads_types', array());
+
+       // Handle it over to generateSelectionBoxFromArray()
+       $content = generateSelectionBoxFromArray($forcedAdTypes, 'forced_ads_type', 'type');
+
+       // Return prepared content
+       return $content;
+}
+
+// Translate the status IN/OUT
+function translateForcedAdType ($status) {
+       // Is the status empty?
+       if (empty($status)) {
+               $status = 'EMPTY';
+       } // END - if
+
+       // Default status is unknown
+       $return = '{%message,ADMIN_FORCED_AD_TYPE_UNKNOWN=' . $status . '%}';
+
+       // Construct message id
+       $messageId = 'ADMIN_FORCED_AD_TYPE_' . $status;
+
+       // Is it there?
+       if (isMessageIdValid($messageId)) {
+               // Then use it as message string
+               $return = '{--' . $messageId . '--}';
+       } // END - if
+
+       // Return the status
+       return $return;
+}
+
+// Handles the XML node 'extra-parameter-forced-ads-reload-lock-list'
+function doXmlExtraParameterForcedAdsReloadLockList ($resource, $attributes) {
+       // There should be no attributes
+       if (count($attributes) > 0) {
+               // Please don't add any attributes to foo-list nodes
+               debug_report_bug(__FUNCTION__, __LINE__, 'Expected 0 attributes because this is a foo-list node, got ' . count($attributes));
+       } elseif (!isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_list']['forced_ads_reload_lock_list'])) {
+               // This list should be created already
+               debug_report_bug(__FUNCTION__, __LINE__, 'forced_ads_reload_lock_list should be already created.');
+       }
+}
+
+// Handles the XML node 'extra-parameter-forced-ads-reload-lock-list-entry'
+function doXmlExtraParameterForcedAdsReloadLockListEntry ($resource, $attributes) {
+       // There are three attributes, by default
+       if (count($attributes) != 3) {
+               // Not the right count
+               debug_report_bug(__FUNCTION__, __LINE__, 'Expected 3 attributes, got ' . count($attributes));
+       } elseif (!isset($attributes['NAME'])) {
+               // 'NAME' not found
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute NAME not found.');
+       } elseif (!isset($attributes['TYPE'])) {
+               // 'TYPE' not found
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute TYPE not found.');
+       } elseif (!isInvalidXmlType($attributes['TYPE'])) {
+               // No valid type
+               debug_report_bug(__FUNCTION__, __LINE__, 'TYPE is not valid, got: ' . $attributes['TYPE']);
+       } elseif (!isset($attributes['VALUE'])) {
+               // 'VALUE' not found
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute VALUE not found.');
+       } elseif (!isXmlValueValid($attributes['TYPE'], $attributes['VALUE'])) {
+               // Not valid/verifyable
+               debug_report_bug(__FUNCTION__, __LINE__, 'Attribute VALUE does not validate. TYPE=' . $attributes['TYPE'] . ',VALUE=' . $attributes['VALUE']);
+       } elseif (!isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_list']['forced_ads_reload_lock_list'])) {
+               // doXmlCallbackFunction is missing
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required XML node callback-function/extra-parameter-list/forced-ads-reload-lock-list not included around this node. Please fix your XML.');
+       }
+
+       // Add the entry to the list
+       addXmlValueToCallbackAttributes('extra_list', $attributes, 'forced_ads_reload_lock_list');
+}
+
+// Handles the XML node 'extra-parameter-forced-ads-min-stay-list'
+function doXmlExtraParameterForcedAdsMinStayList ($resource, $attributes) {
+       // There should be no attributes
+       if (count($attributes) > 0) {
+               // Please don't add any attributes to foo-list nodes
+               debug_report_bug(__FUNCTION__, __LINE__, 'Expected 0 attributes because this is a foo-list node, got ' . count($attributes));
+       } elseif (!isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_list']['forced_ads_min_stay_list'])) {
+               // This list should be created already
+               debug_report_bug(__FUNCTION__, __LINE__, 'forced_ads_min_stay_list should be already created.');
+       }
+}
+
+// Handles the XML node 'extra-parameter-forced-ads-min-stay-list-entry'
+function doXmlExtraParameterForcedAdsMinStayListEntry ($resource, $attributes) {
+       // There are three attributes, by default
+       if (count($attributes) != 3) {
+               // Not the right count
+               debug_report_bug(__FUNCTION__, __LINE__, 'Expected 3 attributes, got ' . count($attributes));
+       } elseif (!isset($attributes['NAME'])) {
+               // 'NAME' not found
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute NAME not found.');
+       } elseif (!isset($attributes['TYPE'])) {
+               // 'TYPE' not found
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute TYPE not found.');
+       } elseif (!isInvalidXmlType($attributes['TYPE'])) {
+               // No valid type
+               debug_report_bug(__FUNCTION__, __LINE__, 'TYPE is not valid, got: ' . $attributes['TYPE']);
+       } elseif (!isset($attributes['VALUE'])) {
+               // 'VALUE' not found
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required attribute VALUE not found.');
+       } elseif (!isXmlValueValid($attributes['TYPE'], $attributes['VALUE'])) {
+               // Not valid/verifyable
+               debug_report_bug(__FUNCTION__, __LINE__, 'Attribute VALUE does not validate. TYPE=' . $attributes['TYPE'] . ',VALUE=' . $attributes['VALUE']);
+       } elseif (!isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['extra_list']['forced_ads_min_stay_list'])) {
+               // doXmlCallbackFunction is missing
+               debug_report_bug(__FUNCTION__, __LINE__, 'Required XML node callback-function/extra-parameter-list/forced-ads-min-stay-list not included around this node. Please fix your XML.');
+       }
+
+       // Add the entry to the list
+       addXmlValueToCallbackAttributes('extra_list', $attributes, 'forced_ads_min_stay_list');
+}
+
+// [EOF]
+?>
index 1cbe389b2e3b0964991dc716f0fdb7f31c9732fd..9586b675ef84961698b16daab83c41b81674cf9f 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 function stopHolidays () {
        // Let's find some expired holiday requests...
        $result_stop = SQL_QUERY("SELECT
-       `userid`, `holiday_start`, `holiday_end`, `comments`
+       `userid`,`holiday_start`,`holiday_end`,`comments`
 FROM
        `{?_MYSQL_PREFIX?}_user_holidays`
 WHERE
index 6bf2816c4c92dc2cdd68d70c93d5caddf2cf6b05..fbe450bc27108df7b557efb2cd8ae17b206bf742 100644 (file)
@@ -52,7 +52,7 @@ function getJackpotPoints () {
        // Do we have an entry?
        if (SQL_HASZERONUMS($result)) {
                // No, so create line
-               SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`, `points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
+               SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`,`points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
        } else {
                // Read the line
                $data = SQL_FETCHARRAY($result);
@@ -78,7 +78,7 @@ function addPointsToJackpot ($points) {
 // Subtracts points from the jackpot
 function subtractPointsFromJackpot ($points) {
        // First failed
-       $ret = -1;
+       $ret = false;
 
        // Get jackpot points for dummy
        $jackpot = getJackpotPoints();
@@ -88,7 +88,7 @@ function subtractPointsFromJackpot ($points) {
                // Update points when there are enougth points in jackpot
                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_jackpot` SET `points`=`points`-%s WHERE `ok`='ok' LIMIT 1",
                        array($points), __FUNCTION__, __LINE__);
-               $ret = $jackpot - $points;
+               $ret = (!SQL_HASZEROAFFECTED());
        } // END - if
 
        // Free memory
index 546d44a18c0a6087b3ddbab4c2c793e47ae382f3..e125f484268b71fb610b8f12ea013936bb41533c 100644 (file)
@@ -61,7 +61,7 @@ LIMIT 1", array($key), __FUNCTION__, __LINE__);
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',SQL_NUMROWS()=' . SQL_NUMROWS($result_media));
                        if (SQL_NUMROWS($result_media) == 0) {
                                // Not found so we create it (mode will be ignored here!)
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_mediadata` (`media_key`, `media_value`) VALUES ('%s', '%s')",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_mediadata` (`media_key`,`media_value`) VALUES ('%s', '%s')",
                                        array($key, $value), __FUNCTION__, __LINE__);
                        } else {
                                // Update entry
index db096e9b0d7645e59dd872252f387c01316b9898..7dac613834936803a1765b582924cc1427b2f815 100644 (file)
@@ -173,7 +173,7 @@ function getNetworkDataById ($id, $column = '') {
 
                // Query for the network data
                $result = SQL_QUERY_ESC("SELECT
-       `network_id`, `network_short_name`, `network_title`, `network_reflink`, `network_data_seperator`, `network_row_seperator`, `network_request_type`, `network_charset`
+       `network_id`,`network_short_name`,`network_title`,`network_reflink`,`network_data_seperator`,`network_row_seperator`,`network_request_type`,`network_charset`
 FROM
        `{?_MYSQL_PREFIX?}_network_data`
 WHERE
@@ -265,7 +265,7 @@ function getNetworkTypeDataById ($id) {
 
        // Query for the network data
        $result = SQL_QUERY_ESC("SELECT
-       `network_type_id`, `network_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`
+       `network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`
 FROM
        `{?_MYSQL_PREFIX?}_network_types`
 WHERE
@@ -299,7 +299,7 @@ function getNetworkRequestParamsDataById ($id) {
 
        // Query for the network data
        $result = SQL_QUERY_ESC("SELECT
-       `network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`
+       `network_param_id`,`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`
 FROM
        `{?_MYSQL_PREFIX?}_network_request_params`
 WHERE
@@ -373,7 +373,7 @@ function generateAdminNetworkList () {
 
        // Query for all networks
        $result = SQL_QUERY('SELECT
-       `network_id`, `network_short_name`, `network_title`
+       `network_id`,`network_short_name`,`network_title`
 FROM
        `{?_MYSQL_PREFIX?}_network_data`
 ORDER BY
@@ -412,7 +412,7 @@ function generateAdminNetworkTypeList ($networkId) {
 
        // Query all types of this network
        $result = SQL_QUERY_ESC("SELECT
-       `network_type_id`, `network_type_handle`
+       `network_type_id`,`network_type_handle`
 FROM
        `{?_MYSQL_PREFIX?}_network_types`
 WHERE
@@ -497,7 +497,9 @@ ORDER BY
 // Generator (somewhat getter) for network type options
 function generateNetworkTypeOptions ($id) {
        // Is this an array, then we just came back from edit/delete actions
-       if (is_array($id)) $id = '';
+       if (is_array($id)) {
+               $id = '';
+       } // END - if
 
        // Is this cached?
        if (!isset($GLOBALS[__FUNCTION__][$id])) {
@@ -696,7 +698,7 @@ function translateNetworkApiIndex ($index) {
 
                // Get all entries
                $result = SQL_QUERY('SELECT
-       `network_api_id`, `network_api_index`, `network_translation_name`
+       `network_api_id`,`network_api_index`,`network_translation_name`
 FROM
        `{?_MYSQL_PREFIX?}_network_api_translation`
 INNER JOIN
@@ -752,7 +754,7 @@ function doAdminNetworkProcessAddNetwork () {
        SQL_QUERY('INSERT INTO
        `{?_MYSQL_PREFIX?}_network_data`
 (
-       `' . implode('`, `', array_keys(postRequestArray())) . "`
+       `' . implode('`,`', array_keys(postRequestArray())) . "`
 ) VALUES (
        '" . implode("','", array_values(postRequestArray())) . "'
 )", __FUNCTION__, __LINE__);
@@ -1028,7 +1030,7 @@ function doAdminNetworkProcessAddNetworkType () {
        SQL_QUERY('INSERT INTO
        `{?_MYSQL_PREFIX?}_network_types`
 (
-       `' . implode('`, `', array_keys(postRequestArray())) . "`
+       `' . implode('`,`', array_keys(postRequestArray())) . "`
 ) VALUES (
        '" . implode("','", array_values(postRequestArray())) . "'
 )", __FUNCTION__, __LINE__);
@@ -1071,7 +1073,7 @@ function doAdminNetworkProcessChangeNetworkType () {
                                        // Fix empty network_type_banner_url to NULL
                                        if (($key == 'network_type_banner_url') && (trim($entry[$id]) == '')) {
                                                // Set it to NULL
-                                               $entry[$id] = null;
+                                               $entry[$id] = NULL;
                                        } // END - if
 
                                        // Add this entry
@@ -1122,7 +1124,7 @@ function doAdminNetworkProcessChangeNetworkParam () {
                                        // Fix empty request_param_default to NULL
                                        if (($key == 'request_param_default') && (trim($entry[$id]) == '')) {
                                                // Set it to NULL
-                                               $entry[$id] = null;
+                                               $entry[$id] = NULL;
                                        } // END - if
 
                                        // Add this entry
@@ -1226,7 +1228,7 @@ function doAdminNetworkProcessAddNetworkParam () {
        SQL_QUERY('INSERT INTO
        `{?_MYSQL_PREFIX?}_network_request_params`
 (
-       `' . implode('`, `', array_keys(postRequestArray())) . "`
+       `' . implode('`,`', array_keys(postRequestArray())) . "`
 ) VALUES (
        '" . implode("','", array_values(postRequestArray())) . "'
 )", __FUNCTION__, __LINE__);
@@ -1272,7 +1274,7 @@ function doAdminNetworkProcessAddNetworkApiTranslation () {
        SQL_QUERY('INSERT INTO
        `{?_MYSQL_PREFIX?}_network_api_translation`
 (
-       `' . implode('`, `', array_keys(postRequestArray())) . "`
+       `' . implode('`,`', array_keys(postRequestArray())) . "`
 ) VALUES (
        '" . implode("','", array_values(postRequestArray())) . "'
 )", __FUNCTION__, __LINE__);
index 21d89144302c5af4638a7c5e4565e34389c99a23..088ab9cf36df228a7ea33f6a47d0805270e658a8 100644 (file)
@@ -46,7 +46,7 @@ function outputPayoutList ($points) {
        if ($points > 0) {
                // Pay this out!
                $result = SQL_QUERY_ESC("SELECT
-       `id`, `type`, `rate`, `min_points`
+       `id`,`type`,`rate`,`min_points`
 FROM
        `{?_MYSQL_PREFIX?}_payout_types`
 WHERE
index c7df107ad4773dabbb83e4a31b1b56471231a047..faf162d6002a6e56648f2782dd70d44c0edcdb6d 100644 (file)
@@ -135,7 +135,7 @@ WHERE
                        // Add info line
                        SQL_QUERY_ESC("INSERT INTO
        `{?_MYSQL_PREFIX?}_rallye_users`
-(`rallye_id`, `userid`, `refs`, `curr_points`)
+(`rallye_id`,`userid`,`refs`,`curr_points`)
        VALUES
 (%s, %s, %s, %s)",
                                array(
@@ -182,7 +182,7 @@ function addReferalRallyePrices ($rallye, $mode = 'email') {
 
        // Load prices
        $result_prices = SQL_QUERY_ESC("SELECT
-       `price_level`, `points`, `info`
+       `price_level`,`points`,`info`
 FROM
        `{?_MYSQL_PREFIX?}_rallye_prices`
 WHERE
@@ -351,12 +351,12 @@ function addUserToReferalRallye ($userid, $content = array()) {
 
        // Updated extension?
        if (isExtensionInstalledAndNewer('rallye', '0.2.0')) {
-               $add .= ', `min_users`, `min_prices`';
+               $add .= ', `min_users`,`min_prices`';
        } // END - if
 
        // Check for an auto-add rallye
        $result = SQL_QUERY("SELECT
-       `id`, `title`, `start_time`, `end_time`, `send_notify`".$add."
+       `id`,`title`,`start_time`,`end_time`,`send_notify`".$add."
 FROM
        `{?_MYSQL_PREFIX?}_rallye_data`
 WHERE
@@ -420,7 +420,7 @@ LIMIT 1",
                        // Add userid and his ref count to table
                        SQL_QUERY_ESC("INSERT INTO
        `{?_MYSQL_PREFIX?}_rallye_users`
-(`rallye_id`, `userid`, `refs`)
+(`rallye_id`,`userid`,`refs`)
        VALUES
 (%s,%s,0)",
                                array(
@@ -564,7 +564,7 @@ function getReferalRallyeUserDataFromArray ($userIds) {
 
        // Load users
        $result = SQL_QUERY_ESC("SELECT
-       `userid`, `gender`, `surname`, `family`, `email`
+       `userid`,`gender`,`surname`,`family`,`email`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -603,7 +603,7 @@ function getArrayFromReferalRallyePrices ($rallye) {
 
        // Load prices
        $result = SQL_QUERY_ESC("SELECT
-       `price_level`, `points`, `info`
+       `price_level`,`points`,`info`
 FROM
        `{?_MYSQL_PREFIX?}_rallye_prices`
 WHERE
@@ -639,7 +639,7 @@ function getArrayFromReferalRallyeUsers ($rallye) {
        );
 
        // Load users                          userid    old   points earned
-       $result_user = SQL_QUERY_ESC("SELECT `userid`, `refs`, `curr_points` FROM `{?_MYSQL_PREFIX?}_rallye_users` WHERE `rallye_id`=%s ORDER BY `userid` ASC",
+       $result_user = SQL_QUERY_ESC("SELECT `userid`,`refs`,`curr_points` FROM `{?_MYSQL_PREFIX?}_rallye_users` WHERE `rallye_id`=%s ORDER BY `userid` ASC",
                array(bigintval($rallye)), __FUNCTION__, __LINE__);
        while ($content = SQL_FETCHARRAY($result_user)) {
                // Load current ref count
@@ -769,7 +769,7 @@ function purgeExpiredReferalRallyes () {
        // Check for expired rallyes
        $EXPIRE = 3; // @TODO The hard-coded value...
        $result_rallye = SQL_QUERY_ESC("SELECT
-       `id`, `title`, `start_time`, `end_time`
+       `id`,`title`,`start_time`,`end_time`
 FROM
        `{?_MYSQL_PREFIX?}_rallye_data`
 WHERE
index 5938bd79bf606dc7c665036ac70e95576c11ccb8..f2f210b2c2177c886913f4d5656d3eb19fa49695 100644 (file)
@@ -50,7 +50,7 @@ function addRefbackPoints ($userid, $ref, $points, $ref_points) {
        $return = $ref_points;
 
        // Get all ref levels
-       $result_refs = SQL_QUERY('SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0 ORDER BY `level` ASC',
+       $result_refs = SQL_QUERY('SELECT `level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0 ORDER BY `level` ASC',
                __FUNCTION__, __LINE__);
 
        // "Walk" through all level
@@ -274,7 +274,7 @@ function getArrayFromUserRefbackData ($id) {
        $id = bigintval($id);
 
        // Get entry from database
-       $result = SQL_QUERY_ESC("SELECT `id`, `userid`, `refid`, `refback_percents`, `level`, `refback_points` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `id`=%s AND `userid`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`userid`,`refid`,`refback_percents`,`level`,`refback_points` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `id`=%s AND `userid`=%s LIMIT 1",
                array($id, getMemberId()), __FUNCTION__, __LINE__);
 
        // Is there an entry?
@@ -313,10 +313,10 @@ function updateMemberRefbackPercents ($id, $percents, $note) {
        }
 
        // Get ref entry
-       $dummy = getArrayFromUserRefbackData($id);
+       $content = getArrayFromUserRefbackData($id);
 
        // Is this valid?
-       if (count($dummy) == 0) {
+       if (count($content) == 0) {
                // id does not belong to user!
                $status['message'] = 'MEMBER_REFBACK_ERROR_ID_MISMATCH';
                return $status;
@@ -341,17 +341,17 @@ function updateMemberRefbackPercents ($id, $percents, $note) {
        } // END - if
 
        // Prepare email content
-       $dummy['refback_percents'] = $percents;
-       $dummy['refback_note']     = $note;
+       $content['refback_percents'] = $percents;
+       $content['refback_note']     = $note;
 
        // Load member email template
-       $mail = loadEmailTemplate('member_refback', $dummy, $dummy['refid']);
+       $mail = loadEmailTemplate('member_refback', $content, $content['refid']);
 
        // Send email to user
-       sendEmail($dummy['refid'], '{--MEMBER_REFBACK_SUBJECT--}', $mail);
+       sendEmail($content['refid'], '{--MEMBER_REFBACK_SUBJECT--}', $mail);
 
        // Send admin notification
-       sendAdminNotification('{--ADMIN_REFBACK_SUBJECT--}', 'admin_refback', $dummy, $dummy['refid']);
+       sendAdminNotification('{--ADMIN_REFBACK_SUBJECT--}', 'admin_refback', $content, $content['refid']);
 
        // All fine!
        $status['ok'] = true;
index dc557b742c8c026c002d87e64c8be2b97af33fbe..719f594bac0450f20592a61da97b3afc287aa248 100644 (file)
@@ -82,7 +82,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
        if (isAdmin()) $AND = '';
 
        // Look for categories
-       $result = SQL_QUERY('SELECT `id`, `cat`, `visible` FROM `{?_MYSQL_PREFIX?}_cats` ' . $AND . ' ORDER BY `sort` ASC',
+       $result = SQL_QUERY('SELECT `id`,`cat`,`visible` FROM `{?_MYSQL_PREFIX?}_cats` ' . $AND . ' ORDER BY `sort` ASC',
                __FUNCTION__, __LINE__);
 
        if (!SQL_HASZERONUMS($result)) {
@@ -300,13 +300,13 @@ function doRegistration () {
        //
        // First comes first: begging rallye
        if ((isExtensionInstalledAndNewer('beg', '0.2.7')) && (!isBegNewMemberNotifyEnabled())) {
-               $GLOBALS['register_sql_columns'] .= ', `beg_rallye_enable_notify`, `beg_rallye_disable_notify`';
+               $GLOBALS['register_sql_columns'] .= ', `beg_rallye_enable_notify`,`beg_rallye_disable_notify`';
                $GLOBALS['register_sql_data']    .= ', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()';
        } // END - if
 
        // Second: active rallye
        if ((isExtensionActive('bonus')) && (!isBonusNewMemberNotifyEnabled())) {
-               $GLOBALS['register_sql_columns'] .= ', `bonus_rallye_enable_notify`, `bonus_rallye_disable_notify`';
+               $GLOBALS['register_sql_columns'] .= ', `bonus_rallye_enable_notify`,`bonus_rallye_disable_notify`';
                $GLOBALS['register_sql_data']    .= ', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()';
        } // END - if
 
@@ -320,7 +320,7 @@ function doRegistration () {
        // Create user's account...
        SQL_QUERY_ESC("INSERT INTO
        `{?_MYSQL_PREFIX?}_user_data`
-(`gender`, `surname`, `family`, `street_nr`,%s, `zip`, `city`, `email`, `birth_day`, `birth_month`, `birth_year`, `password`, `max_mails`, `receive_mails`, `refid`, `status`, `user_hash`, `REMOTE_ADDR`, `joined`, `last_update`, `ref_payout`".$GLOBALS['register_sql_columns'].")
+(`gender`,`surname`,`family`,`street_nr`,%s, `zip`,`city`,`email`,`birth_day`,`birth_month`,`birth_year`,`password`,`max_mails`,`receive_mails`,`refid`,`status`,`user_hash`,`REMOTE_ADDR`,`joined`,`last_update`,`ref_payout`".$GLOBALS['register_sql_columns'].")
        VALUES
 ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONFIRMED','%s','%s', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), {?ref_payout?}".$GLOBALS['register_sql_data'].")",
        array(
@@ -374,7 +374,7 @@ function doRegistration () {
                foreach (postRequestParameter('cat') as $categoryId => $joined) {
                        if ($joined == 'Y') {
                                // Insert category entry
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (`userid`, `cat_id`) VALUES (%s, %s)",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (`userid`,`cat_id`) VALUES (%s, %s)",
                                        array(
                                                $userid,
                                                bigintval($categoryId)
index 035c56b875f321eb2ea353728a9c51d91333570f..eb9aad248ebdc74551fe2ff141176c2e4bcd426f 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 //
-function handleSponsorRequest ($postData, $update=false, $messageArray=array(), $RET_STATUS=false) {
+function handleSponsorRequest ($postData, $update=false, $messageArray = array(), $RET_STATUS=false) {
        // Init a lot variables
        $SAVE = true;
        $UPDATE = false;
@@ -170,7 +170,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(),
                                unset($DATA['values'][$key]);
 
                                // Implode all data into strings
-                               $keyArray   = implode('`, `'  , $DATA['keys']);
+                               $keyArray   = implode('`,`'  , $DATA['keys']);
                                $valueArray = str_repeat("%s', '", count($DATA['values']) - 1);
 
                                // Generate string
@@ -269,7 +269,7 @@ function addSponsorMenu ($current) {
 
        // Load main menu entries
        $result_main = SQL_QUERY("SELECT
-       `action` AS `main_action`, `title` AS `main_title`
+       `action` AS `main_action`,`title` AS `main_title`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_menu`
 WHERE
@@ -282,7 +282,7 @@ ORDER BY
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Load sub menus
                        $result_sub = SQL_QUERY_ESC("SELECT
-       `what` AS `sub_what`, `title` AS `sub_title`
+       `what` AS `sub_what`,`title` AS `sub_title`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_menu`
 WHERE
@@ -565,7 +565,7 @@ function doProcessSponsorFormRequest ($messageArray = array()) {
        switch ($status) {
                case 'added': // Sponsor successfully added with account status = UNCONFIRMED!
                        // Check for his id number
-                       $result = SQL_QUERY_ESC("SELECT `id`, `hash` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `email`='%s' LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `id`,`hash` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `email`='%s' LIMIT 1",
                                array(postRequestParameter('email')), __FUNCTION__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // id found so let's load it for the confirmation email
@@ -696,7 +696,7 @@ function fetchSponsorData ($sponsor_id, $column = 'id') {
                if (isset($GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'])) {
                        // Backup the raw one and zero it
                        $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure_raw'] = $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'];
-                       $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'] = null;
+                       $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'] = NULL;
 
                        // Is it not zero?
                        if (!is_null($GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure_raw'])) {
index 9a8edbbb8d2bb5726215a8c4302bcdc7bf9f594b..d28a0ab1baed4eb9bae7079d43c1804c3fbb3d78 100644 (file)
@@ -654,11 +654,11 @@ function SURFBAR_INSERT_URL_BY_ARRAY ($urlData) {
 
        // Is the id set?
        if (empty($userid)) {
-               $userid = NULL;
+               $userid = 'NULL';
        } // END - if
 
        // Just run the insert query for now
-       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_urls` (`url_userid`, `url`, `url_status`, `url_views_max`, `url_views_allowed`, `url_fixed_reload`) VALUES (%s,'%s','%s',%s,%s,%s)",
+       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_urls` (`url_userid`,`url`,`url_status`,`url_views_max`,`url_views_allowed`,`url_fixed_reload`) VALUES (%s,'%s','%s',%s,%s,%s)",
                array(
                        $userid,
                        $urlData['url'],
@@ -998,16 +998,16 @@ function SURFBAR_GET_TOTAL_USER_URLS ($userid = NULL, $status = '', $exclude = '
        // Is the status set?
        if (is_array($status)) {
                // Only URLs with these status
-               $add = sprintf(" AND `url_status` IN('%s')", implode("','", $status));
+               $add = sprintf(" WHERE `url_status` IN('%s')", implode("','", $status));
        } elseif (!empty($status)) {
                // Only URLs with this status
-               $add = sprintf(" AND `url_status`='%s'", $status);
+               $add = sprintf(" WHERE `url_status`='%s'", $status);
        } elseif (is_array($exclude)) {
                // Exclude URLs with these status
-               $add = sprintf(" AND `url_status` NOT IN('%s')", implode("','", $exclude));
+               $add = sprintf(" WHERE `url_status` NOT IN('%s')", implode("','", $exclude));
        } elseif (!empty($exclude)) {
                // Exclude URLs with this status
-               $add = sprintf(" AND `url_status` != '%s'", $exclude);
+               $add = sprintf(" WHERE `url_status` != '%s'", $exclude);
        }
 
        // Get amount from database
@@ -1065,7 +1065,7 @@ function SURFBAR_LOCKDOWN_ID ($urlId) {
        // Do we have no record?
        if ($countLock == 0) {
                // Just add it to the database
-               SQL_QUERY_ESC('INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_locks` (`locks_userid`, `locks_url_id`) VALUES (%s, %s)',
+               SQL_QUERY_ESC('INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_locks` (`locks_userid`,`locks_url_id`) VALUES (%s, %s)',
                        array(
                                getMemberId(),
                                bigintval($urlId)
@@ -1087,6 +1087,7 @@ function SURFBAR_PAY_POINTS () {
        // Remove it from the URL owner
        /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.SURFBAR_GET_USERID().',costs='.SURFBAR_GET_COSTS() . ' - ENTERED!');
        if (isValidUserId(SURFBAR_GET_USERID())) {
+               // Subtract points and ignore return status
                subtractPoints(sprintf("surfbar_%s", getSurfbarPaymentModel()), SURFBAR_GET_USERID(), SURFBAR_GET_COSTS());
        } // END - if
 
@@ -1094,7 +1095,7 @@ function SURFBAR_PAY_POINTS () {
        // Init referal system here
        initReferalSystem();
 
-       // Book it to the user
+       // Book it to the user and ignore return status
        addPointsThroughReferalSystem(sprintf("surfbar:%s", getSurfbarPaymentModel()), getMemberId(), SURFBAR_GET_REWARD());
        /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.SURFBAR_GET_USERID().',costs='.SURFBAR_GET_COSTS() . ' - EXIT!');
 }
@@ -1127,7 +1128,7 @@ function SURFBAR_UPDATE_INSERT_STATS_RECORD () {
        // Was that update okay?
        if (SQL_HASZEROAFFECTED()) {
                // No, then insert entry
-               SQL_QUERY_ESC('INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_stats` (`stats_userid`, `stats_url_id`, `stats_count`) VALUES (%s,%s,1)',
+               SQL_QUERY_ESC('INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_stats` (`stats_userid`,`stats_url_id`,`stats_count`) VALUES (%s,%s,1)',
                        array(
                                getMemberId(),
                                SURFBAR_GET_ID()
@@ -1172,7 +1173,7 @@ function SURFBAR_UPDATE_SALT_STATS () {
        // Was that okay?
        if (SQL_HASZEROAFFECTED()) {
                // Insert missing entry!
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_salts` (`salts_url_id`, `salts_userid`, `salts_last_salt`) VALUES (%s, %s, '%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_salts` (`salts_url_id`,`salts_userid`,`salts_last_salt`) VALUES (%s, %s, '%s')",
                        array(
                                SURFBAR_GET_ID(),
                                getMemberId(),
@@ -1340,7 +1341,7 @@ function SURFBAR_DETERMINE_WAIT_TIME () {
 }
 
 // Changes the status of an URL from given to other
-function SURFBAR_CHANGE_STATUS ($urlId, $prevStatus, $newStatus, $data=array()) {
+function SURFBAR_CHANGE_STATUS ($urlId, $prevStatus, $newStatus, $data = array()) {
        /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'urlId=' . $urlId . ',prevStatus=' . $prevStatus . ',newStatus=' . $newStatus . ' - ENTERED!');
        // Make new status always lower-case
        $newStatus = strtolower($newStatus);
@@ -1882,7 +1883,7 @@ function SURFBAR_GET_DATA ($element) {
        /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ' - ENTERED!');
 
        // Default is null
-       $data = null;
+       $data = NULL;
 
        // Is the entry there?
        if (isset($GLOBALS['surfbar_cache'][$element])) {
index aed64ba5b1637628bb74d969077d41e59898bdfe..3d90337c23a286a42addf19b866e9281a4a77aa8 100644 (file)
@@ -326,20 +326,14 @@ ORDER BY
 
        // Both extensions must be there
        if ((isExtensionInstalledAndNewer('bonus', '0.2.3')) && (isExtensionActive('user'))) {
-               // Active rallye
-               if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
-                       // Add more bonus points here
-                       $USE = '(0';
-                       if (getConfig('bonus_click_yn') == 'Y') $USE .= ' + `turbo_bonus`';
-                       if (getConfig('bonus_login_yn') == 'Y') $USE .= ' + `login_bonus`';
-                       if (getConfig('bonus_order_yn') == 'Y') $USE .= ' + `bonus_order`';
-                       if (getConfig('bonus_stats_yn') == 'Y') $USE .= ' + `bonus_stats`';
-                       if (getConfig('bonus_ref_yn')   == 'Y') $USE .= ' + `bonus_ref`';
-                       $USE .= ')';
-               } else {
-                       // Old version ???
-                       $USE = 'turbo_bonus';
-               }
+               // Get more columns
+               $add = runFilterChain('add_bonus_points_user_columns', '');
+
+               // Active rallye, so add more point columns, if not empty
+               $USE = '`turbo_bonus`';
+               if (!empty($add)) {
+                       $USE = '(0' . $add . ')';
+               } // END - if
 
                // Init variable
                $lastOnline = '';
index 58d1fec2c24e0f9c9180e0dcf84dd6abeced686a..3fc35343e46d93a35058465cba7cad01b01b6abc 100644 (file)
@@ -65,7 +65,7 @@ function generateThemeSelectionBox () {
 
        // Select all themes we want
        $result = SQL_QUERY('SELECT
-       `theme_path`, `theme_name`
+       `theme_path`,`theme_name`
 FROM
        `{?_MYSQL_PREFIX?}_themes`
 ' . $add . '
index 601ca42eb0d702991a8771d7b531677ebf809569..029ab472ff5fbdb2c3f837c63051bc233ed405b2 100644 (file)
@@ -527,7 +527,7 @@ function insertUserStatsRecord ($userid, $statsType, $statsData) {
        // Does it exist?
        if ((!getEpocheTimeFromUserStats($statsType, $statsData, $userid)) && (!is_array($statsData))) {
                // Then insert it!
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_stats_data` (`userid`, `stats_type`, `stats_data`) VALUES (%s,'%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_stats_data` (`userid`,`stats_type`,`stats_data`) VALUES (%s,'%s','%s')",
                        array(
                                bigintval($userid),
                                $statsType,
@@ -551,7 +551,7 @@ function doConfirmUserAccount ($hash) {
        $userid = NULL;
 
        // Search for an unconfirmed or confirmed account
-       $result = SQL_QUERY_ESC("SELECT `userid`, `refid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `user_hash`='%s' AND (`status`='UNCONFIRMED' OR `status`='CONFIRMED') LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `userid`,`refid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `user_hash`='%s' AND (`status`='UNCONFIRMED' OR `status`='CONFIRMED') LIMIT 1",
                array($hash), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) == 1) {
                // Ok, he want's to confirm now so we load some data
@@ -745,7 +745,7 @@ function doExpressionUser ($data) {
 }
 
 // Template call-back function for list_user admin function
-function doTemplateAdminListUserTitle ($template, $dummy = false) {
+function doTemplateAdminListUserTitle ($template, $clear = false) {
        // Init title with "all accounts"
        $code = '{--ADMIN_LIST_ALL_ACCOUNTS--}';
 
index e427eb5f21678524c675b07532ea6cb90e4d85fd..f3f18392acc9fabf26c4884ab78a5fb86e361b61 100644 (file)
@@ -335,7 +335,7 @@ function translateWernisTransferStatus ($status) {
 // Log the transfer
 function WERNIS_LOG_TRANSFER ($wdsId, $amount, $type = 'FAILED', $message = '', $status = '') {
        // Register this wernis movement
-       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_wernis` (`userid`, `wernis_account`, `wernis_amount`, `wernis_timestamp`, `wernis_type`, `wernis_api_message`, `wernis_api_status`) VALUES (%s, %s, %s, UNIX_TIMESTAMP(), '%s', '%s', '%s')",
+       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_wernis` (`userid`,`wernis_account`,`wernis_amount`,`wernis_timestamp`,`wernis_type`,`wernis_api_message`,`wernis_api_status`) VALUES (%s, %s, %s, UNIX_TIMESTAMP(), '%s', '%s', '%s')",
                array(
                        getMemberId(),
                        bigintval($wdsId),
index ff7b85a9b81310d10230f8be74aa23761998d25b..e3e1a739a223b19b6a7c5746887f3c0b9ffa719d 100644 (file)
@@ -265,7 +265,7 @@ function YOOMEDIA_EXCLUDE_MAIL ($data, $mode) {
                $mode = YOOMEDIA_CONVERT_MODE($mode);
 
                // Add the entry
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_yoomedia_reload` (`type`, `y_id`, `y_reload`, `inserted`) VALUES ('%s',%s,%s,'0000-00-00 00:00')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_yoomedia_reload` (`type`,`y_id`,`y_reload`,`inserted`) VALUES ('%s',%s,%s,'0000-00-00 00:00')",
                        array(
                                $mode,
                                bigintval($data['id']),
@@ -360,7 +360,7 @@ function YOOMEDIA_RELOAD_LOCK ($data, $mode) {
                $mode = YOOMEDIA_CONVERT_MODE($mode);
 
                // Add the entry
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_yoomedia_reload` (`type`, `y_id`, `y_reload`) VALUES ('%s',%s,%s)",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_yoomedia_reload` (`type`,`y_id`,`y_reload`) VALUES ('%s',%s,%s)",
                        array($mode, bigintval($data['id']), bigintval($data['reload'])), __FUNCTION__, __LINE__);
        } // END - if
 }
index a0ac12750077c7f53ecb1bc4909a82383884f542..4a32d842581b31267517376f47be8f660f0e72b9 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Init cache instance and array
-$GLOBALS['cache_instance'] = null;
+$GLOBALS['cache_instance'] = NULL;
 
 // Init cache first
 initCacheInstance();
index 190347f9a3e42c1732ff1034b32b986836d9af1f..448c283e1c3adab9598318dc69c375e126986c03 100644 (file)
@@ -90,14 +90,14 @@ if (($GLOBALS['cache_instance']->loadCacheFile('admin')) && ($GLOBALS['cache_ins
 
        // Query the database about this
        $result = SQL_QUERY('SELECT
-       `id` AS admin_id, `login`, `password`, `email`' . $add . '
+       `id` AS admin_id, `login`,`password`,`email`' . $add . '
 FROM
        `{?_MYSQL_PREFIX?}_admins`
 ORDER BY
        `login` ASC', __FILE__, __LINE__);
-       while ($dummy = SQL_FETCHARRAY($result)) {
+       while ($row = SQL_FETCHARRAY($result)) {
                // Save row
-               $GLOBALS['cache_instance']->addRow($dummy);
+               $GLOBALS['cache_instance']->addRow($row);
        } // END - while
 
        // Free memory
index 3922ef4d2d018dbe93408a836ea65b9847900d53..5d6b0cbe7d4ac6a5ecc5e2c4834119f011040e21 100644 (file)
@@ -143,7 +143,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache
        } // END - if 
 
        // Load all modules and their data
-       $result = SQL_QUERY('SELECT `id` AS `ext_id`, `ext_name`, `ext_active`, `ext_version`' . $add . ' FROM `{?_MYSQL_PREFIX?}_extensions` ORDER BY `ext_name` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `id` AS `ext_id`,`ext_name`,`ext_active`,`ext_version`' . $add . ' FROM `{?_MYSQL_PREFIX?}_extensions` ORDER BY `ext_name` ASC', __FILE__, __LINE__);
        while ($content = SQL_FETCHARRAY($result)) {
                // Load extension
                loadExtension($content['ext_name'], 'test');
index 80de83f533d55f410e198d91fa6969952d19a909..a58b9e88ac93f6a2e1abf96533207cce74ea6243 100644 (file)
@@ -59,9 +59,9 @@ if (($GLOBALS['cache_instance']->loadCacheFile('imprint')) && ($GLOBALS['cache_i
 
        // Query the database about this
        $result = SQL_QUERY('SELECT * FROM `{?_MYSQL_PREFIX?}_imprint_data` ORDER BY `imprint_id` ASC', __FILE__, __LINE__);
-       while ($dummy = SQL_FETCHARRAY($result)) {
+       while ($row = SQL_FETCHARRAY($result)) {
                // Save row
-               $GLOBALS['cache_instance']->addRow($dummy);
+               $GLOBALS['cache_instance']->addRow($row);
        } // END - while
 
        // Free memory
index a0831eae223c8afb6f42399c5e69aa9896102b0a..fa68904629a8f518bf540f98e1849fef066d9b33 100644 (file)
@@ -92,7 +92,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i
        if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) {
                // Load has_menu
                $result = SQL_QUERY('SELECT
-       `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`, `has_menu`
+       `id`,`module`,`title`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`,`has_menu`
 FROM
        `{?_MYSQL_PREFIX?}_mod_reg`
 ORDER BY
@@ -100,7 +100,7 @@ ORDER BY
        } else {
                // Don't load has_menu
                $result = SQL_QUERY('SELECT
-       `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
+       `id`,`module`,`title`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`
 FROM
        `{?_MYSQL_PREFIX?}_mod_reg`
 ORDER BY
index e1a05818aa4316f0b1044201fa46917327585d3b..aa8b75c0e28e82ac7c7f56b37fe6afc681f9ad71 100644 (file)
@@ -52,7 +52,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('refdepths')) && ($GLOBALS['cache
        $GLOBALS['cache_instance']->init();
 
        // Load all modules and their data
-       $result = SQL_QUERY('SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `id`,`level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
        while ($content = SQL_FETCHARRAY($result)) {
                // Add row to cache file
                $GLOBALS['cache_instance']->addRow($content);
index 0cef9084bd00dfa9503a837ef09277829455099e..1d3625053d75705ab251ea250ec848653583e65b 100644 (file)
@@ -52,7 +52,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('refsystem')) && ($GLOBALS['cache
        $GLOBALS['cache_instance']->init();
 
        // Load all modules and their data
-       $result = SQL_QUERY('SELECT `id`, `userid`, `level`, `counter` FROM `{?_MYSQL_PREFIX?}_refsystem` ORDER BY `userid` ASC, `level` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `id`,`userid`,`level`,`counter` FROM `{?_MYSQL_PREFIX?}_refsystem` ORDER BY `userid` ASC, `level` ASC', __FILE__, __LINE__);
        while ($content = SQL_FETCHARRAY($result)) {
                // Add row to cache file
                $GLOBALS['cache_instance']->addRow($content);
index d41705652a574679edd6a32a20dc6344aabe8632..8f06873a0f2769f9ec009e189d92bda002d40cae 100644 (file)
@@ -76,9 +76,9 @@ if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_in
 
        // Load all themes and their data
        if (isExtensionInstalledAndNewer('theme', '0.0.7')) {
-               $result = SQL_QUERY('SELECT `id`, `theme_path`, `theme_active`, `theme_ver`, `theme_name` FROM `{?_MYSQL_PREFIX?}_themes` ORDER BY `id` ASC', __FILE__, __LINE__);
+               $result = SQL_QUERY('SELECT `id`,`theme_path`,`theme_active`,`theme_ver`,`theme_name` FROM `{?_MYSQL_PREFIX?}_themes` ORDER BY `id` ASC', __FILE__, __LINE__);
        } else {
-               $result = SQL_QUERY('SELECT `id`, `theme_path`, `theme_active`, `theme_ver` FROM `{?_MYSQL_PREFIX?}_themes` ORDER BY `id` ASC', __FILE__, __LINE__);
+               $result = SQL_QUERY('SELECT `id`,`theme_path`,`theme_active`,`theme_ver` FROM `{?_MYSQL_PREFIX?}_themes` ORDER BY `id` ASC', __FILE__, __LINE__);
        }
        while ($content = SQL_FETCHARRAY($result)) {
                // Add row to cache file
index cc1d3db2f50120422a53f731ad885ac4b47b7972..9cc3453a72cd3ac56515746ce7abec1ccea67329 100644 (file)
@@ -50,7 +50,7 @@ $mark = mktime(0, 0, 0, getLastMonth(), getDay(), getYear());
 $sql = ''; $mode = '';
 
 // Shall I sent activation or deactivation mail?
-$sql = "SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`beg_rallye_enable_notify` ";
+$sql = "SELECT `userid`,`email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`beg_rallye_enable_notify` ";
 switch (getBegRallye()) {
        case 'Y': // Begging rallye is activated
                if (isBegRallyeEnableNotifyEnabled()) {
index 9927f8c33fe695918b79c887a78b6e02b2849611..adc43c69b6069f97ce672a1c2dd0f47cac2f7df3 100644 (file)
@@ -50,7 +50,7 @@ $mark = mktime(0, 0, 0, getLastMonth(), getDay(), getYear());
 $sql = ''; $mode = '';
 
 // Shall I sent activation or deactivation mail?
-$sql = "SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`bonus_rallye_enable_notify` ";
+$sql = "SELECT `userid`,`email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`bonus_rallye_enable_notify` ";
 switch (getConfig('bonus_active')) {
        case 'Y': // Active rallye is activated
                if (getConfig('bonus_enable_notify') == 'Y') {
index 81069f6f7c66a71fbc19ead4203d61227ced10e5..b7ac0e243e534843b9ad0f3f5cb09cc0e975a616 100644 (file)
@@ -155,20 +155,14 @@ if (((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')
                        // Check for jackpot inclusion in doubling process
                        if (($jackpotPoints > 0) && ($jackpotPoints >= $content['points']) && (getConfig('doubler_jackpot') == 'Y')) {
                                // Subtract points from jackpot
-                               subtractPointsFromJackpot($content['points']);
+                               $okay = subtractPointsFromJackpot($content['points']);
                                $jackpotPoints -= $content['points'];
-
-                               // Okay, done!
-                               $okay = true;
                        } // END - if
 
                        // Exclude also webmaster's id in taking points from webmaster's account
                        if (($userPoints > 0) && ($userPoints >= $content['points']) && ($okay === false) && (getConfig('doubler_userid') > 0) && ($content['userid'] != getConfig('doubler_userid'))) {
-                               // Add points to used points
-                               subtractPoints('doubler_payout', getConfig('doubler_userid'), $content['points']);
-
-                               // Okay, done!
-                               $okay = true;
+                               // Subtract points
+                               $okay = subtractPoints('doubler_payout', getConfig('doubler_userid'), $content['points']);
                        } // END - if
 
                        // Update doubler's account only when others are not updated
index a0841a6a6015408d5697f5575c8d7807b13e6c95..cc75df10fbe2d8f8bedab8e985a530fd63aef3cf 100644 (file)
@@ -84,8 +84,8 @@ function getModuleTitle ($module) {
                        // No name found
                        $data['title'] = '{%message,UNKNOWN_MODULE_DETECTED_TITLE=' . $module . '%}';
                        if ((is_resource($result)) && (SQL_HASZERONUMS($result))) {
-                               // Add module to database
-                               $dummy = checkModulePermissions($module);
+                               // Add module to database and ignore return value
+                               checkModulePermissions($module);
                        } // END - if
                }
        } // END - if
@@ -139,7 +139,7 @@ function isModuleRegistered ($module) {
        } elseif (!isExtensionActive('cache')) {
                // Check for module in database
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Using database.');
-               $result = SQL_QUERY_ESC("SELECT `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='%s' LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `locked`,`hidden`,`admin_only`,`mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='%s' LIMIT 1",
                        array($module), __FUNCTION__, __LINE__);
                if (SQL_NUMROWS($result) == 1) {
                        // Read data
@@ -286,13 +286,13 @@ function checkModulePermissions ($module = '') {
                                 * hour to find a loop here... *sigh*
                                 */
                                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg`
-(`module`, `locked`, `hidden`, `mem_only`, `admin_only`, `has_menu`)
+(`module`,`locked`,`hidden`,`mem_only`,`admin_only`,`has_menu`)
 VALUES
 ('%s','Y','N','N','N','N')", array($module_chk), __FUNCTION__, __LINE__);
                        } else {
                                // Wrong/missing sql_patches!
                                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg`
-(`module`, `locked`, `hidden`, `mem_only`, `admin_only`)
+(`module`,`locked`,`hidden`,`mem_only`,`admin_only`)
 VALUES
 ('%s','Y','N','N','N')", array($module_chk), __FUNCTION__, __LINE__);
                        }
@@ -396,7 +396,7 @@ function addModuleSql ($module, $locked, $hidden, $adminOnly, $memOnly) {
        // Is the module already registered?
        if (!isModuleRegistered($module)) {
                // Add it
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `mem_only`) VALUES ('" . $module . "','" . $locked . "','" . $hidden . "','" . $adminOnly . "','" . $memOnly . "')");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`mem_only`) VALUES ('" . $module . "','" . $locked . "','" . $hidden . "','" . $adminOnly . "','" . $memOnly . "')");
        } else {
                // Already registered
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Already registered: module=%s,locked=%s,hidden=%s,admin=%s,mem=%s",
@@ -409,5 +409,111 @@ function addModuleSql ($module, $locked, $hidden, $adminOnly, $memOnly) {
        }
 }
 
+// Load the currently set module
+function loadModule () {
+       // By default all modules are invalid
+       $isModuleValid = false;
+
+       // Init module state as 'failed' (always failed first)
+       $moduleState = 'failed';
+
+       // Construct module name
+       $GLOBALS['module_inc'] =  sprintf("inc/modules/%s.php", getModule());
+
+       // Check module permission (again)
+       $moduleState = checkModulePermissions();
+
+       // Which permission/error state do we have?
+       switch ($moduleState) {
+               case 'cache_miss': // The cache is gone
+               case 'admin_only': // Admin-only access
+               case 'mem_only': // Member-only access
+               case 'done': // All fine!
+                       // Does the module exists on local file system?
+                       if ((isIncludeReadable($GLOBALS['module_inc'])) && (!ifFatalErrorsDetected())) {
+                               // Module is valid, active and located on the local disk...
+                               $isModuleValid = true;
+                       } elseif (!ifFatalErrorsDetected()) {
+                               // Set HTTP status
+                               setHttpStatus('404');
+
+                               // Module not found
+                               addFatalMessage(__FUNCTION__, __LINE__, '{--MODULE_REGISTRY_404--}');
+
+                               // Set module to error module (non-existent!)
+                               setModule('error');
+                       }
+                       break;
+
+               case '404':
+                       // Set HTTP status
+                       setHttpStatus('404');
+
+                       // Add fatal message
+                       addFatalMessage(__FUNCTION__, __LINE__, '{--MODULE_REGISTRY_404--}');
+                       break;
+
+               case 'locked':
+                       // Set HTTP status
+                       setHttpStatus('403 FORBIDDEN');
+
+                       if (!isIncludeReadable($GLOBALS['module_inc'])) {
+                               // Set HTTP status again
+                               setHttpStatus('404 NOT FOUND');
+
+                               // Module does addionally not exists
+                               addFatalMessage(__FUNCTION__, __LINE__, '{--MODULE_REGISTRY_404--}');
+                       } // END - if
+
+                       // Add fatal message
+                       addFatalMessage(__FUNCTION__, __LINE__, '{--MODULE_REGISTRY_IS_LOCKED--}');
+                       break;
+
+               default:
+                       // Unknown module status
+                       logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s return from module check. Module=%s", $moduleState, getModule()));
+                       addFatalMessage(__FUNCTION__, __LINE__, '{%message,UNKNOWN_MODULE_STATUS=' . $moduleState . '%}');
+                       break;
+       } // END - switch
+
+       // Return status
+       return $isModuleValid;
+}
+
+// Include module
+function doIncludeModule () {
+       // Set content type
+       setContentType('text/html');
+
+       // The header file
+       loadIncludeOnce('inc/header.php');
+
+       // Modules are by default not valid!
+       $isModuleValid = false;
+
+       // By default NULL is used
+       $GLOBALS['module_inc'] = NULL;
+
+       // Is the maintenance mode active or goes all well?
+       if ((isExtensionActive('maintenance')) && (isMaintenanceEnabled()) && (!isAdmin()) && (getModule() != 'admin')) {
+               // Maintain mode is active and you are no admin
+               addFatalMessage(__FUNCTION__, __LINE__, '{--MAILER_DOWN_FOR_MAINTENANCE--}');
+       } elseif ((SQL_IS_LINK_UP()) && (!ifFatalErrorsDetected())) {
+               // Do the small "load module" call
+               $isModuleValid = loadModule();
+       } elseif (!ifFatalErrorsDetected()) {
+               // SQL problems detected
+               addFatalMessage(__FUNCTION__, __LINE__, '{--MYSQL_ERRORS--}');
+       }
+
+       if (($isModuleValid === true) && (!is_null($GLOBALS['module_inc']))) {
+               // Everything is okay so we can load the module
+               loadIncludeOnce($GLOBALS['module_inc']);
+       } // END - if
+
+       // Add the footer (this will call shutdown())
+       loadIncludeOnce('inc/footer.php');
+}
+
 // [EOF]
 ?>
index 1f5d396740a8bd49873888355cab8c201fb1feca..f07b057a7816f72ee7076278eed3b677cb1c6c32 100644 (file)
@@ -52,7 +52,7 @@ function addAdminAccount ($adminLogin, $passHash, $adminEmail) {
        // Is the entry there?
        if (SQL_HASZERONUMS($result)) {
                // Ok, let's create the admin login
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins` (`login`, `password`, `email`) VALUES ('%s', '%s', '%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins` (`login`,`password`,`email`) VALUES ('%s', '%s', '%s')",
                        array(
                                $adminLogin,
                                $passHash,
@@ -74,7 +74,7 @@ function addAdminAccount ($adminLogin, $passHash, $adminEmail) {
 function ifAdminLoginDataIsValid ($adminLogin, $adminPassword) {
        // First of all, no admin login is found, so the admin hash is null
        $ret = '404';
-       $adminHash = null;
+       $adminHash = NULL;
 
        // Get admin id from login
        $adminId = getAdminId($adminLogin);
@@ -235,7 +235,7 @@ LIMIT 1",
 
 // Checks wether current admin is allowed to access given action/what combination
 // (only one is allowed to be null!)
-function isAdminAllowedAccessMenu ($action, $what = null) {
+function isAdminAllowedAccessMenu ($action, $what = NULL) {
        // Do we have cache?
        if (!isset($GLOBALS[__FUNCTION__][$action][$what])) {
                // ACL is always 'allow' when no ext-admins is installed
@@ -259,7 +259,7 @@ function addAdminMenu ($action, $what, $return = false) {
 
        // Build main menu
        $result_main = SQL_QUERY("SELECT
-       `action`, `title`, `descr`
+       `action`,`title`,`descr`
 FROM
        `{?_MYSQL_PREFIX?}_admin_menu`
 WHERE
@@ -316,7 +316,7 @@ ORDER BY
 
                                // Check for menu entries
                                $result_what = SQL_QUERY_ESC("SELECT
-       `what`, `title`, `descr`
+       `what`,`title`,`descr`
 FROM
        `{?_MYSQL_PREFIX?}_admin_menu`
 WHERE
@@ -403,7 +403,7 @@ ORDER BY
 // Create member selection box
 function addMemberSelectionBox ($def = 0, $add_all = false, $return = false, $none = false, $field = 'userid') {
        // Output selection form with all confirmed user accounts listed
-       $result = SQL_QUERY("SELECT `userid`, `surname`, `family` FROM `{?_MYSQL_PREFIX?}_user_data` ORDER BY `userid` ASC", __FUNCTION__, __LINE__);
+       $result = SQL_QUERY("SELECT `userid`,`surname`,`family` FROM `{?_MYSQL_PREFIX?}_user_data` ORDER BY `userid` ASC", __FUNCTION__, __LINE__);
 
        // Default output
        $OUT = '';
@@ -441,7 +441,7 @@ function adminMenuSelectionBox_DEPRECATED ($mode, $default = '', $defid = '') {
        $what = "`what` != '' AND `what` IS NOT NULL";
        if ($mode == 'action') $what = "(`what`='' OR `what` IS NULL) AND `action` != 'login'";
 
-       $result = SQL_QUERY_ESC("SELECT `%s` AS `menu`, `title` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$what." ORDER BY `sort` ASC",
+       $result = SQL_QUERY_ESC("SELECT `%s` AS `menu`,`title` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$what." ORDER BY `sort` ASC",
                array($mode), __FUNCTION__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // Load menu as selection
@@ -553,7 +553,7 @@ function adminSaveSettings (&$postData, $tableName = '_config', $whereStatement
                } // END - foreach
 
                // Add both in one line
-               $keys = implode('`, `', $keys);
+               $keys = implode('`,`', $keys);
                $values = implode(', ', $values);
 
                // Generate SQL string
@@ -751,7 +751,16 @@ function adminChangeActivationStatus ($IDs, $table, $row, $idRow = 'id') {
 }
 
 // Send mails for del/edit/lock build modes
-function sendAdminBuildMails ($mode, $table, $content, $id, $subjectPart = '', $userIdColumn = 'userid') {
+function sendAdminBuildMails ($mode, $tableName, $content, $id, $subjectPart = '', $userIdColumn = array('userid')) {
+       // $tableName must be an array
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // $tableName is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName[]=' . gettype($tableName) . '!=array');
+       } elseif ((!is_array($userIdColumn)) || (count($userIdColumn) != 1)) {
+               // $tableName is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'userIdColumn[]=' . gettype($userIdColumn) . '!=array');
+       } // END - if
+
        // Default subject is the subject part
        $subject = $subjectPart;
 
@@ -762,49 +771,54 @@ function sendAdminBuildMails ($mode, $table, $content, $id, $subjectPart = '', $
        } // END - if
 
        // Is the raw userid set?
-       if (postRequestParameter($userIdColumn, $id) > 0) {
+       if (postRequestParameter($userIdColumn[0], $id) > 0) {
                // Load email template
                if (!empty($subjectPart)) {
-                       $mail = loadEmailTemplate('member_' . $mode . '_' . strtolower($subjectPart) . '_' . $table, $content);
+                       $mail = loadEmailTemplate('member_' . $mode . '_' . strtolower($subjectPart) . '_' . $tableName[0], $content);
                } else {
-                       $mail = loadEmailTemplate('member_' . $mode . '_' . $table, $content);
+                       $mail = loadEmailTemplate('member_' . $mode . '_' . $tableName[0], $content);
                }
 
                // Send email out
-               sendEmail(postRequestParameter($userIdColumn, $id), strtoupper('{--MEMBER_' . $subject . '_' . $table . '_SUBJECT--}'), $mail);
+               sendEmail(postRequestParameter($userIdColumn[0], $id), strtoupper('{--MEMBER_' . $subject . '_' . $tableName[0] . '_SUBJECT--}'), $mail);
        } // END - if
 
        // Generate subject
-       $subject = strtoupper('{--ADMIN_' . $subject . '_' . $table . '_SUBJECT--}');
+       $subject = strtoupper('{--ADMIN_' . $subject . '_' . $tableName[0] . '_SUBJECT--}');
 
        // Send admin notification out
        if (!empty($subjectPart)) {
-               sendAdminNotification($subject, 'admin_' . $mode . '_' . strtolower($subjectPart) . '_' . $table, $content, postRequestParameter($userIdColumn, $id));
+               sendAdminNotification($subject, 'admin_' . $mode . '_' . strtolower($subjectPart) . '_' . $tableName[0], $content, postRequestParameter($userIdColumn[0], $id));
        } else {
-               sendAdminNotification($subject, 'admin_' . $mode . '_' . $table, $content, postRequestParameter($userIdColumn, $id));
+               sendAdminNotification($subject, 'admin_' . $mode . '_' . $tableName[0], $content, postRequestParameter($userIdColumn[0], $id));
        }
 }
 
 // Build a special template list
-function adminListBuilder ($listType, $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $userid = 'userid') {
-       // $table and $idColumn must bove be arrays!
-       if (!is_array($table)) {
-               // $table is no array
-               debug_report_bug(__FUNCTION__, __LINE__, 'table[]=' . gettype($table) . '!=array');
+function adminListBuilder ($listType, $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $rawUserId = array('userid')) {
+       // $tableName and $idColumn must bove be arrays!
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // $tableName is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName[]=' . gettype($tableName) . '!=array');
        } elseif (!is_array($idColumn)) {
                // $idColumn is no array
                debug_report_bug(__FUNCTION__, __LINE__, 'idColumn[]=' . gettype($idColumn) . '!=array');
+       } elseif ((!is_array($userIdColumn)) || (count($userIdColumn) != 1)) {
+               // $tableName is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'userIdColumn[]=' . gettype($userIdColumn) . '!=array');
        }
 
+       // Init row output
        $OUT = '';
 
        // "Walk" through all entries
-       foreach ($IDs as $id => $selected) {
+       //* DEBUG: */ debug_report_bug(__FUNCTION__, __LINE__, 'listType=<pre>'.print_r($listType,true).'</pre>,tableName<pre>'.print_r($tableName,true).'</pre>,columns=<pre>'.print_r($columns,true).'</pre>,filterFunctions=<pre>'.print_r($filterFunctions,true).'</pre>,extraValues=<pre>'.print_r($extraValues,true).'</pre>,idColumn=<pre>'.print_r($idColumn,true).'</pre>,userIdColumn=<pre>'.print_r($userIdColumn,true).'</pre>,rawUserId=<pre>'.print_r($rawUserId,true).'</pre>');
+       foreach (postRequestParameter($idColumn[0]) as $id => $selected) {
                // Secure id number
                $id = bigintval($id);
 
                // Get result from a given column array and table name
-               $result = SQL_RESULT_FROM_ARRAY($table[0], $columns, $idColumn[0], $id, __FUNCTION__, __LINE__);
+               $result = SQL_RESULT_FROM_ARRAY($tableName[0], $columns, $idColumn[0], $id, __FUNCTION__, __LINE__);
 
                // Is there one entry?
                if (SQL_NUMROWS($result) == 1) {
@@ -817,15 +831,17 @@ function adminListBuilder ($listType, $IDs, $table, $columns, $filterFunctions,
                                $idx = array_search($key, $columns, true);
 
                                // Do we have a userid?
-                               if ($key == $userIdColumn) {
+                               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',userIdColumn=' . $userIdColumn[0]);
+                               if ($key == $userIdColumn[0]) {
                                        // Add it again as raw id
-                                       $content[$userIdColumn] = bigintval($value);
-                                       $content[$userIdColumn . '_raw'] = $content[$userIdColumn];
+                                       //* DEBUG: */ debug_report_bug(__FUNCTION__, __LINE__, 'key=' . $key . ',userIdColumn=' . $userIdColumn[0]);
+                                       $content[$userIdColumn[0]] = bigintval($value);
+                                       $content[$userIdColumn[0] . '_raw'] = $content[$userIdColumn[0]];
                                } // END - if
 
                                // If the key matches the idColumn variable, we need to temporary remember it
-                               //* DEBUG: */ debugOutput('key=' . $key . ',idColumn=' . $idColumn . ',value=' . $value);
-                               if ($key == $idColumn) {
+                               //* DEBUG: */ debugOutput('key=' . $key . ',idColumn=' . $idColumn[0] . ',value=' . $value);
+                               if ($key == $idColumn[0]) {
                                        // Found, so remember it
                                        $GLOBALS['admin_list_builder_id_value'] = $value;
                                } // END - if
@@ -842,7 +858,7 @@ function adminListBuilder ($listType, $IDs, $table, $columns, $filterFunctions,
                        // Then list it
                        $OUT .= loadTemplate(sprintf("admin_%s_%s_row",
                                $listType,
-                               $table[0]
+                               $tableName[0]
                                ), true, $content
                        );
                } // END - if
@@ -854,23 +870,39 @@ function adminListBuilder ($listType, $IDs, $table, $columns, $filterFunctions,
        // Load master template
        loadTemplate(sprintf("admin_%s_%s",
                $listType,
-               $table[0]
+               $tableName[0]
                ), false, $OUT
        );
 }
 
 // Change status of "build" list
-function adminBuilderStatusHandler ($mode, $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $statusArray, $userid = 'userid') {
+function adminBuilderStatusHandler ($mode, $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $statusArray, $rawUserId = array('userid')) {
+       // $tableName must be an array
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // No tableName specified
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XML,tableName[]=' . gettype($tableName) . '!=array');
+       } elseif (!is_array($idColumn)) {
+               // $idColumn is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'idColumn[]=' . gettype($idColumn) . '!=array');
+       } elseif ((!is_array($userIdColumn)) || (count($userIdColumn) != 1)) {
+               // $tableName is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'userIdColumn[]=' . gettype($userIdColumn) . '!=array');
+       } // END - if
+
        // All valid entries? (We hope so here!)
-       if ((is_array($IDs)) && (count($IDs) > 0) && (count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues)) && (count($statusArray) > 0)) {
+       if ((count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues)) && (count($statusArray) > 0)) {
                // "Walk" through all entries
-               foreach ($IDs as $id => $sel) {
+               foreach (postRequestParameter($idColumn[0]) as $id => $sel) {
                        // Construct SQL query
-                       $sql = sprintf("UPDATE `{?_MYSQL_PREFIX?}_%s` SET", SQL_ESCAPE($table));
+                       $sql = sprintf("UPDATE `{?_MYSQL_PREFIX?}_%s` SET", SQL_ESCAPE($tableName[0]));
 
                        // Load data of entry
                        $result = SQL_QUERY_ESC("SELECT * FROM `{?_MYSQL_PREFIX?}_%s` WHERE `%s`=%s LIMIT 1",
-                               array($table, $idColumn, $id), __FUNCTION__, __LINE__);
+                               array(
+                                       $tableName[0],
+                                       $idColumn[0],
+                                       $id
+                               ), __FUNCTION__, __LINE__);
 
                        // Fetch the data
                        $content = SQL_FETCHARRAY($result);
@@ -907,7 +939,7 @@ function adminBuilderStatusHandler ($mode, $IDs, $table, $columns, $filterFuncti
                                logDebugMessage(__FUNCTION__, __LINE__, 'Found entry: ' . $key);
 
                                // Skip id, raw userid and 'do_$mode'
-                               if (!in_array($key, array($idColumn, $userid, ('do_' . $mode)))) {
+                               if (!in_array($key, array($idColumn[0], $rawUserId[0], ('do_' . $mode)))) {
                                        // Are there brackets () at the end?
                                        if (substr($entries[$id], -2, 2) == '()') {
                                                // Direct SQL command found
@@ -927,7 +959,7 @@ function adminBuilderStatusHandler ($mode, $IDs, $table, $columns, $filterFuncti
 
                        // Finish SQL statement
                        $sql = substr($sql, 0, -1) . sprintf(" WHERE `%s`=%s AND `%s`='%s' LIMIT 1",
-                               $idColumn,
+                               $idColumn[0],
                                bigintval($id),
                                $statusColumn,
                                $oldStatus
@@ -943,30 +975,45 @@ function adminBuilderStatusHandler ($mode, $IDs, $table, $columns, $filterFuncti
                        } // END - if
 
                        // Send "build mails" out
-                       sendAdminBuildMails($mode, $table, $content, $id, $statusInfo[$content[$column]], $userIdColumn);
+                       sendAdminBuildMails($mode, $tableName, $content, $id, $statusInfo[$content[$column]], $userIdColumn);
                } // END - foreach
        } // END - if
 }
 
 // Delete rows by given id numbers
-function adminDeleteEntriesConfirm ($IDs, $table, $columns = array(), $filterFunctions = array(), $extraValues = array(), $deleteNow = false, $idColumn = 'id', $userIdColumn = 'userid', $userid = 'userid') {
+function adminDeleteEntriesConfirm ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $deleteNow = array(false), $idColumn = array('id'), $userIdColumn = array('userid'), $rawUserId = array('userid')) {
+       // $tableName must be an array
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // No tableName specified
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XML,tableName[]=' . gettype($tableName) . '!=array');
+       } elseif (!is_array($idColumn)) {
+               // $idColumn is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'idColumn[]=' . gettype($idColumn) . '!=array');
+       } elseif (!is_array($userIdColumn)) {
+               // $userIdColumn is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'userIdColumn[]=' . gettype($userIdColumn) . '!=array');
+       } elseif (!is_array($deleteNow)) {
+               // $deleteNow is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'deleteNow[]=' . gettype($deleteNow) . '!=array');
+       } // END - if
+
        // All valid entries? (We hope so here!)
-       if ((is_array($IDs)) && (count($IDs) > 0) && (count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues))) {
+       if ((count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues))) {
                // Shall we delete here or list for deletion?
-               if ($deleteNow === true) {
+               if ($deleteNow[0] === true) {
                        // The base SQL command:
                        $sql = "DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_%s` WHERE `%s` IN (%s)";
 
                        // Delete them all
                        $idList = '';
-                       foreach ($IDs as $id => $sel) {
+                       foreach (postRequestParameter($idColumn[0]) as $id => $sel) {
                                // Is there a userid?
-                               if (isPostRequestParameterSet($userid, $id)) {
+                               if (isPostRequestParameterSet($rawUserId[0], $id)) {
                                        // Load all data from that id
                                        $result = SQL_QUERY_ESC("SELECT * FROM `{?_MYSQL_PREFIX?}_%s` WHERE `%s`=%s LIMIT 1",
                                                array(
-                                                       $table,
-                                                       $idColumn,
+                                                       $tableName[0],
+                                                       $idColumn[0],
                                                        $id
                                                ), __FUNCTION__, __LINE__);
 
@@ -977,7 +1024,7 @@ function adminDeleteEntriesConfirm ($IDs, $table, $columns = array(), $filterFun
                                        SQL_FREERESULT($result);
 
                                        // Send "build mails" out
-                                       sendAdminBuildMails('delete', $table, $content, $id, '', $userIdColumn);
+                                       sendAdminBuildMails('delete', $tableName, $content, $id, '', $userIdColumn);
                                } // END - if
 
                                // Add id number
@@ -985,48 +1032,64 @@ function adminDeleteEntriesConfirm ($IDs, $table, $columns = array(), $filterFun
                        } // END - foreach
 
                        // Run the query
-                       SQL_QUERY_ESC($sql, array($table, $idColumn, substr($idList, 0, -1)), __FUNCTION__, __LINE__);
+                       SQL_QUERY_ESC($sql, array($tableName[0], $idColumn[0], substr($idList, 0, -1)), __FUNCTION__, __LINE__);
 
                        // Was this fine?
-                       if (SQL_AFFECTEDROWS() == count($IDs)) {
+                       if (SQL_AFFECTEDROWS() == count(postRequestParameter($idColumn[0]))) {
                                // All deleted
                                displayMessage('{--ADMIN_ALL_ENTRIES_REMOVED--}');
                        } else {
                                // Some are still there :(
-                               displayMessage(sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_DELETED'), SQL_AFFECTEDROWS(), count($IDs)));
+                               displayMessage(sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_DELETED'), SQL_AFFECTEDROWS(), count(postRequestParameter($idColumn[0]))));
                        }
                } else {
                        // List for deletion confirmation
-                       adminListBuilder('delete', $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
+                       adminListBuilder('delete', $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
                }
        } // END - if
 }
 
 // Edit rows by given id numbers
-function adminEditEntriesConfirm ($IDs, $table, $columns = array(), $filterFunctions = array(), $extraValues = array(), $editNow = false, $idColumn = 'id', $userIdColumn = 'userid', $userid = 'userid') {
+function adminEditEntriesConfirm ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $editNow = array(false), $idColumn = array('id'), $userIdColumn = array('userid'), $rawUserId = array('userid')) {
+       // $tableName must be an array
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // No tableName specified
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XML,tableName[]=' . gettype($tableName) . '!=array');
+       } elseif (!is_array($idColumn)) {
+               // $idColumn is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'idColumn[]=' . gettype($idColumn) . '!=array');
+       } elseif (!is_array($userIdColumn)) {
+               // $userIdColumn is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'userIdColumn[]=' . gettype($userIdColumn) . '!=array');
+       } elseif (!is_array($editNow)) {
+               // $editNow is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'editNow[]=' . gettype($editNow) . '!=array');
+       } // END - if
+
        // All valid entries? (We hope so here!)
-       if ((is_array($IDs)) && (count($IDs) > 0) && (count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues))) {
+       //* DEBUG: */ debug_report_bug(__FUNCTION__, __LINE__, 'idColumn=<pre>'.print_r($idColumn,true).'</pre>,tableName<pre>'.print_r($tableName,true).'</pre>,columns=<pre>'.print_r($columns,true).'</pre>,filterFunctions=<pre>'.print_r($filterFunctions,true).'</pre>,extraValues=<pre>'.print_r($extraValues,true).'</pre>,editNow=<pre>'.print_r($editNow,true).'</pre>,userIdColumn=<pre>'.print_r($userIdColumn,true).'</pre>,rawUserId=<pre>'.print_r($rawUserId,true).'</pre>');
+       if ((count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues))) {
                // Shall we change here or list for editing?
-               if ($editNow === true) {
+               if ($editNow[0] === true) {
                        // Change them all
                        $affected = '0';
-                       foreach ($IDs as $id => $sel) {
+                       foreach (postRequestParameter($idColumn[0]) as $id => $sel) {
                                // Prepare content array (new values)
                                $content = array();
 
                                // Prepare SQL for this row
                                $sql = sprintf("UPDATE `{?_MYSQL_PREFIX?}_%s` SET",
-                                       SQL_ESCAPE($table)
+                                       SQL_ESCAPE($tableName[0])
                                );
                                foreach (postRequestArray() as $key => $entries) {
                                        // Skip raw userid which is always invalid
-                                       if ($key == $userid) {
+                                       if ($key == $rawUserId[0]) {
                                                // Continue with next field
                                                continue;
                                        } // END - if
 
                                        // Is entries an array?
-                                       if (($key != $idColumn) && (is_array($entries)) && (isset($entries[$id]))) {
+                                       if (($key != $idColumn[0]) && (is_array($entries)) && (isset($entries[$id]))) {
                                                // Add this entry to content
                                                $content[$key] = $entries[$id];
 
@@ -1041,7 +1104,7 @@ function adminEditEntriesConfirm ($IDs, $table, $columns = array(), $filterFunct
                                                        SQL_ESCAPE($key),
                                                        SQL_ESCAPE($entries[$id])
                                                );
-                                       } elseif (($key != $idColumn) && (!is_array($entries))) {
+                                       } elseif (($key != $idColumn[0]) && (!is_array($entries))) {
                                                // Add normal entries as well!
                                                $content[$key] =  $entries;
                                        }
@@ -1054,7 +1117,7 @@ function adminEditEntriesConfirm ($IDs, $table, $columns = array(), $filterFunct
                                } // END - foreach
 
                                // Finish SQL command
-                               $sql = substr($sql, 0, -1) . " WHERE `" . $idColumn . "`=" . bigintval($id) . " LIMIT 1";
+                               $sql = substr($sql, 0, -1) . " WHERE `" . $idColumn[0] . "`=" . bigintval($id) . " LIMIT 1";
 
                                // Run this query
                                SQL_QUERY($sql, __FUNCTION__, __LINE__);
@@ -1064,7 +1127,11 @@ function adminEditEntriesConfirm ($IDs, $table, $columns = array(), $filterFunct
 
                                // Load all data from that id
                                $result = SQL_QUERY_ESC("SELECT * FROM `{?_MYSQL_PREFIX?}_%s` WHERE `%s`=%s LIMIT 1",
-                                       array($table, $idColumn, $id), __FUNCTION__, __LINE__);
+                                       array(
+                                               $tableName[0],
+                                               $idColumn[0],
+                                               $id
+                                       ), __FUNCTION__, __LINE__);
 
                                // Fetch the data and merge it into $content
                                $content = merge_array($content, SQL_FETCHARRAY($result));
@@ -1073,66 +1140,136 @@ function adminEditEntriesConfirm ($IDs, $table, $columns = array(), $filterFunct
                                SQL_FREERESULT($result);
 
                                // Send "build mails" out
-                               sendAdminBuildMails('edit', $table, $content, $id, '', $userIdColumn);
+                               sendAdminBuildMails('edit', $tableName, $content, $id, '', $userIdColumn);
                        } // END - foreach
 
                        // Was this fine?
-                       if ($affected == count($IDs)) {
+                       if ($affected == count(postRequestParameter($idColumn[0]))) {
                                // All deleted
                                displayMessage('{--ADMIN_ALL_ENTRIES_EDITED--}');
                        } else {
                                // Some are still there :(
-                               displayMessage(sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_EDITED'), $affected, count($IDs)));
+                               displayMessage(sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_EDITED'), $affected, count(postRequestParameter($idColumn[0]))));
                        }
                } else {
                        // List for editing
-                       adminListBuilder('edit', $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
+                       adminListBuilder('edit', $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
                }
        } else {
                // Maybe some invalid parameters
-               debug_report_bug(__FUNCTION__, __LINE__, 'IDs[]=' . gettype($IDs) . ',table=' . $table . ',columns[]=' . gettype($columns) . ',filterFunctions[]=' . gettype($filterFunctions) . ',extraValues[]=' . gettype($extraValues) . ',idColumn=' . $idColumn . ',userIdColumn=' . $userIdColumn . ' - INVALID!');
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName=' . $tableName[0] . ',columns[]=' . gettype($columns) . ',filterFunctions[]=' . gettype($filterFunctions) . ',extraValues[]=' . gettype($extraValues) . ',idColumn=' . $idColumn[0] . ',userIdColumn=' . $userIdColumn[0] . ' - INVALID!');
        }
 }
 
 // Un-/lock rows by given id numbers
-function adminLockEntriesConfirm ($IDs, $table, $columns=array(), $filterFunctions=array(), $extraValues=array(), $statusArray=array(), $lockNow=false, $idColumn='id', $userIdColumn='userid') {
+function adminLockEntriesConfirm ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $statusArray = array(), $lockNow = array(false), $idColumn = array('id'), $userIdColumn = array('userid')) {
+       // $tableName must be an array
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // No tableName specified
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XML,tableName[]=' . gettype($tableName) . '!=array');
+       } elseif (!is_array($idColumn)) {
+               // $idColumn is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'idColumn[]=' . gettype($idColumn) . '!=array');
+       } elseif (!is_array($lockNow)) {
+               // $lockNow is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'lockNow[]=' . gettype($lockNow) . '!=array');
+       } // END - if
+
        // All valid entries? (We hope so here!)
-       if ((is_array($IDs)) && (count($IDs) > 0) && (count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues)) && (($lockNow === false) || (count($statusArray) == 1))) {
+       if ((count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues)) && (($lockNow[0] === false) || (count($statusArray) == 1))) {
                // Shall we un-/lock here or list for locking?
-               if ($lockNow === true) {
+               if ($lockNow[0] === true) {
                        // Un-/lock entries
-                       adminBuilderStatusHandler('lock', $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $statusArray);
+                       adminBuilderStatusHandler('lock', $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $statusArray);
                } else {
                        // List for editing
-                       adminListBuilder('lock', $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
+                       adminListBuilder('lock', $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
                }
        } // END - if
 }
 
 // Undelete rows by given id numbers
-function adminUndeleteEntriesConfirm ($IDs, $table, $columns=array(), $filterFunctions=array(), $extraValues=array(), $statusArray=array(), $undeleteNow=false, $idColumn='id', $userIdColumn='userid') {
+function adminUndeleteEntriesConfirm ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $statusArray = array(), $undeleteNow = array(false), $idColumn = array('id'), $userIdColumn = array('userid')) {
+       // $tableName must be an array
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // No tableName specified
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XML,tableName[]=' . gettype($tableName) . '!=array');
+       } elseif (!is_array($idColumn)) {
+               // $idColumn is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'idColumn[]=' . gettype($idColumn) . '!=array');
+       } elseif (!is_array($undeleteNow)) {
+               // $undeleteNow is no array
+               debug_report_bug(__FUNCTION__, __LINE__, 'undeleteNow[]=' . gettype($undeleteNow) . '!=array');
+       } // END - if
+
        // All valid entries? (We hope so here!)
-       if ((is_array($IDs)) && (count($IDs) > 0) && (count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues)) && (($undeleteNow === false) || (count($statusArray) == 1))) {
+       if ((count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues)) && (($undeleteNow[0] === false) || (count($statusArray) == 1))) {
                // Shall we un-/lock here or list for locking?
-               if ($undeleteNow === true) {
+               if ($undeleteNow[0] === true) {
                        // Undelete entries
-                       adminBuilderStatusHandler('undelete', $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $statusArray);
+                       adminBuilderStatusHandler('undelete', $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $statusArray);
                } else {
                        // List for editing
-                       adminListBuilder('undelete', $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
+                       adminListBuilder('undelete', $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
                }
        } // END - if
 }
 
+// Adds a given entry to the database
+function adminAddEntries ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array()) {
+       //* 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>');
+       // Verify that tableName and columns are not empty
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
+               // No tableName specified
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XML,tableName[]=' . gettype($tableName) . '!=array');
+       } elseif (count($columns) == 0) {
+               // No columns specified
+               debug_report_bug(__FUNCTION__, __LINE__, 'columns is not given. Please fix your XML.');
+       }
+
+       // Init columns and value elements
+       $sqlColumns = array();
+       $sqlValues  = array();
+
+       // Add columns and values
+       foreach ($columns as $key=>$columnName) {
+               // Copy entry to final arrays
+               $sqlColumns[$key] = $columnName;
+               $sqlValues[$key]  = postRequestParameter($columnName);
+               //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key='.$key.',columnName='.$columnName.',filterFunctions='.$filterFunctions[$key].',extraValues='.intval(isset($extraValues[$key])).',extraValuesName='.intval(isset($extraValues[$columnName . '_list'])).'<br />');
+
+               // Send data through the filter function if found
+               if ((isset($filterFunctions[$key])) && (isset($extraValues[$key . '_list']))) {
+                       // Filter function set!
+                       $sqlValues[$key] = call_user_func_array($filterFunctions[$key], merge_array(array($columnName), $extraValues[$key . '_list']));
+               } // END - if
+       } // END - foreach
+
+       // Build the SQL query
+       $SQL = 'INSERT INTO `{?_MYSQL_PREFIX?}_' . $tableName[0] . '` (`' . implode('`, `', $sqlColumns) . "`) VALUES('" . implode("','", $sqlValues) . "')";
+
+       // Run the SQL query
+       SQL_QUERY($SQL, __FUNCTION__, __LINE__);
+
+       // Entry has been added?
+       if (!SQL_HASZEROAFFECTED()) {
+               // Display success message
+               displayMessage('{--ADMIN_ENTRY_ADDED--}');
+       } else {
+               // Display failed message
+               displayMessage('{--ADMIN_ENTRY_NOT_ADDED--}');
+       }
+}
+
 // List all given rows (callback function from XML)
 function adminListEntries ($tableTemplate, $rowTemplate, $noEntryMessageId, $tableName, $columns, $whereColumns, $orderByColumns, $callbackColumns, $extraParameters = array()) {
        // Verify that tableName and columns are not empty
-       if (count($tableName) != 1) {
+       if ((!is_array($tableName)) || (count($tableName) != 1)) {
                // No tableName specified
-               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XMLtableTemplate=' . $tableTemplate . ',rowTemplate=' . $rowTemplate);
+               debug_report_bug(__FUNCTION__, __LINE__, 'tableName is not given. Please fix your XML,tableName[]=' . gettype($tableName) . '!=array,tableTemplate=' . $tableTemplate . ',rowTemplate=' . $rowTemplate);
        } elseif (count($columns) == 0) {
                // No columns specified
-               debug_report_bug(__FUNCTION__, __LINE__, 'columns is not given. Please fix your XMLtableTemplate=' . $tableTemplate . ',rowTemplate=' . $rowTemplate . ',tableName[0]=' . $tableName[0]);
+               debug_report_bug(__FUNCTION__, __LINE__, 'columns is not given. Please fix your XML,tableTemplate=' . $tableTemplate . ',rowTemplate=' . $rowTemplate . ',tableName[0]=' . $tableName[0]);
        }
 
        // This is the minimum query, so at least columns and tableName must have entries
@@ -1245,7 +1382,7 @@ function doAdminListEntries ($SQL, $tableTemplate, $noEntryMessageId, $rowTempla
                loadTemplate(trim($tableTemplate[0]), false, $OUT);
        } else {
                // No URLs in surfbar
-               displayMessage('{--' .$noEntryMessageId . '--}');
+               displayMessage('{--' .$noEntryMessageId[0] . '--}');
        }
 
        // Free result
@@ -1273,7 +1410,7 @@ function sendAdminPasswordResetLink ($email) {
        $OUT = '';
 
        // Look up administator login
-       $result = SQL_QUERY_ESC("SELECT `id`, `login`, `password` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `email`='%s' LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`login`,`password` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `email`='%s' LIMIT 1",
                array($email), __FUNCTION__, __LINE__);
 
        // Is there an account?
@@ -1311,7 +1448,7 @@ function adminResetValidateHashLogin ($hash, $login) {
        $valid = false;
 
        // Then try to find that user
-       $result = SQL_QUERY_ESC("SELECT `id`, `password`, `email` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `login`='%s' LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`password`,`email` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `login`='%s' LIMIT 1",
                array($login), __FUNCTION__, __LINE__);
 
        // Is an account here?
index 2ba0d8721b8778596615748e888b1b965c57ba7d..ed8f411107d33e32c57c11d81ae31aa87a00d278 100644 (file)
@@ -102,7 +102,7 @@ function outputStandardOverview (&$result_tasks) {
 
        // At last - but not least - check for own and new unassigned tasks...
        $result_tasks = SQL_QUERY_ESC("SELECT
-       `id`, `assigned_admin`, `userid`, `task_type`, `subject`, `text`, `task_created`
+       `id`,`assigned_admin`,`userid`,`task_type`,`subject`,`text`,`task_created`
 FROM
        `{?_MYSQL_PREFIX?}_task_system`
 WHERE
@@ -133,7 +133,7 @@ function outputSeletectedTasks ($postData, $result_tasks) {
                $OUT = '';
                foreach ($postData['sel'] as $taskId => $sel) {
                        $result_task = SQL_QUERY_ESC("SELECT
-       `id`, `userid`, `task_type`, `subject`, `text`, `task_created`, `status`, `assigned_admin`
+       `id`,`userid`,`task_type`,`subject`,`text`,`task_created`,`status`,`assigned_admin`
 FROM
        `{?_MYSQL_PREFIX?}_task_system`
 WHERE
@@ -412,7 +412,7 @@ LIMIT 1",
                        }
 
                        // Update query
-                       $result_tasks = SQL_QUERY_ESC("SELECT `id`, `assigned_admin`, `userid`, `task_type`, `subject`, `text`, `task_created` FROM `{?_MYSQL_PREFIX?}_task_system` WHERE `assigned_admin`=%s OR ((`assigned_admin`=0 OR `assigned_admin` IS NULL) AND `status`='NEW') ORDER BY `task_created` DESC",
+                       $result_tasks = SQL_QUERY_ESC("SELECT `id`,`assigned_admin`,`userid`,`task_type`,`subject`,`text`,`task_created` FROM `{?_MYSQL_PREFIX?}_task_system` WHERE `assigned_admin`=%s OR ((`assigned_admin`=0 OR `assigned_admin` IS NULL) AND `status`='NEW') ORDER BY `task_created` DESC",
                                array(getCurrentAdminId()), __FILE__, __LINE__);
                } // END - if
 
index d3cae625a030993a019e82949bcff2f29cf58eb2..aafcac4b0dfa4f758e165f7c2cc0ecfb808c1d96 100644 (file)
@@ -49,12 +49,12 @@ if (isFormSent()) {
        $END   = mktime(postRequestParameter('end_hour')  , postRequestParameter('end_min')  , postRequestParameter('end_sec')  , postRequestParameter('end_month')  , postRequestParameter('end_day')  , postRequestParameter('end_year')  );
 
        // Is there already a rallye running?
-       $result = SQL_QUERY_ESC("SELECT `id`, `admin_id` FROM `{?_MYSQL_PREFIX?}_rallye_data` WHERE (`start_time` <= %s AND `end_time` >= %s) OR (`start_time` >= %s AND `start_time` <= %s) LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`admin_id` FROM `{?_MYSQL_PREFIX?}_rallye_data` WHERE (`start_time` <= %s AND `end_time` >= %s) OR (`start_time` >= %s AND `start_time` <= %s) LIMIT 1",
                array($START, $START, $START, $END), __FILE__, __LINE__);
 
        if (SQL_HASZERONUMS($result)) {
                // Ok, start and end time did not overlap
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_data` (`admin_id`, `title`, `descr`, template, `start_time`, `end_time`, `auto_add_new_user`, `is_active`, `send_notify`)
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_data` (`admin_id`,`title`,`descr`, template, `start_time`,`end_time`,`auto_add_new_user`,`is_active`,`send_notify`)
 VALUES (%s,'%s','%s','%s',%s,%s,'%s','%s','%s')",
                        array(
                                getCurrentAdminId(),
index aef693aec467b1748c17293b97f0df07a6955179..8363be5858472902e24ebbff903702efd8028267 100644 (file)
@@ -53,7 +53,7 @@ if (!isFormSent()) {
        $menus = array(); $titles = array(); $below = array();
 
        // Get all available main menus
-       $result = SQL_QUERY("SELECT `action`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `action`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // Read menu structure
                // @TODO Cant this be rewritten?
@@ -91,7 +91,7 @@ if (!isFormSent()) {
 
                // Load sub menus :)
                foreach ($menus as $key_main => $value_main) {
-                       $result = SQL_QUERY_ESC("SELECT `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort` ASC",
+                       $result = SQL_QUERY_ESC("SELECT `what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort` ASC",
                                array($value_main), __FILE__, __LINE__);
                        if (!SQL_HASZERONUMS($result)) {
                                // Init arrays
@@ -125,13 +125,13 @@ if (!isFormSent()) {
                                        } else {
                                                $prev = $value;
                                        }
-                               }
+                               } // END - foreach
                                $menus[$value_main] = $dmy;
                                $titles[$value_main] = $dmy2;
                                $below[$value_main] = $dmy3;
-                       }
-               }
-       }
+                       } // END - if
+               } // END - foreach
+       } // END - if
 
        $OUT = '    <select class="form_select" name="sort" size="1">
       <option value="0">{--ADMIN_IS_FIRST_MENU--}</option>';
@@ -145,7 +145,7 @@ if (!isFormSent()) {
                                        } // END - if
                                } // END - foreach
                                $OUT .= '</option>';
-                       }
+                       } // END - foreach
                } else {
                        $OUT .= '      <option value="' . $m . '">' . $titles[$key] . '</option>';
                }
@@ -163,7 +163,7 @@ if (!isFormSent()) {
        // Insert new menu entry
        if (isPostRequestParameterSet('menu')) {
                // Add sub menu
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('%s','%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('%s','%s','%s','%s','%s')",
                        array(
                                postRequestParameter('menu'),
                                postRequestParameter('name'),
index 4d9c2e34f82b91b2eb3275b4395d8f71d715f090..32d08b012bf61baebccd427feaaa48cd50158ff9 100644 (file)
@@ -60,7 +60,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $count++;
-                       $result = SQL_QUERY_ESC("SELECT `title`, `action`, `what`, `descr` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `title`,`action`,`what`,`descr` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
@@ -189,7 +189,7 @@ LIMIT 1",
        doAdminProcessMenuWeightning('admin', $AND);
 
        // Run SQL
-       $result = SQL_QUERY("SELECT `id`, `action`, `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." ORDER BY `sort` ASC", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." ORDER BY `sort` ASC", __FILE__, __LINE__);
 
        // Do we have entries?
        if (!SQL_HASZERONUMS($result)) {
index 525e3882da4a1afa157b2a46dbea23f029befc21..2bcea27674fa8388f2ee20bc0cadb43061f96d23 100644 (file)
@@ -51,7 +51,7 @@ if (isFormSent('edit')) {
                $rows = '';
                foreach (postRequestParameter('sel') as $template => $sel) {
                        // First of all load data from DB
-                       $result = SQL_QUERY_ESC("SELECT `admin_id`, `id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC",
+                       $result = SQL_QUERY_ESC("SELECT `admin_id`,`id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC",
                                array($template), __FILE__, __LINE__);
                        $OUT = '';
                        $adminId2 = '0'; $id = '0';
index 770725dd1e8ad09c8259fa452adea8c5ef45ebd3..afcb7f53f1eecaf9a255333b18b26370b0d4905f 100644 (file)
@@ -53,7 +53,7 @@ if (isFormSent('add')) {
                array(postRequestParameter('catname')), __FILE__, __LINE__);
        if (SQL_HASZERONUMS($result)) {
                // Category does not exists, we simply add it...
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('%s','%s','%s')",
                        array(
                                postRequestParameter('catname'),
                                postRequestParameter('visible'),
@@ -124,7 +124,7 @@ if (isFormSent('add')) {
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data from the category
-               $result = SQL_QUERY_ESC("SELECT `id`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`visible`,`sort` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
 
@@ -145,7 +145,7 @@ if (isFormSent('add')) {
        $CATS = '';
 
        // Load all categories
-       $result = SQL_QUERY("SELECT `id`, `cat`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `id`,`cat`,`visible`,`sort` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // Init variables
                $OUT = '';
index cda95994d6a4da33433e5ddf8fac15196d69537a..fb80c90ea2e4b215092daaac0b7793c8780bbeba 100644 (file)
@@ -6,9 +6,9 @@
  * -------------------------------------------------------------------- *
  * File              : what-config_home.php                             *
  * -------------------------------------------------------------------- *
- * Short description : Set "home" page                                  *
+ * Short description : Set 'home' page                                  *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : "Home"-Seite festlegen                           *
+ * Kurzbeschreibung  : 'home'-Seite festlegen                           *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
@@ -66,7 +66,7 @@ switch ($sub) {
                        $content['cookie_selection'] = createConfigurationTimeSelections('index_cookie', 'YMWD');
 
                        // Output form
-                       loadTemplate('admin_config_home_settings', false, $content);
+                       loadTemplate('admin_config_home', false, $content);
                }
                break;
 
@@ -78,7 +78,9 @@ switch ($sub) {
 
                // Load all what menu points
                $result = SQL_QUERY("SELECT
-       `id`, `what`, `title`
+       `id`,
+       `what`,
+       `title`
 FROM
        `{?_MYSQL_PREFIX?}_guest_menu`
 WHERE
@@ -94,7 +96,7 @@ ORDER BY
 
                // Process all entries
                while ($content = SQL_FETCHARRAY($result)) {
-                       // Link for setting 'what' as new "home"
+                       // Link for setting 'what' as new 'home'
                        $newHomeLink = '<a href="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=target&amp;home=' . $content['what'] . '%}">{--_IS_NEW_HOME--}</a>';
 
                        // Is this current home?
@@ -108,14 +110,14 @@ ORDER BY
                        $content['link'] = $newHomeLink;
 
                        // Load row template
-                       $OUT .= loadTemplate('admin_config_home_row', true, $content);
+                       $OUT .= loadTemplate('admin_list_home_row', true, $content);
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Load template
-               loadTemplate('admin_config_home', false, $OUT);
+               loadTemplate('admin_list_home', false, $OUT);
                break;
 
        default: // Output selection table
index 752442fbf5c57a9a8ee84391cd0f38263877b975..795fdb1ac1b8ccaabd37d7152ba845057dc11b0a 100644 (file)
@@ -48,7 +48,7 @@ if (isFormSent()) {
        // Handle form ...
 } else {
        // Query for all imprint data rows
-       $result = SQL_QUERY('SELECT `imprint_key`, `imprint_value` FROM `{?_MYSQL_PREFIX?}_imprint_data` ORDER BY `imprint_id` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `imprint_key`,`imprint_value` FROM `{?_MYSQL_PREFIX?}_imprint_data` ORDER BY `imprint_id` ASC', __FILE__, __LINE__);
 
        // Do we have entries?
        if (!SQL_HASZERONUMS($result)) {
index eeb980ca5adaa02d4c1ae0420d2c37d38a18cce9..5f6040be70e615f4bacaa818c18db0da209ade22 100644 (file)
@@ -53,7 +53,7 @@ if (isFormSent('edit')) {
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Load module data
                        // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
-                       $result = SQL_QUERY_ESC("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `id`,`module`,`title`,`locked`,`hidden`,`admin_only`,`mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
 
                        // Load data
@@ -118,7 +118,7 @@ if (isFormSent('edit')) {
 if (!ifPostContainsSelections()) {
        // Load module data (We do not need to check if there's at least one...)
        $result = SQL_QUERY('SELECT
-       `id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
+       `id`,`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`
 FROM
        `{?_MYSQL_PREFIX?}_mod_reg`
 ORDER BY
index 7aaee12902532dd47e173e53048f862d1708ecbf..12d4efd35163df0cc4dbcfa94f948b8d7a696517 100644 (file)
@@ -57,7 +57,7 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('title')) && (postRequestP
                SQL_QUERY_ESC("INSERT INTO
        `{?_MYSQL_PREFIX?}_payout_types`
 (
-       `type`, `rate`, `min_points`, `from_account`, `from_pass`, `engine_url`, `engine_ret_ok`, `engine_ret_failed`, `pass_enc`, `allow_url`
+       `type`,`rate`,`min_points`,`from_account`,`from_pass`,`engine_url`,`engine_ret_ok`,`engine_ret_failed`,`pass_enc`,`allow_url`
 ) VALUES (
        '%s', %s, %s,'%s','%s','%s','%s','%s','%s','%s'
 )",
@@ -95,7 +95,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $sel) {
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points`, `allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`type`,`rate`,`min_points`,`allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -153,7 +153,7 @@ LIMIT 1",
                $id = bigintval($id);
 
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`type`,`rate`,`min_points` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                        array($id), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -188,7 +188,7 @@ if (!empty($message)) {
 
 // Payout types
 $result_type = SQL_QUERY("SELECT
-       `id`, `type`, `rate`, `min_points`, `from_account`
+       `id`,`type`,`rate`,`min_points`,`from_account`
 FROM
        `{?_MYSQL_PREFIX?}_payout_types`
 ORDER BY
index d458da5004ac4e6ee44b4394c5e3f5c47a60addf..0c60e88fe5443a62958a637fd90fe6cb2e0c8101 100644 (file)
@@ -79,7 +79,7 @@ if (isFormSent()) {
                case 'ref':
                        switch (getRequestParameter('do')) {
                                case 'add':
-                                       addSql("INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES ('".bigintval(postRequestParameter('level'))."','".bigintval(postRequestParameter('percents'))."')");
+                                       addSql("INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`,`percents`) VALUES ('".bigintval(postRequestParameter('level'))."','".bigintval(postRequestParameter('percents'))."')");
                                        break;
 
                                case 'edit': // Change entries
@@ -180,7 +180,7 @@ WHERE
                // Delete entries
                $OUT = '';
                foreach (postRequestParameter('sel') as $id => $value) {
-                       $result = SQL_QUERY_ESC("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `id`,`level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
                        $content = SQL_FETCHARRAY($result);
                        SQL_FREERESULT($result);
@@ -195,7 +195,7 @@ WHERE
                // Edit entries
                $OUT = '';
                foreach (postRequestParameter('sel') as $id => $value) {
-                       $result = SQL_QUERY_ESC("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `id`,`level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
                        $content = SQL_FETCHARRAY($result);
                        SQL_FREERESULT($result);
@@ -208,7 +208,7 @@ WHERE
                loadTemplate('admin_edit_reflevel', false, $OUT);
        } else {
                // Referal levels
-               $result = SQL_QUERY("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`,`level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
                if (!SQL_HASZERONUMS($result)) {
                        // Make referal levels editable and deletable
                        $OUT = '';
index 7b4fb0a4e371de935403dd41e58c1b9bd35aea33..1c90f6a42086bfaf7873800912ab92d96a21bcf8 100644 (file)
@@ -55,7 +55,7 @@ if (isGetRequestParameterSet('rallye')) {
                                // Ok, new price level entered!
                                SQL_QUERY_ESC("INSERT INTO
        `{?_MYSQL_PREFIX?}_rallye_prices`
-(`rallye_id`, `price_level`, `points`, `info`)
+(`rallye_id`,`price_level`,`points`,`info`)
        VALUES
 (%s, %s, '%s', '%s')",
                                array(
@@ -124,7 +124,7 @@ LIMIT 1",
                        $OUT = '';
                        foreach (postRequestParameter('sel') as $id => $sel) {
                                // Load data to selected rallye
-                               $result = SQL_QUERY_ESC("SELECT `rallye_id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
+                               $result = SQL_QUERY_ESC("SELECT `rallye_id`,`price_level`,`points`,`info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
                                        array(bigintval($id)), __FILE__, __LINE__);
                                $content = SQL_FETCHARRAY($result);
                                SQL_FREERESULT($result);
@@ -156,7 +156,7 @@ LIMIT 1",
                        $OUT = '';
                        foreach (postRequestParameter('sel') as $id => $sel) {
                                // Load data to selected rallye
-                               $result = SQL_QUERY_ESC("SELECT `rallye_id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
+                               $result = SQL_QUERY_ESC("SELECT `rallye_id`,`price_level`,`points`,`info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
                                        array(bigintval($id)), __FILE__, __LINE__);
                                $content = SQL_FETCHARRAY($result);
                                SQL_FREERESULT($result);
@@ -178,7 +178,7 @@ LIMIT 1",
                }
        } else {
                // a rallye was selected, so check if there are already prices assigned...
-               $result = SQL_QUERY_ESC("SELECT `id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC",
+               $result = SQL_QUERY_ESC("SELECT `id`,`price_level`,`points`,`info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC",
                        array(bigintval(getRequestParameter('rallye'))), __FILE__, __LINE__);
 
                if (!SQL_HASZERONUMS($result)) {
index 9e69dc1d17e6f312b05338f94760a9e4c1eb6c83..dec1610b6d1daaec9813696350e45a593a768c91 100644 (file)
@@ -63,7 +63,7 @@ if (isFormSent()) {
 } // END - if
 
 // List all register values
-$result = SQL_QUERY("SELECT `id`, `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT `id`,`field_name`,`field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
 $OUT = '';
 while ($content = SQL_FETCHARRAY($result)) {
        // Get language string
index b5133cc6b0b20342169d172ccb4f1c8a93670381..09722f2e7036fb57a43bdd9648c81fa6c2ec3f8c 100644 (file)
@@ -62,7 +62,7 @@ if (isFormSent()) {
        adminSaveSettingsFromPostData();
 } else {
        // Load existing modules and generate TR rows for the template
-       $result = SQL_QUERY("SELECT `module`, `title` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY module", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `module`,`title` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY module", __FILE__, __LINE__);
        $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Already registered module?
index de084bb7c3c8d9c05654dbb17f05206506b9cc77..b08722f2a61f21fe7485e63394c9ab37a45c0825 100644 (file)
@@ -48,7 +48,7 @@ $count = '0';
 
 if (isGetRequestParameterSet('mid')) {
        // Load email data
-       $result = SQL_QUERY_ESC("SELECT `id`, `sender`, `subject`, `url`, `timestamp`, `cat_id`, `payment_id` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`sender`,`subject`,`url`,`timestamp`,`cat_id`,`payment_id` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestParameter('mid'))), __FILE__, __LINE__);
 
        // Delete mail only once
@@ -160,7 +160,7 @@ LIMIT 1",
        displayMessage('{--ADMIN_USER_STATS_REMOVED--}');
 } elseif ((isGetRequestParameterSet('bid')) && (isExtensionActive('bonus'))) {
        // Load data from bonus mail
-       $result = SQL_QUERY_ESC("SELECT `id`, `subject`, `url`, `timestamp`, `mails_sent` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`subject`,`url`,`timestamp`,`mails_sent` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestParameter('bid'))), __FILE__, __LINE__);
 
        // Delete mail only once
@@ -197,7 +197,7 @@ LIMIT 1",
        SQL_FREERESULT($result);
 } elseif ((isGetRequestParameterSet('nid')) && (isExtensionInstalledAndNewer('bonus', '0.8.7'))) {
        // Load data from bonus mail
-       $result = SQL_QUERY_ESC("SELECT `id`, `subject`, `url`, `timestamp` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`subject`,`url`,`timestamp` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestParameter('nid'))), __FILE__, __LINE__);
 
        // Delete mail only once
index 04ab29ecd2b484ab9a163988bed9b08af0bb874a..49e85a0c1e4fdd77b5598d939a2b6340f2944a34 100644 (file)
@@ -50,7 +50,7 @@ if (ifPostContainsSelections()) {
        foreach (postRequestParameter('sel') as $id => $sel) {
                // Get the userid
                $result = SQL_QUERY_ESC("SELECT
-       `userid`, `holiday_start`, `holiday_end`
+       `userid`,`holiday_start`,`holiday_end`
 FROM
        `{?_MYSQL_PREFIX?}_user_holidays`
 WHERE
index a37f7d71432d77334a8bcf437c19c046c0716fda..d1afe3cbb134d8eab07d9f92e0bd175473cfa3ef 100644 (file)
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 if (isGetRequestParameterSet('id')) {
        // Check for selected sponsor
-       $result = SQL_QUERY_ESC("SELECT `id`, `email`, `gender`, `surname`, `family` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`email`,`gender`,`surname`,`family` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestParameter('id'))), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) == 1) {
                // Remove sponsor
index 567b318c215162c5b81e4e440a06eaad8fdcea79..ef3962bf70c1e73e366b130cd31fd0ae9ea18cca 100644 (file)
@@ -64,7 +64,7 @@ if (isFormSent('delete')) {
 
 // We only need outgoing transfers
 $result = SQL_QUERY('SELECT
-       `userid` AS `from_userid`, `to_userid`, `trans_id`, `points`, `reason`, `time_trans`
+       `userid` AS `from_userid`,`to_userid`,`trans_id`,`points`,`reason`,`time_trans`
 FROM
        `{?_MYSQL_PREFIX?}_user_transfers_out`
 ORDER BY
index 2c8568c37c1b35f6103f489cc55f85e9f9463fcc..5d34c42d86d5ffcdf7961434c3e20d00aaf9454c 100644 (file)
@@ -51,7 +51,7 @@ if ((isFormSent()) && (!isPostRequestParameterSet('id'))) {
 if ((isFormSent()) && (postRequestParameterSet('mid'))) {
        // Make mail editable...
        $result = SQL_QUERY_ESC("SELECT
-       `id`, `sender` AS `userid`, `subject`, `text`, `url`
+       `id`,`sender` AS `userid`,`subject`,`text`,`url`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -70,7 +70,7 @@ LIMIT 1",
 } elseif (isGetRequestParameterSet('mid')) {
        // Make also this email editable
        $result = SQL_QUERY_ESC("SELECT
-       `id`, `sender` AS `userid`, `subject`, `text`, `url`
+       `id`,`sender` AS `userid`,`subject`,`text`,`url`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -89,7 +89,7 @@ LIMIT 1",
 } elseif (isGetRequestParameterSet('bid')) {
                // Make also this email editable
                $result = SQL_QUERY_ESC("SELECT
-       `id`, `subject`, `text`, `url`
+       `id`,`subject`,`text`,`url`
 FROM
        `{?_MYSQL_PREFIX?}_bonus`
 WHERE
@@ -163,7 +163,7 @@ LIMIT 1",
 } else {
        // Query the pool
        $result = SQL_QUERY('SELECT
-       `id`, `sender` AS `userid`, `subject`, `payment_id`, `cat_id`
+       `id`,`sender` AS `userid`,`subject`,`payment_id`,`cat_id`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 ORDER BY
index 17b73bffd9a1919cf90febcd3dcdaba450be524d..88258c3180de4eeb607cee8191085300ca726374 100644 (file)
@@ -46,10 +46,10 @@ addYouAreHereLink('admin', __FILE__);
 if ((isGetRequestParameterSet('id')) && (isGetRequestParameterSet('mode'))) {
        // Check for selected sponsor
        $result_main = SQL_QUERY_ESC("SELECT
-       `id`, `company`, `position`, `gender`, `surname`, `family`,
-       `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
-       `phone`, `fax`, `cell`, `email`, `url`, `tax_ident`,
-       `receive_warnings`, `warning_interval`
+       `id`,`company`,`position`,`gender`,`surname`,`family`,
+       `street_nr1`,`street_nr2`,`zip`,`city`,`country`,
+       `phone`,`fax`,`cell`,`email`,`url`,`tax_ident`,
+       `receive_warnings`,`warning_interval`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
index 3ef52c45ce240d1180ab9f11913eb05253c44a0f..4c52c95b585e0481d8c5b1d60683d835b910685e 100644 (file)
@@ -50,9 +50,9 @@ $result_main = false;
 if (isGetRequestParameterSet('userid')) {
        // Load user entry
        $result_main = SQL_QUERY_ESC("SELECT
-       `userid`, `gender`, `surname`, `family`, `street_nr`, `zip`, `city`, `country`,
+       `userid`,`gender`,`surname`,`family`,`street_nr`,`zip`,`city`,`country`,
        `email`,
-       `birth_day`, `birth_month`, `birth_year`,
+       `birth_day`,`birth_month`,`birth_year`,
        `max_mails`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
index acab810fad0fc551ae35a60835c6c9ca755bdf74..df2f81324e3da856b18fe65772680971faeb9bb9 100644 (file)
@@ -48,7 +48,7 @@ addYouAreHereLink('admin', __FILE__);
 
 // Init SQL
 $sql = "SELECT
-       `id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `cat_id`
+       `id`,`sender`,`subject`,`text`,`receivers`,`payment_id`,`data_type`,`timestamp`,`url`,`target_send`,`cat_id`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -86,7 +86,7 @@ if (!SQL_HASZERONUMS($result)) {
        $OUT = '';
        while ($pool = SQL_FETCHARRAY($result)) {
                // Check sent mails and clicks
-               $result_mails = SQL_QUERY_ESC("SELECT `max_rec`, `clicks` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s LIMIT 1",
+               $result_mails = SQL_QUERY_ESC("SELECT `max_rec`,`clicks` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s LIMIT 1",
                        array(bigintval($pool['id'])), __FILE__, __LINE__);
 
                // Load entries
index 182525c71aa87708d772c24d1ffac8bd32457eba..24aa58332c9fafa37e7f562963d7b54ad30f486f 100644 (file)
@@ -52,7 +52,7 @@ if (!isExtensionInstalledAndNewer('sql_patches', '0.7.4')) {
 
 // Normal mails ordered by your members
 $sql = "SELECT
-       `id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `mails_sent`, `cat_id`
+       `id`,`sender`,`subject`,`text`,`receivers`,`payment_id`,`data_type`,`timestamp`,`url`,`target_send`,`mails_sent`,`cat_id`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -66,7 +66,7 @@ $SQL2 = '';
 if (isGetRequestParameterSet('mid')) {
        // Only a specific mail shall be displayed
        $sql = sprintf("SELECT
-       `id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `cat_id`
+       `id`,`sender`,`subject`,`text`,`receivers`,`payment_id`,`data_type`,`timestamp`,`url`,`target_send`,`cat_id`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -78,7 +78,7 @@ LIMIT 1",
 } elseif (isGetRequestParameterSet('userid')) {
        // All mails by a specific member shall be displayed
        $sql = sprintf("SELECT
-       `id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `cat_id`
+       `id`,`sender`,`subject`,`text`,`receivers`,`payment_id`,`data_type`,`timestamp`,`url`,`target_send`,`cat_id`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -96,7 +96,7 @@ $result_bonus = false;
 if ((isExtensionActive('bonus')) && (empty($WHO))) {
        // Check for maximum pages
        $result_bonus = SQL_QUERY("SELECT
-       `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `mails_sent`, `clicks`,
+       `id`,`subject`,`text`,`receivers`,`points`,`time`,`data_type`,`timestamp`,`url`,`cat_id`,`target_send`,`mails_sent`,`clicks`,
        (`mails_sent` - `clicks`) AS `unconfirmed`
 FROM
        `{?_MYSQL_PREFIX?}_bonus`
index 5e129636a35d532524ab9beaf5bc2527737fdfb6..bb8c4ded7588bd161548a3eb55b7cb5b59810d36 100644 (file)
@@ -134,7 +134,7 @@ if (isGetRequestParameterSet('reg_ext')) {
 
                                // Load required data
                                if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
-                                       $result = SQL_QUERY_ESC("SELECT `ext_has_css`, `ext_active` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `id`=%s LIMIT 1",
+                                       $result = SQL_QUERY_ESC("SELECT `ext_has_css`,`ext_active` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `id`=%s LIMIT 1",
                                                array(bigintval($ext_id)), __FILE__, __LINE__);
                                        list($css, $active) = SQL_FETCHROW($result);
                                        SQL_FREERESULT($result);
index 20d458f0d6fc6c8cc256d766bd592a0c1121b013..5583435d1373ff4891a125ce488119f164d94b72 100644 (file)
@@ -55,7 +55,7 @@ if (!isFormSent()) {
 
        // Get all available main menus
        $result_menu = SQL_QUERY("SELECT
-       `action`, `title`, `sort`
+       `action`,`title`,`sort`
 FROM
        `{?_MYSQL_PREFIX?}_guest_menu`
 WHERE
@@ -98,7 +98,7 @@ ORDER BY
                foreach ($menus as $key_main => $value_main) {
                        // Query for sub menus
                        $result = SQL_QUERY_ESC("SELECT
-       `what`, `title`, `sort`
+       `what`,`title`,`sort`
 FROM
        `{?_MYSQL_PREFIX?}_guest_menu`
 WHERE
@@ -181,7 +181,7 @@ ORDER BY `sort` ASC",
 } elseif (!isDemoModeActive()) {
        // Insert new menu entry
        if (isPostRequestParameterSet('menu')) {
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('%s','%s','%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('%s','%s','%s','%s','%s','%s')",
                        array(
                                postRequestParameter('menu'),
                                postRequestParameter('name'),
@@ -191,7 +191,7 @@ ORDER BY `sort` ASC",
                                postRequestParameter('active'),
                        ), __FILE__, __LINE__);
        } else {
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `title`, `sort`, `visible`, `locked`) VALUES ('%s','%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`title`,`sort`,`visible`,`locked`) VALUES ('%s','%s','%s','%s','%s')",
                        array(
                                postRequestParameter('name'),
                                postRequestParameter('title'),
index 3e92946f101d4e26e48b6a9ac5bcf5afd24652c4..e68e84df12eeb9b2dc3432e6d29c3fe6a28523d0 100644 (file)
@@ -61,7 +61,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $count++;
-                       $result = SQL_QUERY_ESC("SELECT `title`, `action`, `what` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `title`,`action`,`what` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
@@ -143,7 +143,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $count++;
-                       $result = SQL_QUERY_ESC("SELECT `title`, `visible`, `locked` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `title`,`visible`,`locked` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
@@ -184,10 +184,10 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        // By default list menus
        if (empty($subMenu)) {
                // List only main menus
-               $result = SQL_QUERY("SELECT `id`, `action`, `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__);
        } else {
                // List sub menus
-               $result = SQL_QUERY_ESC("SELECT `id`, `action`, `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort` ASC",
+               $result = SQL_QUERY_ESC("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort` ASC",
                        array($subMenu), __FILE__, __LINE__);
        }
 
index f529023f735ecb5c7e03e5fc60d7a3e116309cc2..76b1232bad071fce542d4c25ad937900950fde5a 100644 (file)
@@ -48,7 +48,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $selected) {
                // Load data for the id
-               $result = SQL_QUERY_ESC("SELECT `id`, `admin_id`, `action_menu`, `what_menu`, `access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`admin_id`,`action_menu`,`what_menu`,`access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
 
@@ -117,7 +117,7 @@ LIMIT 1",
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $selected) {
                // Load data for the id
-               $result = SQL_QUERY_ESC("SELECT `id`, `admin_id`, `action_menu`, `what_menu`, `access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`admin_id`,`action_menu`,`what_menu`,`access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -172,7 +172,7 @@ LIMIT 1",
                                ), __FILE__, __LINE__);
                        if (SQL_HASZERONUMS($result)) {
                                // Finally add the new ACL
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_acls` (`admin_id`, `action_menu`, `what_menu`, `access_mode`)
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_acls` (`admin_id`,`action_menu`,`what_menu`,`access_mode`)
 VALUES (%s,'%s','%s','%s')",
                                array(
                                        bigintval(postRequestParameter('admin_id')),
@@ -206,7 +206,7 @@ VALUES (%s,'%s','%s','%s')",
        displayMessage($content);
 } else {
        // List all ACLs
-       $result = SQL_QUERY('SELECT `id`, `admin_id`, `action_menu`, `what_menu`, `access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` ORDER BY `admin_id` ASC, `id` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `id`,`admin_id`,`action_menu`,`what_menu`,`access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` ORDER BY `admin_id` ASC, `id` ASC', __FILE__, __LINE__);
 
        // Entries found?
        if (!SQL_HASZERONUMS($result)) {
index bb2fa1fbb1d76aee1f895375d1abe16a6a7f8b18..121c006f860ecd37f2d3d7efe40b909309e121b0 100644 (file)
@@ -53,8 +53,9 @@ if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id')))
        } elseif (isFormSent('edit')) {
                // Delete entries (with confirmation)
                adminEditEntriesConfirm(
+                       array('id'),
+                       array('bank_packages'),
                        postRequestParameter('id'),
-                       'bank_packages',
                        array(
                                'id',
                                'title',
@@ -111,18 +112,20 @@ if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id')))
        } elseif (isFormSent('do_edit')) {
                // Delete entries (with confirmation)
                adminEditEntriesConfirm(
+                       array('id'),
+                       array('bank_packages'),
                        postRequestParameter('id'),
-                       'bank_packages',
                        array(),
                        array(),
                        array(),
-                       true
+                       array(true)
                );
        } elseif (isFormSent('delete')) {
                // Delete entries (with confirmation)
                adminDeleteEntriesConfirm(
+                       array('id'),
+                       array('bank_packages'),
                        postRequestParameter('id'),
-                       'bank_packages',
                        array(
                                'id',
                                'title',
@@ -146,12 +149,13 @@ if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id')))
        } elseif (isFormSent('do_delete')) {
                // Delete entries (with confirmation)
                adminDeleteEntriesConfirm(
+                       array('id'),
+                       array('bank_packages'),
                        postRequestParameter('id'),
-                       'bank_packages',
                        array(),
                        array(),
                        array(),
-                       true
+                       array(true)
                );
        }
 } // END - if
@@ -161,7 +165,7 @@ if ($show === false) return;
 
 // Load all banking packages from DB
 $result = SQL_QUERY("SELECT
-       `id`, `title`, `description`, `account_fee`, `package_active`, `interest_plus`, `interest_minus`
+       `id`,`title`,`description`,`account_fee`,`package_active`,`interest_plus`,`interest_minus`
 FROM
        `{?_MYSQL_PREFIX?}_bank_packages`
 ORDER BY
index 9d18924ea3cdc430f85c3798ee7024e457fe67c5..b8b5d4b9f4cbcb6b2d7d89754a7b55f9362a0479 100644 (file)
@@ -63,7 +63,7 @@ if (isBegRallyeEnabled()) {
        } // END - if
 
        // Check if at least one is in the active rallye
-       $result = SQL_QUERY("SELECT `userid`, `gender`, `surname`, `family`, `email`, `beg_points`, `last_online`
+       $result = SQL_QUERY("SELECT `userid`,`gender`,`surname`,`family`,`email`,`beg_points`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index 2dace09bf4e719390edaa52a6ab4990b428b3876..085c941d54a8dd3723e07357ead14bb727081370 100644 (file)
@@ -53,19 +53,17 @@ if (isBonusRallyeActive()) {
                displayMessage('{--ADMIN_BONUS_WITHDRAW_PREPARED--}');
        } // END - if
 
-       if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
+       // Old version ???
+       $USE = '`turbo_bonus`';
+
+       // Run filter chain to find more columns
+       $add = runFilterChain('add_bonus_points_user_columns', '');
+
+       // Add them, if some where configured
+       if (!empty($add)) {
                // Add more bonus points here
-               $USE = '(0';
-               if (getConfig('bonus_click_yn') == 'Y') $USE .= ' + `turbo_bonus`';
-               if (getConfig('bonus_login_yn') == 'Y') $USE .= ' + `login_bonus`';
-               if (getConfig('bonus_order_yn') == 'Y') $USE .= ' + `bonus_order`';
-               if (getConfig('bonus_stats_yn') == 'Y') $USE .= ' + `bonus_stats`';
-               if (getConfig('bonus_ref_yn')   == 'Y') $USE .= ' + `bonus_ref`';
-               $USE .= ')';
-       } else {
-               // Old version ???
-               $USE = '`turbo_bonus`';
-       }
+               $USE = '(0' . $add . ')';
+       } // END - if
 
        // Init variables
        $lastOnline = '';
@@ -78,7 +76,13 @@ if (isBonusRallyeActive()) {
 
        // Check if at least one is in the active rallye
        $result = SQL_QUERY("SELECT
-       `userid`, `email`, `gender`, `surname`, `family`, " . $USE . " AS `points`, `last_online`
+       `userid`,
+       `email`,
+       `gender`,
+       `surname`,
+       `family`,
+       " . $USE . " AS `points`,
+       `last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -92,7 +96,9 @@ ORDER BY
 
        if (!SQL_HASZERONUMS($result)) {
                // List users
-               $OUT = ''; $count = 1; $total = '0';
+               $OUT   = '';
+               $count = 1;
+               $total = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Add total points
                        $total += $content['points'];
@@ -108,9 +114,9 @@ ORDER BY
                        // Prepare content
                        $content['email']       = generateEmailLink($content['email'], 'user_data');
                        $content['last_online'] = generateDateTime($content['last_online'], 2);
-                       $content['win1']   = $WIN1;
-                       $content['win2']   = $WIN2;
-                       $content['count']  = $count;
+                       $content['win1']        = $WIN1;
+                       $content['win2']        = $WIN2;
+                       $content['count']       = $count;
 
                        // Load template and add it
                        $OUT .= loadTemplate('admin_list_bonus_rows', true, $content);
index fdf5a00c888249d41743b6ec912ee4129a242d97..d17404da55a384594bba010ef8eea1a7aa62c16b 100644 (file)
@@ -55,7 +55,7 @@ if (isGetRequestParameterSet('userid')) {
                $content['email']  = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">{%pipe,translateGender=' . $content['gender'] . '%} ' . $content['surname'] . ' ' . $content['family'] . '</a>';
 
                // Ok, list categories of this user
-               $result_cats = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
+               $result_cats = SQL_QUERY("SELECT `id`,`cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
 
                if (!SQL_HASZERONUMS($result_cats)) {
                        // List categories
index 40418c251c8ff6b3e7c201657fcfc8e9d71317ce..e37051099dda1439d8ee50f5a8c5e87a98ebdea0 100644 (file)
@@ -50,7 +50,7 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
        array(strtoupper(postRequestParameter('code'))), __FILE__, __LINE__);
        if (SQL_HASZERONUMS($result)) {
                // Save entry
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (`code`, `descr`, `is_active`) VALUES ('%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (`code`,`descr`,`is_active`) VALUES ('%s','%s','%s')",
                array(
                        strtoupper(substr(postRequestParameter('code'), 0, 2)),
                        postRequestParameter('descr'),
@@ -102,7 +102,7 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
                $OUT = '';
                foreach (postRequestParameter('id') as $id => $isActive) {
                        // Load data from DB
-                       $result = SQL_QUERY_ESC("SELECT `id`, `code`, `descr` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `id`,`code`,`descr` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Load data
@@ -162,7 +162,7 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
        } // END - if
 
        // Load currenty setup country codes to list
-       $result = SQL_QUERY('SELECT `id`, `code`, `descr`, `is_active` FROM `{?_MYSQL_PREFIX?}_countries` ORDER BY `code` ASC',
+       $result = SQL_QUERY('SELECT `id`,`code`,`descr`,`is_active` FROM `{?_MYSQL_PREFIX?}_countries` ORDER BY `code` ASC',
        __FILE__, __LINE__);
 
        // Do we have entries?
index c5c2c0b70e18d87229f0062ddfb79faa1336581c..55d1506b241ff2f76e081c736922c41d7ea0934e 100644 (file)
@@ -54,7 +54,7 @@ if (isPostRequestParameterSet('add_max')) {
        array(bigintval(postRequestParameter('max'))), __FILE__, __LINE__);
        if (SQL_HASZERONUMS($result)) {
                // Add this value (including comment)
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES ('%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES ('%s','%s')",
                array(bigintval(postRequestParameter('max')), postRequestParameter('comment')),__FILE__, __LINE__);
                $content = '{--ADMIN_MAX_VALUE_SAVED--}';
        } else {
@@ -102,7 +102,7 @@ if (isPostRequestParameterSet('add_max')) {
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -119,7 +119,7 @@ if (isPostRequestParameterSet('add_max')) {
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -132,7 +132,7 @@ if (isPostRequestParameterSet('add_max')) {
        // Load main template
        loadTemplate('admin_edit_email_max_rec', false, $content);
 } else {
-       $result = SQL_QUERY("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` ORDER BY `value` ASC",
+       $result = SQL_QUERY("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` ORDER BY `value` ASC",
        __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // List already existing entries for editing
diff --git a/inc/modules/admin/what-list_forced_ads.php b/inc/modules/admin/what-list_forced_ads.php
new file mode 100644 (file)
index 0000000..e9330c1
--- /dev/null
@@ -0,0 +1,101 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 07/23/2011 *
+ * ===================                          Last change: 07/23/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-list_forced_ads.php                         *
+ * -------------------------------------------------------------------- *
+ * Short description : List/add Forced-Ads                              *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Auflisten/Hinzufuegen von Forced-Werbemitteln    *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+       die();
+} // END - if
+
+// Add description as navigation point
+addYouAreHereLink('admin', __FILE__);
+
+// By default show the list...
+$show = true;
+
+// Check for 'url_id' element
+if ((countRequestPost() > 0) && ((!isPostRequestParameterSet('forced_ads_id')) || (!is_array(postRequestParameter('forced_ads_id'))) || (count(postRequestParameter('forced_ads_id')) == 0))) {
+       // Not found so output message
+       displayMessage('{--ADMIN_FORCED_ADS_NO_SELECTIONS--}');
+
+       // Abort here
+       return;
+} // END - if
+
+// Edit or delete button hit?
+if (isFormSent('add')) {
+       // Add new forced ad
+       showEntriesByXmlCallback('admin_add_do_forced_ads');
+} elseif (isFormSent('edit')) {
+       // Show entries for editing
+       showEntriesByXmlCallback('admin_edit_show_forced_ads');
+
+       // Do not show the list of URLs after this template
+       $show = false;
+} elseif (isFormSent('do_edit')) {
+       // Change data of entries
+       showEntriesByXmlCallback('admin_edit_do_forced_ads');
+} elseif (isFormSent('delete')) {
+       // Show entries for deletion
+       showEntriesByXmlCallback('admin_delete_show_forced_ads');
+
+       // Do not show the list of URLs after this template
+       $show = false;
+} elseif (isFormSent('do_delete')) {
+       // Remove entries from database
+       showEntriesByXmlCallback('admin_delete_do_forced_ads');
+}
+
+// Show entries?
+if ($show === false) {
+       // No, a form has already been show
+       return false;
+} // END - if
+
+// List all URLs
+showEntriesByXmlCallback('admin_list_forced_ads');
+
+// Prepare content for template
+$content = array(
+       'reload_lock' => createTimeSelections(0, 'forced_ads_reload_lock', 'WDhm'),
+       'min_stay'    => createTImeSelections(0, 'forced_ads_min_stay'   , 'ms')
+);
+
+// Display form for adding a forced-ad
+loadTemplate('admin_add_forced_ad', false, $content);
+
+// [EOF]
+?>
index d5388fb56013153ad8de66ec214e3f375f98727e..34e5aeeb039410a2b73404bc4399291202f04caf 100644 (file)
@@ -55,11 +55,11 @@ if (isGetRequestParameterSet('userid')) {
                // @TODO Try to rewrite this to a filter
                if (isExtensionActive('bonus')) {
                        // Load bonus id
-                       $result = SQL_QUERY_ESC("SELECT `stats_id`, `bonus_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `id` ASC",
+                       $result = SQL_QUERY_ESC("SELECT `stats_id`,`bonus_id`,`link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `id` ASC",
                                array(bigintval(getRequestParameter('userid'))), __FILE__, __LINE__);
                } else {
                        // Load stats id (2nd will be ignored later! But it is needed for the same fetchrow command)
-                       $result = SQL_QUERY_ESC("SELECT `stats_id`, `stats_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `id` ASC",
+                       $result = SQL_QUERY_ESC("SELECT `stats_id`,`stats_id`,`link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `id` ASC",
                                array(bigintval(getRequestParameter('userid'))), __FILE__, __LINE__);
                }
 
@@ -93,14 +93,14 @@ if (isGetRequestParameterSet('userid')) {
                                        // @TODO Rewrite this to includes/filter
                                        switch ($type) {
                                                case 'NORMAL':
-                                                       $result_data = SQL_QUERY_ESC("SELECT `subject`, `timestamp_ordered` AS `timestamp`, `cat_id` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
+                                                       $result_data = SQL_QUERY_ESC("SELECT `subject`,`timestamp_ordered` AS `timestamp`,`cat_id` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
                                                                array(bigintval($id)), __FILE__, __LINE__);
                                                        $type = 'mailid'; $DATA = $id; $PROBLEM = '{--NORMAL_MAIL_PROBLEM--}';
                                                        $LINK = '<a href="{%url=mailid.php?userid=' . getRequestParameter('userid') . '&amp;mailid=' . $id . '%}" target="_blank">' . $id . '</a>';
                                                        break;
 
                                                case 'BONUS':
-                                                       $result_data = SQL_QUERY_ESC("SELECT `subject`, `timestamp`, `cat_id` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+                                                       $result_data = SQL_QUERY_ESC("SELECT `subject`,`timestamp`,`cat_id` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                                                                array(bigintval($id2)), __FILE__, __LINE__);
                                                        $type = 'bonusid'; $DATA = $id2; $PROBLEM = '{--BONUS_MAIL_PROBLEM--}';
                                                        $LINK = '<a href="{%url=mailid.php?userid=' . getRequestParameter('userid') . '&amp;bonusid=' . $id2 . '%}" target="_blank">' . $id2 . '</a>';
index 436063c93ab1987fde44f525e2a6a73c429fce36..9e505a9e9e3eda2a189bf298f6f7c5ae199e0e2f 100644 (file)
@@ -71,7 +71,7 @@ if (isGetRequestParameterSet('network')) {
 
        // Load all advert types for given network
        $result = SQL_QUERY_ESC("SELECT
-       `network_type_id`, `network_type_handle`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`
+       `network_type_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`
 FROM
        `{?_MYSQL_PREFIX?}_network_types`
 WHERE
index 62f575b9e6c60bb1836f58c8e236035a6da501f6..56668da1248386d39fa2c834deecaae0c31752f9 100644 (file)
@@ -54,8 +54,8 @@ if (!isGetRequestParameterSet('offset')) setGetRequestParameter('offset', getMai
 if (isExtensionActive('bonus')) {
        // Bonus mails sent by you
        $SQL2 = "SELECT
-       `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`,
-       `mails_sent`, `clicks`, (`mails_sent` - `clicks`) AS `unconfirmed`
+       `id`,`subject`,`text`,`receivers`,`points`,`time`,`data_type`,`timestamp`,`url`,`cat_id`,`target_send`,
+       `mails_sent`,`clicks`, (`mails_sent` - `clicks`) AS `unconfirmed`
 FROM
        `{?_MYSQL_PREFIX?}_bonus`
 WHERE
index b312d6533852f3a03abe0704279273b99026544f..00d5a450aaa4812f091ae4f6db164e48957c88ea 100644 (file)
@@ -89,7 +89,7 @@ if (isGetRequestParameterSet('pid')) {
                                if (!empty($ptype)) {
                                        // Obtain data from payout type
                                        $result = SQL_QUERY_ESC("SELECT
-       `from_account`, `from_pass`, `engine_url`, `engine_ret_ok`, `engine_ret_failed`, `pass_enc`, `allow_url`
+       `from_account`,`from_pass`,`engine_url`,`engine_ret_ok`,`engine_ret_failed`,`pass_enc`,`allow_url`
 FROM
        `{?_MYSQL_PREFIX?}_payout_types`
 WHERE
index 41e2389394a5c707239cfddb94b3e24dbc7d5218..bb26a3907d7399165c15960dd87f87d51df2d705 100644 (file)
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 // Check for entries
 $result = SQL_QUERY("SELECT
-       `id`, `userid`, `primera_account`, `primera_amount`, `primera_timestamp`, `primera_type`, `primera_api_message`, `primera_api_status`
+       `id`,`userid`,`primera_account`,`primera_amount`,`primera_timestamp`,`primera_type`,`primera_api_message`,`primera_api_status`
 FROM
        `{?_MYSQL_PREFIX?}_user_primera`
 ORDER BY
index ebaf99f9741518a9536050f43a40be6ddb0d3eb3..f3ea8c077fada103574ada22e488637135257e17 100644 (file)
@@ -183,7 +183,7 @@ if (isFormSent('edit')) {
                foreach (postRequestParameter('sel') as $id => $selected) {
                        // Load rallye basic data
                        $result = SQL_QUERY_ESC("SELECT
-       `title`, `descr`, `template`, `start_time`, `end_time`, `min_users`, `min_prices`
+       `title`,`descr`,`template`,`start_time`,`end_time`,`min_users`,`min_prices`
 FROM
        `{?_MYSQL_PREFIX?}_rallye_data`
 WHERE
@@ -229,7 +229,7 @@ LIMIT 1",
 } elseif ((getRequestParameter('sub') == 'users') && (getRequestParameter('rallye') > 0)) {
        // List users and their refs before start and current
        $result = SQL_QUERY_ESC("SELECT
-       `userid`, `refs`, `curr_points`
+       `userid`,`refs`,`curr_points`
 FROM
        `{?_MYSQL_PREFIX?}_rallye_users`
 WHERE
@@ -288,8 +288,8 @@ ORDER BY
 } else {
        // Start listing rallyes
        $result = SQL_QUERY("SELECT
-       `id`, `admin_id`, `title`, `descr`, `template`, `start_time`, `end_time`,
-       `auto_add_new_user`, `is_active`, `send_notify`, `notified`, `min_users`, `min_prices`
+       `id`,`admin_id`,`title`,`descr`,`template`,`start_time`,`end_time`,
+       `auto_add_new_user`,`is_active`,`send_notify`,`notified`,`min_users`,`min_prices`
 FROM
        `{?_MYSQL_PREFIX?}_rallye_data`
 ORDER BY
index 8179b6a384602e0f9fc2a092d0d740c30ca0d343..3f8f0e760a5d2c5e9c12620ec0187d325a119e79 100644 (file)
@@ -64,7 +64,7 @@ if (isGetRequestParameterSet('userid')) {
 
                // Load all referal levels
                $result_levels = SQL_QUERY("SELECT
-       `level`, `percents`
+       `level`,`percents`
 FROM
        `{?_MYSQL_PREFIX?}_refdepths`
 WHERE
index 47afe0509efc3a03274fc024db745ccce848db00..2eaa90720541809462e6f32a76eff72deeabe0cd 100644 (file)
@@ -46,14 +46,14 @@ addYouAreHereLink('admin', __FILE__);
 if (isGetRequestParameterSet('id')) {
        // Show detailed informations to a sponsor
        $result = SQL_QUERY_ESC("SELECT
-       `company`, `position`, `gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
-       `phone`, `fax`, `cell`, `email`, `url`, `tax_ident`,
+       `company`,`position`,`gender`,`surname`,`family`,`street_nr1`,`street_nr2`,`zip`,`city`,`country`,
+       `phone`,`fax`,`cell`,`email`,`url`,`tax_ident`,
        `status`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
        UNIX_TIMESTAMP(`last_online`) AS `last_online`,
        UNIX_TIMESTAMP(`last_change`) AS `last_change`,
        `receive_warnings`,
-       `points_amount`, `points_used`, `remote_addr`, `warning_interval`, `refid`, `ref_count`
+       `points_amount`,`points_used`,`remote_addr`,`warning_interval`,`refid`,`ref_count`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
@@ -100,11 +100,11 @@ WHERE
 
                // Sponsor found so let's list all his referals
                $result = SQL_QUERY_ESC("SELECT
-       `id`, `gender`, `surname`, `family`, `email`, `status`,
+       `id`,`gender`,`surname`,`family`,`email`,`status`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
        UNIX_TIMESTAMP(`last_online`) AS `last_online`,
-       `points_amount`, `points_used`,
-       `remote_addr`, `ref_count`
+       `points_amount`,`points_used`,
+       `remote_addr`,`ref_count`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
@@ -128,10 +128,10 @@ ORDER BY
 } else {
        // List all sponsors
        $result_main = SQL_QUERY("SELECT
-       `id`, `gender`, `surname`, `family`, `email`, `status`,
+       `id`,`gender`,`surname`,`family`,`email`,`status`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
        UNIX_TIMESTAMP(`last_online`) AS `last_online`,
-       `points_amount`, `points_used`,
+       `points_amount`,`points_used`,
        (`points_amount` + `points_used`) AS `points`,
        `remote_addr`
 FROM
index 032b8ae7dbdfacad12362ff465c24ff78c2bea09..61d759bff005f4646615430f4e7d274cbc886163 100644 (file)
@@ -115,7 +115,7 @@ if (isFormSent('add')) {
                array(postRequestParameter('pay_name')), __FILE__, __LINE__);
        if (SQL_HASZERONUMS($result)) {
                // No entry found so add this line
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`, `pay_rate`, `pay_min_count`, `pay_currency`) VALUES ('%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_rate`,`pay_min_count`,`pay_currency`) VALUES ('%s','%s','%s','%s')",
                        array(
                                postRequestParameter('pay_name'),
                                convertCommaToDot(postRequestParameter('pay_rate')),
@@ -140,7 +140,7 @@ if (isFormSent('add')) {
        $OUT = '';
        foreach (postRequestParameter('id') as $id => $sel) {
                // Load entry
-               $result = SQL_QUERY_ESC("SELECT `id`, `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`pay_name`,`pay_rate`,`pay_min_count`,`pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                if (SQL_NUMROWS($result) == 1) {
                        // Load data
@@ -173,7 +173,7 @@ if (isFormSent('add')) {
 } else {
        // Load all payment types
        $result = SQL_QUERY("SELECT
-       `id`, `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency`
+       `id`,`pay_name`,`pay_rate`,`pay_min_count`,`pay_currency`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_paytypes`
 ORDER BY
index b2c97da3607e55794f2fdc54913f089427c38020..3a5138c64ce3f6338273c4796a2e463dc31a8c3e 100644 (file)
@@ -88,7 +88,7 @@ if (!empty($whereStatement)) {
        } else {
                // Start listing tasks matching selected filter
                $result_tasks = SQL_QUERY('SELECT
-       `id`, `assigned_admin`, `userid`, `task_type`, `subject`, `text`, `task_created`
+       `id`,`assigned_admin`,`userid`,`task_type`,`subject`,`text`,`task_created`
 FROM
        `{?_MYSQL_PREFIX?}_task_system`
 WHERE
@@ -126,7 +126,7 @@ ORDER BY
 
                        // Update query
                        $result_tasks = SQL_QUERY('SELECT
-       `id`, `assigned_admin`, `userid`, `task_type`, `subject`, `text`, `task_created`
+       `id`,`assigned_admin`,`userid`,`task_type`,`subject`,`text`,`task_created`
 FROM
        `{?_MYSQL_PREFIX?}_task_system`
 WHERE
index 8da60d30ce57e0cf1d054a48a7a8968613a4510b..339b5bbad8651f2f14c27f4ac79ac680de271e43 100644 (file)
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 // We only need outgoing transfers
 $result = SQL_QUERY('SELECT
-       `userid` AS `from_userid`, `to_userid`, `trans_id`, `points`, `reason`, `time_trans`
+       `userid` AS `from_userid`,`to_userid`,`trans_id`,`points`,`reason`,`time_trans`
 FROM
        `{?_MYSQL_PREFIX?}_user_transfers_out`
 ORDER BY
index bd1b932e2b19353b384eab79bd5a7f19bdc41fc8..92cde69e485396bee22d27f3f12fec73defee97e 100644 (file)
@@ -85,7 +85,7 @@ LIMIT 1",
 
        // SQL query for mail data (both ids are required for compatiblity to above normal mail
        $sql = sprintf("SELECT
-       `id`, `id` AS `sender`, `subject`, `text`, `url`, `timestamp`, `mails_sent` AS `max_rec`
+       `id`,`id` AS `sender`,`subject`,`text`,`url`,`timestamp`,`mails_sent` AS `max_rec`
 FROM
        `{?_MYSQL_PREFIX?}_bonus`
 WHERE
@@ -125,7 +125,7 @@ if (($listed === true) && (!empty($sql))) {
 
                // Bonus mails do always have a sender 'NULL'
                if ($col == 'bonus_id') {
-                       $poolData['sender'] = null;
+                       $poolData['sender'] = NULL;
                } // END - if
 
                // Load unconfirmed mail links. Hmmm, this select query is pretty cool
index 2ffa33bbf29085513cd967d4183e9bed06bcd065..91f225c556313a4dc4f285f8dc757120764c8ff4 100644 (file)
@@ -75,7 +75,7 @@ if (isGetRequestParameterSet('userid')) {
 
        // Does the account exists?
        $result_user = SQL_QUERY_ESC("SELECT
-       `userid`, `country`, `email`, `birth_day`, `birth_month`, `birth_year`, `last_online`, `used_points`, `emails_sent`, `joined`, `last_update`, `last_profile_sent`, `notified`, `emails_received`, `mails_confirmed`".$MORE."
+       `userid`,`country`,`email`,`birth_day`,`birth_month`,`birth_year`,`last_online`,`used_points`,`emails_sent`,`joined`,`last_update`,`last_profile_sent`,`notified`,`emails_received`,`mails_confirmed`".$MORE."
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -211,7 +211,7 @@ LIMIT 1",
        } // END - if
 
        // Generate master query string
-       $sql = sprintf("SELECT `userid`, `email`, `emails_sent`, `mails_confirmed`, `emails_received`" . $MORE . " FROM `{?_MYSQL_PREFIX?}_user_data`" . $whereStatement . " ORDER BY `%s` ASC",
+       $sql = sprintf("SELECT `userid`,`email`,`emails_sent`,`mails_confirmed`,`emails_received`" . $MORE . " FROM `{?_MYSQL_PREFIX?}_user_data`" . $whereStatement . " ORDER BY `%s` ASC",
                getRequestParameter('sortby')
        );
 
index ca5e31662449e5f6e12844495242d6919149c2a9..dff0cb7793e00706148f1393a3e841a49422fda8 100644 (file)
@@ -46,7 +46,7 @@ $message = '';
 
 if (isGetRequestParameterSet('id')) {
        // Check for selected sponsor
-       $result_sponsor = SQL_QUERY_ESC("SELECT `gender`, `surname`, `family`, `email`, `status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
+       $result_sponsor = SQL_QUERY_ESC("SELECT `gender`,`surname`,`family`,`email`,`status` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestParameter('id'))), __FILE__, __LINE__);
        if (SQL_NUMROWS($result_sponsor) == 1) {
                // Get sponsor's current status and let only confirmed and locked status pass
index 5c87bf8f84ae94a1164bc2b6cfb6dea13431183d..e7b078f96a451334358944f9788eb04d8212b700 100644 (file)
@@ -56,7 +56,7 @@ if (!isFormSent()) {
        $below  = array();
 
        // Get all available main menus
-       $result = SQL_QUERY("SELECT `action`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC",
+       $result = SQL_QUERY("SELECT `action`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC",
                __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // Read menu structure
@@ -97,7 +97,7 @@ if (!isFormSent()) {
 
                // Load sub menus :)
                foreach ($menus as $key_main => $value_main) {
-                       $result = SQL_QUERY_ESC("SELECT `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='%s' AND `what` != '' ORDER BY `sort` ASC",
+                       $result = SQL_QUERY_ESC("SELECT `what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='%s' AND `what` != '' ORDER BY `sort` ASC",
                                array($value_main), __FILE__, __LINE__);
                        if (!SQL_HASZERONUMS($result)) {
                                // Initialize arrays
@@ -170,7 +170,7 @@ if (!isFormSent()) {
 } elseif (!isDemoModeActive()) {
        // Insert new menu entry
        if (isPostRequestParameterSet('menu')) {
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `visible`, `locked`, `sort`) VALUES ('%s','%s','%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','%s','%s','%s')",
                        array(
                                postRequestParameter('menu'),
                                postRequestParameter('name'),
@@ -180,7 +180,7 @@ if (!isFormSent()) {
                                bigintval(postRequestParameter('sort')),
                        ), __FILE__, __LINE__);
        } else {
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `title`, `visible`, `locked`, `sort`) VALUES ('%s','%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','%s','%s')",
                        array(
                                postRequestParameter('name'),
                                postRequestParameter('title'),
index eb62f05dcd9e1f44438f370ddcf143ff6c0a4aea..34dc56c0c8d50d6c62195880eac16ffe0ba91f38 100644 (file)
@@ -60,7 +60,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $count++;
-                       $result = SQL_QUERY_ESC("SELECT `title`, `action`, `what` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `title`,`action`,`what` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
@@ -140,7 +140,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $count++;
-                       $result = SQL_QUERY_ESC("SELECT `title`, `visible`, `locked` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `title`,`visible`,`locked` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
@@ -181,10 +181,10 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
 
        if (!empty($subMenu)) {
                // Edit sub menus
-               $result = SQL_QUERY("SELECT `id`, `action`, `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE ".$AND." AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE ".$AND." AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort` ASC", __FILE__, __LINE__);
        } else {
                // Edit main menus
-               $result = SQL_QUERY("SELECT `id`, `action`, `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort` ASC", __FILE__, __LINE__);
        }
 
        // Some are there?
index 338ae6f7d771c9062a8d733a951d716bf2e65fec..cc14ac4569c55fd39dfc3cec9a8604a17e15136f 100644 (file)
@@ -50,7 +50,7 @@ if (((!isPostRequestParameterSet('t_wait')) || (!isPostRequestParameterSet('paym
 if (isFormSent()) {
        switch (getRequestParameter('do')) {
                case 'add':
-                       addSql("INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES ('".postRequestParameter('t_wait')."','".postRequestParameter('payment')."','".postRequestParameter('title')."','".postRequestParameter('price')."')");
+                       addSql("INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES ('".postRequestParameter('t_wait')."','".postRequestParameter('payment')."','".postRequestParameter('title')."','".postRequestParameter('price')."')");
                        if (countSumTotalData(postRequestParameter('t_wait'), 'payments', 'id', 'time', true) == 1) {
                                // Re-init the array here
                                initSqls();
@@ -86,7 +86,7 @@ if (isFormSent()) {
        // Delete entries here
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
-               $result = SQL_QUERY_ESC("SELECT `id`, `time`, `mail_title` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`time`,`mail_title` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
 
@@ -103,7 +103,7 @@ if (isFormSent()) {
        // Edit entries
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
-               $result = SQL_QUERY_ESC("SELECT `id`, `time`, `payment`, `mail_title`, `price` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`time`,`payment`,`mail_title`,`price` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
 
@@ -118,7 +118,7 @@ if (isFormSent()) {
        loadTemplate('admin_edit_payments', false, $OUT);
 } else {
        // Referal levels
-       $result = SQL_QUERY("SELECT `id`, `time`, `payment`, `mail_title`, `price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `id`,`time`,`payment`,`mail_title`,`price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // Make referal levels editable and deletable
                $OUT = '';
index 0025912ab0838805372a49e86da1ad0bda9dce2f..b9d65b7b1ab105c26c2cdecb59b3e92c55e50261 100644 (file)
@@ -61,7 +61,7 @@ if (isFormSent()) {
                        // Was the banner found?
                        if (SQL_HASZERONUMS($result)) {
                                // Add banner
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (`url`, `alternate`, `visible`)
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (`url`,`alternate`,`visible`)
 VALUES ('%s','%s','%s')",
                                        array(
                                                postRequestParameter('url'),
@@ -107,7 +107,7 @@ VALUES ('%s','%s','%s')",
        $OUT = '';
        foreach (postRequestParameter('sel') as $id => $sel) {
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`, `url`, `alternate`, `visible` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`,`url`,`alternate`,`visible` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -131,7 +131,7 @@ VALUES ('%s','%s','%s')",
        } // END - if
 
        // Referal levels
-       $result = SQL_QUERY('SELECT `id`, `url`, `alternate`, `visible`, `counter`, `clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `url` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `id`,`url`,`alternate`,`visible`,`counter`,`clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `url` ASC', __FILE__, __LINE__);
 
        // Entries found?
        if (!SQL_HASZERONUMS($result)) {
index d11699f5ff3a3bbc73e0dbf00fe428b6f3d24471..fc3837760137ed4b82213e9d0583ece8eb2f130e 100644 (file)
@@ -46,7 +46,7 @@ addYouAreHereLink('admin', __FILE__);
 $actions = array();
 
 // First fix all main menus (what = '')...
-$result_fix = SQL_QUERY("SELECT `id`, `action` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE (`what`='' OR `what` IS NULL) AND `action` != 'logout' ORDER BY `sort` ASC", __FILE__, __LINE__);
+$result_fix = SQL_QUERY("SELECT `id`,`action` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE (`what`='' OR `what` IS NULL) AND `action` != 'logout' ORDER BY `sort` ASC", __FILE__, __LINE__);
 $count = '0'; $repairedWeights = '0';
 while ($content = SQL_FETCHARRAY($result_fix)) {
        // Store act value for later usage in sorting sub menus
index 23bdf1d66cd21502796b27178b465281d4dcde79..d2f8bef873f1862f9618c45460066bb1f33d4356 100644 (file)
@@ -46,7 +46,7 @@ addYouAreHereLink('admin', __FILE__);
 $actions = array();
 
 // First fix all main menus (what = '')...
-$result_fix = SQL_QUERY("SELECT `id`, `action` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE (`what`='' OR `what` IS NULL) AND `action` != 'logout' ORDER BY `sort` ASC", __FILE__, __LINE__);
+$result_fix = SQL_QUERY("SELECT `id`,`action` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE (`what`='' OR `what` IS NULL) AND `action` != 'logout' ORDER BY `sort` ASC", __FILE__, __LINE__);
 $count = '0'; $repairedWeights = '0';
 while ($content = SQL_FETCHARRAY($result_fix)) {
        // Store act value for later usage in sorting sub menus
index becfe0a97d545ca636bd1c8b8deb6311671b6cc9..ac688c979667c5fd52a2d813a6869a3350cdbcdc 100644 (file)
@@ -46,7 +46,7 @@ addYouAreHereLink('admin', __FILE__);
 $actions = array();
 
 // First fix all main menus (what = '')...
-$result_fix = SQL_QUERY("SELECT `id`, `action` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) AND `action` != 'logout' ORDER BY `sort` ASC", __FILE__, __LINE__);
+$result_fix = SQL_QUERY("SELECT `id`,`action` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE (`what`='' OR `what` IS NULL) AND `action` != 'logout' ORDER BY `sort` ASC", __FILE__, __LINE__);
 $count = '0'; $repairedWeights = '0';
 while ($content = SQL_FETCHARRAY($result_fix)) {
        // Store action value for later usage in sorting sub menus
index 2d359b36618272f7ed3b5c0cf2de7c33720a4c47..76324a4dad9354ccf84f50259319ebf544102a5e 100644 (file)
@@ -63,7 +63,7 @@ if (isFormSent()) {
                        $expirationTime = time() + createEpocheTimeFromSelections('coupon_default_time', postRequestArray());
 
                        // Insert coupon data
-                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`coupon_expired`, `total_created`, `points`, `coupon_description`) VALUES ('{%%pipe,SQL_EPOCHE_TO_TIMESTAMP=%s%%}', %s,%s,'%s')",
+                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`coupon_expired`,`total_created`,`points`,`coupon_description`) VALUES ('{%%pipe,SQL_EPOCHE_TO_TIMESTAMP=%s%%}', %s,%s,'%s')",
                                array(
                                        $expirationTime,
                                        SQL_NUMROWS($result),
@@ -95,7 +95,7 @@ if (isFormSent()) {
                                } // END - while
 
                                // The above loop should always set $couponCode, so we can now insert it
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_coupons` (`coupon_id`, `userid`, `coupon_code`) VALUES (%s,%s,'%s')",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_coupons` (`coupon_id`,`userid`,`coupon_code`) VALUES (%s,%s,'%s')",
                                        array($couponId, $userid, $couponCode), __FILE__, __LINE__);
 
                                // Fill array with all required data
index d964131028492fafa03e58699543b1470679f7d4..7f295e1111ebc0de17fd36d02b197516a2307aa1 100644 (file)
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
        $result = SQL_QUERY("SELECT
-       `userid`, `email`
+       `userid`,`email`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index 44e9547327f51efd817295ea7e0618127cdf737b..93cc0b4f08167b838e0dc8080c0a6603ac280cec 100644 (file)
@@ -49,22 +49,22 @@ if ((getRequestParameter('mod') == 'index') || (getRequestParameter('mod') == 'l
        $mod = mapModuleToTable(getRequestParameter('mod'));
 
        // Load module's detail statistic
-       $result = SQL_QUERY_ESC("SELECT `action`, `title`, `counter` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `what` != '' AND `what` IS NOT NULL ORDER BY `counter` DESC",
+       $result = SQL_QUERY_ESC("SELECT `action`,`title`,`counter` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `what` != '' AND `what` IS NOT NULL ORDER BY `counter` DESC",
                array($mod), __FILE__, __LINE__);
        $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Load row template
-               $OUT .= loadTemplate('admin_mods_stats2_row', true, $content);
+               $OUT .= loadTemplate('admin_list_mods_stats2_row', true, $content);
        } // END - while
 
        // Free memory
        SQL_FREERESULT($result);
 
        // Load final template
-       loadTemplate('admin_mods_stats2', false, $OUT);
+       loadTemplate('admin_list_mods_stats2', false, $OUT);
 } else {
        // Load module statics
-       $result = SQL_QUERY("SELECT `module`, `title`, `clicks` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `clicks` DESC, `module` ASC", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `module`,`title`,`clicks` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `clicks` DESC, `module` ASC", __FILE__, __LINE__);
        $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                if (($content['module'] == 'index') || ($content['module'] == 'login')) {
@@ -73,14 +73,14 @@ if ((getRequestParameter('mod') == 'index') || (getRequestParameter('mod') == 'l
                } // END - if
 
                // Load row template
-               $OUT .= loadTemplate('admin_mods_stats_row', true, $content);
+               $OUT .= loadTemplate('admin_list_mods_stats_row', true, $content);
        } // END - while
 
        // Free memory
        SQL_FREERESULT($result);
 
        // Load final template
-       loadTemplate('admin_mods_stats', false, $OUT);
+       loadTemplate('admin_list_mods_stats', false, $OUT);
 }
 
 // [EOF]
index 6b3f0a5267f57397d2fd4c1621bf9bf4ce51823b..3ade43b94026ec41d572d2ba0f41c1dbca191919 100644 (file)
@@ -50,13 +50,13 @@ if (getRequestParameter('userid') == 'all') {
                $content['points'] = bigintval(postRequestParameter('points'));
 
                // Load userid
-               $result_main = SQL_QUERY("SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
+               $result_main = SQL_QUERY("SELECT `userid`,`email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
                        __FILE__, __LINE__);
                while ($row = SQL_FETCHARRAY($result_main)) {
                        // Merge both arrays
                        $content = merge_array($content, $row);
 
-                       // Ok, add points to used points and send an email to him...
+                       // Ok, add points to used points, send an email to him and ignore return status
                        subtractPoints('admin_all', $content['userid'], postRequestParameter('points'));
 
                        // Prepare content
@@ -86,7 +86,7 @@ if (getRequestParameter('userid') == 'all') {
                $content = getUserDataArray();
 
                if ((isFormSent()) && (isPostRequestParameterSet('points'))) {
-                       // Ok, add to used points and send an email to him...
+                       // Ok, add to used points, send an email to him and ignore return status
                        subtractPoints('admin_single', bigintval(getRequestParameter('userid')), postRequestParameter('points'));
 
                        // Prepare content
index c2a407f2bb99ea39ef790cb72fa1229f1bdbda5c..c3665f9881913dd9487e66fb3db205dca33b5389 100644 (file)
@@ -59,7 +59,7 @@ if (isPostRequestParameterSet('theme')) {
                        loadInclude($inc);
 
                        // Register it ith the exchange
-                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_themes` (`theme_path`, `theme_active`, `theme_ver`, `theme_name`)
+                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_themes` (`theme_path`,`theme_active`,`theme_ver`,`theme_name`)
 VALUES ('%s','N','%s','%s')",
                                array(
                                        postRequestParameter('theme'),
index 8a135b2d30e6bca10b563bc1c339955c83e5aeeb..1d95092fa81bba5c0075b3654377962054579d38 100644 (file)
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 // Check for mails
 $result_main = SQL_QUERY("SELECT
-       `id`, `sender`, `subject`, `payment_id`, `timestamp`, `url`, `target_send`, `cat_id`
+       `id`,`sender`,`subject`,`payment_id`,`timestamp`,`url`,`target_send`,`cat_id`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -130,7 +130,7 @@ LIMIT 1",
                                $id = bigintval($id);
 
                                // Load URL and subject from pool
-                               $result = SQL_QUERY_ESC("SELECT `url`, `subject`, `sender` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
+                               $result = SQL_QUERY_ESC("SELECT `url`,`subject`,`sender` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
                                        array($id), __FILE__, __LINE__);
 
                                // Load data
@@ -179,7 +179,7 @@ LIMIT 1",
                                array($url), __FILE__, __LINE__);
                        if (SQL_HASZERONUMS($result)) {
                                // Did not find a record so we can add it... :)
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_url_blacklist` (`url`, `pool_id`) VALUES ('%s',%s)",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_url_blacklist` (`url`,`pool_id`) VALUES ('%s',%s)",
                                        array($url, $id), __FILE__, __LINE__);
                        } // END - if
 
index d83df3bcb19567b4560241d156fc5debf99f58df..25242a5380b563b39521e0fc23e42f179904cd0d 100644 (file)
@@ -57,9 +57,9 @@ if (isFormSent()) {
 
                        // Load his personal data
                        $result_main = SQL_QUERY_ESC("SELECT
-       `id`, `gender`, `surname`, `family`, `email`, `remote_addr`,
+       `id`,`gender`,`surname`,`family`,`email`,`remote_addr`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
-       `points_amount`, `points_used`,
+       `points_amount`,`points_used`,
        (`points_amount` + `points_used`) AS `points`,
        `refid`
 FROM
@@ -158,9 +158,9 @@ LIMIT 1",
                                if (!SQL_HASZEROAFFECTED()) {
                                        // Load referal's data
                                        $result = SQL_QUERY_ESC("SELECT
-       `id`, `gender`, `surname`, `family`, `email`,
+       `id`,`gender`,`surname`,`family`,`email`,
        (`points_amount` - `points_used`) AS `points`,
-       `receive_warnings`, `ref_count` AS refs
+       `receive_warnings`,`ref_count` AS refs
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
@@ -193,7 +193,7 @@ LIMIT 1",
 
 // Begin listing of all pending sponsor accounts
 $result = SQL_QUERY("SELECT
-       `id`, `gender`, `surname`, `family`, `email`, `remote_addr`,
+       `id`,`gender`,`surname`,`family`,`email`,`remote_addr`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
index 97672830303fbd5bd93214ebe6f6253c24de9c89..ad15f3fd951f293d945d9b4d32cecaac91aa2bd1 100644 (file)
@@ -55,7 +55,7 @@ if (isExtensionActive('online')) {
        loadTemplate('admin_mini_online', false, $content);
 
        // Check for online users
-       $result = SQL_QUERY("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
+       $result = SQL_QUERY("SELECT `id`,`ip`,`userid`,`refid`,`module`,`action`,`what`,`is_member`,`is_admin`,`timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
                __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // List all online users
index a31c49f5c7b66d6b2a2fff70c4329489e05d19f4..90437458c439338aba4a06305985ddd63e6eccad 100644 (file)
@@ -46,7 +46,7 @@ if (isGetRequestParameterSet('order')) {
        // Order number placed, is he also logged in?
        if (isMember()) {
                // Ok, test passed... :)
-               $result = SQL_QUERY_ESC("SELECT `subject`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s AND `sender`=%s AND `data_type`='TEMP' LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `subject`,`url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s AND `sender`=%s AND `data_type`='TEMP' LIMIT 1",
                        array(bigintval(getRequestParameter('order')), getMemberId()), __FILE__, __LINE__);
 
                // Finally is the entry valid?
index 1c4e001ed7f000894565d9e173c8b2a25a5f20bd..7e96a027ed68f64289bb0d53a2d09d0544ffdca0 100644 (file)
@@ -50,7 +50,7 @@ if ((!isExtensionActive('active')) && (!isAdmin())) {
 
 // Check for members who were active only this day
 $result = SQL_QUERY("SELECT
-       `userid`, `last_online`
+       `userid`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index cb394bdd9f6ce0211843a4960571f9a358cad5f1..5049267996b1ba1c8b2e63fdab95c987d7b972c0 100644 (file)
@@ -80,7 +80,7 @@ if (!SQL_HASZERONUMS($result_act)) {
        } // END - while
 
        // Check for pay types
-       $result_pay = SQL_QUERY('SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` ORDER BY `pay_name` ASC', __FILE__, __LINE__);
+       $result_pay = SQL_QUERY('SELECT `pay_name`,`pay_rate`,`pay_min_count`,`pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` ORDER BY `pay_name` ASC', __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result_pay)) {
                // Load all pay types
                $OUT_PAY = '';
index f81b710249851f5cfe58ecfc147d7d83d06fbbc6..caaab113579a429136f15defa03c6464dbcda65c 100644 (file)
@@ -64,10 +64,10 @@ if (isGetRequestParameterSet('mode')) {
 if (isGetRequestParameterSet('hash')) {
        // Lookup sponsor
        $result = SQL_QUERY_ESC("SELECT
-       `id`, `status`, `gender`, `surname`, `family`,
-       `company`, `position`, `tax_ident`,
-       `street_nr1`, `street_nr2`, `country`, `zip`, `city`, `email`, `phone`, `fax`, `cell`,
-       `points_amount` AS `points`, `last_payment`, `last_currency`
+       `id`,`status`,`gender`,`surname`,`family`,
+       `company`,`position`,`tax_ident`,
+       `street_nr1`,`street_nr2`,`country`,`zip`,`city`,`email`,`phone`,`fax`,`cell`,
+       `points_amount` AS `points`,`last_payment`,`last_currency`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
@@ -156,7 +156,7 @@ LIMIT 1",
        if (isFormSent()) {
                // Check email
                $result = SQL_QUERY_ESC("SELECT
-       `id`, `hash`, `status`, `remote_addr`, `gender`, `surname`, `family`,
+       `id`,`hash`,`status`,`remote_addr`,`gender`,`surname`,`family`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
@@ -207,7 +207,7 @@ LIMIT 1",
        if (isFormSent()) {
                // Check email
                $result = SQL_QUERY_ESC("SELECT
-       `id`, `hash`, `remote_addr`, `gender`, `surname`, `family`,
+       `id`,`hash`,`remote_addr`,`gender`,`surname`,`family`,
        UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
index 5242b160232c7aede23cb48017dfcb665e252c12..ee9d1494dd37a6a0d7a4eb42de967629b3ce2c63 100644 (file)
@@ -206,7 +206,7 @@ if ((isFormSent()) && (count($formErrors) == 0)) {
 
        // Calulate points
        $result = SQL_QUERY_ESC("SELECT
-       (`pay_rate` * `pay_min_count`) AS `points`, `pay_min_count`, `pay_currency`
+       (`pay_rate` * `pay_min_count`) AS `points`,`pay_min_count`,`pay_currency`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_paytypes`
 WHERE
@@ -232,7 +232,7 @@ LIMIT 1",
 } else {
        // Check for payment types
        $result = SQL_QUERY('SELECT
-       `id`, `pay_name`, `pay_rate`, `pay_currency`, `pay_min_count`
+       `id`,`pay_name`,`pay_rate`,`pay_currency`,`pay_min_count`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_paytypes`
 ORDER BY 
index c5c6b87db61b42c81ba46c73876c75eb49679730..944337f45c62cf365ddd32f15ede95d671ae1b60 100644 (file)
@@ -100,7 +100,7 @@ switch (getConfig('guest_stats')) {
                } // END - for
 
                // Members in categories
-               $result = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `visible`='Y' ORDER BY `id` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`,`cat` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `visible`='Y' ORDER BY `id` ASC", __FILE__, __LINE__);
 
                // Load categories first
                $cats = array(); $cat_cnt = array();
@@ -182,8 +182,8 @@ switch (getConfig('guest_stats')) {
                if (isAdmin()) $AND = '';
 
                // Query for guest and member menus
-               $guest_t10 = SQL_QUERY('SELECT `counter`, `title` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `counter` > 0' . $AND . ' ORDER BY `counter` DESC LIMIT 0,10', __FILE__, __LINE__);
-               $mem_t10   = SQL_QUERY('SELECT `counter`, `title` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `counter` > 0' . $AND . ' ORDER BY `counter` DESC LIMIT 0,10', __FILE__, __LINE__);
+               $guest_t10 = SQL_QUERY('SELECT `counter`,`title` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `counter` > 0' . $AND . ' ORDER BY `counter` DESC LIMIT 0,10', __FILE__, __LINE__);
+               $mem_t10   = SQL_QUERY('SELECT `counter`,`title` FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `counter` > 0' . $AND . ' ORDER BY `counter` DESC LIMIT 0,10', __FILE__, __LINE__);
                $OUT = ''; 
 
                if (!SQL_HASZERONUMS($guest_t10)) {
index ee437a3b594532fa3113ba2c51e7163ef977d0fe..e80566d930c3f11e883063f748b12e93dfe3f4b4 100644 (file)
@@ -53,7 +53,7 @@ $rows = array();
 
 // TOP logins
 $result = SQL_QUERY("SELECT
-       `userid`, `last_online`
+       `userid`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index dbeb5affa2c198f35a48f1aebcc178102030d185..3e552592b9f2fd6846aa5917aeabb6de63ee7d31 100644 (file)
@@ -61,7 +61,9 @@ if ((isExtensionActive('autopurge')) && (isBegActiveEnabled()) && ((getApInactiv
 
 // Let's check if there are some points left we can pay...
 $result = SQL_QUERY_ESC("SELECT
-       `userid`, `beg_points`, `last_online`
+       `userid`,
+       `beg_points`,
+       `last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index 7630af452acf3d02368c3ef9ed1fbb6e4ee73da4..2f7f4867add9eabae34b91e5ccb54b454cc4ecce 100644 (file)
@@ -50,20 +50,12 @@ if ((!isExtensionActive('bonus')) && (!isAdmin())) {
        return;
 } // END - if
 
-if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
-       // Add more bonus points here
-       // @TODO Rewrite this to a filter
-       $USE = '(0';
-       if (getConfig('bonus_click_yn') == 'Y') $USE .= ' + `turbo_bonus`';
-       if (getConfig('bonus_login_yn') == 'Y') $USE .= ' + `login_bonus`';
-       if (getConfig('bonus_order_yn') == 'Y') $USE .= ' + `bonus_order`';
-       if (getConfig('bonus_stats_yn') == 'Y') $USE .= ' + `bonus_stats`';
-       if (getConfig('bonus_ref_yn')   == 'Y') $USE .= ' + `bonus_ref`';
-       $USE .= ')';
-} else {
-       // Old version ???
-       $USE = '`turbo_bonus`';
-}
+// Add more bonus points here
+$add = runFilterChain('add_bonus_points_user_columns', '');
+$USE = '`turbo_bunus`';
+if (!empty($add)) {
+       $USE = '(0' .  . ')';
+} // END - if
 
 // Init variables
 $lastOnline = '%s';
@@ -77,7 +69,7 @@ if ((isExtensionActive('autopurge')) && ((getApInactiveSince() > 0))) {
 
 // Let's check if there are some points left we can 'pay'...
 $result = SQL_QUERY_ESC("SELECT
-       `userid`, ".$USE." AS `points`, `last_online`
+       `userid`, ".$USE." AS `points`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index 8d384e90ab5b7000abefb8ae1faf51372a53a85f..bbc77f1aabeb68e5254e682fca838b748b5d9e72 100644 (file)
@@ -124,7 +124,7 @@ LIMIT 1",
 
                        // Subtract points from member account if the admin has selected one
                        if (isValidUserId(getConfig('coupon_userid'))) {
-                               // Subtract from this account
+                               // Subtract from this account and ignore return status
                                subtractPoints('cashed_coupon', getConfig('coupon_userid'), $content['points']);
                        } // END - if
 
index dad195c7088d797efc1e84baa55b245430aca217..026a0e6a6fe7385e3370f3eacadf62541bcda3a4 100644 (file)
@@ -49,7 +49,7 @@ $whereStatement = " WHERE `visible`='Y'";
 if (isAdmin()) $whereStatement = '';
 
 // Get all categories
-$result = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats`".$whereStatement." ORDER BY `sort` ASC", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT `id`,`cat` FROM `{?_MYSQL_PREFIX?}_cats`".$whereStatement." ORDER BY `sort` ASC", __FILE__, __LINE__);
 
 // Do we have entries?
 if (!SQL_HASZERONUMS($result)) {
@@ -86,7 +86,7 @@ if (!SQL_HASZERONUMS($result)) {
                                        //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'categoryId='.$categoryId.',joined='.$joined.',getMemberId()='.getMemberId().',SQL_HASZERONUMS()='.intval(SQL_HASZERONUMS($result_user)));
 
                                        if (SQL_HASZERONUMS($result_user)) {
-                                               $sql = "INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (`userid`, `cat_id`) VALUES (%s,%s)";
+                                               $sql = "INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (`userid`,`cat_id`) VALUES (%s,%s)";
                                        } // END - if
 
                                        // Free memory
index c5d648bd9ae0bf04a27332de185f8c452a9f2671..7417a7dec32dbd3eaa1758c39664456d6edf632b 100644 (file)
@@ -119,7 +119,7 @@ if (isFormSent()) {
                unsetPostRequestParameter('ok');
        } else {
                // Everything went okay so let's store his request and send mails
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_holidays` (`userid`, `holiday_start`, `holiday_end`, `comments`) VALUES ('%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_holidays` (`userid`,`holiday_start`,`holiday_end`,`comments`) VALUES ('%s','%s','%s','%s')",
                        array(getMemberId(), $START, $content['holiday_end'], postRequestParameter('comments')), __FILE__, __LINE__);
 
                // Activate holiday system
@@ -160,7 +160,7 @@ LIMIT 1",
 if (isPostRequestParameterSet('stop')) {
        // Okay, end the holiday here...
        $result = SQL_QUERY_ESC("SELECT
-       `holiday_active`, `holiday_activated`
+       `holiday_active`,`holiday_activated`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -175,7 +175,7 @@ LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
                if (($content['holiday_active'] == 'Y') && (($content['holiday_activated'] + getConfig('holiday_lock')) < time())) {
                        // Load data
                        $result2 = SQL_QUERY_ESC("SELECT
-       `holiday_start`, `holiday_end`
+       `holiday_start`,`holiday_end`
 FROM
        `{?_MYSQL_PREFIX?}_user_holidays`
 WHERE
@@ -236,7 +236,7 @@ LIMIT 1",
 if ((!isFormSent()) && (!isPostRequestParameterSet('stop'))) {
        // Check if user is in holiday...
        $result = SQL_QUERY_ESC("SELECT
-       `holiday_active`, `holiday_activated`
+       `holiday_active`,`holiday_activated`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -252,7 +252,7 @@ LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
                        case 'Y': // Display deactivation form
                                // Load starting and ending date
                                $result = SQL_QUERY_ESC("SELECT
-       `holiday_start`, `holiday_end`
+       `holiday_start`,`holiday_end`
 FROM
        `{?_MYSQL_PREFIX?}_user_holidays`
 WHERE
index 39b6d3f0a9c2359062efed44934c0fd4b2630bbb..fc0d0f8d504a878e7e8eb893b2b4e2aca1101270 100644 (file)
@@ -99,7 +99,7 @@ switch ($mode) {
        case 'edit': // Edit data
                if (isExtensionActive('country', true)) {
                        // New way                          0          1            2             3         4       5       6           7            8              9          10         11               12            13
-                       $result = SQL_QUERY_ESC("SELECT `surname`, `family`, `street_nr`, `country_code`, `zip`, `city`, `email`, `birth_day`, `birth_month`, `birth_year`, `gender`, `max_mails`, `receive_mails`, `last_update`
+                       $result = SQL_QUERY_ESC("SELECT `surname`,`family`,`street_nr`,`country_code`,`zip`,`city`,`email`,`birth_day`,`birth_month`,`birth_year`,`gender`,`max_mails`,`receive_mails`,`last_update`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -108,7 +108,7 @@ LIMIT 1",
                        array(getMemberId()), __FILE__, __LINE__);
                } else {
                        // Old way                          0          1            2          3       4       5       6           7            8              9          10         11               12            13
-                       $result = SQL_QUERY_ESC("SELECT `surname`, `family`, `street_nr`, `country`, `zip`, `city`, `email`, `birth_day`, `birth_month`, `birth_year`, `gender`, `max_mails`, `receive_mails`, `last_update`
+                       $result = SQL_QUERY_ESC("SELECT `surname`,`family`,`street_nr`,`country`,`zip`,`city`,`email`,`birth_day`,`birth_month`,`birth_year`,`gender`,`max_mails`,`receive_mails`,`last_update`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index de7899c8f22587618be64879395ce65ce731a4d5..4189b7d78f6211872c1e04588d1f89a2469c1959 100644 (file)
@@ -66,7 +66,7 @@ if ((isExtensionInstalledAndNewer('holiday', '0.1.3')) && (isUserDataEnabled('ho
        // Continue with the frametester, we first need to store the data temporary in the pool
        //
        // First we would like to store the data and get it's pool position back...
-       $result = SQL_QUERY_ESC("SELECT `id`, `data_type`
+       $result = SQL_QUERY_ESC("SELECT `id`,`data_type`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -469,7 +469,7 @@ LIMIT 1",
 
        // Display order form
        $result_cats = SQL_QUERY("SELECT
-       `id`, `cat`
+       `id`,`cat`
 FROM
        `{?_MYSQL_PREFIX?}_cats`
 ".$whereStatement."
@@ -569,7 +569,7 @@ LIMIT 1",
                        SQL_FREERESULT($result_cats);
 
                        // Now we need to load the mail types...
-                       $result = SQL_QUERY("SELECT `id`, `price`, `payment`, `mail_title` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `payment` ASC", __FILE__, __LINE__);
+                       $result = SQL_QUERY("SELECT `id`,`price`,`payment`,`mail_title` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `payment` ASC", __FILE__, __LINE__);
 
                        $types = array();
                        if (!SQL_HASZERONUMS($result)) {
@@ -619,7 +619,7 @@ LIMIT 1",
 
                                // Check if we already have an order placed and make it editable
                                $result = SQL_QUERY_ESC("SELECT
-       `subject`, `text`, `payment_id`, `timestamp`, `url`, `target_send`, `cat_id`, `zip`
+       `subject`,`text`,`payment_id`,`timestamp`,`url`,`target_send`,`cat_id`,`zip`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
index 1a3811e04e69330c429822489c55a930d9b9fac2..8db1add8eec3f395088e332ae3afecb487848b6a 100644 (file)
@@ -58,7 +58,7 @@ $payoutPoints = getPayoutPoints(getMemberId());
 if (!isGetRequestParameterSet('payout')) {
        // Load payout types
        $result = SQL_QUERY_ESC("SELECT
-       `id`, `type`, `rate`, `min_points`, `allow_url`
+       `id`,`type`,`rate`,`min_points`,`allow_url`
 FROM
        `{?_MYSQL_PREFIX?}_payout_types`
 WHERE
@@ -123,7 +123,7 @@ ORDER BY
        }
 } else {
        // Chedk if he can get paid by selected type
-       $result = SQL_QUERY_ESC("SELECT `type`, `rate`, `min_points`, `allow_url` AS allow FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `type`,`rate`,`min_points`,`allow_url` AS allow FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestParameter('payout'))), __FILE__, __LINE__);
 
        if (SQL_NUMROWS($result) == 1) {
@@ -149,13 +149,13 @@ ORDER BY
                                setPostRequestParameter('payout_points', $points);
                                setPostRequestParameter('type'         , $content['type']);
 
-                               // Subtract points from member's account
+                               // Subtract points from member's account and ignore return status
                                subtractPoints('payout', getMemberId(), $points);
 
                                // Add entry to his tranfer history
                                if ($content['allow'] == 'Y') {
                                        // Banner/textlink ordered
-                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_payouts` (`userid`, `payout_total`, `payout_id`, `payout_timestamp`, `status`, `target_url`, `link_text`, `banner_url`)
+                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_payouts` (`userid`,`payout_total`,`payout_id`,`payout_timestamp`,`status`,`target_url`,`link_text`,`banner_url`)
 VALUES (%s,%s,%s, UNIX_TIMESTAMP(), 'NEW','%s','%s','%s')",
                                        array(
                                                getMemberId(),
@@ -175,7 +175,7 @@ VALUES (%s,%s,%s, UNIX_TIMESTAMP(), 'NEW','%s','%s','%s')",
                                        }
                                } else {
                                        // e-currency payout requested
-                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_payouts` (`userid`, `payout_total`, `target_account`, `target_bank`, `payout_id`, `payout_timestamp`, `status`, `password`)
+                                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_payouts` (`userid`,`payout_total`,`target_account`,`target_bank`,`payout_id`,`payout_timestamp`,`status`,`password`)
 VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')",
                                        array(
                                                getMemberId(),
index 5e7675ee2c170b9e41b6ab433683da3d311b2da9..c0e9f07c0906c3e44cbecbdd9df707cb92982903 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 // Query for referal levels and percents
-$result_depths = SQL_QUERY('SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
+$result_depths = SQL_QUERY('SELECT `level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
 
 // Get total depths
 $numDepths = SQL_NUMROWS($result_depths);
index 929169226f3c0b86a857db705d505330cc9296e5..cf4a196098614d7320d30ea384d2e2210405956f 100644 (file)
@@ -71,7 +71,7 @@ if (!isGetRequestParameterSet('mode')) {
                setGetRequestParameter('mode', 'list');
 
                // And load all rows!
-               $result = SQL_QUERY_ESC("SELECT `id`, `primera_account`, `primera_amount`, `primera_timestamp`, `primera_type` FROM `{?_MYSQL_PREFIX?}_user_primera` WHERE `userid`=%s ORDER BY `primera_timestamp` DESC",
+               $result = SQL_QUERY_ESC("SELECT `id`,`primera_account`,`primera_amount`,`primera_timestamp`,`primera_type` FROM `{?_MYSQL_PREFIX?}_user_primera` WHERE `userid`=%s ORDER BY `primera_timestamp` DESC",
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
@@ -155,7 +155,7 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                                $locked = false;
                                        } // END - if
 
-                                       // Remove points from account
+                                       // Subtract points from account and ignore return status
                                        subtractPoints('primera_payout', getMemberId(), postRequestParameter('amount'));
 
                                        // Update primera nickname
index 35832a3fb84c6dda6b2709a5a066378676bd8705..0da2327b03e2a40b16f0a4a5439e3771d2c71f25 100644 (file)
@@ -66,7 +66,7 @@ if (isExtensionActive('nickname')) {
 $whereStatement = " WHERE `visible`='Y'";
 if (isAdmin()) $whereStatement = '';
 
-$result = SQL_QUERY('SELECT `id`, `url`, `alternate`, `counter`, `clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `id` ASC', __FILE__, __LINE__);
+$result = SQL_QUERY('SELECT `id`,`url`,`alternate`,`counter`,`clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `id` ASC', __FILE__, __LINE__);
 
 if (!SQL_HASZERONUMS($result)) {
        // List available ref banners
index f41db9da7836cff4376f83530680beb841b8eb4d..94339e44f0d1eaca5959d6efcc3a89bef6d84918 100644 (file)
@@ -48,7 +48,7 @@ addYouAreHereLink('member', __FILE__);
 
 // Load all referal levels
 $result = SQL_QUERY('SELECT
-       `level`, `percents`
+       `level`,`percents`
 FROM
        `{?_MYSQL_PREFIX?}_refdepths`
 WHERE
index 8b26caedb61913290193d6345bc7d2378f49db64..2dd4cfb4352b454eb5e51b3277977cb7dfb9a151 100644 (file)
@@ -50,7 +50,7 @@ $main_content = array();
 
 // Load waiting/pending orders
 $result = SQL_QUERY_ESC("SELECT
-       `id`, `cat_id`, `payment_id`, `subject`, `url`, `timestamp`, `target_send`, `data_type`, `zip`
+       `id`,`cat_id`,`payment_id`,`subject`,`url`,`timestamp`,`target_send`,`data_type`,`zip`
 FROM
        `{?_MYSQL_PREFIX?}_pool`
 WHERE
@@ -84,7 +84,7 @@ SQL_FREERESULT($result);
 
 // Load sent orders
 $result = SQL_QUERY_ESC("SELECT
-       `id`, `cat_id`, `payment_id`, `subject`, `url`, `timestamp_ordered`, `max_rec`, `timestamp_send`, `clicks`
+       `id`,`cat_id`,`payment_id`,`subject`,`url`,`timestamp_ordered`,`max_rec`,`timestamp_send`,`clicks`
 FROM
        `{?_MYSQL_PREFIX?}_user_stats`
 WHERE
index c8518df6cbebbc76f503d2d194f8c4a9666fa52f..e76413f51297c87d844f411ff92819a0aff5eff5 100644 (file)
@@ -94,7 +94,7 @@ switch ($mode) {
                        $valid_recipient = isValidUserId(postRequestParameter('to_userid'));
 
                        // Re-check receivers and own personal data
-                       $result = SQL_QUERY_ESC("SELECT `userid`, `gender`, `surname`, `family`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid` IN ('%s','%s') AND `status`='CONFIRMED' LIMIT 2",
+                       $result = SQL_QUERY_ESC("SELECT `userid`,`gender`,`surname`,`family`,`email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid` IN ('%s','%s') AND `status`='CONFIRMED' LIMIT 2",
                                array(
                                        getMemberId(),
                                        bigintval(postRequestParameter('to_userid'))
@@ -143,7 +143,7 @@ switch ($mode) {
                                $content['trans_id'] = bigintval(generateRandomCode('10', mt_rand(0, 99999), getMemberId(), postRequestParameter('reason')));
 
                                // Add entries to both tables
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_transfers_in` (`userid`, `from_userid`, `points`, `reason`, `time_trans`, `trans_id`) VALUES (%s,%s,%s,'%s', UNIX_TIMESTAMP(),%s)",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_transfers_in` (`userid`,`from_userid`,`points`,`reason`,`time_trans`,`trans_id`) VALUES (%s,%s,%s,'%s', UNIX_TIMESTAMP(),%s)",
                                        array(
                                                bigintval(postRequestParameter('to_userid')),
                                                getMemberId(),
@@ -151,7 +151,7 @@ switch ($mode) {
                                                postRequestParameter('reason'),
                                                $content['trans_id']
                                        ), __FILE__, __LINE__);
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_transfers_out` (`userid`, `to_userid`, `points`, `reason`, `time_trans`, `trans_id`) VALUES (%s,%s,%s,'%s', UNIX_TIMESTAMP(),%s)",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_transfers_out` (`userid`,`to_userid`,`points`,`reason`,`time_trans`,`trans_id`) VALUES (%s,%s,%s,'%s', UNIX_TIMESTAMP(),%s)",
                                        array(
                                                getMemberId(),
                                                bigintval(postRequestParameter('to_userid')),
@@ -164,7 +164,7 @@ switch ($mode) {
                                initReferalSystem();
                                addPointsThroughReferalSystem('transfer', bigintval(postRequestParameter('to_userid')), bigintval(postRequestParameter('points')));
 
-                               // ... and add it to current user's used points
+                               // ... and add it to current user's used points and ignore return status
                                subtractPoints('transfer', getMemberId(), postRequestParameter('points'));
 
                                // First send email to recipient
@@ -281,14 +281,14 @@ switch ($mode) {
                $nothingMessage = '';
                switch ($mode) {
                        case 'list_in':
-                               $sql = 'SELECT `trans_id`, `from_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}';
+                               $sql = 'SELECT `trans_id`,`from_userid` AS party_userid, `points`,`reason`,`time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}';
                                $nothingMessage     = '{--TRANSFER_NO_INCOMING_TRANSFERS--}';
                                $content['balance'] = '{--TRANSFER_TOTAL_INCOMING--}';
                                $content['title']   = '{--TRANSFER_LIST_INCOMING--}';
                                break;
 
                        case 'list_out':
-                               $sql = 'SELECT `trans_id`, `to_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}';
+                               $sql = 'SELECT `trans_id`,`to_userid` AS party_userid, `points`,`reason`,`time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}';
                                $nothingMessage     = '{--TRANSFER_NO_OUTGOING_TRANSFERS--}';
                                $content['balance'] = '{--TRANSFER_TOTAL_OUTGOING--}';
                                $content['title']   = '{--TRANSFER_LIST_OUTGOING--}';
@@ -358,31 +358,31 @@ INDEX (`party_userid`)
 ) ENGINE = HEAP COMMENT = 'Temporary transfer table'", array(getMemberId()), __FILE__, __LINE__);
 
                // Let's begin with the incoming list
-               $result = SQL_QUERY_ESC("SELECT `trans_id`, `from_userid`, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `userid`=%s ORDER BY `id` ASC LIMIT {?transfer_max?}",
+               $result = SQL_QUERY_ESC("SELECT `trans_id`,`from_userid`,`points`,`reason`,`time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `userid`=%s ORDER BY `id` ASC LIMIT {?transfer_max?}",
                        array(getMemberId()), __FILE__, __LINE__);
                while ($DATA = SQL_FETCHROW($result)) {
                        $DATA[] = 'IN';
                        $DATA = implode("','", $DATA);
-                       $res_temp = SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_%s_transfers_tmp` (`trans_id`, `party_userid`, `points`, `reason`, `time_trans`, `trans_type`) VALUES ('" . $DATA . "')", array(getMemberId()), __FILE__, __LINE__);
+                       $res_temp = SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_%s_transfers_tmp` (`trans_id`,`party_userid`,`points`,`reason`,`time_trans`,`trans_type`) VALUES ('" . $DATA . "')", array(getMemberId()), __FILE__, __LINE__);
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // As the last table transfer data from outgoing table to temporary
-               $result = SQL_QUERY_ESC("SELECT `trans_id`, `to_userid`, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `id` LIMIT {?transfer_max?}",
+               $result = SQL_QUERY_ESC("SELECT `trans_id`,`to_userid`,`points`,`reason`,`time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `id` LIMIT {?transfer_max?}",
                        array(getMemberId()), __FILE__, __LINE__);
                while ($DATA = SQL_FETCHROW($result)) {
                        $DATA[] = 'OUT';
                        $DATA = implode("','", $DATA);
-                       $res_temp = SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_%s_transfers_tmp` (`trans_id`, `party_userid`, `points`, `reason`, `time_trans`, `trans_type`) VALUES ('" . $DATA . "')", array(getMemberId()), __FILE__, __LINE__);
+                       $res_temp = SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_%s_transfers_tmp` (`trans_id`,`party_userid`,`points`,`reason`,`time_trans`,`trans_type`) VALUES ('" . $DATA . "')", array(getMemberId()), __FILE__, __LINE__);
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Search for entries
-               $result = SQL_QUERY_ESC("SELECT `party_userid`, `trans_id`, `points`, `reason`, `time_trans`, `trans_type` FROM `{?_MYSQL_PREFIX?}_%s_transfers_tmp` ORDER BY `time_trans` DESC",
+               $result = SQL_QUERY_ESC("SELECT `party_userid`,`trans_id`,`points`,`reason`,`time_trans`,`trans_type` FROM `{?_MYSQL_PREFIX?}_%s_transfers_tmp` ORDER BY `time_trans` DESC",
                        array(getMemberId()), __FILE__, __LINE__);
 
                $total = '0';
index af971c9247ccee4f912790b756a10121bcf05c03..23502f4ed31d66eb1a5c98ecc1bf70fc9138e105 100644 (file)
@@ -55,7 +55,7 @@ if (!isExtensionActive('mailid')) {
 if ((isGetRequestParameterSet('bonusid')) && (isExtensionActive('bonus'))) {
        // Display bonus mail by loading it's full data
        $result_data = SQL_QUERY_ESC("SELECT
-       `id`, `subject`, `timestamp`, `cat_id`, `points`, `text`, `is_notify`, `data_type`, `time`, `url`
+       `id`,`subject`,`timestamp`,`cat_id`,`points`,`text`,`is_notify`,`data_type`,`time`,`url`
 FROM
        `{?_MYSQL_PREFIX?}_bonus`
 WHERE
@@ -143,11 +143,11 @@ LIMIT 1",
 
 if (isExtensionActive('bonus')) {
        // Load bonus id
-       $result = SQL_QUERY_ESC("SELECT `stats_id`, `bonus_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `bonus_id` DESC, stats_id DESC",
+       $result = SQL_QUERY_ESC("SELECT `stats_id`,`bonus_id`,`link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `bonus_id` DESC, stats_id DESC",
                array(getMemberId()), __FILE__, __LINE__);
 } else {
        // Don't load bonus id if ext-bonus is not installed
-       $result = SQL_QUERY_ESC("SELECT `stats_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `stats_id` DESC",
+       $result = SQL_QUERY_ESC("SELECT `stats_id`,`link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `stats_id` DESC",
                array(getMemberId()), __FILE__, __LINE__);
 }
 
@@ -186,7 +186,7 @@ LIMIT 1",
                                break;
 
                        case 'BONUS':
-                               $result_data = SQL_QUERY_ESC("SELECT `subject`, `timestamp`, `cat_id`, `points`, 0 FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+                               $result_data = SQL_QUERY_ESC("SELECT `subject`,`timestamp`,`cat_id`,`points`, 0 FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                                        array(bigintval($row['bonus_id'])), __FILE__, __LINE__);
                                $row['link_type'] = 'bonusid';
                                $data = $row['bonus_id'];
index d53b7e34ffc24c479712875a0f4ea63094606b01..60809e91dd54a4150c5e5ff0a3c7ff2bf4e907fe 100644 (file)
@@ -72,7 +72,7 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
                setGetRequestParameter('mode', 'list');
 
                // And load all rows!
-               $result = SQL_QUERY_ESC("SELECT `id`, `wernis_account`, `wernis_amount`, `wernis_timestamp`, `wernis_type` FROM `{?_MYSQL_PREFIX?}_user_wernis` WHERE `userid`=%s ORDER BY `wernis_timestamp` DESC",
+               $result = SQL_QUERY_ESC("SELECT `id`,`wernis_account`,`wernis_amount`,`wernis_timestamp`,`wernis_type` FROM `{?_MYSQL_PREFIX?}_user_wernis` WHERE `userid`=%s ORDER BY `wernis_timestamp` DESC",
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
@@ -206,7 +206,7 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                        // All is fine here so do the withdraw
                                        $success = WERNIS_EXECUTE_PAYOUT(postRequestParameter('wernis_userid'), postRequestParameter('amount'));
                                        if ($success === true) {
-                                               // Sub points
+                                               // Sub points and ignore return status
                                                subtractPoints('wernis_payout', getMemberId(), postRequestParameter('amount'));
 
                                                // Update WDS66 id
index c491d0798318e46419fc67bebf4fd6e9ad05b8a0..fa04e6e356e547a87c93554df94a770ab442575c 100644 (file)
@@ -73,7 +73,7 @@ if (empty($url)) {
        if (!SQL_HASZEROAFFECTED()) {
                // @TODO Unused: 2,4
                // Load mail again...              0         1          2             3            4         5       6            7
-               $result = SQL_QUERY_ESC("SELECT `subject`, `text`, `receivers`, `payment_id`, `timestamp`, `url`, `cat_id`, `target_send` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s AND `sender`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `subject`,`text`,`receivers`,`payment_id`,`timestamp`,`url`,`cat_id`,`target_send` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s AND `sender`=%s LIMIT 1",
                        array(bigintval(getRequestParameter('order')), getMemberId()), __FILE__, __LINE__);
 
                // Merge arrays
@@ -89,6 +89,8 @@ if (empty($url)) {
 
                // Calculate used points
                $content['payed_points'] = $content['target_send'] * getPaymentPoints($content['payment_id']);
+
+               // Subtract them from the user's account and ignore return status
                subtractPoints('order', getMemberId(), $content['payed_points']);
 
                // Update used points
index b5680854fc51774c6d66ec28a146533bcb24bb50..88e358cf2de065c111c5a50fead7ecd1cea22137 100644 (file)
@@ -49,10 +49,10 @@ if (!defined('__SECURITY')) {
 
 // Data for the formular
 $result = SQL_QUERY_ESC("SELECT
-       `id`, `company`, `position`, `tax_ident`,
-       `gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
-       `phone`, `fax`, `cell`, `email`, `url`,
-       `status`, `receive_warnings`
+       `id`,`company`,`position`,`tax_ident`,
+       `gender`,`surname`,`family`,`street_nr1`,`street_nr2`,`zip`,`city`,`country`,
+       `phone`,`fax`,`cell`,`email`,`url`,
+       `status`,`receive_warnings`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
index 673718a23ed35399d5757654a301ee096a98e852..f65f420153634e26212daa64e6b0d2ba325e3ea7 100644 (file)
@@ -52,7 +52,7 @@ $message = '';
 
 // Data for the formular
 $result = SQL_QUERY_ESC("SELECT
-       `status`, `receive_warnings`, `warning_interval`, `email`, `surname`, `family`, `gender`
+       `status`,`receive_warnings`,`warning_interval`,`email`,`surname`,`family`,`gender`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
index e4b71d0530732833b419d6c4741306d499e472d9..1c14c98b2411bfc88f009b33e693f881ea43c77c 100644 (file)
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 
 // Load some data
 $result = SQL_QUERY_ESC("SELECT
-       `id`, `gender`, `surname`, `family`, (`points_amount` - `points_used`) AS `points`
+       `id`,`gender`,`surname`,`family`, (`points_amount` - `points_used`) AS `points`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE
index dcb6daca2157c963e2b75c73115d2e63e61bde5c..4c00762fa5c51f4113d1837546a4c72d901a3567 100644 (file)
@@ -68,7 +68,7 @@ if ((getBegRanks() > 0) && (!isCssOutputMode())) {
 
        // SQL string to check for accounts
        $result_main = SQL_QUERY("SELECT
-       `userid`, `email`, `gender`, `surname`, `family`, `beg_points`
+       `userid`,`email`,`gender`,`surname`,`family`,`beg_points`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index 5cc27ce3b207666350ad654de5fa27ffd709d581..0bde3fb1d48d45634b9c7ffdbdeb80a0a728417c 100644 (file)
@@ -59,14 +59,8 @@ if ((getConfig('bonus_ranks') > 0) && (!isCssOutputMode())) {
                $whereStatement .= ' AND (UNIX_TIMESTAMP() - `last_online`) < {?ap_inactive_since?}';
        } // END - if
 
-       // Add more bonus points here
-       $add = '';
-       // @TODO Rewrite this to a filter
-       if (getConfig('bonus_click_yn') == 'Y') $add .= ' + `turbo_bonus`';
-       if (getConfig('bonus_login_yn') == 'Y') $add .= ' + `login_bonus`';
-       if (getConfig('bonus_order_yn') == 'Y') $add .= ' + `bonus_order`';
-       if (getConfig('bonus_stats_yn') == 'Y') $add .= ' + `bonus_stats`';
-       if (getConfig('bonus_ref_yn')   == 'Y') $add .= ' + `bonus_ref`';
+       // Add more bonus points here by running a filter
+       $add = runFilterChain('add_bonus_points_user_columns', '');
 
        // Shall we add some entries?
        if (!empty($add)) {
@@ -75,7 +69,7 @@ if ((getConfig('bonus_ranks') > 0) && (!isCssOutputMode())) {
 
        // Run SQL string to check for accounts
        $result_main = SQL_QUERY('SELECT
-       `userid`, `email`, `gender`, `surname`, `family`, (0' . $add . ') AS `points`
+       `userid`,`email`,`gender`,`surname`,`family`, (0' . $add . ') AS `points`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 ' . $whereStatement . '
index f38e7aec5dae6d6ebb8d025f968a736cc9141ba8..51fb3de99dcbfb4adc2dd805352f6d3091c57088 100644 (file)
@@ -46,7 +46,13 @@ function getTitleFromMenu ($mode, $what, $column = 'what', $ADD='') {
        // Fix empty 'what'
        if (empty($what)) {
                $what = getIndexHome();
-       } // END - if
+       } elseif ((isGetRequestParameterSet('action')) && ($column == 'what')) {
+               // Get it from action
+               return getTitleFromMenu($mode, getAction(), 'action', $ADD);
+       } elseif ($what == 'overview') {
+               // Overview page
+               return '{--WHAT_IS_OVERVIEW--}';
+       }
 
        // Default is not found
        $data['title'] = '??? (' . $what . ')';
@@ -131,11 +137,12 @@ function addYouAreHereLink ($accessLevel, $FQFN, $return = false) {
                $GLOBALS['nav_depth'] = '0';
 
                // Run the pre-filter chain
-               $ret = runFilterChain('pre_youhere_line', array('access_level' => $accessLevel, 'type' => $type, 'content' => ''));
+               $ret = runFilterChain('pre_youhere_line', array('access_level' => $accessLevel, 'type' => $type, 'search' => $search, 'prefix' => $prefix, 'link_add' => $LINK_ADD, 'content' => '', 'add' => $ADD));
 
                // Add pre-content
                $prefix = $ret['content'];
 
+               // Add default content
                $prefix .= '<div class="you_are_here">{--YOU_ARE_HERE--}&nbsp;<strong><a class="you_are_here" href="{%url=modules.php?module=' . getModule() . $LINK_ADD . '%}">Home</a></strong>';
        } elseif ($return === false) {
                // Count depth
@@ -159,14 +166,16 @@ function addYouAreHereLink ($accessLevel, $FQFN, $return = false) {
                if (($type == 'what') || (($type == 'action') && ((!isWhatSet()) || (getWhat() == 'overview')))) {
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'type=' . $type);
                        // Add closing div and br-tag
-                       $OUT .= '</div>';
                        $GLOBALS['nav_depth'] = '0';
 
                        // Run the post-filter chain
-                       $ret = runFilterChain('post_youhere_line', array('access_level' => $accessLevel, 'type' => $type, 'content' => $OUT));
+                       $ret = runFilterChain('post_youhere_line', array('access_level' => $accessLevel, 'type' => $type, 'search' => $search, 'prefix' => $prefix, 'link_add' => $LINK_ADD, 'content' => $OUT, 'add' => $ADD));
 
                        // Get content from filter back
                        $OUT = $ret['content'];
+
+                       // Close div-tag, so not the filters have to do it
+                       $OUT .= '</div>';
                } // END - if
        } // END - if
 
@@ -199,7 +208,7 @@ function addMenu ($mode, $action, $what) {
 
        // Load SQL data and add the menu to the output stream...
        $result_main = SQL_QUERY_ESC("SELECT
-       `title`, `what`, `action`, `visible`, `locked`
+       `title`,`what`,`action`,`visible`,`locked`
 FROM
        `{?_MYSQL_PREFIX?}_%s_menu`
 WHERE
@@ -260,8 +269,14 @@ ORDER BY
                                                        $OUT = '<strong>';
                                                } // END - if
 
-                                               // Navigation link
-                                               $OUT .= '<a name="menu" class="menu_blur" href="{%url=modules.php?module=' . getModule() . '&amp;what=' . $content['sub_what'] . '%}" target="_self">';
+                                               // Is ext-sql_patches up-to-date, and display_home_in_index is Y?
+                                               if ((isExtensionInstalledAndNewer('sql_patches', '0.8.3')) && (isDisplayHomeInIndexEnabled()) && ($content['sub_what'] == getIndexHome())) {
+                                                       // Use index.php as link
+                                                       $OUT .= '<a name="menu" class="menu_blur" href="{%url=index.php%}" target="_self">';
+                                               } else {
+                                                       // Regular navigation link
+                                                       $OUT .= '<a name="menu" class="menu_blur" href="{%url=modules.php?module=' . getModule() . '&amp;what=' . $content['sub_what'] . '%}" target="_self">';
+                                               }
                                        } else {
                                                // Not found - open
                                                $OUT .= '<em style="cursor:help" class="notice" title="{%message,ADMIN_MENU_WHAT_404_TITLE=' . $content['sub_what'] . '%}">';
@@ -489,7 +504,7 @@ function fetchUserData ($value, $column = 'userid') {
                if ((isExtensionInstalledAndNewer('user', '0.3.7')) && (isset($GLOBALS['user_data'][getCurrentUserId()]['last_failure']))) {
                        // Backup the raw one and zero it
                        $GLOBALS['user_data'][getCurrentUserId()]['last_failure_raw'] = $GLOBALS['user_data'][getCurrentUserId()]['last_failure'];
-                       $GLOBALS['user_data'][getCurrentUserId()]['last_failure'] = null;
+                       $GLOBALS['user_data'][getCurrentUserId()]['last_failure'] = NULL;
 
                        // Is it not zero?
                        if (!is_null($GLOBALS['user_data'][getCurrentUserId()]['last_failure_raw'])) {
@@ -595,13 +610,13 @@ function addMaxReceiveList ($mode, $default = '', $return = false) {
        switch ($mode) {
                case 'guest':
                        // Guests (in the registration form) are not allowed to select 0 mails per day.
-                       $result = SQL_QUERY('SELECT `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `value` > 0 ORDER BY `value` ASC',
+                       $result = SQL_QUERY('SELECT `value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `value` > 0 ORDER BY `value` ASC',
                        __FUNCTION__, __LINE__);
                        break;
 
                case 'member':
                        // Members are allowed to set to zero mails per day (we will change this soon!)
-                       $result = SQL_QUERY('SELECT `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` ORDER BY `value` ASC',
+                       $result = SQL_QUERY('SELECT `value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` ORDER BY `value` ASC',
                        __FUNCTION__, __LINE__);
                        break;
 
@@ -688,7 +703,7 @@ function isMenuActionValid ($mode, $action, $what, $updateEntry=false) {
                        ), __FUNCTION__, __LINE__, false);
        } elseif (($what != 'overview') && (!empty($what))) {
                // Other actions
-               $sql = SQL_QUERY_ESC("SELECT `id`, `what` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND `what`='%s'".$add." ORDER BY `action` DESC LIMIT 1",
+               $sql = SQL_QUERY_ESC("SELECT `id`,`what` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND `what`='%s'".$add." ORDER BY `action` DESC LIMIT 1",
                        array(
                                $mode,
                                $action,
@@ -696,7 +711,7 @@ function isMenuActionValid ($mode, $action, $what, $updateEntry=false) {
                        ), __FUNCTION__, __LINE__, false);
        } else {
                // Admin login overview
-               $sql = SQL_QUERY_ESC("SELECT `id`, `what` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND (`what`='' OR `what` IS NULL)".$add." ORDER BY `action` DESC LIMIT 1",
+               $sql = SQL_QUERY_ESC("SELECT `id`,`what` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND (`what`='' OR `what` IS NULL)".$add." ORDER BY `action` DESC LIMIT 1",
                        array(
                                $mode,
                                $action
@@ -828,7 +843,7 @@ function getPaymentTitlePrice ($pid, $full=false) {
        $ret = '{--_PAYMENT_404--}';
 
        // Load payment data
-       $result = SQL_QUERY_ESC("SELECT `mail_title`, `price` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `mail_title`,`price` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
                array(bigintval($pid)), __FUNCTION__, __LINE__);
 
        // Do we have an entry?
@@ -902,7 +917,7 @@ function removeReceiver (&$receivers, $key, $userid, $pool_id, $stats_id = 0, $i
                        // Was it *not* found?
                        if (SQL_HASZERONUMS($result)) {
                                // So we add one!
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_links` (`%s`, `userid`, `link_type`) VALUES ('%s','%s','%s')",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_links` (`%s`,`userid`,`link_type`) VALUES ('%s','%s','%s')",
                                        array($rowName, $stats_id, bigintval($userid), $type), __FUNCTION__, __LINE__);
 
                                // Update 'mails_sent' if sql_patches is updated
@@ -1238,7 +1253,7 @@ function generateOptionList ($table, $id, $name, $default = '', $special = '', $
                } // END - if
 
                // Query the database
-               $result = SQL_QUERY_ESC("SELECT `%s`, `%s`".$SPEC." FROM `{?_MYSQL_PREFIX?}_%s` ".$where." ORDER BY `%s` ASC",
+               $result = SQL_QUERY_ESC("SELECT `%s`,`%s`".$SPEC." FROM `{?_MYSQL_PREFIX?}_%s` ".$where." ORDER BY `%s` ASC",
                        array(
                                $id,
                                $name,
@@ -1406,7 +1421,7 @@ function generateCategoryOptionsList ($mode) {
        );
 
        // Get categories
-       $result = SQL_QUERY('SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats`' . $whereStatement . ' ORDER BY `sort` ASC',
+       $result = SQL_QUERY('SELECT `id`,`cat` FROM `{?_MYSQL_PREFIX?}_cats`' . $whereStatement . ' ORDER BY `sort` ASC',
                __FUNCTION__, __LINE__);
 
        // Do we have entries?
@@ -1482,7 +1497,7 @@ function addBonusMailToQueue ($subject, $text, $receiverList, $points, $seconds,
 
                // Add HTML mail
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_bonus`
-(`subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `mails_sent`, `html_msg`)
+(`subject`,`text`,`receivers`,`points`,`time`,`data_type`,`timestamp`,`url`,`cat_id`,`target_send`,`mails_sent`,`html_msg`)
 VALUES ('%s','%s','%s',%s,%s,'NEW', UNIX_TIMESTAMP(),'%s',%s,%s,%s,'%s')",
                array(
                        $subject,
@@ -1499,7 +1514,7 @@ VALUES ('%s','%s','%s',%s,%s,'NEW', UNIX_TIMESTAMP(),'%s',%s,%s,%s,'%s')",
        } else {
                // Add regular mail
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_bonus`
-(`subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `mails_sent`)
+(`subject`,`text`,`receivers`,`points`,`time`,`data_type`,`timestamp`,`url`,`cat_id`,`target_send`,`mails_sent`)
 VALUES ('%s','%s','%s',%s,%s,'NEW', UNIX_TIMESTAMP(),'%s',%s,%s,%s)",
                array(
                        $subject,
@@ -1628,7 +1643,7 @@ function reduceRecipientReceivedMails ($column, $id, $count) {
 // Creates a new task
 function createNewTask ($subject, $notes, $taskType, $userid = NULL, $adminId = '0', $strip = true) {
        // Insert the task data into the database
-       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_task_system` (`assigned_admin`, `userid`, `status`, `task_type`, `subject`, `text`, `task_created`) VALUES (%s,%s,'NEW','%s','%s','%s', UNIX_TIMESTAMP())",
+       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_task_system` (`assigned_admin`,`userid`,`status`,`task_type`,`subject`,`text`,`task_created`) VALUES (%s,%s,'NEW','%s','%s','%s', UNIX_TIMESTAMP())",
                array(
                        $adminId,
                        $userid,
index 92c76082795553f990de4275e59a281cc2d4ccf8..9f04c935bd52d60f9dab5726891a3bd8ee3de855 100644 (file)
@@ -55,10 +55,10 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
        // Do we need to send out bonus mails?
        if (isExtensionActive('html_mail')) {
                //                                 0        1        2          3          4        5          6            7         8        9            10           11
-               $result_bonus = SQL_QUERY("SELECT `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `html_msg` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='NEW' ORDER BY `timestamp` DESC", __FILE__, __LINE__);
+               $result_bonus = SQL_QUERY("SELECT `id`,`subject`,`text`,`receivers`,`points`,`time`,`data_type`,`timestamp`,`url`,`cat_id`,`target_send`,`html_msg` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='NEW' ORDER BY `timestamp` DESC", __FILE__, __LINE__);
        } else {
                //                                 0        1        2          3          4        5          6            7         8        9            10
-               $result_bonus = SQL_QUERY("SELECT `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='NEW' ORDER BY `timestamp` DESC", __FILE__, __LINE__);
+               $result_bonus = SQL_QUERY("SELECT `id`,`subject`,`text`,`receivers`,`points`,`time`,`data_type`,`timestamp`,`url`,`cat_id`,`target_send` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='NEW' ORDER BY `timestamp` DESC", __FILE__, __LINE__);
        }
 
        if (!SQL_HASZERONUMS($result_bonus)) {
@@ -80,7 +80,7 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
                                // No users left
                                $receivers = array(0);
                        }
-                       $dummy = $receivers;
+                       $temporaryReceivers = $receivers;
 
                        // Now, if we are good little boys and girls Santa Claus left us some user-ids.
                        // We can now send mails to them...
@@ -91,7 +91,7 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
                                        //* DEBUG: */ debugOutput('OK!/L:'.__LINE__);
 
                                        // Remove receiver from list
-                                       $status = removeReceiver($dummy, $key, $userid, $mailData['id'], $mailData['id'], true);
+                                       $status = removeReceiver($temporaryReceivers, $key, $userid, $mailData['id'], $mailData['id'], true);
 
                                        // Did it work?
                                        switch ($status) {
@@ -109,7 +109,7 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
                                                        }
 
                                                        // Count one up and remove entry from dummy array
-                                                       $GLOBALS['pool_cnt']++; unset($dummy[$key]);
+                                                       $GLOBALS['pool_cnt']++; unset($temporaryReceivers[$key]);
 
                                                        if (isExtensionInstalledAndNewer('user', '0.1.4')) {
                                                                // Update mails received for receiver
@@ -118,7 +118,7 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
                                                        } // END - if
 
                                                        // Do we have send maximum mails?
-                                                       if (($GLOBALS['pool_cnt'] >= getMaxSend()) || (countSelection($dummy) == 0)) {
+                                                       if (($GLOBALS['pool_cnt'] >= getMaxSend()) || (countSelection($temporaryReceivers) == 0)) {
                                                                // Yes, we have
                                                                //* DEBUG: */ debugOutput('*EXIT/L:'.__LINE__);
                                                                break;
@@ -142,8 +142,8 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
                        } // END - if
 
                        // Close sending system
-                       //* DEBUG: */ debugOutput('-L:'.__LINE__.'/'.countSelection($dummy).'-');
-                       if (countSelection($dummy) == 0) {
+                       //* DEBUG: */ debugOutput('-L:'.__LINE__.'/'.countSelection($temporaryReceivers).'-');
+                       if (countSelection($temporaryReceivers) == 0) {
                                // Queue reached!
                                SQL_QUERY_ESC("UPDATE
        `{?_MYSQL_PREFIX?}_bonus`
@@ -175,11 +175,11 @@ WHERE
        `id`=%s
 LIMIT 1",
                                        array(
-                                               countSelection($dummy),
-                                               implode(';', $dummy),
+                                               countSelection($temporaryReceivers),
+                                               implode(';', $temporaryReceivers),
                                                bigintval($mailData['id'])
                                        ), __FILE__, __LINE__);
-                               //* DEBUG: */ debugOutput('*L:'.__LINE__.'<pre>'.print_r($dummy, true).'</pre>!!!');
+                               //* DEBUG: */ debugOutput('*L:'.__LINE__.'<pre>'.print_r($temporaryReceivers, true).'</pre>!!!');
                                break;
                        }
                } // END - while
index bc832f06251617b24ae5a2433ec57ec22b9bea4b..d57caf685c2934d4ab78c0ecd726e0dd4e9b215b 100644 (file)
@@ -60,8 +60,8 @@ if (isExtensionActive('html_mail')) {
 
 // Main query
 $result_main = SQL_QUERY("SELECT
-       `id`, `sender` AS `sender_userid`, `subject`, `text`, `receivers`,
-       `payment_id`, `timestamp`, `url`, `target_send`, `cat_id`
+       `id`,`sender` AS `sender_userid`,`subject`,`text`,`receivers`,
+       `payment_id`,`timestamp`,`url`,`target_send`,`cat_id`
        ".$HTML."
 FROM
        `{?_MYSQL_PREFIX?}_pool`
@@ -100,7 +100,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                // No users left
                                $receivers = array(0);
                        }
-                       $dummy = $receivers;
+                       $temporaryReceivers = $receivers;
 
                        // Now, if we are good little boys and girls Santa Claus left us some user-ids.
                        // We can now send mails to them...
@@ -116,7 +116,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                        //* DEBUG: */ debugOutput('!L:'.__LINE__.'/'.SQL_NUMROWS($result_stats).'!');
                                        if (SQL_HASZERONUMS($result_stats)) {
                                                // No entry was found, so we add him!
-                                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_stats` (`pool_id` , `userid`, `cat_id`, `payment_id`, `subject`, `url` , `max_rec` , `timestamp_ordered`, `timestamp_sstart`) VALUES ('%s','%s','%s','%s','%s','%s','%s','%s' , UNIX_TIMESTAMP())",
+                                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_stats` (`pool_id` , `userid`,`cat_id`,`payment_id`,`subject`,`url` , `max_rec` , `timestamp_ordered`,`timestamp_sstart`) VALUES ('%s','%s','%s','%s','%s','%s','%s','%s' , UNIX_TIMESTAMP())",
                                                        array(bigintval($mailData['id']), bigintval($mailData['sender_userid']), bigintval($mailData['cat_id']), bigintval($mailData['payment_id']), $mailData['subject'], $mailData['url'], $mailData['target_send'], bigintval($mailData['timestamp'])), __FILE__, __LINE__);
 
                                                // Receive it's id for the links table
@@ -130,9 +130,9 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                list($stats_id) = SQL_FETCHROW($result_stats);
 
                                                // Remove receiver from list
-                                               $status = removeReceiver($dummy, $key, bigintval($userid), bigintval($mailData['id']), bigintval($stats_id));
+                                               $status = removeReceiver($temporaryReceivers, $key, bigintval($userid), bigintval($mailData['id']), bigintval($stats_id));
 
-                                               //* DEBUG: */ debugOutput('?L:'.__LINE__.'/'.$dummy.'/'.$key.'/'.$userid.'('.['sender_userid'].')/'.$mailData['id'].'/'.$stats_id.'?');
+                                               //* DEBUG: */ debugOutput('?L:'.__LINE__.'/'.$temporaryReceivers.'/'.$key.'/'.$userid.'('.['sender_userid'].')/'.$mailData['id'].'/'.$stats_id.'?');
                                                switch ($status) {
                                                        case 'done':
                                                                // Prepare the mail
@@ -234,7 +234,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                if ($GLOBALS['pool_cnt'] <= $mailData['target_send']) $add = ", target_send=target_send-".$GLOBALS['pool_cnt'];
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='NEW', receivers='%s'" . $add . " WHERE `id`=%s LIMIT 1",
                                                        array(
-                                                               implode(';', $dummy),
+                                                               implode(';', $temporaryReceivers),
                                                                bigintval($mailData['id'])
                                                        ), __FILE__, __LINE__);
 
@@ -267,11 +267,11 @@ if (!SQL_HASZERONUMS($result_main)) {
                                        }
 
                                        // Remove entry from list
-                                       unset($dummy[$key]);
+                                       unset($temporaryReceivers[$key]);
 
                                        // Update receivers
                                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `receivers`='%s' WHERE `id`=%s LIMIT 1",
-                                               array(implode(';', $dummy), bigintval($mailData['id'])), __FILE__, __LINE__);
+                                               array(implode(';', $temporaryReceivers), bigintval($mailData['id'])), __FILE__, __LINE__);
                                }
                        } // END - foreach
                } // END - if
index b37bce06136f0ab45657f527be6ffe0e266467ec..e56c4e58e6b4660de38c87a82edde6e02f84d7a2 100644 (file)
@@ -106,7 +106,7 @@ ORDER BY
        // Is the 'bonus' extension installed and activated?
        if (isExtensionActive('bonus', true)) {
                // Check for bonus campaigns
-               $result = SQL_QUERY("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`,`points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
                if (!SQL_HASZERONUMS($result)) {
                        // Start deleting procedure
                        $points = '0';
index 732cff5354409be6da18f55a2611a7c16b6c572a..25b1d830b01fcce283bc7c459db6efd765e5ebf2 100644 (file)
@@ -69,7 +69,7 @@ if (isAutopurgeInactiveEnabled()) {
 
        // Check for all accounts
        $result_inactive = SQL_QUERY("SELECT
-       `userid`, `email`, `last_online`
+       `userid`,`email`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -120,7 +120,7 @@ ORDER BY
        // Now let's have a look for inactive accounts we want to delete we newly use the same exclude list
        // here for e.g. excluding holiday users
        $result_inactive = SQL_QUERY("SELECT
-       `userid`, `email`, `last_online`
+       `userid`,`email`,`last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index c4eed02a77ac7fc0c926ad38d295ff08bde9d71d..0ad6deaf8d3d1868483f330cce472287087320e3 100644 (file)
@@ -50,7 +50,7 @@ if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
 if (getConfig('autopurge_unconfirmed') == 'Y') {
        // Init variables and find unconfirmed accounts which I shall auto-purge;
        $result_uncon = SQL_QUERY("SELECT
-       `userid`, `email`, `joined`
+       `userid`,`email`,`joined`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index 384f1a8a88d2a4191932da6b01b9bb18f5d48de5..636d88aacbbedf138eac9c5a1bc118ca9777f5ef 100644 (file)
@@ -160,7 +160,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $refid = NUL
                        // No entry updated?
                        if (SQL_HASZEROAFFECTED()) {
                                // First ref in this level! :-)
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`, `ref_depth`, `%s`) VALUES (%s, %s, %s)",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`,`ref_depth`,`%s`) VALUES (%s, %s, %s)",
                                        array(
                                                $pointsColumn,
                                                bigintval($userid),
@@ -293,7 +293,7 @@ function updateReferalCounter ($userid) {
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ref=' . $ref . ',level=' . $GLOBALS['cache_array']['ref_level'][$ref] . ',updated=' . SQL_AFFECTEDROWS());
                if (SQL_HASZEROAFFECTED()) {
                        // First count!
-                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refsystem` (`userid`, `level`, `counter`) VALUES (%s,%s,1)",
+                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refsystem` (`userid`,`level`,`counter`) VALUES (%s,%s,1)",
                                array(
                                        bigintval($ref),
                                        makeZeroToNull($GLOBALS['cache_array']['ref_level'][$ref])
@@ -435,7 +435,7 @@ function getPointsDataArrayFromSubject ($subject) {
        } // END - if
 
        // Now checkout the entry in database table
-       $result = SQL_QUERY_ESC("SELECT `id`, `subject`, `column_name`, `locked_mode`, `payment_method`, `notify_recipient` FROM `{?_MYSQL_PREFIX?}_points_data` WHERE `subject`='%s' LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `id`,`subject`,`column_name`,`locked_mode`,`payment_method`,`notify_recipient` FROM `{?_MYSQL_PREFIX?}_points_data` WHERE `subject`='%s' LIMIT 1",
                array($subject), __FUNCTION__, __LINE__);
 
        // Do we have an entry?
@@ -449,7 +449,7 @@ function getPointsDataArrayFromSubject ($subject) {
                } // END - foreach
        } else {
                // Register this automatically
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`, `notify_recipient`) VALUES ('%s','points','LOCKED','REFERAL','N')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`,`column_name`,`locked_mode`,`payment_method`,`notify_recipient`) VALUES ('%s','points','LOCKED','REFERAL','N')",
                        array($subject), __FUNCTION__, __LINE__);
 
                // Re-request it
index 86db766d4273a63ad71a3637c01d3c053db839c6..b82c12a7ef810354de2ee467316fbd487511a8e3 100644 (file)
@@ -49,7 +49,7 @@ function initRequest () {
 // Wrapper for elements in $_GET
 function getRequestParameter ($element) {
        // By default no element is there
-       $value = null;
+       $value = NULL;
 
        // Is the element cached or there?
        if (isset($GLOBALS['cache_request']['get'][$element])) {
@@ -119,7 +119,7 @@ function setGetRequestParameter ($element, $value) {
 // Wrapper for elements in $_POST
 function postRequestParameter ($element, $subElement=null) {
        // By default no element is there
-       $value = null;
+       $value = NULL;
 
        // Is the element in cache?
        if (isset($GLOBALS['cache_request']['post'][$element][$subElement])) {
index f7d86451ed999498b2694b6fb08edea27a2ee1f6..96af5101d609e57a79ae1953e58f2bf7d02cefd4 100644 (file)
@@ -93,7 +93,7 @@ function isSessionVariableSet ($var) {
 // Returns wether the value of the session variable or NULL if not set
 function getSession ($var) {
        // Default is not found ;-)
-       $value = null;
+       $value = NULL;
 
        // Is the variable there?
        if (isSessionVariableSet($var)) {
index 130e9ae2b3c919426fe7ee7219f3f00fd528ec98..6d9b8eed9d392b79ae5d031eed1fcf98aeda192a 100644 (file)
@@ -108,7 +108,7 @@ function loadStatsTable () {
        } // END - if
 
        // Load it from database
-       $result = SQL_QUERY_ESC("SELECT `stats_entry`, `stats_value` FROM `{?_MYSQL_PREFIX?}_stats_%s` ORDER BY `stats_entry` ASC",
+       $result = SQL_QUERY_ESC("SELECT `stats_entry`,`stats_value` FROM `{?_MYSQL_PREFIX?}_stats_%s` ORDER BY `stats_entry` ASC",
                array(
                        generateDateTime(time(), '6')
                ), __FUNCTION__, __LINE__);
@@ -159,7 +159,7 @@ function writeStatsTable () {
                array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
 
        // Begin the SQL command
-       $sql = sprintf("REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ",
+       $sql = sprintf("REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`,`stats_value`) VALUES ",
                generateDateTime(time(), '6'));
 
        // Add all entries to the final query
index 16cc8cbf6fb71492ac7b59a80000f683a15f9259..73e88c6ce05cef02ac10234a892621d043043ae8 100644 (file)
@@ -70,13 +70,8 @@ function debugOutput ($message) {
 
 // "Fixes" an empty string into three dashes (use for templates)
 function fixEmptyContentToDashes ($str) {
-       // Trim the string
-       $str = trim($str);
-
-       // Is the string empty?
-       if (empty($str)) {
-               $str = '---';
-       } // END - if
+       // Call inner function
+       $str = fixNullEmptyToDashes($str, 3);
 
        // Return string
        return $str;
@@ -854,15 +849,11 @@ function generateImageOrCode ($img_code, $headerSent = true) {
 }
 
 // Create selection box or array of splitted timestamp
-function createTimeSelections ($timestamp, $prefix = '', $display = '', $align = 'center', $return_array=false) {
+function createTimeSelections ($timestamp, $prefix = '', $display = '', $align = 'center', $asArray = false) {
        // Do not continue if ONE_DAY is absend
        if (!isConfigEntrySet('ONE_DAY')) {
-               // And return the timestamp itself or empty array
-               if ($return_array === true) {
-                       return array();
-               } else {
-                       return $timestamp;
-               }
+               // Abort here
+               debug_report_bug(__FUNCTION__, __LINE__, 'Configuration entry ONE_DAY is absend. timestamp=' . $timestamp . ',prefix=' . $prefix . ',align=' . $align . ',asArray=' . intval($asArray));
        } // END - if
 
        // Calculate 2-seconds timestamp
@@ -911,7 +902,7 @@ function createTimeSelections ($timestamp, $prefix = '', $display = '', $align =
        //
        // Now we convert them in seconds...
        //
-       if ($return_array) {
+       if ($asArray === true) {
                // Just put all data in an array for later use
                $OUT = array(
                        'YEARS'   => $Y,
@@ -1396,42 +1387,54 @@ function linenumberCode ($code)    {
 
 // Determines the right page title
 function determinePageTitle () {
+       // Init page title
+       $pageTitle = '';
+
        // Config and database connection valid?
        if ((isConfigLocalLoaded()) && (isConfigurationLoaded()) && (SQL_IS_LINK_UP()) && (isExtensionInstalledAndNewer('sql_patches', '0.1.6'))) {
-               // Init title
-               $TITLE = '';
-
                // Title decoration enabled?
-               if ((isTitleDecorationEnabled()) && (getConfig('title_left') != '')) $TITLE .= trim(getConfig('title_left')) . ' ';
+               if ((isTitleDecorationEnabled()) && (getConfig('title_left') != '')) {
+                       $pageTitle .= '{%config,trim=title_left%} ';
+               } // END - if
 
                // Do we have some extra title?
                if (isExtraTitleSet()) {
-                       // Then prepent it
-                       $TITLE .= getExtraTitle() . ' by ';
+                       // Then prepend it
+                       $pageTitle .= '{%pipe,getExtraTitle%} by ';
                } // END - if
 
                // Add main title
-               $TITLE .= getMainTitle();
+               $pageTitle .= '{?MAIN_TITLE?}';
 
                // Add title of module? (middle decoration will also be added!)
                if ((isModuleTitleEnabled()) || ((!isWhatSet()) && (!isActionSet())) || (getModule() == 'admin')) {
-                       $TITLE .= ' ' . trim(getConfig('title_middle')) . ' {DQUOTE} . getModuleTitle(getModule()) . {DQUOTE}';
+                       $pageTitle .= ' {%config,trim=title_middle%} {DQUOTE} . getModuleTitle(getModule()) . {DQUOTE}';
                } // END - if
 
                // Add title from what file
                $mode = '';
-               if (getModule() == 'login') $mode = 'member';
-               elseif (getModule() == 'index') $mode = 'guest';
-               if ((!empty($mode)) && (isWhatTitleEnabled())) $TITLE .= ' ' . trim(getConfig('title_middle')) . ' ' . getTitleFromMenu($mode, getWhat());
+               if (getModule() == 'login') {
+                       $mode = 'member';
+               } elseif (getModule() == 'index') {
+                       $mode = 'guest';
+               } elseif (getModule() == 'admin') {
+                       $mode = 'admin';
+               } elseif (getModule() == 'sponsor') {
+                       $mode = 'sponsor';
+               }
 
-               // Add title decorations? (right)
-               if ((isTitleDecorationEnabled()) && (getConfig('title_right') != '')) $TITLE .= ' ' . trim(getConfig('title_right'));
+               // Add middle part (always in admin area!)
+               if ((!empty($mode)) && ((isWhatTitleEnabled()) || ($mode == 'admin'))) {
+                       $pageTitle .= ' {%config,trim=title_middle%} ' . getTitleFromMenu($mode, getWhat());
+               } // END - if
 
-               // Remember title in constant for the template
-               $pageTitle = $TITLE;
+               // Add title decorations? (right)
+               if ((isTitleDecorationEnabled()) && (getConfig('title_right') != '')) {
+                       $pageTitle .= ' {%config,trim=title_right%}';
+               } // END - if
        } elseif ((isInstalled()) && (isAdminRegistered())) {
                // Installed, admin registered but no ext-sql_patches
-               $pageTitle = '[-- ' . getMainTitle() . ' - ' . getModuleTitle(getModule()) . ' --]';
+               $pageTitle = '[-- {?MAIN_TITLE?} - {%pipe,getModule,getModuleTitle%} --]';
        } elseif ((isInstalled()) && (!isAdminRegistered())) {
                // Installed but no admin registered
                $pageTitle = '{--INSTALLER_OF_MAILER_NO_ADMIN--}';
@@ -1772,7 +1775,7 @@ function generateGenderSelectionBox ($selectedGender = '') {
 }
 
 //-----------------------------------------------------------------------------
-//                      Template helper functions for EL
+//                     Template helper functions for EL code
 //-----------------------------------------------------------------------------
 
 // Color-switch helper function
@@ -1795,7 +1798,7 @@ function doTemplateColorSwitch ($template, $clear = false, $return = true) {
 }
 
 // Helper function for extension registration link
-function doTemplateExtensionRegistrationLink ($template, $dummy, $ext_name) {
+function doTemplateExtensionRegistrationLink ($template, $clear, $ext_name) {
        // Default is all non-productive
        $OUT = '<em style="cursor:help" class="notice" title="{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE_LINK_TITLE=' . $ext_name . '%}">{--ADMIN_EXTENSION_IS_NON_PRODUCTIVE_LINK--}</em>';
 
@@ -1810,22 +1813,50 @@ function doTemplateExtensionRegistrationLink ($template, $dummy, $ext_name) {
 }
 
 // Helper function to create bonus mail admin links
-function doTemplateAdminBonusMailLinks ($template, $dummy, $bonusId) {
+function doTemplateAdminBonusMailLinks ($template, $clear, $bonusId) {
        // Call the inner function
        return generateAdminMailLinks('bid', $bonusId);
 }
 
 // Helper function to create member mail admin links
-function doTemplateAdminMemberMailLinks ($template, $dummy, $mailId) {
+function doTemplateAdminMemberMailLinks ($template, $clear, $mailId) {
        // Call the inner function
        return generateAdminMailLinks('mid', $mailId);
 }
 
 // Helper function to create a selection box for YES/NO configuration entries
-function doTemplateConfigurationYesNoSelectionBox ($template, $dummy, $configEntry) {
+function doTemplateConfigurationYesNoSelectionBox ($template, $clear, $configEntry) {
+       // Default is a "missing entry" warning
+       $OUT = '<em style="cursor:help" class="notice" title="{%message,ADMIN_CONFIG_ENTRY_MISSING=' . $configEntry . '%}">!' . $configEntry . '!</em>';
+
        // Generate the HTML code
-       $OUT = '<select name="' . $configEntry . '" class="form_select" size="1">
+       if (isConfigEntrySet($configEntry)) {
+               // Configuration entry is found
+               $OUT = '<select name="' . $configEntry . '" class="form_select" size="1">
 {%config,generateYesNoOptionList=' . $configEntry . '%}
+</select>';
+       } // END - if
+
+       // Return it
+       return $OUT;
+}
+
+// Helper function to create a selection box for YES/NO form fields
+function doTemplateYesNoSelectionBox ($template, $clear, $formField) {
+       // Generate the HTML code
+       $OUT = '<select name="' . $formField . '" class="form_select" size="1">
+{%pipe,generateYesNoOptionList%}
+</select>';
+
+       // Return it
+       return $OUT;
+}
+
+// Helper function to create a selection box for YES/NO form fields, by NO is default
+function doTemplateNoYesSelectionBox ($template, $clear, $formField) {
+       // Generate the HTML code
+       $OUT = '<select name="' . $formField . '" class="form_select" size="1">
+{%pipe,generateYesNoOptionList=N%}
 </select>';
 
        // Return it
index 01a4fe9c346765d2b0a636df910e0d96283a5865..cf55c4e282b027f5046bc884212c9988bcbd10e2 100644 (file)
@@ -571,7 +571,7 @@ function isNicknameUsed ($userid) {
 // Getter for 'what' value
 function getWhat () {
        // Default is null
-       $what = null;
+       $what = NULL;
 
        // Is the value set?
        if (isWhatSet(true)) {
@@ -615,7 +615,7 @@ function isWhatSet ($strict =  false) {
 // Getter for 'action' value
 function getAction ($strict = true) {
        // Default is null
-       $action = null;
+       $action = NULL;
 
        // Is the value set?
        if (isActionSet(($strict) && (isHtmlOutputMode()))) {
@@ -650,7 +650,7 @@ function isActionSet ($strict =  false) {
 // Getter for 'module' value
 function getModule ($strict = true) {
        // Default is null
-       $module = null;
+       $module = NULL;
 
        // Is the value set?
        if (isModuleSet($strict)) {
@@ -688,7 +688,7 @@ function getScriptOutputMode () {
        // Do we have cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Default is null
-               $output_mode = null;
+               $output_mode = NULL;
 
                // Is the value set?
                if (isOutputModeSet(true)) {
@@ -962,7 +962,7 @@ function getUserData ($column) {
        } // END - if
 
        // Default is empty
-       $data = null;
+       $data = NULL;
 
        if (isset($GLOBALS['user_data'][getCurrentUserId()][$column])) {
                // Return the value
@@ -1297,7 +1297,7 @@ function getDateTimeFromRepository () {
 }
 
 // Getter for current year (default)
-function getYear ($timestamp = null) {
+function getYear ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -1314,7 +1314,7 @@ function getYear ($timestamp = null) {
 }
 
 // Getter for current month (default)
-function getMonth ($timestamp = null) {
+function getMonth ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // If null is set, use time()
@@ -1332,7 +1332,7 @@ function getMonth ($timestamp = null) {
 }
 
 // Getter for current hour (default)
-function getHour ($timestamp = null) {
+function getHour ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -1349,7 +1349,7 @@ function getHour ($timestamp = null) {
 }
 
 // Getter for current day (default)
-function getDay ($timestamp = null) {
+function getDay ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -1366,7 +1366,7 @@ function getDay ($timestamp = null) {
 }
 
 // Getter for current week (default)
-function getWeek ($timestamp = null) {
+function getWeek ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -1381,7 +1381,7 @@ function getWeek ($timestamp = null) {
 }
 
 // Getter for current short_hour (default)
-function getShortHour ($timestamp = null) {
+function getShortHour ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -1396,7 +1396,7 @@ function getShortHour ($timestamp = null) {
 }
 
 // Getter for current long_hour (default)
-function getLongHour ($timestamp = null) {
+function getLongHour ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -1411,7 +1411,7 @@ function getLongHour ($timestamp = null) {
 }
 
 // Getter for current second (default)
-function getSecond ($timestamp = null) {
+function getSecond ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -1426,7 +1426,7 @@ function getSecond ($timestamp = null) {
 }
 
 // Getter for current minute (default)
-function getMinute ($timestamp = null) {
+function getMinute ($timestamp = NULL) {
        // Is it cached?
        if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
                // null is time()
@@ -2376,6 +2376,54 @@ function getUrlTlock () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Getter for 'check_double_email'
+function getCheckDoubleEmail () {
+       // Is the cache entry set?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // No, so determine it
+               $GLOBALS[__FUNCTION__] = getConfig('check_double_email');
+       } // END - if
+
+       // Return cached entry
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Checks wether 'check_double_email' is 'Y'
+function isCheckDoubleEmailEnabled () {
+       // Is the cache entry set?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // No, so determine it
+               $GLOBALS[__FUNCTION__] = (getCheckDoubleEmail() == 'Y');
+       } // END - if
+
+       // Return cached entry
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'display_home_in_index'
+function getDisplayHomeInIndex () {
+       // Is the cache entry set?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // No, so determine it
+               $GLOBALS[__FUNCTION__] = getConfig('display_home_in_index');
+       } // END - if
+
+       // Return cached entry
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Checks wether 'display_home_in_index' is 'Y'
+function isDisplayHomeInIndexEnabled () {
+       // Is the cache entry set?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // No, so determine it
+               $GLOBALS[__FUNCTION__] = (getDisplayHomeInIndex() == 'Y');
+       } // END - if
+
+       // Return cached entry
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Checks wether proxy configuration is used
 function isProxyUsed () {
        // Do we have cache?
@@ -2541,7 +2589,7 @@ function createConfigurationTimeSelections ($configEntry, $stamps, $align = 'cen
        $configValue = getConfig($configEntry);
 
        // Call inner method
-       return createTimeSelections($configValue, $configEntry, $stamps, $align);
+       return createTimeSelections($configValue, $configEntry, $stamps, $align, true);
 }
 
 // Shortens converting of German comma to Computer's version in POST data
@@ -2608,33 +2656,5 @@ function getTotalUnconfirmedMails ($userid) {
        return $GLOBALS[__FUNCTION__][$userid];
 }
 
-//-----------------------------------------------------------------------------
-//                        Configuration wrapper
-//-----------------------------------------------------------------------------
-
-// Getter for 'check_double_email'
-function getCheckDoubleEmail () {
-       // Is the cache entry set?
-       if (!isset($GLOBALS[__FUNCTION__])) {
-               // No, so determine it
-               $GLOBALS[__FUNCTION__] = getConfig('check_double_email');
-       } // END - if
-
-       // Return cached entry
-       return $GLOBALS[__FUNCTION__];
-}
-
-// Checks wether 'check_double_email' is 'Y'
-function isCheckDoubleEmailEnabled () {
-       // Is the cache entry set?
-       if (!isset($GLOBALS[__FUNCTION__])) {
-               // No, so determine it
-               $GLOBALS[__FUNCTION__] = (getCheckDoubleEmail() == 'Y');
-       } // END - if
-
-       // Return cached entry
-       return $GLOBALS[__FUNCTION__];
-}
-
 // [EOF]
 ?>
index f2de15092655addb342fd1f9639cf6512c4c7a81..09373597f1b5e8b1e8aed563caeca0264cfda4e3 100644 (file)
@@ -194,7 +194,7 @@ function isInvalidXmlType ($type) {
        $type = strtolower(trim($type));
 
        // Is it found?
-       return (in_array($type, array('string', 'array', 'bool', 'int')));
+       return (in_array($type, array('string', 'array', 'bool', 'int', 'callback')));
 }
 
 // Checks if given condition is valid
index 52c0c200511f5e9d051050623ee1716c5c5d25b9..de74187c5adbe58b16ceb6ea6920cbbc7d01c08d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -55,41 +55,47 @@ $GLOBALS['output_mode'] = '0';
 // Load config.php
 require('inc/config-global.php');
 
-// Set content type
-setContentType('text/html');
+// Shall we display 'home' in index.php?
+if (isDisplayHomeInIndexEnabled()) {
+       // Include module
+       doIncludeModule();
+} else {
+       // Check for cookies
+       if ((isSessionVariableSet('visited')) || (getConfig('index_delay') > -1)) {
+               // Set content type
+               setContentType('text/html');
 
-// Check for cookies
-if ((isSessionVariableSet('visited')) || (getConfig('index_delay') > -1)) {
-       // Header
-       loadIncludeOnce('inc/header.php');
+               // Header
+               loadIncludeOnce('inc/header.php');
 
-       // Is the index page configured for redirect pr not?
-       if (getConfig('index_cookie') > 0) {
-               // Set cookie and remeber it for specified time
-               setSession('visited', 'true');
-       } elseif (isSessionVariableSet('visited')) {
-               // Remove cookie when admin set 0 in setup
-               setSession('visited', '');
-       }
+               // Is the index page configured for redirect pr not?
+               if (getConfig('index_cookie') > 0) {
+                       // Set cookie and remeber it for specified time
+                       setSession('visited', 'true');
+               } elseif (isSessionVariableSet('visited')) {
+                       // Remove cookie when admin set 0 in setup
+                       setSession('visited', '');
+               }
 
-       // Template laden
-       loadTemplate('index');
+               // Template laden
+               loadTemplate('index');
 
-       // Shall I insert an automated forward?
-       if (getConfig('index_delay') > 0) {
-               // This will be a JavaScript-redirect!
-               $content['delay']  = (getConfig('index_delay') * 1000 + 500);
-               $content['module'] = 'index';
+               // Shall I insert an automated forward?
+               if (getConfig('index_delay') > 0) {
+                       // This will be a JavaScript-redirect!
+                       $content['delay']  = (getConfig('index_delay') * 1000 + 500);
+                       $content['module'] = 'index';
 
-               // Load template
-               loadTemplate('index_forward', false, $content);
-       } // END - if
+                       // Load template
+                       loadTemplate('index_forward', false, $content);
+               } // END - if
 
-       // Footer
-       loadIncludeOnce('inc/footer.php');
-} else {
-       // Redirect to main page
-       redirectToUrl('modules.php?module=index');
+               // Footer (which will call shutdown() for us)
+               loadIncludeOnce('inc/footer.php');
+       } else {
+               // Redirect to main page
+               redirectToUrl('modules.php?module=index');
+       }
 }
 
 // [EOF]
index 6e4a3bac3ec46b8061d4cd400a443bc706249fac..d257a91e33cb9786cd4fc4a4e8f54fdf3f12a3d2 100644 (file)
@@ -1,84 +1,84 @@
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('login',NULL,'Willkommen','Eingangsseite zum Admin-Bereich',0);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email',NULL,'Email-Management','Gebuchte Mails umleiten, Details zu den Buchungen anzeigen, Emails freigeben, registrierte Email-Adress auf Verf&uuml;gbarkeit testen (Mass-Mailing!), Newsletter versenden, Email-Adressen sperren (Email-Backlist), gebuchte URLs sperren (URL-Blacklist)',4);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','email_stats','Email-Statistiken','Schauen Sie sich detailierte Statistiken zu den bereits versanden Mails an.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','edit_emails','Email-Daten &auml;ndern','Hier k&ouml;nnen Sie u.a. die gebuchte URL der Emails um&auml;ndern, usw.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','unlock_emails','Emails freigeben','Geben Sie bei manuellem Versand gebuchte Mails hier frei.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','email_details','Email-Details ansehen','Sehen Sie sich jedes Details bereits gebuchter Mails an.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup',NULL,'Einstellungen','Interessen &auml;ndern, News schreiben, allgmeine Einstellungen (Auto-Versand usw.). Auto-Lock Funktion einrichten, manueller Lock des Versandes einrichten, Teile der Homepage sperren (wegen Wartungsarbeiten)',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_email','Versand, Empfang','Hier k&ouml;nnen Sie die maximal empfangbaren Mails usw. einstellen.',8);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_cats','Kategorien einrichten','&Auml;ndern oder l&ouml;schen Sie bereits bestehende Kategorien oder f&uuml;gen Sie weitere hinzu.',7);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','refbanner','Referal-Banner','F&uuml;gen Sie neue Banner hinzu, die dann die Mitglieder verlinken k&ouml;nnen, um neue Mitglieder zu werben. Oder editieren / l&ouml;schen Sie bestehende. Hier sehen Sie auch die Anzahl der Klicks auf den jeweiligen Banner!',12);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','payments','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen','F&uuml;gen Sie neue {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen hinzu oder &auml;ndern / l&ouml;schen Sie bestende.',11);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('misc',NULL,'Verschiedenes','Verschiedene Einstellungen / Info-Seiten, die sonst nirgenswo reinpassten...',6);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('stats',NULL,'Statistiken','Sonstige Statistiken, die nirgenswo reinpassen',7);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('logout',NULL,'Ausloggen','Ausloggen aus dem Admin-Bereich. Dadurch wird Ihre Session gel&ouml;scht und Sie m&uuml;ssen sich erneut anmelden.',999);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('login',NULL,'Willkommen','Eingangsseite zum Admin-Bereich',0);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email',NULL,'Email-Management','Gebuchte Mails umleiten, Details zu den Buchungen anzeigen, Emails freigeben, registrierte Email-Adress auf Verf&uuml;gbarkeit testen (Mass-Mailing!), Newsletter versenden, Email-Adressen sperren (Email-Backlist), gebuchte URLs sperren (URL-Blacklist)',4);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','email_stats','Email-Statistiken','Schauen Sie sich detailierte Statistiken zu den bereits versanden Mails an.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','edit_emails','Email-Daten &auml;ndern','Hier k&ouml;nnen Sie u.a. die gebuchte URL der Emails um&auml;ndern, usw.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','unlock_emails','Emails freigeben','Geben Sie bei manuellem Versand gebuchte Mails hier frei.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','email_details','Email-Details ansehen','Sehen Sie sich jedes Details bereits gebuchter Mails an.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup',NULL,'Einstellungen','Interessen &auml;ndern, News schreiben, allgmeine Einstellungen (Auto-Versand usw.). Auto-Lock Funktion einrichten, manueller Lock des Versandes einrichten, Teile der Homepage sperren (wegen Wartungsarbeiten)',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_email','Versand, Empfang','Hier k&ouml;nnen Sie die maximal empfangbaren Mails usw. einstellen.',8);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_cats','Kategorien einrichten','&Auml;ndern oder l&ouml;schen Sie bereits bestehende Kategorien oder f&uuml;gen Sie weitere hinzu.',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','refbanner','Referal-Banner','F&uuml;gen Sie neue Banner hinzu, die dann die Mitglieder verlinken k&ouml;nnen, um neue Mitglieder zu werben. Oder editieren / l&ouml;schen Sie bestehende. Hier sehen Sie auch die Anzahl der Klicks auf den jeweiligen Banner!',12);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','payments','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen','F&uuml;gen Sie neue {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen hinzu oder &auml;ndern / l&ouml;schen Sie bestende.',11);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('misc',NULL,'Verschiedenes','Verschiedene Einstellungen / Info-Seiten, die sonst nirgenswo reinpassten...',6);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('stats',NULL,'Statistiken','Sonstige Statistiken, die nirgenswo reinpassen',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('logout',NULL,'Ausloggen','Ausloggen aus dem Admin-Bereich. Dadurch wird Ihre Session gel&ouml;scht und Sie m&uuml;ssen sich erneut anmelden.',999);
 
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Mix / Alles Senden --&gt; keine Erotik!','Y',0);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Mix / Alles Senden --&gt; ohne PopUps, keine Erotik','Y',1);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Traffic, Reflinks, Kostenloses, KEIN MLM!','Y',2);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Geldverdienen, Beruf, Arbeit, KEIN MLM!','Y',3);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Download, PC- Software, HP-Design','Y',4);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Investment, Banken, B&ouml;rse, Versicherungen, KEIN MLM','Y',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Politik, Wissenschaft','Y',6);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Handy, SMS, ISDN, DSL,','Y',7);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Elektronik, Technik, Server, PC-Hardware, Hosting','Y',8);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Auto, Motorrad','Y',9);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Reise,Touristik','Y',10);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Kunst, Kultur, Bildung','Y',11);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Gesundheit, Fitness, Sport, KEIN MLM!','Y',12);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Lifestyle, Mode, Kosmetik, KEIN MLM!','Y',13);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Auktionen, Shopping, Verkauf, KEIN MLM!','Y',14);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Medien, Musik, Film, TV, Video &amp; DVD','Y',15);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Singles, Flirten, Partnerschaft','Y',16);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Gewinnspiele, Wetten, Lotto, KEIN MLM!','Y',17);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Haus, Garten, Freizeit, Hobbys','Y',18);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Erotik --&gt; Keine Hardcore !','Y',19);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Multi Level Marketing (alle Arten)','Y',20);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Wernis-Seiten','Y',21);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Primera-Seiten','Y',22);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Mix / Alles Senden --&gt; keine Erotik!','Y',0);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Mix / Alles Senden --&gt; ohne PopUps, keine Erotik','Y',1);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Traffic, Reflinks, Kostenloses, KEIN MLM!','Y',2);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Geldverdienen, Beruf, Arbeit, KEIN MLM!','Y',3);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Download, PC- Software, HP-Design','Y',4);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Investment, Banken, B&ouml;rse, Versicherungen, KEIN MLM','Y',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Politik, Wissenschaft','Y',6);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Handy, SMS, ISDN, DSL,','Y',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Elektronik, Technik, Server, PC-Hardware, Hosting','Y',8);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Auto, Motorrad','Y',9);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Reise,Touristik','Y',10);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Kunst, Kultur, Bildung','Y',11);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Gesundheit, Fitness, Sport, KEIN MLM!','Y',12);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Lifestyle, Mode, Kosmetik, KEIN MLM!','Y',13);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Auktionen, Shopping, Verkauf, KEIN MLM!','Y',14);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Medien, Musik, Film, TV, Video &amp; DVD','Y',15);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Singles, Flirten, Partnerschaft','Y',16);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Gewinnspiele, Wetten, Lotto, KEIN MLM!','Y',17);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Haus, Garten, Freizeit, Hobbys','Y',18);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Erotik --&gt; Keine Hardcore !','Y',19);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Multi Level Marketing (alle Arten)','Y',20);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Wernis-Seiten','Y',21);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Primera-Seiten','Y',22);
 
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main',NULL,'Hauptmen&uuml;',0,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','welcome','Willkommen',1,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','impressum','Impressum',5,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','agb','AGBs',4,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','infos','Infos',2,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('members','confirm','Best&auml;tigungslink',3,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('members',NULL,'Mitglieder',1,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('members','login','Einloggen',3,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main',NULL,'Hauptmen&uuml;',0,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','welcome','Willkommen',1,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','impressum','Impressum',5,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','agb','AGBs',4,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','infos','Infos',2,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('members','confirm','Best&auml;tigungslink',3,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('members',NULL,'Mitglieder',1,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('members','login','Einloggen',3,'Y','N');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (0,'Urlaub');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (5,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (10,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (15,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (20,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (25,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (30,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (35,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (40,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (45,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (50,'Bonus m&ouml;glich!');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (90,'Bonus m&ouml;glich!');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (0,'Urlaub');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (5,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (10,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (15,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (20,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (25,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (30,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (35,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (40,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (45,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (50,'Bonus m&ouml;glich!');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (90,'Bonus m&ouml;glich!');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main',NULL,'Mitgliedsmen&uuml;',0,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','welcome','Willkommen!',1,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Guthaben',4,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','categories','Kategorien ausw&auml;hlen',3,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','reflinks','Referal-Links',6,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','unconfirmed','Unbest&auml;tigte Emails',5,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','stats','Statistiken',9, 'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('logout',NULL,'Ausloggen',999,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('logout','logout','Ausloggen',999,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('logout','guest','Zum Gastmen&uuml;',1000,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main',NULL,'Mitgliedsmen&uuml;',0,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','welcome','Willkommen!',1,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Guthaben',4,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','categories','Kategorien ausw&auml;hlen',3,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','reflinks','Referal-Links',6,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','unconfirmed','Unbest&auml;tigte Emails',5,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','stats','Statistiken',9, 'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('logout',NULL,'Ausloggen',999,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('logout','logout','Ausloggen',999,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('logout','guest','Zum Gastmen&uuml;',1000,'Y','N');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (10,1.000,'Klick-Mail 10 Sek.',2.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (20,5.000,'Klick-Mail 20 Sek.',10.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (30,25.000,'Klick-Mail 30 Sek.',30.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (40,35.000,'Klick-Mail 40 Sek.',40.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (50,45.000,'Klick-Mail 50 Sek.',50.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (10,1.000,'Klick-Mail 10 Sek.',2.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (20,5.000,'Klick-Mail 20 Sek.',10.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (30,25.000,'Klick-Mail 30 Sek.',30.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (40,35.000,'Klick-Mail 40 Sek.',40.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (50,45.000,'Klick-Mail 50 Sek.',50.000);
 
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','del_email','E-Mail l&ouml;schen','L&ouml;schen Sie hierr&uuml;ber E-Mails (sowohl Bonus- als auch Normal-Mails) aus Ihrem {?mt_word?}-System. <strong>Nur bei Normal-Mails:</strong> {OPEN_CONFIG}POINTS{CLOSE_CONFIG} aus den unbest&auml;tigten Mails werden dem Werber wieder verg&uuml;tet.','7');
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('misc','extensions','Erweiterungen','Erweiterungen installieren, updaten, sperren, l&ouml;schen usw.','8');
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','del_email','E-Mail l&ouml;schen','L&ouml;schen Sie hierr&uuml;ber E-Mails (sowohl Bonus- als auch Normal-Mails) aus Ihrem {?mt_word?}-System. <strong>Nur bei Normal-Mails:</strong> {OPEN_CONFIG}POINTS{CLOSE_CONFIG} aus den unbest&auml;tigten Mails werden dem Werber wieder verg&uuml;tet.','7');
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('misc','extensions','Erweiterungen','Erweiterungen installieren, updaten, sperren, l&ouml;schen usw.','8');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','stats','Statistiken','7','Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('admin',NULL,'Administrative Links','3','N','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('admin','admin','Zum Admin-Bereich','4','N','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','stats','Statistiken','7','Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('admin',NULL,'Administrative Links','3','N','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('admin','admin','Zum Admin-Bereich','4','N','N');
index 702285728ecc398ccc4a94e03d3a0783b374a19e..a08a1739b7970f584608248f3b8bcfd35b7d0e46 100644 (file)
@@ -1,84 +1,84 @@
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('login',NULL,'Willkommen','Eingangsseite zum Admin-Bereich',0);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email',NULL,'Email-Management','Gebuchte Mails umleiten, Details zu den Buchungen anzeigen, Emails freigeben, registrierte Email-Adress auf Verf&uuml;gbarkeit testen (Mass-Mailing!), Newsletter versenden, Email-Adressen sperren (Email-Backlist), gebuchte URLs sperren (URL-Blacklist)',4);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','email_stats','Email-Statistiken','Schauen Sie sich detailierte Statistiken zu den bereits versanden Mails an.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','edit_emails','Email-Daten &auml;ndern','Hier k&ouml;nnen Sie u.a. die gebuchte URL der Emails um&auml;ndern, usw.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','unlock_emails','Emails freigeben','Geben Sie bei manuellem Versand gebuchte Mails hier frei.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','email_details','Email-Details ansehen','Sehen Sie sich jedes Details bereits gebuchter Mails an.',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup',NULL,'Einstellungen','Interessen &auml;ndern, News schreiben, allgmeine Einstellungen (Auto-Versand usw.). Auto-Lock Funktion einrichten, manueller Lock des Versandes einrichten, Teile der Homepage sperren (wegen Wartungsarbeiten)',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_email','Versand, Empfang','Hier k&ouml;nnen Sie die maximal empfangbaren Mails usw. einstellen.',8);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_cats','Kategorien einrichten','&Auml;ndern oder l&ouml;schen Sie bereits bestehende Kategorien oder f&uuml;gen Sie weitere hinzu.',7);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','refbanner','Referal-Banner','F&uuml;gen Sie neue Banner hinzu, die dann die Mitglieder verlinken k&ouml;nnen, um neue Mitglieder zu werben. Oder editieren / l&ouml;schen Sie bestehende. Hier sehen Sie auch die Anzahl der Klicks auf den jeweiligen Banner!',12);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','payments','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen','F&uuml;gen Sie neue {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen hinzu oder &auml;ndern / l&ouml;schen Sie bestende.',11);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('misc',NULL,'Verschiedenes','Verschiedene Einstellungen / Info-Seiten, die sonst nirgenswo reinpassten...',6);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('stats',NULL,'Statistiken','Sonstige Statistiken, die nirgenswo reinpassen',7);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('logout',NULL,'Ausloggen','Ausloggen aus dem Admin-Bereich. Dadurch wird Ihre Session gel&ouml;scht und Sie m&uuml;ssen sich erneut anmelden.',999);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('login',NULL,'Willkommen','Eingangsseite zum Admin-Bereich',0);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email',NULL,'Email-Management','Gebuchte Mails umleiten, Details zu den Buchungen anzeigen, Emails freigeben, registrierte Email-Adress auf Verf&uuml;gbarkeit testen (Mass-Mailing!), Newsletter versenden, Email-Adressen sperren (Email-Backlist), gebuchte URLs sperren (URL-Blacklist)',4);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','email_stats','Email-Statistiken','Schauen Sie sich detailierte Statistiken zu den bereits versanden Mails an.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','edit_emails','Email-Daten &auml;ndern','Hier k&ouml;nnen Sie u.a. die gebuchte URL der Emails um&auml;ndern, usw.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','unlock_emails','Emails freigeben','Geben Sie bei manuellem Versand gebuchte Mails hier frei.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','email_details','Email-Details ansehen','Sehen Sie sich jedes Details bereits gebuchter Mails an.',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup',NULL,'Einstellungen','Interessen &auml;ndern, News schreiben, allgmeine Einstellungen (Auto-Versand usw.). Auto-Lock Funktion einrichten, manueller Lock des Versandes einrichten, Teile der Homepage sperren (wegen Wartungsarbeiten)',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_email','Versand, Empfang','Hier k&ouml;nnen Sie die maximal empfangbaren Mails usw. einstellen.',8);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_cats','Kategorien einrichten','&Auml;ndern oder l&ouml;schen Sie bereits bestehende Kategorien oder f&uuml;gen Sie weitere hinzu.',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','refbanner','Referal-Banner','F&uuml;gen Sie neue Banner hinzu, die dann die Mitglieder verlinken k&ouml;nnen, um neue Mitglieder zu werben. Oder editieren / l&ouml;schen Sie bestehende. Hier sehen Sie auch die Anzahl der Klicks auf den jeweiligen Banner!',12);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','payments','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen','F&uuml;gen Sie neue {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tungen hinzu oder &auml;ndern / l&ouml;schen Sie bestende.',11);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('misc',NULL,'Verschiedenes','Verschiedene Einstellungen / Info-Seiten, die sonst nirgenswo reinpassten...',6);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('stats',NULL,'Statistiken','Sonstige Statistiken, die nirgenswo reinpassen',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('logout',NULL,'Ausloggen','Ausloggen aus dem Admin-Bereich. Dadurch wird Ihre Session gel&ouml;scht und Sie m&uuml;ssen sich erneut anmelden.',999);
 
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Mix / Alles Senden --&gt; keine Erotik!','Y',0);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Mix / Alles Senden --&gt; ohne PopUps, keine Erotik','Y',1);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Traffic, Reflinks, Kostenloses, KEIN MLM!','Y',2);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Geldverdienen, Beruf, Arbeit, KEIN MLM!','Y',3);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Download, PC- Software, HP-Design','Y',4);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Investment, Banken, B&ouml;rse, Versicherungen, KEIN MLM','Y',5);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Politik, Wissenschaft','Y',6);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Handy, SMS, ISDN, DSL,','Y',7);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Elektronik, Technik, Server, PC-Hardware, Hosting','Y',8);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Auto, Motorrad','Y',9);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Reise,Touristik','Y',10);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Kunst, Kultur, Bildung','Y',11);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Gesundheit, Fitness, Sport, KEIN MLM!','Y',12);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Lifestyle, Mode, Kosmetik, KEIN MLM!','Y',13);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Auktionen, Shopping, Verkauf, KEIN MLM!','Y',14);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Medien, Musik, Film, TV, Video &amp; DVD','Y',15);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Singles, Flirten, Partnerschaft','Y',16);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Gewinnspiele, Wetten, Lotto, KEIN MLM!','Y',17);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Haus, Garten, Freizeit, Hobbys','Y',18);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Erotik --&gt; Keine Hardcore !','Y',19);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Multi Level Marketing (alle Arten)','Y',20);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Wernis-Seiten','Y',21);
-INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('Primera-Seiten','Y',22);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Mix / Alles Senden --&gt; keine Erotik!','Y',0);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Mix / Alles Senden --&gt; ohne PopUps, keine Erotik','Y',1);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Traffic, Reflinks, Kostenloses, KEIN MLM!','Y',2);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Geldverdienen, Beruf, Arbeit, KEIN MLM!','Y',3);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Download, PC- Software, HP-Design','Y',4);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Investment, Banken, B&ouml;rse, Versicherungen, KEIN MLM','Y',5);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Politik, Wissenschaft','Y',6);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Handy, SMS, ISDN, DSL,','Y',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Elektronik, Technik, Server, PC-Hardware, Hosting','Y',8);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Auto, Motorrad','Y',9);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Reise,Touristik','Y',10);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Kunst, Kultur, Bildung','Y',11);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Gesundheit, Fitness, Sport, KEIN MLM!','Y',12);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Lifestyle, Mode, Kosmetik, KEIN MLM!','Y',13);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Auktionen, Shopping, Verkauf, KEIN MLM!','Y',14);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Medien, Musik, Film, TV, Video &amp; DVD','Y',15);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Singles, Flirten, Partnerschaft','Y',16);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Gewinnspiele, Wetten, Lotto, KEIN MLM!','Y',17);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Haus, Garten, Freizeit, Hobbys','Y',18);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Erotik --&gt; Keine Hardcore !','Y',19);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Multi Level Marketing (alle Arten)','Y',20);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Wernis-Seiten','Y',21);
+INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`,`visible`,`sort`) VALUES ('Primera-Seiten','Y',22);
 
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main',NULL,'Hauptmen&uuml;',0,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','welcome','Willkommen',1,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','impressum','Impressum',5,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','agb','AGBs',4,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','infos','Infos',2,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('members',NULL,'Mitglieder',1,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('members','confirm','Best&auml;tigungslink',3,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('members','login','Einloggen',3,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main',NULL,'Hauptmen&uuml;',0,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','welcome','Willkommen',1,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','impressum','Impressum',5,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','agb','AGBs',4,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','infos','Infos',2,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('members',NULL,'Mitglieder',1,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('members','confirm','Best&auml;tigungslink',3,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('members','login','Einloggen',3,'Y','N');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (0,'Urlaub');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (5,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (10,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (15,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (20,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (25,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (30,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (35,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (40,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (45,'');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (50,'Bonus m&ouml;glich!');
-INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES (90,'Bonus m&ouml;glich!');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (0,'Urlaub');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (5,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (10,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (15,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (20,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (25,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (30,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (35,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (40,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (45,'');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (50,'Bonus m&ouml;glich!');
+INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES (90,'Bonus m&ouml;glich!');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main',NULL,'Mitgliedsmen&uuml;',0,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','welcome','Willkommen!',1,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Guthaben',4,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','categories','Kategorien ausw&auml;hlen',3,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','reflinks','Referal-Links',6,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','unconfirmed','Unbest&auml;tigte Emails',5,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','stats','Statistiken',9,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('logout',NULL,'Ausloggen',999,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('logout','logout','Ausloggen',999,'Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('logout','guest','Zum Gastmen&uuml;',1000,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main',NULL,'Mitgliedsmen&uuml;',0,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','welcome','Willkommen!',1,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Guthaben',4,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','categories','Kategorien ausw&auml;hlen',3,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','reflinks','Referal-Links',6,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','unconfirmed','Unbest&auml;tigte Emails',5,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','stats','Statistiken',9,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('logout',NULL,'Ausloggen',999,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('logout','logout','Ausloggen',999,'Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('logout','guest','Zum Gastmen&uuml;',1000,'Y','N');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (10,1.000,'Klick-Mail 10 Sek.',2.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (20,5.000,'Klick-Mail 20 Sek.',10.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (30,25.000,'Klick-Mail 30 Sek.',30.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (40,35.000,'Klick-Mail 40 Sek.',40.000);
-INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES (50,45.000,'Klick-Mail 50 Sek.',50.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (10,1.000,'Klick-Mail 10 Sek.',2.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (20,5.000,'Klick-Mail 20 Sek.',10.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (30,25.000,'Klick-Mail 30 Sek.',30.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (40,35.000,'Klick-Mail 40 Sek.',40.000);
+INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`,`payment`,`mail_title`,`price`) VALUES (50,45.000,'Klick-Mail 50 Sek.',50.000);
 
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','del_email','E-Mail l&ouml;schen','L&ouml;schen Sie hierr&uuml;ber E-Mails (sowohl Bonus- als auch Normal-Mails) aus Ihrem {?mt_word?}-System. <strong>Nur bei Normal-Mails:</strong> {OPEN_CONFIG}POINTS{CLOSE_CONFIG} aus den unbest&auml;tigten Mails werden dem Werber wieder verg&uuml;tet.','7');
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('misc','extensions','Erweiterungen','Erweiterungen installieren, updaten, sperren, l&ouml;schen usw.','8');
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('email','del_email','E-Mail l&ouml;schen','L&ouml;schen Sie hierr&uuml;ber E-Mails (sowohl Bonus- als auch Normal-Mails) aus Ihrem {?mt_word?}-System. <strong>Nur bei Normal-Mails:</strong> {OPEN_CONFIG}POINTS{CLOSE_CONFIG} aus den unbest&auml;tigten Mails werden dem Werber wieder verg&uuml;tet.','7');
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('misc','extensions','Erweiterungen','Erweiterungen installieren, updaten, sperren, l&ouml;schen usw.','8');
 
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('main','stats','Statistiken','7','Y','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('admin',NULL,'Administrative Links','3','N','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `what`, `title`, `sort`, `visible`, `locked`) VALUES ('admin','admin','Zum Admin-Bereich','4','N','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','stats','Statistiken','7','Y','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('admin',NULL,'Administrative Links','3','N','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('admin','admin','Zum Admin-Bereich','4','N','N');
index 528c4deac4b271eacf05a8483649a09d316ff9b2..9a177b93d37e1b031418b9dfdadfa9340fd0167f 100644 (file)
@@ -205,20 +205,20 @@ CREATE TABLE `{?_MYSQL_PREFIX?}_jackpot` (
 
 INSERT INTO `{?_MYSQL_PREFIX?}_config` (`config`) VALUES (0);
 
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('admin','N','N','Y','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('chk_login','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('confirm','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('css','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('frametester','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('index','N','N','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('js','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('loader','N','Y','N','','N');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('login','N','N','N','','Y');
-INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`) VALUES ('ref','N','Y','N','','N');
-
-INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (0,100);
-INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (1,30);
-INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (2,15);
-INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (3,10);
-INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (4,8);
-INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`, `percents`) VALUES (5,5);
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('admin','N','N','Y','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('chk_login','N','Y','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('confirm','N','Y','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('css','N','Y','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('frametester','N','Y','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('index','N','N','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('js','N','Y','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('loader','N','Y','N','','N');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('login','N','N','N','','Y');
+INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`) VALUES ('ref','N','Y','N','','N');
+
+INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`,`percents`) VALUES (0,100);
+INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`,`percents`) VALUES (1,30);
+INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`,`percents`) VALUES (2,15);
+INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`,`percents`) VALUES (3,10);
+INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`,`percents`) VALUES (4,8);
+INSERT INTO `{?_MYSQL_PREFIX?}_refdepths` (`level`,`percents`) VALUES (5,5);
index 162ff01041154bfd18584aef3c1d5abec68ae42f..691017aa90998c1c90a94420edde9a6509fdf690 100644 (file)
@@ -97,7 +97,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                switch ($ltype) {
                        case 'NORMAL':
                                // Is the stats id valid?
-                               $result = SQL_QUERY_ESC("SELECT `pool_id`, `url`, `subject` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
+                               $result = SQL_QUERY_ESC("SELECT `pool_id`,`url`,`subject` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
                                        array($mailId), __FILE__, __LINE__);
                                break;
 
@@ -106,7 +106,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                redirectOnUninstalledExtension('bonus');
 
                                // Bonus-Mails
-                               $result = SQL_QUERY_ESC("SELECT `id`, `url`, `subject` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+                               $result = SQL_QUERY_ESC("SELECT `id`,`url`,`subject` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                                        array($bonusId), __FILE__, __LINE__);
                                break;
 
@@ -153,7 +153,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                        break;
 
                                                case 'BONUS':
-                                                       $result = SQL_QUERY_ESC("SELECT `points`, `time` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+                                                       $result = SQL_QUERY_ESC("SELECT `points`,`time` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                                                                array($bonusId), __FILE__, __LINE__);
                                                        if (SQL_NUMROWS($result) == 1) {
                                                                list($points, $time) = SQL_FETCHROW($result);
index 57c541e9720ee4909758dab53976391f5167cd1f..dbd32df25c8099ee7a8df4d3981f743b6e01c80b 100644 (file)
@@ -84,12 +84,12 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
 
        // Maybe he wants to confirm an email?
        if ($mailId > 0) {
-               $result_main = SQL_QUERY_ESC("SELECT `id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s AND `userid`=%s LIMIT 1",
+               $result_main = SQL_QUERY_ESC("SELECT `id`,`link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s AND `userid`=%s LIMIT 1",
                        array($mailId, $userId), __FILE__, __LINE__);
                $type = 'mailid';
                $urlId = $mailId;
        } elseif ($bonusId > 0) {
-               $result_main = SQL_QUERY_ESC("SELECT `id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s AND `userid`=%s LIMIT 1",
+               $result_main = SQL_QUERY_ESC("SELECT `id`,`link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s AND `userid`=%s LIMIT 1",
                        array($bonusId, $userId), __FILE__, __LINE__);
                $type = 'bonusid';
                $urlId = $bonusId;
@@ -105,12 +105,12 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                // @TODO Rewrite this to a filter
                switch ($ltype) {
                        case 'NORMAL':
-                               $result_mailid = SQL_QUERY_ESC("SELECT `pool_id`, `userid`, `id` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
+                               $result_mailid = SQL_QUERY_ESC("SELECT `pool_id`,`userid`,`id` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `id`=%s LIMIT 1",
                                        array($mailId), __FILE__, __LINE__);
                                break;
 
                        case 'BONUS':
-                               $result_mailid = SQL_QUERY_ESC("SELECT `id`, `id`, `is_notify` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+                               $result_mailid = SQL_QUERY_ESC("SELECT `id`,`id`,`is_notify` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                                        array($bonusId), __FILE__, __LINE__);
                                break;
 
@@ -154,7 +154,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                        break;
 
                                                case 'BONUS':
-                                                       $result = SQL_QUERY_ESC("SELECT `time`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+                                                       $result = SQL_QUERY_ESC("SELECT `time`,`points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                                                                array(bigintval($pool)), __FILE__, __LINE__);
 
                                                        // Entry found?
index 09fef371356da546aa1a7951a32f55c8a8a42d18..cf9d281b446b86a07c97be980bf83c19422def53 100644 (file)
@@ -51,93 +51,8 @@ $GLOBALS['module'] = 'unknown';
 // Needed include files
 require('inc/config-global.php');
 
-// Set content type
-setContentType('text/html');
-
-// The header file
-loadIncludeOnce('inc/header.php');
-
-// Modules are by default not valid!
-$isModuleValid = false;
-
-// Init module state as 'failed' (always failed first)
-$moduleState = 'failed';
-
-// Is the maintenance mode active or goes all well?
-if ((isExtensionActive('maintenance')) && (isMaintenanceEnabled()) && (!isAdmin()) && (getModule() != 'admin')) {
-       // Maintain mode is active and you are no admin
-       addFatalMessage(__FILE__, __LINE__, '{--MAILER_DOWN_FOR_MAINTENANCE--}');
-} elseif ((SQL_IS_LINK_UP()) && (!ifFatalErrorsDetected())) {
-       // Construct module name
-       $GLOBALS['module_inc'] =  sprintf("inc/modules/%s.php", getModule());
-
-       // Check module permission (again)
-       $moduleState = checkModulePermissions();
-
-       // Which permission/error state do we have?
-       switch ($moduleState) {
-               case 'cache_miss': // The cache is gone
-               case 'admin_only': // Admin-only access
-               case 'mem_only': // Member-only access
-               case 'done': // All fine!
-                       // Does the module exists on local file system?
-                       if ((isIncludeReadable($GLOBALS['module_inc'])) && (!ifFatalErrorsDetected())) {
-                               // Module is valid, active and located on the local disc...
-                               $isModuleValid = true;
-                       } elseif (!ifFatalErrorsDetected()) {
-                               // Set HTTP status
-                               setHttpStatus('404');
-
-                               // Module not found
-                               addFatalMessage(__FILE__, __LINE__, '{--MODULE_REGISTRY_404--}');
-
-                               // Set module to error module (non-existent!)
-                               setModule('error');
-                       }
-                       break;
-
-               case '404':
-                       // Set HTTP status
-                       setHttpStatus('404');
-
-                       // Add fatal message
-                       addFatalMessage(__FILE__, __LINE__, '{--MODULE_REGISTRY_404--}');
-                       break;
-
-               case 'locked':
-                       // Set HTTP status
-                       setHttpStatus('403 FORBIDDEN');
-
-                       if (!isIncludeReadable($GLOBALS['module_inc'])) {
-                               // Set HTTP status again
-                               setHttpStatus('404 NOT FOUND');
-
-                               // Module does addionally not exists
-                               addFatalMessage(__FILE__, __LINE__, '{--MODULE_REGISTRY_404--}');
-                       } // END - if
-
-                       // Add fatal message
-                       addFatalMessage(__FILE__, __LINE__, '{--MODULE_REGISTRY_IS_LOCKED--}');
-                       break;
-
-               default:
-                       // Unknown module status
-                       logDebugMessage(__FILE__, __LINE__, sprintf("Unknown status %s return from module check. Module=%s", $moduleState, getModule()));
-                       addFatalMessage(__FILE__, __LINE__, '{%message,UNKNOWN_MODULE_STATUS=' . $moduleState . '%}');
-                       break;
-       } // END - switch
-} elseif (!ifFatalErrorsDetected()) {
-       // SQL problems detected
-       addFatalMessage(__FILE__, __LINE__, '{--MYSQL_ERRORS--}');
-}
-
-if (($isModuleValid === true) && (isset($GLOBALS['module_inc']))) {
-       // Everything is okay so we can load the module
-       loadIncludeOnce($GLOBALS['module_inc']);
-} // END - if
-
-// Add the footer (this will call shutdown())
-loadIncludeOnce('inc/footer.php');
+// Include module
+doIncludeModule();
 
 // [EOF]
 ?>
index 0e231647ec57783b0f11cdc44313152d4a5de59a..d3d3ac99f2159acbd402fbc06e93fe3dc9dea3c6 100644 (file)
@@ -4,7 +4,7 @@ Ein Administrator hat soeben Ihre gebuchte URL f&uuml;r unsere Surfbar abgelehnt
 
 Hier sind alle Daten dazu:
 ------------------------------------------
-Mitglieder-Id: $content[url_userid]
+Mitglieder-Id: $content[url_id]
 ------------------------------------------
 Gebuchte URL: $content[url]
 ------------------------------------------
diff --git a/templates/de/html/admin/admin_add_forced_ad.tpl b/templates/de/html/admin/admin_add_forced_ad.tpl
new file mode 100644 (file)
index 0000000..66049a3
--- /dev/null
@@ -0,0 +1,111 @@
+<div align="center">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=list_forced_ads%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+       <tr>
+               <td class="table_header bottom" align="center" colspan="2">
+                       <strong>{--ADMIN_ADD_FORCED_AD_TITLE--}</strong>
+               </td>
+       </tr>
+
+       <tr>
+               <td align="right">
+                       {--ADMIN_ENTER_FORCED_AD_CLICK_URL--}
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="forced_ads_click_url" size="30" maxlength="255" />
+               </td>
+       </tr>
+
+       <tr>
+               <td align="right">
+                       {--ADMIN_ENTER_FORCED_ALTERNATE_TEXT--}
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="forced_ads_alt_text" size="20" maxlength="255" />
+               </td>
+       </tr>
+
+       <tr>
+               <td class="bottom" align="right">
+                       {--ADMIN_SELECT_FORCED_HAS_FRAMEBREAKER--}
+               </td>
+               <td class="bottom">
+                       {%template,NoYesSelectionBox=forced_ads_framebreaker%}
+               </td>
+       </tr>
+
+       <tr>
+               <td align="right">
+                       {--ADMIN_ENTER_FORCED_AD_RELOAD_LOCK--}
+               </td>
+               <td>
+                       $content[reload_lock]
+               </td>
+       </tr>
+
+       <tr>
+               <td align="right">
+                       {--ADMIN_ENTER_FORCED_AD_MINIMUM_STAY--}
+               </td>
+               <td>
+                       $content[min_stay]
+               </td>
+       </tr>
+
+       <tr>
+               <td class="bottom" align="right">
+                       {--ADMIN_SELECT_FORCED_AD_TYPE--}
+               </td>
+               <td class="bottom">
+                       {%template,ForcedAdTypeSelectionBox%}
+               </td>
+       </tr>
+
+       <tr>
+               <td class="table_header bottom" align="center" colspan="2">
+                       <strong>{--ADMIN_ADD_FORCED_AD_POPUP_BANNER_ONLY--}</strong>
+               </td>
+       </tr>
+
+       <tr>
+               <td align="right">
+                       {--ADMIN_ENTER_FORCED_AD_WIDTH--}
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="forced_ads_width" size="5" maxlength="20" />
+               </td>
+       </tr>
+
+       <tr>
+               <td class="bottom" align="right">
+                       {--ADMIN_ENTER_FORCED_AD_HEIGHT--}
+               </td>
+               <td class="bottom">
+                       <input type="text" class="form_field" name="forced_ads_height" size="5" maxlength="20" />
+               </td>
+       </tr>
+
+       <tr>
+               <td class="table_header bottom" align="center" colspan="2">
+                       <strong>{--ADMIN_ADD_FORCED_AD_ADDITIONAL_DATA--}</strong>
+               </td>
+       </tr>
+
+       <tr>
+               <td class="bottom" align="right">
+                       {--ADMIN_ENTER_FORCED_AD_URL--}
+               </td>
+               <td class="bottom">
+                       <input type="text" class="form_field" name="forced_ads_ad_url" size="30" maxlength="255" />
+               </td>
+       </tr>
+
+       <tr>
+               <td class="table_footer" colspan="2">
+                       <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+                       <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_FORCED_ADD_SUBMIT--}" />
+               </td>
+       </tr>
+</table>
+</form>
+</div>
index dab831ea975faef40e5b2e004e410c1d192e7fd1..c67ed28c0aa265f86d11762c6cc1c6cb97e04fd5 100644 (file)
@@ -27,7 +27,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_CLICK_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       {%template,ConfigurationYesNoSelectionBox=bonus_click%}
+                       {%template,ConfigurationYesNoSelectionBox=include_bonus_click%}
                </td>
        </tr>
        <tr>
@@ -35,7 +35,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_LOGIN_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       {%template,ConfigurationYesNoSelectionBox=bonus_login%}
+                       {%template,ConfigurationYesNoSelectionBox=include_bonus_login%}
                </td>
        </tr>
        <tr>
@@ -43,7 +43,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_ORDER_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       {%template,ConfigurationYesNoSelectionBox=bonus_order%}
+                       {%template,ConfigurationYesNoSelectionBox=include_bonus_order%}
                </td>
        </tr>
        <tr>
@@ -51,7 +51,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_STATS_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       {%template,ConfigurationYesNoSelectionBox=bonus_stats%}
+                       {%template,ConfigurationYesNoSelectionBox=include_bonus_stats%}
                </td>
        </tr>
        <tr>
@@ -59,7 +59,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_REFERAL_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       {%template,ConfigurationYesNoSelectionBox=bonus_ref%}
+                       {%template,ConfigurationYesNoSelectionBox=include_bonus_ref%}
                </td>
        </tr>
        <tr>
index 6115145207a66895ba69d68b984c2eaef51b2418..a186d50bf2c6ef20972d22eca3b001fdbe86ad62 100644 (file)
@@ -1,20 +1,48 @@
 <div align="center">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=settings%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed" width="510">
        <tr>
-               <td colspan="3" align="center" class="table_header">
-                       <strong>{--ADMIN_CONFIG_HOME_TITLE--}</strong>
+               <td colspan="2" align="center" class="table_header bottom">
+                       <strong>{--ADMIN_CONFIG_HOME_SETTINGS_TITLE--}</strong>
                </td>
        </tr>
        <tr>
-               <td align="center" class="header_column bottom right"><strong>{--ID_SELECT--}</strong></td>
-               <td align="center" class="header_column bottom right"><strong>{--ADMIN_MENU_WHAT--}</strong></td>
-               <td align="center" class="header_column bottom"><strong>{--ADMIN_HOME_ACTION--}</strong></td>
+               <td align="right" width="320" height="20">
+                       {--ADMIN_CONFIG_INDEX_DELAY--}
+               </td>
+               <td width="185" align="center">
+                       <select name="index_delay" size="1" class="form_select">
+                               <option value="-1"$content[-1]>{--ADMIN_INDEX_NO_DELAY--}</option>
+                               <option value="0"$content[0]>{--ADMIN_INDEX_MANUAL_FORWARD--}</option>
+                               <!-- Fuehren Sie dies einfach so weiter, wenn Sie mehr Werte brauchen //-->
+                               <option value="1"$content[1]>1 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <option value="2"$content[2]>2 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <option value="3"$content[3]>3 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <option value="4"$content[4]>4 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <option value="5"$content[5]>5 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <option value="10"$content[10]>10 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <option value="15"$content[15]>15 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <option value="30"$content[30]>30 {--_SECONDS--} (JavaScript+HTML)</option>
+                               <!-- Laenger sollte es aber nun nicht dauern! //-->
+                       </select>
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right" height="20">{--ADMIN_CONFIG_INDEX_COOKIE--}</td>
+               <td class="bottom" align="center">$content[cookie_selection]</td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right" height="20">{--ADMIN_CONFIG_INDEX_DISPLAY_HOME_IN_INDEX--}</td>
+               <td class="bottom" align="center">
+                       {%template,ConfigurationYesNoSelectionBox=display_home_in_index%}
+               </td>
        </tr>
-       $content
        <tr>
-               <td colspan="3" class="table_footer">
-                       <div class="notice">{--ADMIN_CONFIG_HOME_NOTE--}</div>
+               <td colspan="2" class="table_footer">
+                       <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+                       <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
                </td>
        </tr>
 </table>
+</form>
 </div>
index 46a63235411c9f19c193e4a4b1ec331950b9ddd7..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,7 +1 @@
-<tr>
-       <td class="{%template,ColorSwitch%} bottom right">$content[id]</td>
-       <td class="{%template,ColorSwitch%} bottom right">$content[title]</td>
-       <td class="{%template,ColorSwitch%} bottom" align="center">
-               $content[link]
-       </td>
-</tr>
+<!-- @DEPRECATED //-->
index be203fef84695778743baf74d0c5e6be7eafb206..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,42 +1 @@
-<div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=settings%}" method="post">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed" width="510">
-       <tr>
-               <td colspan="2" align="center" class="table_header bottom">
-                       <strong>{--ADMIN_CONFIG_HOME_SETTINGS_TITLE--}</strong>
-               </td>
-       </tr>
-       <tr>
-               <td align="right" width="320" height="20">
-                       {--ADMIN_CONFIG_INDEX_DELAY--}:
-               </td>
-               <td width="185" align="center">
-                       <select name="index_delay" size="1" class="form_select">
-                               <option value="-1"$content[-1]>{--ADMIN_INDEX_NO_DELAY--}</option>
-                               <option value="0"$content[0]>{--ADMIN_INDEX_MANUAL_FORWARD--}</option>
-                               <!-- Fuehren Sie dies einfach so weiter, wenn Sie mehr Werte brauchen //-->
-                               <option value="1"$content[1]>1 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <option value="2"$content[2]>2 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <option value="3"$content[3]>3 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <option value="4"$content[4]>4 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <option value="5"$content[5]>5 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <option value="10"$content[10]>10 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <option value="15"$content[15]>15 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <option value="30"$content[30]>30 {--_SECONDS--} (JavaScript+HTML)</option>
-                               <!-- Laenger sollte es aber nun nicht dauern! //-->
-                       </select>
-               </td>
-       </tr>
-       <tr>
-               <td class="bottom" align="right" height="20">{--ADMIN_CONFIG_INDEX_COOKIE--}</td>
-               <td class="bottom" align="center">$content[cookie_selection]</td>
-       </tr>
-       <tr>
-               <td colspan="2" class="table_footer">
-                       <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
-               </td>
-       </tr>
-</table>
-</form>
-</div>
+<!-- @DEPRECATED //-->
index 31f5d51f30076d7b5e81ab0f238a7abea84c7bad..c9d7a77beccde4971ac72d35e82d8c2074c97b2f 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
        <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
-               <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_userid_raw]" />
+               <input type="hidden" name="url_userid[$content[url_id]]" value="{%pipe,makeZeroToNull=$content[url_userid_raw]%}" />
                $content[url_userid]
        </td>
        <td align="center" class="bottom right {%template,ColorSwitch%}">
index 45c4ab22c1dd67995f40b8babf448dd5c98b396c..5d1aa450fd9ba51194eba928f76f545fb8188b30 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
        <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
-               <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_userid_raw]" />
+               <input type="hidden" name="url_userid[$content[url_id]]" value="{%pipe,makeZeroToNull=$content[url_userid_raw]%}" />
                $content[url_userid]
        </td>
        <td align="center" class="bottom right {%template,ColorSwitch%}">
diff --git a/templates/de/html/admin/admin_list_forced_ads.tpl b/templates/de/html/admin/admin_list_forced_ads.tpl
new file mode 100644 (file)
index 0000000..b6fc258
--- /dev/null
@@ -0,0 +1,29 @@
+<div align="center">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=list_forced_ads%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed" width="800">
+<tr>
+       <td align="center" colspan="7" class="table_header">
+               <strong>{--ADMIN_LIST_FORCED_ADS_TITLE--}</strong>
+       </td>
+</tr>
+<tr>
+       <td class="header_column bottom right" align="center"><strong>{--ID_SELECT--}</strong></td>
+       <td class="header_column bottom right" align="center"><strong>{--ADMIN_TEST_URL--}</strong></td>
+       <td class="header_column bottom right" align="center"><strong>{--ADMIN_FORCED_ADS_TYPE--}</strong></td>
+       <td class="header_column bottom right" align="center"><strong>{--ADMIN_FORCED_ADS_HAS_FRAMEBREAKER--}</strong></td>
+       <td class="header_column bottom right" align="center"><strong>{--ADMIN_FORCED_ADS_ADDED--}</strong></td>
+       <td class="header_column bottom right" align="center"><strong>{--ADMIN_FORCED_ADS_LAST_LOCKED--}</strong></td>
+       <td class="header_column bottom" align="center"><strong>{--ADMIN_FORCED_ADS_LOCK_REASON--}</strong></td>
+</tr>
+$content
+<tr>
+       <td class="table_footer" colspan="7">
+               <input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
+               <input type="submit" class="form_submit" name="edit" value="{--ADMIN_ACTION_EDIT_SUBMIT--}" />
+               <input type="submit" class="form_delete" name="lock" value="{--ADMIN_ACTION_LOCK_SUBMIT--}" />
+               <input type="submit" class="form_delete" name="delete" value="{--ADMIN_ACTION_DELETE_SUBMIT--}" />
+       </td>
+</tr>
+</table>
+</form>
+</div>
diff --git a/templates/de/html/admin/admin_list_forced_ads_row.tpl b/templates/de/html/admin/admin_list_forced_ads_row.tpl
new file mode 100644 (file)
index 0000000..a9fd1e3
--- /dev/null
@@ -0,0 +1,23 @@
+<tr>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
+               <input type="checkbox" class="form_field" title="{--ID_SELECT--} $content[forced_ads_id]" name="forced_ads_id[$content[forced_ads_id]]" value="1" />
+       </td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
+               <a href="{%pipe,generateFrametesterUrl=$content[forced_ads_click_url]%}" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
+       </td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
+               {%pipe,translateForcedAdType=$content[forced_ads_type]%}
+       </td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
+               {%pipe,translateYesNo=$content[forced_ads_framebreaker]%}
+       </td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
+               $content[forced_ads_added]
+       </td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
+               $content[forced_ads_last_locked]
+       </td>
+       <td align="center" class="bottom {%template,ColorSwitch%}">
+               {%pipe,fixEmptyContentToDashes=$content[forced_ads_lock_reason]%}
+       </td>
+</tr>
diff --git a/templates/de/html/admin/admin_list_home.tpl b/templates/de/html/admin/admin_list_home.tpl
new file mode 100644 (file)
index 0000000..6115145
--- /dev/null
@@ -0,0 +1,20 @@
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+       <tr>
+               <td colspan="3" align="center" class="table_header">
+                       <strong>{--ADMIN_CONFIG_HOME_TITLE--}</strong>
+               </td>
+       </tr>
+       <tr>
+               <td align="center" class="header_column bottom right"><strong>{--ID_SELECT--}</strong></td>
+               <td align="center" class="header_column bottom right"><strong>{--ADMIN_MENU_WHAT--}</strong></td>
+               <td align="center" class="header_column bottom"><strong>{--ADMIN_HOME_ACTION--}</strong></td>
+       </tr>
+       $content
+       <tr>
+               <td colspan="3" class="table_footer">
+                       <div class="notice">{--ADMIN_CONFIG_HOME_NOTE--}</div>
+               </td>
+       </tr>
+</table>
+</div>
diff --git a/templates/de/html/admin/admin_list_home_row.tpl b/templates/de/html/admin/admin_list_home_row.tpl
new file mode 100644 (file)
index 0000000..46a6323
--- /dev/null
@@ -0,0 +1,7 @@
+<tr>
+       <td class="{%template,ColorSwitch%} bottom right">$content[id]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[title]</td>
+       <td class="{%template,ColorSwitch%} bottom" align="center">
+               $content[link]
+       </td>
+</tr>
diff --git a/templates/de/html/admin/admin_list_mods_stats.tpl b/templates/de/html/admin/admin_list_mods_stats.tpl
new file mode 100644 (file)
index 0000000..b8f1e31
--- /dev/null
@@ -0,0 +1,13 @@
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0" width="480"
+       class="table dashed">
+       <tr>
+               <td align="center" class="table_header bottom right"><strong>{--ADMIN_MODS_TITLE--}</strong></td>
+               <td align="center" class="table_header bottom"><strong>{--ADMIN_MODS_CLICKS--}</strong></td>
+       </tr>
+       $content
+       <tr>
+               <td colspan="2" class="table_footer"><div class="notice">{--ADMIN_MODS_EDIT_NOTE--}</div></td>
+       </tr>
+</table>
+</div>
diff --git a/templates/de/html/admin/admin_list_mods_stats2.tpl b/templates/de/html/admin/admin_list_mods_stats2.tpl
new file mode 100644 (file)
index 0000000..fadb0d8
--- /dev/null
@@ -0,0 +1,14 @@
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+       <tr>
+               <td align="center" class="table_header bottom right"><strong>{--ADMIN_MODS_WHAT_ACTION--}</strong></td>
+               <td align="center" class="table_header bottom"><strong>{--ADMIN_MODS_CLICKS--}</strong></td>
+       </tr>
+       $content
+       <tr>
+               <td colspan="2" class="table_footer">
+                       {--ADMIN_MODS_STATS_FOOTER--}
+               </td>
+       </tr>
+</table>
+</div>
diff --git a/templates/de/html/admin/admin_list_mods_stats2_row.tpl b/templates/de/html/admin/admin_list_mods_stats2_row.tpl
new file mode 100644 (file)
index 0000000..ca7ddb5
--- /dev/null
@@ -0,0 +1,8 @@
+<tr>
+       <td class="{%template,ColorSwitch%} bottom right">
+               {%pipe,fixEmptyContentToDashes=$content[title]%} ($content[action])
+       </td>
+       <td class="{%template,ColorSwitch%} bottom" align="center">
+               $content[counter]
+       </td>
+</tr>
diff --git a/templates/de/html/admin/admin_list_mods_stats_row.tpl b/templates/de/html/admin/admin_list_mods_stats_row.tpl
new file mode 100644 (file)
index 0000000..66f908f
--- /dev/null
@@ -0,0 +1,8 @@
+<tr>
+       <td class="{%template,ColorSwitch%} bottom right">
+               {%pipe,fixEmptyContentToDashes=$content[title]%} (<span class="data">$content[module]</span>)
+       </td>
+       <td class="{%template,ColorSwitch%} bottom" align="center">
+               {%pipe,translateComma=$content[clicks]%}
+       </td>
+</tr>
index 3d16f13619ccc99fa2310cb8e67c3daf577e9d17..969e5f5a1551c0002f50e6b8cdb25ade18efc023 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
        <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
-               <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_userid_raw]" />
+               <input type="hidden" name="url_userid[$content[url_id]]" value="{%pipe,makeZeroToNull=$content[url_userid_raw]%}" />
                <input type="hidden" name="url_last_locked[$content[url_id]]" value="NOW()" />
                $content[url_userid]
        </td>
index bb5a210d752d353ac388399f78679ef81c13f090..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,11 +1 @@
-<table border="0" cellspacing="0" cellpadding="0" width="480"
-       class="table dashed">
-       <tr>
-               <td align="center" class="table_header bottom right"><strong>{--ADMIN_MODS_TITLE--}</strong></td>
-               <td align="center" class="table_header bottom"><strong>{--ADMIN_MODS_CLICKS--}</strong></td>
-       </tr>
-       $content
-       <tr>
-               <td colspan="2" class="table_footer"><div class="notice">{--ADMIN_MODS_EDIT_NOTE--}</div></td>
-       </tr>
-</table>
+<!-- @DEPRECATED //-->
index fadb0d881c73c88828d5766eb2f46466695d62d5..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,14 +1 @@
-<div align="center">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
-       <tr>
-               <td align="center" class="table_header bottom right"><strong>{--ADMIN_MODS_WHAT_ACTION--}</strong></td>
-               <td align="center" class="table_header bottom"><strong>{--ADMIN_MODS_CLICKS--}</strong></td>
-       </tr>
-       $content
-       <tr>
-               <td colspan="2" class="table_footer">
-                       {--ADMIN_MODS_STATS_FOOTER--}
-               </td>
-       </tr>
-</table>
-</div>
+<!-- @DEPRECATED //-->
index ca7ddb52c89102c95bdd9b66cc8d632f286407c7..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,8 +1 @@
-<tr>
-       <td class="{%template,ColorSwitch%} bottom right">
-               {%pipe,fixEmptyContentToDashes=$content[title]%} ($content[action])
-       </td>
-       <td class="{%template,ColorSwitch%} bottom" align="center">
-               $content[counter]
-       </td>
-</tr>
+<!-- @DEPRECATED //-->
index 3a55187f946483f819e0b8d345b00ea1700d429f..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,8 +1 @@
-<tr>
-       <td class="{%template,ColorSwitch%} bottom right">
-               {%pipe,fixEmptyContentToDashes=$content[title]%} (<span class="data">$content[module]</span>)
-       </td>
-       <td class="{%template,ColorSwitch%} bottom" align="center">
-               $content[clicks]
-       </td>
-</tr>
+<!-- @DEPRECATED //-->
index 6ac05fe1ce7f761215771c77a84c13c40603e63a..53c040eea1e73b5143e2f272adca88b99147cff2 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
        <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
-               <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_userid_raw]" />
+               <input type="hidden" name="url_userid[$content[url_id]]" value="{%pipe,makeZeroToNull=$content[url_userid_raw]%}" />
                $content[url_userid]
        </td>
        <td align="center" class="bottom right {%template,ColorSwitch%}">
index 713c28838ecddeadc5215759ccfe7f60b0c5f13a..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1 +1 @@
-Dieser Text steht im Template <strong>beg_banner.tpl</strong> und m&ouml;chte ge&auml;ndert werden!
+<!-- @DEPRECATED //-->
index 53937baace9cf1d58602494d43ef4fb83ad67f12..82596b3cb06fb7ac7511627d9ad50f7e034f09ab 100644 (file)
@@ -1,11 +1,11 @@
-<div>
+<div style="height:50px">
        {--BEG_USERID_STEAL_1--}<strong>$content[userid]</strong>{--BEG_USERID_STEAL_2--}<strong>{%pipe,translateComma=$content[points]%}</strong>{--BEG_USERID_STEAL_3--}
 </div>
 
-<div>
+<div style="height:50px">
        {%message,BEG_CLICKS=$content[clicks]%}
 </div>
 
-<div align="right">
+<div style="height:20px" align="right">
        {--BEG_THANKS_FOR_CLICK--}
 </div>
diff --git a/templates/de/html/beg/beg_footer_banner.tpl b/templates/de/html/beg/beg_footer_banner.tpl
new file mode 100644 (file)
index 0000000..3b5e689
--- /dev/null
@@ -0,0 +1 @@
+Dieser Text steht im Template <strong>beg_footer_banner.tpl</strong> und m&ouml;chte ge&auml;ndert werden!
diff --git a/templates/de/html/beg/beg_header_banner.tpl b/templates/de/html/beg/beg_header_banner.tpl
new file mode 100644 (file)
index 0000000..04d6e8a
--- /dev/null
@@ -0,0 +1 @@
+Dieser Text steht im Template <strong>beg_header_banner.tpl</strong> und m&ouml;chte ge&auml;ndert werden!
index a2d0f4c22df2369ddadfb48abc020d4a91672ea1..e3f8caae2d770fdcbe034f35100ac2fa0ee50071 100644 (file)
@@ -2,7 +2,7 @@
 <table border="0" cellspacing="0" cellpadding="0" width="100%" style="height: 100%">
        <tr>
                <td height="10%" align="center">
-                       <div align="center">$content[banner]</div>
+                       <div align="center">$content[header_banner]</div>
                </td>
        </tr>
        <tr>
@@ -17,7 +17,7 @@
                                        {%message,BEG_LINK_USERID=$content[userid]%}
                                </div>
                        </div>
-                       <div height="120" class="bottom">
+                       <div style="height:120px" class="bottom">
                                <div align="center">$content[message]</div>
                        </div>
                        <div class="table_footer">
@@ -28,7 +28,7 @@
        </tr>
        <tr>
                <td height="10%" align="center">
-                       <div align="center">$content[banner]</div>
+                       <div align="center">$content[footer_banner]</div>
                </td>
        </tr>
 </table>
index 550e5b1caecddaee8a2f66367d671f8ef185ad68..0b47867b983ac28660fcac1b377fbf8f94c88f04 100644 (file)
@@ -1,8 +1,9 @@
 <div class="para">
-Lassen Sie Ihre Sponsoren Forced-Banner oder -Textlinks buchen und geben Sie
-Ihren Mitgliedern f&uuml;r jeden Klick einen festen - alternativ auch
-dynamischen - Betrag an {OPEN_CONFIG}POINTS{CLOSE_CONFIG}. Sie k&ouml;nnen auch
-selber welche einstellen bzw. aus den Werbenetzwerken welche &uuml;bernehmen.
+Lassen Sie Ihre Sponsoren und Mitglieder Forced-Banner oder -Textlinks buchen
+und geben Sie Ihren Mitgliedern f&uuml;r jeden Klick einen festen - alternativ
+auch dynamischen - Betrag an {OPEN_CONFIG}POINTS{CLOSE_CONFIG}. Sie k&ouml;nnen
+auch selber welche einstellen bzw. aus den Werbenetzwerken welche
+&uuml;bernehmen.
 </div>
 
 <div class="para">
index 523132ffad4a2fb41cf45ceff42b610aafd5af22..fd42b7db6379770d9bd12760ac38a333b39d80a4 100644 (file)
@@ -1,5 +1,5 @@
 <div class="para">
-Eine Surfbar f&uuml;r Ihre Mitglieder mit prozentualer Ref-Verg&uuml;tung
+Ein Besuchertausch f&uuml;r Ihre Mitglieder mit prozentualer Ref-Verg&uuml;tung
 (optional) und vielem mehr. Die gebuchten URLs werden bei aktivierter Surfbar-
 Erweiterung automatisch in ihr gesammelt und sind dann sofort ansurfbar. Die
 Verg&uuml;tung kann zu einem Fix-Preis erfolgen oder auch dynamisch.
@@ -20,11 +20,12 @@ jedoch nur von der Basisverg&uuml;tung berechnet.
 </div>
 
 <div class="para">
-Es k&ouml;nnen auch URLs direkt und nur in die Surfbar gebucht werden. Sie
-k&ouml;nnen zudem eigene URLs (nur aus Werbenetzwerken nehmen, wo das
-Einbinden der URL in eine Surfbar erlaubt ist!) aus dem Adminbereich
-hinzuf&uuml;gen und dabei eine Reload-Sperre unabh&auml;ngig von den
-Ausgangseinstellungen in Sekunden angeben.
+Es k&ouml;nnen auch URLs direkt und nur in den Besuchertausch gebucht werden.
+Sie k&ouml;nnen zudem eigene URLs (eigene URLs oder aus Werbenetzwerken
+&quot;Traffic-Kampagnen&quot; nehmen, wo das Einbinden der URL in einen
+Besuchertausch erlaubt ist!) aus dem Adminbereich hinzuf&uuml;gen und dabei
+eine Reload-Sperre unabh&auml;ngig von den Ausgangseinstellungen in Sekunden
+angeben.
 </div>
 
 <div class="para">
diff --git a/templates/de/html/ext/ext_teams.tpl b/templates/de/html/ext/ext_teams.tpl
new file mode 100644 (file)
index 0000000..faf742e
--- /dev/null
@@ -0,0 +1,37 @@
+<div class="para">
+       Ihre Mitglieder k&ouml;nnen Teams bilden um ein gemeinsames Ziel (z.B. den
+       Gewinn einer Referal-Rallye) zu erreichen. Dabei k&ouml;nnen Sie den
+       Mitgliedern eine Frist setzen, bis wann die Team-Anmeldungen bzw.
+       -beitritte, -austritte oder -wechsel maximal geschehen d&uuml;rfen. Teams
+       sind vielf&auml;ltig einsetzbar, Teams k&ouml;nnen gegeneinander in
+       verschiedenen Rallyes antreten, der Gewinn wird dann nach vom Administrator
+       einstellbare Kriterien an die Mitglieder des gewinnenden Teams aufgeteilt.
+</div>
+
+<div class="para">
+       Auch ist eine Jackpot-Jagt zwischen den Teams m&ouml;glich, wo dann der
+       Jackpot nach vom Administrator einstellbare Kriterien aufgeteilt wird.
+</div>
+
+<div class="para">
+       Ein Aufteilungskriteritum kann z.B. w&auml;hrend des vergangenen Zeitraums
+       der erwirtschaftete {?POINTS?}-Stand sein (dieser wird separat pro
+       Teammitglied und separat f&uuml;r das gesamte Team gemessen). Der Gewinn
+       teilt sich dann anhand des zuvor genannten, erwirtschafteten Guthabens sich
+       prozentual auf.
+</div>
+
+<div class="para">
+       Hingegen ist bei einem statischen Kriteritum (beide gleichzeitig geht nicht)
+       der Gewinn des einzelnen Mitgliedes sein in dem Zeitraum erwirtschaftesten
+       Guthaben. Beide Kriterien sind f&uuml;r jede Rallye individuell einstellbar.
+</div>
+
+<div class="para">
+       Generell - also ohne irgendwelche Rallyes - sind Teams dazu da um zum
+       Beispiel Guthaben in einem gemeinsamen Werbetopf (der nicht
+       auszahlungf&auml;hig ist) zu sammeln und die Gr&uuml;ndungsmitglieder
+       k&ouml;nnen dann mit dem Guthaben Buchungen aufgeben (auch als
+       &quot;Team-Buchung&quot; im Script genannt). Bei generellen Teams ist
+       dem Teamleiter erlaubt, Kriterien in vom Administrator festlegbaren
+</div>
diff --git a/templates/de/html/select/select_forced_ads_type_box.tpl b/templates/de/html/select/select_forced_ads_type_box.tpl
new file mode 100644 (file)
index 0000000..8bc5eb9
--- /dev/null
@@ -0,0 +1,3 @@
+<div align="center">
+       $content[selection_box]
+</div>
diff --git a/templates/de/html/select/select_forced_ads_type_option.tpl b/templates/de/html/select/select_forced_ads_type_option.tpl
new file mode 100644 (file)
index 0000000..a49aa0f
--- /dev/null
@@ -0,0 +1,3 @@
+<option value="$content[type]">
+       {%pipe,translateForcedAdType=$content[type]%}
+</option>
diff --git a/templates/xml/admin/admin_add_do_forced_ads.xml b/templates/xml/admin/admin_add_do_forced_ads.xml
new file mode 100644 (file)
index 0000000..4b989c7
--- /dev/null
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+This template provides meta data for adding forced-ads to the database.
+
+@author                Roland Haeder <webmaster@mxchange.org>
+@version       0.2.1-FINAL
+@copyright     (c) 2003 - 2009 by Roland Haeder
+@copyright     (c) 2009 - 2011 by Mailer Developer Team
+@license       GNU GPL 2.0 or any newer version
+@link          http://www.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="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-column-list-entry name="" type="string" value="forced_ads_click_url" />
+               <database-column-list-entry name="" type="string" value="forced_ads_alt_text" />
+               <database-column-list-entry name="" type="string" value="forced_ads_framebreaker" />
+               <database-column-list-entry name="forced_ads_reload_lock" type="string" value="forced_ads_reload_lock" />
+               <database-column-list-entry name="forced_ads_min_stay" type="string" value="forced_ads_min_stay" />
+               <database-column-list-entry name="" type="string" value="forced_ads_type" />
+               <database-column-list-entry name="" type="string" value="forced_ads_width" />
+               <database-column-list-entry name="" type="string" value="forced_ads_height" />
+               <database-column-list-entry name="" type="string" value="forced_ads_ad_url" />
+       </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="" />
+               <callback-function-list-entry name="" type="string" value="" />
+               <callback-function-list-entry name="" type="string" value="" />
+               <callback-function-list-entry name="forced_ads_reload_lock" type="string" value="createEpocheTimeFromSelections" />
+               <callback-function-list-entry name="forced_ads_min_stay" type="string" value="createEpocheTimeFromSelections" />
+               <callback-function-list-entry name="" type="string" value="" />
+               <callback-function-list-entry name="" type="string" value="bigintval" />
+               <callback-function-list-entry name="" type="string" value="bigintval" />
+               <callback-function-list-entry name="" type="string" value="" />
+       </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>
+               <!--
+               Dummy entries
+               //-->
+               <extra-parameter-list-entry name="" type="string" value="" />
+               <extra-parameter-list-entry name="" type="string" value="" />
+               <extra-parameter-list-entry name="" type="string" value="" />
+               <!--
+               Entry for forced_ads_reload_lock
+               //-->
+               <extra-parameter-list-entry name="" type="array" value="forced_ads_reload_lock">
+                       <!--
+                       Only one more parameter which is a special type 'callback'
+                       //-->
+                       <extra-parameter-forced-ads-reload-locklist>
+                               <!--
+                               createEpocheTimeFromSelections() requires the whole $_POST
+                               array as second parameter, getPostArray() wraps this.
+                               //-->
+                               <extra-parameter-forced-ads-reload-locklist-entry name="" type="callback" value="postRequestArray" />
+                       </extra-parameter-forced-ads-reload-locklist>
+               </extra-parameter-list-entry>
+               <!--
+               Entry for forced_ads_reload_lock
+               //-->
+               <extra-parameter-list-entry name="" type="array" value="forced_ads_min_stay">
+                       <!--
+                       Only one more parameter which is a special type 'callback'
+                       //-->
+                       <extra-parameter-forced-ads-min-stay-list>
+                               <!--
+                               createEpocheTimeFromSelections() requires the whole $_POST
+                               array as second parameter, getPostArray() wraps this.
+                               //-->
+                               <extra-parameter-forced-ads-min-stay-list-entry name="" type="callback" value="postRequestArray" />
+                       </extra-parameter-forced-ads-min-stay-list>
+               </extra-parameter-list-entry>
+               <!--
+               More dummy enries
+               //-->
+               <extra-parameter-list-entry name="" type="string" value="" />
+               <extra-parameter-list-entry name="" type="string" value="" />
+               <extra-parameter-list-entry name="" type="string" value="" />
+               <extra-parameter-list-entry name="" type="string" value="" />
+       </extra-parameter-list>
+</admin-entry-meta-data>
index 4ecd4e3c8cf845fc9dff150585ee48ce5fe9f7da..a2dbf7543fde9ec9abeb04288397242b402685d4 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminDeleteEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
index 3d70110a6ef08bbf99911bac20a17366b7faa6dd..bbb11342209e946a48d904cbea6690f8468ef148 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminDeleteEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
index daa5e510056726a378ce4f6c2b1c9cd430b68ed3..00a792109a126a47334b35e1167d2f4d1376e9e0 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminEditEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
index 7afa2acc673665cca82c3b3b7d1594cdccefe80a..88b6306507d936a56e2e5d2477708a1f8feea296 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminEditEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
@@ -65,7 +61,7 @@ MA  02110-1301  USA
                //-->
                <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="" /> <!-- No callback function! //-->
+               <callback-function-list-entry name="" type="string" value="" /><!-- No callback function! //-->
        </callback-function-list>
        <!--
        Extra parameters (2nd, 3rd, ...) for above call-back functions. If an array
@@ -75,9 +71,10 @@ MA  02110-1301  USA
        <extra-parameter-list>
                <!--
                A list entry for a single extra parameter. 'type' can now be: string,
-               int, float, bool, array. If the type 'array' is provided, the parser searches
-               for a tag called "extra-parameter-<value>-list(-entry)", by <value>
-               is the value from the 'value' attribute. Please check out the examples below.
+               int, float, bool, array. If the type 'array' is provided, the parser
+               searches for a tag called "extra-parameter-<value>-list(-entry)", by
+               <value> is the value from the 'value' attribute. Please check out the
+               examples below.
                //-->
                <!--
                Dummy entry
diff --git a/templates/xml/admin/admin_list_forced_ads.xml b/templates/xml/admin/admin_list_forced_ads.xml
new file mode 100644 (file)
index 0000000..04d4d9b
--- /dev/null
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+This template provides meta data for listing Forced-Ads.
+
+@author                Roland Haeder <webmaster@mxchange.org>
+@version       0.2.1-FINAL
+@copyright     (c) 2003 - 2009 by Roland Haeder
+@copyright     (c) 2009 - 2011 by Mailer Developer Team
+@license       GNU GPL 2.0 or any newer version
+@link          http://www.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-list-data>
+       <!--
+       Call-back function, the extracted data from this XML will then be re-read
+       from that function. The most common function this XML uses is
+       adminListEntries() so mostly you can leave this alone unless you have JOINs.
+       //-->
+       <callback-function type="string" value="adminListEntries" />
+       <!--
+       Now we need information which template should be loaded and which functions
+       shall be called back. So lets start with the main list template. This mostly
+       requires no call-back function.
+       //-->
+       <list-template type="string" value="admin_list_forced_ads" />
+       <!--
+       The template for all rows, mostly this name has a '_row' suffix and again,
+       no call-back function is usually required.
+       //-->
+       <list-row-template type="string" value="admin_list_forced_ads_row" />
+       <!--
+       Message id to display if no entry could be found
+       //-->
+       <no-entry-found-message type="string" value="ADMIN_FORCED_ADS_404" />
+       <!--
+       The table(s) we shall grab the data from, all as list.
+       //-->
+       <data-tables>
+               <!--
+               A single table entry, with alias and without the configurable
+               _MYSQL_PREFIX. You can specify the table's name or alias later on.
+               //-->
+               <data-table type="string" alias="" value="forced_ads" />
+               <!--
+               Columns to perform the SELECT statement on, with alias and name plus which table.
+               //-->
+               <select-data-from-list>
+                       <!--
+                       A single entry with table name (can be left empty), value (must
+                       always be set), alias (again can be left empty) and SQL function
+                       (can also be left empty) which shall be applied on the column.
+                       //-->
+                       <select-data-from-list-entry type="string" table="" value="forced_ads_id" alias="" function="" />
+                       <select-data-from-list-entry type="string" table="" value="forced_ads_click_url" alias="" function="" />
+                       <select-data-from-list-entry type="string" table="" value="forced_ads_type" alias="" function="" />
+                       <select-data-from-list-entry type="string" table="" value="forced_ads_framebreaker" alias="" function="" />
+                       <select-data-from-list-entry type="string" table="" value="forced_ads_added" alias="forced_ads_added" function="UNIX_TIMESTAMP" />
+                       <select-data-from-list-entry type="string" table="" value="forced_ads_last_locked" alias="forced_ads_last_locked" function="UNIX_TIMESTAMP" />
+                       <select-data-from-list-entry type="string" table="" value="forced_ads_lock_reason" alias="" function="" />
+               </select-data-from-list>
+               <!--
+               And the column list to perform the WHERE statement on.
+               //-->
+               <where-select-from-list>
+               </where-select-from-list>
+               <!--
+               Columns to perform the ORDER BY statement (GROUP BY is not yet supported)
+               //-->
+               <order-by-list>
+                       <!--
+                       A single entry to perform the ORDER BY statement on, see above WHERE entry for details.
+                       //-->
+                       <order-by-list-entry type="string" table="" order="forced_ads_id" value="ASC" />
+               </order-by-list>
+       </data-tables>
+       <!--
+       List all column names from the 'select-data-from-list' node here, but now
+       with call-back informations. The list must only contain those entries where
+       a call-back function shall be called for.
+       //-->
+       <column-callback-list>
+               <!--
+               Another column, now we need a second parameter here because
+               generateDateTime() expects two parameters (first is always the data
+               from column).
+               //-->
+               <column-callback-list-entry>
+                       <!--
+                       The actual data, again.
+                       //-->
+                       <column-callback-data type="string" value="forced_ads_added" callback="generateDateTime" />
+                       <!--
+                       More parameters, remember that the first parameter is always given
+                       and that it is the data from column.
+                       //-->
+                       <callback-extra-parameter-list>
+                               <!--
+                               A single parameter, 'type' can be one of 'float', 'int',
+                               'bool', 'string'. 'array' is not yet supported.
+                               //-->
+                               <callback-extra-parameter-list-entry type="int" column="forced_ads_added" value="2" />
+                       </callback-extra-parameter-list>
+               </column-callback-list-entry>
+               <!--
+               Second column to "translate".
+               //-->
+               <column-callback-list-entry>
+                       <column-callback-data type="string" value="forced_ads_last_locked" callback="generateDateTime" />
+                       <callback-extra-parameter-list>
+                               <callback-extra-parameter-list-entry type="int" column="forced_ads_last_locked" value="2" />
+                       </callback-extra-parameter-list>
+               </column-callback-list-entry>
+       </column-callback-list>
+</admin-list-data>
index 1951a9b7f4d5a42ea95160c5724529ebd0dfc255..d757f1f01880c68223de290fcd6e2de600497288 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminLockEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
index 870748fc1df3a08cdb0ff19910f27eaee66e6c17..efab6dd59fa755ae820e0c44a8456da1109647fa 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminLockEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
index 7910f59f193872dc645b4e4b32742ebc36a01c93..9e27d6f8ee25f8e20dd13bd7f095e7127f29266e 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminUndeleteEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
index 2b80c606f245e818ecb398dd55630e66ab76907c..674bc7e4638d89c71dae0ffa2dd85d474c9a88bc 100644 (file)
@@ -32,10 +32,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminUndeleteEntriesConfirm" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="url_id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="surfbar_urls" />
index 6fc9904e62d9fdbb790cc41f28b454e061b2f9db..04fca148817413174ecd70ea214019418d2b46c3 100644 (file)
@@ -35,10 +35,6 @@ MA  02110-1301  USA
        //-->
        <callback-function type="string" value="adminFooEntriesBar" />
        <!--
-       Array index from HTTP POST data array for identifying every data row
-       //-->
-       <post-data-identify-index name="" type="string" value="id" />
-       <!--
        Name of the database table where the entries should be read/write from/to.
        //-->
        <database-table name="" type="string" value="table_name" />