]> git.mxchange.org Git - mailer.git/commitdiff
Sponsor stub extension added (not fully working\!)
authorRoland Häder <roland@mxchange.org>
Sun, 18 May 2008 20:59:42 +0000 (20:59 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 18 May 2008 20:59:42 +0000 (20:59 +0000)
93 files changed:
.gitattributes
inc/extensions/ext-sponsor.php [new file with mode: 0644]
inc/language/sponsor_de.php [new file with mode: 0644]
inc/language/wernis_de.php
inc/libs/sponsor_functions.php [new file with mode: 0644]
inc/modules/admin/action-sponsor.php [new file with mode: 0644]
inc/modules/admin/admin-inc.php
inc/modules/admin/what-add_sponsor.php [new file with mode: 0644]
inc/modules/admin/what-config_sponsor.php [new file with mode: 0644]
inc/modules/admin/what-del_sponsor.php [new file with mode: 0644]
inc/modules/admin/what-edit_sponsor.php [new file with mode: 0644]
inc/modules/admin/what-list_sponsor.php [new file with mode: 0644]
inc/modules/admin/what-list_sponsor_pay.php [new file with mode: 0644]
inc/modules/admin/what-list_sponsor_pays.php [new file with mode: 0644]
inc/modules/admin/what-lock_sponsor.php [new file with mode: 0644]
inc/modules/admin/what-unlock_sponsor.php [new file with mode: 0644]
inc/modules/guest/action-sponsor.php [new file with mode: 0644]
inc/modules/guest/action-sponsors.php [new file with mode: 0644]
inc/modules/guest/what-sponsor_agb.php [new file with mode: 0644]
inc/modules/guest/what-sponsor_infos.php [new file with mode: 0644]
inc/modules/guest/what-sponsor_login.php [new file with mode: 0644]
inc/modules/guest/what-sponsor_reg.php [new file with mode: 0644]
inc/modules/member/what-sponsor.php [new file with mode: 0644]
inc/modules/sponsor.php [new file with mode: 0644]
sponsor_confirm.php [new file with mode: 0644]
sponsor_ref.php [new file with mode: 0644]
templates/de/emails/admin/admin_sponsor_change_data.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_sponsor_change_email.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_sponsor_edit.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_sponsor_pending.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_sponsor_reg.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_sponsor_settings.tpl [new file with mode: 0644]
templates/de/emails/del_sponsor.tpl [new file with mode: 0644]
templates/de/emails/lock_sponsor.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_activate.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_add_points.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_change_data.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_change_email.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_confirm.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_email.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_lost.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_pending.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_ref_notify.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_settings.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_sub_points.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_unlock.tpl [new file with mode: 0644]
templates/de/emails/sponsor/sponsor_unlocked.tpl [new file with mode: 0644]
templates/de/emails/sponsor_add_points.tpl [new file with mode: 0644]
templates/de/emails/sponsor_confirm.tpl [new file with mode: 0644]
templates/de/emails/sponsor_pending.tpl [new file with mode: 0644]
templates/de/emails/sponsor_sub_points.tpl [new file with mode: 0644]
templates/de/emails/sponsor_unlocked.tpl [new file with mode: 0644]
templates/de/html/admin/admin_add_sponsor.tpl [new file with mode: 0644]
templates/de/html/admin/admin_add_sponsor_already.tpl [new file with mode: 0644]
templates/de/html/admin/admin_add_sponsor_paytype.tpl [new file with mode: 0644]
templates/de/html/admin/admin_config_sponsor.tpl [new file with mode: 0644]
templates/de/html/admin/admin_del_sponsor.tpl [new file with mode: 0644]
templates/de/html/admin/admin_edit_sponsor_add_points.tpl [new file with mode: 0644]
templates/de/html/admin/admin_edit_sponsor_edit.tpl [new file with mode: 0644]
templates/de/html/admin/admin_edit_sponsor_sub_points.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_details.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_pay.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_pay_404.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_pay_del.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_pay_del_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_pay_edit.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_pay_edit_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_pay_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_sponsor_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_lock_sponsor.tpl [new file with mode: 0644]
templates/de/html/admin/admin_sponsor_paytypes.tpl [new file with mode: 0644]
templates/de/html/admin/admin_unlock_sponsor.tpl [new file with mode: 0644]
templates/de/html/admin/admin_unlock_sponsor_row.tpl [new file with mode: 0644]
templates/de/html/ext/ext_sponsor.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_act_row.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_activate.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_infos.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_login.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_lost.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_pay_row.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_reg.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_account_form.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_action.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_fillup_form.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_footer.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_header.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_main.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_settings_form.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_welcome.tpl [new file with mode: 0644]
templates/de/html/sponsor/sponsor_what.tpl [new file with mode: 0644]
theme/business/css/sponsor.css [new file with mode: 0644]
theme/default/css/sponsor.css [new file with mode: 0644]

index 8d0f72443f52e146f525037761747ec2a4945f08..2b14e244a2f836ff66eff6c9a16e3759e357e95a 100644 (file)
@@ -118,6 +118,7 @@ inc/extensions/ext-rallye.php -text
 inc/extensions/ext-register.php -text
 inc/extensions/ext-repair.php -text
 inc/extensions/ext-rewrite.php -text
 inc/extensions/ext-register.php -text
 inc/extensions/ext-repair.php -text
 inc/extensions/ext-rewrite.php -text
+inc/extensions/ext-sponsor.php -text
 inc/extensions/ext-sql_patches.php -text
 inc/extensions/ext-support.php -text
 inc/extensions/ext-task.php -text
 inc/extensions/ext-sql_patches.php -text
 inc/extensions/ext-support.php -text
 inc/extensions/ext-task.php -text
@@ -166,6 +167,7 @@ inc/language/rallye_de.php -text
 inc/language/register_de.php -text
 inc/language/repair_de.php -text
 inc/language/rewrite_de.php -text
 inc/language/register_de.php -text
 inc/language/repair_de.php -text
 inc/language/rewrite_de.php -text
+inc/language/sponsor_de.php -text
 inc/language/support_de.php -text
 inc/language/task_de.php -text
 inc/language/theme_de.php -text
 inc/language/support_de.php -text
 inc/language/task_de.php -text
 inc/language/theme_de.php -text
@@ -193,6 +195,7 @@ inc/libs/rallye_functions.php -text
 inc/libs/register_functions.php -text
 inc/libs/rewrite_functions.php -text
 inc/libs/security_functions.php -text
 inc/libs/register_functions.php -text
 inc/libs/rewrite_functions.php -text
 inc/libs/security_functions.php -text
+inc/libs/sponsor_functions.php -text
 inc/libs/task_functions.php -text
 inc/libs/transfer_functions.php -text
 inc/libs/user_functions.php -text
 inc/libs/task_functions.php -text
 inc/libs/transfer_functions.php -text
 inc/libs/user_functions.php -text
@@ -224,6 +227,7 @@ inc/modules/admin/action-payouts.php -text
 inc/modules/admin/action-rallye.php -text
 inc/modules/admin/action-repair.php -text
 inc/modules/admin/action-setup.php -text
 inc/modules/admin/action-rallye.php -text
 inc/modules/admin/action-repair.php -text
 inc/modules/admin/action-setup.php -text
+inc/modules/admin/action-sponsor.php -text
 inc/modules/admin/action-stats.php -text
 inc/modules/admin/action-task.php -text
 inc/modules/admin/action-theme.php -text
 inc/modules/admin/action-stats.php -text
 inc/modules/admin/action-task.php -text
 inc/modules/admin/action-theme.php -text
@@ -237,6 +241,7 @@ inc/modules/admin/what-add_bank_package.php -text
 inc/modules/admin/what-add_guestnl_cat.php -text
 inc/modules/admin/what-add_points.php -text
 inc/modules/admin/what-add_rallye.php -text
 inc/modules/admin/what-add_guestnl_cat.php -text
 inc/modules/admin/what-add_points.php -text
 inc/modules/admin/what-add_rallye.php -text
+inc/modules/admin/what-add_sponsor.php -text
 inc/modules/admin/what-admin_add.php -text
 inc/modules/admin/what-adminedit.php -text
 inc/modules/admin/what-admins_add.php -text
 inc/modules/admin/what-admin_add.php -text
 inc/modules/admin/what-adminedit.php -text
 inc/modules/admin/what-admins_add.php -text
@@ -277,6 +282,7 @@ inc/modules/admin/what-config_register.php -text
 inc/modules/admin/what-config_register2.php -text
 inc/modules/admin/what-config_rewrite.php -text
 inc/modules/admin/what-config_secure.php -text
 inc/modules/admin/what-config_register2.php -text
 inc/modules/admin/what-config_rewrite.php -text
 inc/modules/admin/what-config_secure.php -text
+inc/modules/admin/what-config_sponsor.php -text
 inc/modules/admin/what-config_stats.php -text
 inc/modules/admin/what-config_title.php -text
 inc/modules/admin/what-config_top10.php -text
 inc/modules/admin/what-config_stats.php -text
 inc/modules/admin/what-config_title.php -text
 inc/modules/admin/what-config_top10.php -text
@@ -285,10 +291,12 @@ inc/modules/admin/what-config_user.php -text
 inc/modules/admin/what-config_wernis.php -text
 inc/modules/admin/what-del_email.php -text
 inc/modules/admin/what-del_holiday.php -text
 inc/modules/admin/what-config_wernis.php -text
 inc/modules/admin/what-del_email.php -text
 inc/modules/admin/what-del_holiday.php -text
+inc/modules/admin/what-del_sponsor.php -text
 inc/modules/admin/what-del_task.php -text
 inc/modules/admin/what-del_transfer.php -text
 inc/modules/admin/what-del_user.php -text
 inc/modules/admin/what-edit_emails.php -text
 inc/modules/admin/what-del_task.php -text
 inc/modules/admin/what-del_transfer.php -text
 inc/modules/admin/what-del_user.php -text
 inc/modules/admin/what-edit_emails.php -text
+inc/modules/admin/what-edit_sponsor.php -text
 inc/modules/admin/what-edit_user.php -text
 inc/modules/admin/what-email_archiv.php -text
 inc/modules/admin/what-email_details.php -text
 inc/modules/admin/what-edit_user.php -text
 inc/modules/admin/what-email_archiv.php -text
 inc/modules/admin/what-email_details.php -text
@@ -312,11 +320,15 @@ inc/modules/admin/what-list_norefs.php -text
 inc/modules/admin/what-list_payouts.php -text
 inc/modules/admin/what-list_rallyes.php -text
 inc/modules/admin/what-list_refs.php -text
 inc/modules/admin/what-list_payouts.php -text
 inc/modules/admin/what-list_rallyes.php -text
 inc/modules/admin/what-list_refs.php -text
+inc/modules/admin/what-list_sponsor.php -text
+inc/modules/admin/what-list_sponsor_pay.php -text
+inc/modules/admin/what-list_sponsor_pays.php -text
 inc/modules/admin/what-list_task.php -text
 inc/modules/admin/what-list_transfer.php -text
 inc/modules/admin/what-list_unconfirmed.php -text
 inc/modules/admin/what-list_user.php -text
 inc/modules/admin/what-list_wernis.php -text
 inc/modules/admin/what-list_task.php -text
 inc/modules/admin/what-list_transfer.php -text
 inc/modules/admin/what-list_unconfirmed.php -text
 inc/modules/admin/what-list_user.php -text
 inc/modules/admin/what-list_wernis.php -text
+inc/modules/admin/what-lock_sponsor.php -text
 inc/modules/admin/what-lock_user.php -text
 inc/modules/admin/what-logs.php -text
 inc/modules/admin/what-maintenance.php -text
 inc/modules/admin/what-lock_user.php -text
 inc/modules/admin/what-logs.php -text
 inc/modules/admin/what-maintenance.php -text
@@ -343,6 +355,7 @@ inc/modules/admin/what-theme_check.php -text
 inc/modules/admin/what-theme_edit.php -text
 inc/modules/admin/what-theme_import.php -text
 inc/modules/admin/what-unlock_emails.php -text
 inc/modules/admin/what-theme_edit.php -text
 inc/modules/admin/what-theme_import.php -text
 inc/modules/admin/what-unlock_emails.php -text
+inc/modules/admin/what-unlock_sponsor.php -text
 inc/modules/admin/what-updates.php -text
 inc/modules/admin/what-usage.php -text
 inc/modules/admin/what-user_contct.php -text
 inc/modules/admin/what-updates.php -text
 inc/modules/admin/what-usage.php -text
 inc/modules/admin/what-user_contct.php -text
@@ -356,6 +369,8 @@ inc/modules/guest/action-admin.php -text
 inc/modules/guest/action-main.php -text
 inc/modules/guest/action-members.php -text
 inc/modules/guest/action-online.php -text
 inc/modules/guest/action-main.php -text
 inc/modules/guest/action-members.php -text
 inc/modules/guest/action-online.php -text
+inc/modules/guest/action-sponsor.php -text
+inc/modules/guest/action-sponsors.php -text
 inc/modules/guest/action-themes.php -text
 inc/modules/guest/what- -text
 inc/modules/guest/what-active.php -text
 inc/modules/guest/action-themes.php -text
 inc/modules/guest/what- -text
 inc/modules/guest/what-active.php -text
@@ -371,6 +386,10 @@ inc/modules/guest/what-mediadata.php -text
 inc/modules/guest/what-my_weblog.php -text
 inc/modules/guest/what-rallyes.php -text
 inc/modules/guest/what-register.php -text
 inc/modules/guest/what-my_weblog.php -text
 inc/modules/guest/what-rallyes.php -text
 inc/modules/guest/what-register.php -text
+inc/modules/guest/what-sponsor_agb.php -text
+inc/modules/guest/what-sponsor_infos.php -text
+inc/modules/guest/what-sponsor_login.php -text
+inc/modules/guest/what-sponsor_reg.php -text
 inc/modules/guest/what-stats.php -text
 inc/modules/guest/what-top10.php -text
 inc/modules/guest/what-welcome.php -text
 inc/modules/guest/what-stats.php -text
 inc/modules/guest/what-top10.php -text
 inc/modules/guest/what-welcome.php -text
@@ -412,6 +431,7 @@ inc/modules/member/what-payout.php -text
 inc/modules/member/what-points.php -text
 inc/modules/member/what-rallyes.php -text
 inc/modules/member/what-reflinks.php -text
 inc/modules/member/what-points.php -text
 inc/modules/member/what-rallyes.php -text
 inc/modules/member/what-reflinks.php -text
+inc/modules/member/what-sponsor.php -text
 inc/modules/member/what-stats.php -text
 inc/modules/member/what-support.php -text
 inc/modules/member/what-themes.php -text
 inc/modules/member/what-stats.php -text
 inc/modules/member/what-support.php -text
 inc/modules/member/what-themes.php -text
@@ -420,6 +440,7 @@ inc/modules/member/what-unconfirmed.php -text
 inc/modules/member/what-welcome.php -text
 inc/modules/member/what-wernis.php -text
 inc/modules/order.php -text
 inc/modules/member/what-welcome.php -text
 inc/modules/member/what-wernis.php -text
 inc/modules/order.php -text
+inc/modules/sponsor.php -text
 inc/modules/welcome.php -text
 inc/monthly/.htaccess -text
 inc/monthly/monthly_ -text
 inc/modules/welcome.php -text
 inc/monthly/.htaccess -text
 inc/monthly/monthly_ -text
@@ -516,6 +537,8 @@ install/tables.sql -text
 /ref.php -text
 /robots.txt -text
 /show_bonus.php -text
 /ref.php -text
 /robots.txt -text
 /show_bonus.php -text
+/sponsor_confirm.php -text
+/sponsor_ref.php -text
 templates/.htaccess -text
 templates/de/.htaccess -text
 templates/de/emails/add-points.tpl -text
 templates/.htaccess -text
 templates/de/.htaccess -text
 templates/de/emails/add-points.tpl -text
@@ -541,6 +564,12 @@ templates/de/emails/admin/admin_rallye_expired_no.tpl -text
 templates/de/emails/admin/admin_rallye_no_notify.tpl -text
 templates/de/emails/admin/admin_rallye_notify.tpl -text
 templates/de/emails/admin/admin_rallye_purged.tpl -text
 templates/de/emails/admin/admin_rallye_no_notify.tpl -text
 templates/de/emails/admin/admin_rallye_notify.tpl -text
 templates/de/emails/admin/admin_rallye_purged.tpl -text
+templates/de/emails/admin/admin_sponsor_change_data.tpl -text
+templates/de/emails/admin/admin_sponsor_change_email.tpl -text
+templates/de/emails/admin/admin_sponsor_edit.tpl -text
+templates/de/emails/admin/admin_sponsor_pending.tpl -text
+templates/de/emails/admin/admin_sponsor_reg.tpl -text
+templates/de/emails/admin/admin_sponsor_settings.tpl -text
 templates/de/emails/admin/admin_support-order.tpl -text
 templates/de/emails/admin/admin_support-ordr.tpl -text
 templates/de/emails/admin/admin_support-reflink.tpl -text
 templates/de/emails/admin/admin_support-order.tpl -text
 templates/de/emails/admin/admin_support-ordr.tpl -text
 templates/de/emails/admin/admin_support-reflink.tpl -text
@@ -569,11 +598,13 @@ templates/de/emails/bonus/bonus_en_notify_body.tpl -text
 templates/de/emails/confirm-member.tpl -text
 templates/de/emails/confirm-referral.tpl -text
 templates/de/emails/del-user.tpl -text
 templates/de/emails/confirm-member.tpl -text
 templates/de/emails/confirm-referral.tpl -text
 templates/de/emails/del-user.tpl -text
+templates/de/emails/del_sponsor.tpl -text
 templates/de/emails/done-admin.tpl -text
 templates/de/emails/done-member.tpl -text
 templates/de/emails/guest/guest_request_confirm.tpl -text
 templates/de/emails/header.tpl -text
 templates/de/emails/lock-user.tpl -text
 templates/de/emails/done-admin.tpl -text
 templates/de/emails/done-member.tpl -text
 templates/de/emails/guest/guest_request_confirm.tpl -text
 templates/de/emails/header.tpl -text
 templates/de/emails/lock-user.tpl -text
+templates/de/emails/lock_sponsor.tpl -text
 templates/de/emails/member/member_autopurge_delete.tpl -text
 templates/de/emails/member/member_autopurge_inactive.tpl -text
 templates/de/emails/member/member_autopurge_points.tpl -text
 templates/de/emails/member/member_autopurge_delete.tpl -text
 templates/de/emails/member/member_autopurge_inactive.tpl -text
 templates/de/emails/member/member_autopurge_points.tpl -text
@@ -623,6 +654,24 @@ templates/de/emails/order-reject.tpl -text
 templates/de/emails/profile-updte.tpl -text
 templates/de/emails/register-admin.tpl -text
 templates/de/emails/register-member.tpl -text
 templates/de/emails/profile-updte.tpl -text
 templates/de/emails/register-admin.tpl -text
 templates/de/emails/register-member.tpl -text
+templates/de/emails/sponsor/sponsor_activate.tpl -text
+templates/de/emails/sponsor/sponsor_add_points.tpl -text
+templates/de/emails/sponsor/sponsor_change_data.tpl -text
+templates/de/emails/sponsor/sponsor_change_email.tpl -text
+templates/de/emails/sponsor/sponsor_confirm.tpl -text
+templates/de/emails/sponsor/sponsor_email.tpl -text
+templates/de/emails/sponsor/sponsor_lost.tpl -text
+templates/de/emails/sponsor/sponsor_pending.tpl -text
+templates/de/emails/sponsor/sponsor_ref_notify.tpl -text
+templates/de/emails/sponsor/sponsor_settings.tpl -text
+templates/de/emails/sponsor/sponsor_sub_points.tpl -text
+templates/de/emails/sponsor/sponsor_unlock.tpl -text
+templates/de/emails/sponsor/sponsor_unlocked.tpl -text
+templates/de/emails/sponsor_add_points.tpl -text
+templates/de/emails/sponsor_confirm.tpl -text
+templates/de/emails/sponsor_pending.tpl -text
+templates/de/emails/sponsor_sub_points.tpl -text
+templates/de/emails/sponsor_unlocked.tpl -text
 templates/de/emails/sub-points.tpl -text
 templates/de/emails/unlock-user.tpl -text
 templates/de/html/.htaccess -text
 templates/de/emails/sub-points.tpl -text
 templates/de/emails/unlock-user.tpl -text
 templates/de/html/.htaccess -text
@@ -638,6 +687,9 @@ templates/de/html/admin/admin_add_points_all.tpl -text
 templates/de/html/admin/admin_add_rallye.tpl -text
 templates/de/html/admin/admin_add_rallye_prices.tpl -text
 templates/de/html/admin/admin_add_reflvl.tpl -text
 templates/de/html/admin/admin_add_rallye.tpl -text
 templates/de/html/admin/admin_add_rallye_prices.tpl -text
 templates/de/html/admin/admin_add_reflvl.tpl -text
+templates/de/html/admin/admin_add_sponsor.tpl -text
+templates/de/html/admin/admin_add_sponsor_already.tpl -text
+templates/de/html/admin/admin_add_sponsor_paytype.tpl -text
 templates/de/html/admin/admin_admin_add.tpl -text
 templates/de/html/admin/admin_admins_add.tpl -text
 templates/de/html/admin/admin_admins_add_acl.tpl -text
 templates/de/html/admin/admin_admin_add.tpl -text
 templates/de/html/admin/admin_admins_add.tpl -text
 templates/de/html/admin/admin_admins_add_acl.tpl -text
@@ -716,6 +768,7 @@ templates/de/html/admin/admin_config_register2.tpl -text
 templates/de/html/admin/admin_config_rewrite.tpl -text
 templates/de/html/admin/admin_config_rewrite_rows.tpl -text
 templates/de/html/admin/admin_config_secure.tpl -text
 templates/de/html/admin/admin_config_rewrite.tpl -text
 templates/de/html/admin/admin_config_rewrite_rows.tpl -text
 templates/de/html/admin/admin_config_secure.tpl -text
+templates/de/html/admin/admin_config_sponsor.tpl -text
 templates/de/html/admin/admin_config_stats.tpl -text
 templates/de/html/admin/admin_config_sub_points.tpl -text
 templates/de/html/admin/admin_config_title.tpl -text
 templates/de/html/admin/admin_config_stats.tpl -text
 templates/de/html/admin/admin_config_sub_points.tpl -text
 templates/de/html/admin/admin_config_title.tpl -text
@@ -736,6 +789,7 @@ templates/de/html/admin/admin_del_email_bonus.tpl -text
 templates/de/html/admin/admin_del_email_normal.tpl -text
 templates/de/html/admin/admin_del_payments.tpl -text
 templates/de/html/admin/admin_del_payments_row.tpl -text
 templates/de/html/admin/admin_del_email_normal.tpl -text
 templates/de/html/admin/admin_del_payments.tpl -text
 templates/de/html/admin/admin_del_payments_row.tpl -text
+templates/de/html/admin/admin_del_sponsor.tpl -text
 templates/de/html/admin/admin_del_transfer_row.tpl -text
 templates/de/html/admin/admin_del_user.tpl -text
 templates/de/html/admin/admin_edit_admins.tpl -text
 templates/de/html/admin/admin_del_transfer_row.tpl -text
 templates/de/html/admin/admin_del_user.tpl -text
 templates/de/html/admin/admin_edit_admins.tpl -text
@@ -749,6 +803,9 @@ templates/de/html/admin/admin_edit_payments.tpl -text
 templates/de/html/admin/admin_edit_payments_row.tpl -text
 templates/de/html/admin/admin_edit_rallyes.tpl -text
 templates/de/html/admin/admin_edit_rallyes_row.tpl -text
 templates/de/html/admin/admin_edit_payments_row.tpl -text
 templates/de/html/admin/admin_edit_rallyes.tpl -text
 templates/de/html/admin/admin_edit_rallyes_row.tpl -text
+templates/de/html/admin/admin_edit_sponsor_add_points.tpl -text
+templates/de/html/admin/admin_edit_sponsor_edit.tpl -text
+templates/de/html/admin/admin_edit_sponsor_sub_points.tpl -text
 templates/de/html/admin/admin_edit_user.tpl -text
 templates/de/html/admin/admin_email_archiv.tpl -text
 templates/de/html/admin/admin_email_archiv_row.tpl -text
 templates/de/html/admin/admin_edit_user.tpl -text
 templates/de/html/admin/admin_email_archiv.tpl -text
 templates/de/html/admin/admin_email_archiv_row.tpl -text
@@ -819,6 +876,16 @@ templates/de/html/admin/admin_list_rallyes_row.tpl -text
 templates/de/html/admin/admin_list_rallyes_row2.tpl -text
 templates/de/html/admin/admin_list_refs.tpl -text
 templates/de/html/admin/admin_list_refs_row.tpl -text
 templates/de/html/admin/admin_list_rallyes_row2.tpl -text
 templates/de/html/admin/admin_list_refs.tpl -text
 templates/de/html/admin/admin_list_refs_row.tpl -text
+templates/de/html/admin/admin_list_sponsor.tpl -text
+templates/de/html/admin/admin_list_sponsor_details.tpl -text
+templates/de/html/admin/admin_list_sponsor_pay.tpl -text
+templates/de/html/admin/admin_list_sponsor_pay_404.tpl -text
+templates/de/html/admin/admin_list_sponsor_pay_del.tpl -text
+templates/de/html/admin/admin_list_sponsor_pay_del_row.tpl -text
+templates/de/html/admin/admin_list_sponsor_pay_edit.tpl -text
+templates/de/html/admin/admin_list_sponsor_pay_edit_row.tpl -text
+templates/de/html/admin/admin_list_sponsor_pay_row.tpl -text
+templates/de/html/admin/admin_list_sponsor_row.tpl -text
 templates/de/html/admin/admin_list_task_rows.tpl -text
 templates/de/html/admin/admin_list_transfer.tpl -text
 templates/de/html/admin/admin_list_transfer_row.tpl -text
 templates/de/html/admin/admin_list_task_rows.tpl -text
 templates/de/html/admin/admin_list_transfer.tpl -text
 templates/de/html/admin/admin_list_transfer_row.tpl -text
@@ -833,6 +900,7 @@ templates/de/html/admin/admin_list_user_sort.tpl -text
 templates/de/html/admin/admin_list_user_sort_form.tpl -text
 templates/de/html/admin/admin_list_wernis_main.tpl -text
 templates/de/html/admin/admin_list_wernis_row.tpl -text
 templates/de/html/admin/admin_list_user_sort_form.tpl -text
 templates/de/html/admin/admin_list_wernis_main.tpl -text
 templates/de/html/admin/admin_list_wernis_row.tpl -text
+templates/de/html/admin/admin_lock_sponsor.tpl -text
 templates/de/html/admin/admin_lock_user.tpl -text
 templates/de/html/admin/admin_login_form.tpl -text
 templates/de/html/admin/admin_login_msg.tpl -text
 templates/de/html/admin/admin_lock_user.tpl -text
 templates/de/html/admin/admin_login_form.tpl -text
 templates/de/html/admin/admin_login_msg.tpl -text
@@ -916,6 +984,7 @@ templates/de/html/admin/admin_send_bonus_form.tpl -text
 templates/de/html/admin/admin_send_bonus_select.tpl -text
 templates/de/html/admin/admin_settings_saved.tpl -text
 templates/de/html/admin/admin_setup_stats.tpl -text
 templates/de/html/admin/admin_send_bonus_select.tpl -text
 templates/de/html/admin/admin_settings_saved.tpl -text
 templates/de/html/admin/admin_setup_stats.tpl -text
+templates/de/html/admin/admin_sponsor_paytypes.tpl -text
 templates/de/html/admin/admin_sub_points.tpl -text
 templates/de/html/admin/admin_sub_points_all.tpl -text
 templates/de/html/admin/admin_task_holiday.tpl -text
 templates/de/html/admin/admin_sub_points.tpl -text
 templates/de/html/admin/admin_sub_points_all.tpl -text
 templates/de/html/admin/admin_task_holiday.tpl -text
@@ -929,6 +998,8 @@ templates/de/html/admin/admin_unlock_emails.tpl -text
 templates/de/html/admin/admin_unlock_emails_redir.tpl -text
 templates/de/html/admin/admin_unlock_emails_redir_row.tpl -text
 templates/de/html/admin/admin_unlock_emails_row.tpl -text
 templates/de/html/admin/admin_unlock_emails_redir.tpl -text
 templates/de/html/admin/admin_unlock_emails_redir_row.tpl -text
 templates/de/html/admin/admin_unlock_emails_row.tpl -text
+templates/de/html/admin/admin_unlock_sponsor.tpl -text
+templates/de/html/admin/admin_unlock_sponsor_row.tpl -text
 templates/de/html/admin/admin_update_download.tpl -text
 templates/de/html/admin/admin_user_details.tpl -text
 templates/de/html/admin/admin_welcome.tpl -text
 templates/de/html/admin/admin_update_download.tpl -text
 templates/de/html/admin/admin_user_details.tpl -text
 templates/de/html/admin/admin_welcome.tpl -text
@@ -985,6 +1056,7 @@ templates/de/html/ext/ext_rallye.tpl -text
 templates/de/html/ext/ext_register.tpl -text
 templates/de/html/ext/ext_repair.tpl -text
 templates/de/html/ext/ext_rewrite.tpl -text
 templates/de/html/ext/ext_register.tpl -text
 templates/de/html/ext/ext_repair.tpl -text
 templates/de/html/ext/ext_rewrite.tpl -text
+templates/de/html/ext/ext_sponsor.tpl -text
 templates/de/html/ext/ext_sql_patches.tpl -text
 templates/de/html/ext/ext_support.tpl -text
 templates/de/html/ext/ext_task.tpl -text
 templates/de/html/ext/ext_sql_patches.tpl -text
 templates/de/html/ext/ext_support.tpl -text
 templates/de/html/ext/ext_task.tpl -text
@@ -1032,6 +1104,13 @@ templates/de/html/guest/guest_receive_table.tpl -text
 templates/de/html/guest/guest_register.tpl -text
 templates/de/html/guest/guest_register_refid.tpl -text
 templates/de/html/guest/guest_register_refid_hide.tpl -text
 templates/de/html/guest/guest_register.tpl -text
 templates/de/html/guest/guest_register_refid.tpl -text
 templates/de/html/guest/guest_register_refid_hide.tpl -text
+templates/de/html/guest/guest_sponsor_act_row.tpl -text
+templates/de/html/guest/guest_sponsor_activate.tpl -text
+templates/de/html/guest/guest_sponsor_infos.tpl -text
+templates/de/html/guest/guest_sponsor_login.tpl -text
+templates/de/html/guest/guest_sponsor_lost.tpl -text
+templates/de/html/guest/guest_sponsor_pay_row.tpl -text
+templates/de/html/guest/guest_sponsor_reg.tpl -text
 templates/de/html/guest/guest_stats_cats_row.tpl -text
 templates/de/html/guest/guest_stats_member.tpl -text
 templates/de/html/guest/guest_stats_month_row.tpl -text
 templates/de/html/guest/guest_stats_cats_row.tpl -text
 templates/de/html/guest/guest_stats_member.tpl -text
 templates/de/html/guest/guest_stats_month_row.tpl -text
@@ -1177,6 +1256,15 @@ templates/de/html/show_bonus_header.tpl -text
 templates/de/html/show_bonus_msg.tpl -text
 templates/de/html/show_bonus_yr.tpl -text
 templates/de/html/show_timings.tpl -text
 templates/de/html/show_bonus_msg.tpl -text
 templates/de/html/show_bonus_yr.tpl -text
 templates/de/html/show_timings.tpl -text
+templates/de/html/sponsor/sponsor_account_form.tpl -text
+templates/de/html/sponsor/sponsor_action.tpl -text
+templates/de/html/sponsor/sponsor_fillup_form.tpl -text
+templates/de/html/sponsor/sponsor_footer.tpl -text
+templates/de/html/sponsor/sponsor_header.tpl -text
+templates/de/html/sponsor/sponsor_main.tpl -text
+templates/de/html/sponsor/sponsor_settings_form.tpl -text
+templates/de/html/sponsor/sponsor_welcome.tpl -text
+templates/de/html/sponsor/sponsor_what.tpl -text
 templates/de/html/theme_one.tpl -text
 templates/de/html/theme_select_box.tpl -text
 templates/de/html/theme_select_form.tpl -text
 templates/de/html/theme_one.tpl -text
 templates/de/html/theme_select_box.tpl -text
 templates/de/html/theme_select_form.tpl -text
@@ -1193,6 +1281,7 @@ theme/business/css/doubler.css -text
 theme/business/css/general.css -text
 theme/business/css/install.css -text
 theme/business/css/register.css -text
 theme/business/css/general.css -text
 theme/business/css/install.css -text
 theme/business/css/register.css -text
+theme/business/css/sponsor.css -text
 theme/business/css/top10.css -text
 theme/business/css/transfer.css -text
 theme/business/images/code_bg.jpg -text
 theme/business/css/top10.css -text
 theme/business/css/transfer.css -text
 theme/business/images/code_bg.jpg -text
@@ -1205,6 +1294,7 @@ theme/default/css/doubler.css -text
 theme/default/css/general.css -text
 theme/default/css/install.css -text
 theme/default/css/register.css -text
 theme/default/css/general.css -text
 theme/default/css/install.css -text
 theme/default/css/register.css -text
+theme/default/css/sponsor.css -text
 theme/default/css/top10.css -text
 theme/default/css/transfer.css -text
 theme/default/images/code_bg.jpg -text
 theme/default/css/top10.css -text
 theme/default/css/transfer.css -text
 theme/default/images/code_bg.jpg -text
diff --git a/inc/extensions/ext-sponsor.php b/inc/extensions/ext-sponsor.php
new file mode 100644 (file)
index 0000000..37d3c07
--- /dev/null
@@ -0,0 +1,442 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 03/22/2004 *
+ * ===============                              Last change: 06/28/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : ext-sponsor.php                                  *
+ * -------------------------------------------------------------------- *
+ * Short description : Sponsor area                                     *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenbereich                                 *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Version number
+$EXT_VERSION = "0.0";
+
+// Auto-set extension version
+if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
+
+// Version history array (add more with , "0.1" and so on)
+$EXT_VER_HISTORY = array("0.0");
+
+switch ($EXT_LOAD_MODE)
+{
+case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
+       //
+       // SQL commands to run
+       //
+       if (EXT_IS_ACTIVE("repair"))
+       {
+               //
+               // Sponsor data
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_data";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_data (
+id bigint(20) not null auto_increment,
+company varchar(255) not null default '',
+position varchar(255) not null default '',
+tax_ident varchar(255) not null default '',
+salut enum('M', 'F', 'C') not null default 'M',
+surname varchar(255) not null default '',
+family varchar(255) not null default '',
+street_nr1 varchar(255) not null default '',
+street_nr2 varchar(255) not null default '',
+zip varchar(6) not null default '',
+city varchar(255) not null default '',
+country char(2) not null default 'DE',
+phone varchar(255) not null default '',
+fax varchar(255) not null default '',
+cell varchar(255) not null default '',
+email varchar(255) not null default '',
+url varchar(255) not null default '',
+password varchar(255) not null default '',
+remote_addr varchar(15) not null default '0.0.0.0',
+sponsor_created varchar(10) not null default '0',
+last_online varchar(10) not null default '0',
+last_change varchar(10) not null default '0',
+status enum('UNCONFIRMED', 'PENDING', 'CONFIRMED', 'LOCKED') not null default 'UNCONFIRMED',
+receive_warnings enum('Y', 'N') not null default 'Y',
+warning_interval bigint(20) not null default '".(ONE_DAY*7)."',
+points_amount double(20,5) not null default '0.00000',
+points_used double(20,5) not null default '0.00000',
+refid bigint(20) not null default '0',
+ref_count bigint(20) not null default '0',
+hash varchar(32) not null default '',
+last_pay float(7,2) not null default '0.00',
+last_curr varchar(255) not null default '&euro;',
+KEY(refid),
+KEY(email),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Sponsor orders
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_orders";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_orders (
+id bigint(20) not null auto_increment,
+sponsorid bigint(20) not null default '0',
+aid bigint(20) not null default '0',
+regid bigint(20) not null default '0',
+payid bigint(20) not null default '0',
+pay_count bigint(20) not null default '0',
+pay_status enum('PENDING', 'PAYED', 'UNPAYED', 'DELETED') not null default 'PENDING',
+pay_ordered varchar(10) not null default '0',
+pay_done varchar(10) not null default '0',
+KEY (payid),
+KEY (regid),
+KEY (aid),
+KEY (sponsorid),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Pay-types
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_paytypes";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_paytypes (
+id bigint(20) not null auto_increment,
+pay_name varchar(255) not null default '',
+pay_rate double(20,5) not null default '0.00000',
+pay_min_count bigint(20) not null default '1',
+pay_currency varchar(255) not null default '&euro;',
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Points-to-action converting
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_action_convert";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_action_convert (
+id bigint(20) not null auto_increment,
+ext_name varchar(255) not null default 'sponsor',
+conv_rate bigint(20) not null default '0',
+conv_name varchar(255) not null default 'Mails',
+KEY (ext_name),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Sponsor menu system (default)
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_menu";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_menu (
+id bigint(20) not null auto_increment,
+action varchar(255) not null default '',
+what  varchar(255) not null default '',
+title varchar(255) not null default '',
+active enum('Y', 'N') not null default 'N',
+sort bigint(20) not null default '0',
+KEY(what),
+KEY(action),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Registry for performable actions by your sponsors
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_registry";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_registry (
+id bigint(20) not null auto_increment,
+aid bigint(20) not null default '0',
+ext_name varchar(255) not null default 'sponsor',
+is_active enum('Y', 'N') not null default 'N',
+stamp_added varchar(10) not null default '0',
+KEY(ext_name),
+KEY(aid),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // URLs from the sponsors
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_urls";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_urls (
+id bigint(20) not null auto_increment,
+sponsorid bigint(20) not null default '0',
+url varchar(255) not null default 'http://',
+title varchar(255) not null default '',
+clicks bigint(20) not null default '0',
+status enum('PENDING', 'ACTIVE', 'LOCKED') not null default 'PENDING',
+KEY(sponsorid),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Banners of any size from the sponsors
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_banner";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_banner (
+id bigint(20) not null auto_increment,
+sponsorid bigint(20) not null default '0',
+url varchar(255) not null default 'http://',
+alternate varchar(255) not null default '',
+width int(7) not null default '468',
+height int(7) not null default '60',
+views bigint(20) not null default '0',
+status enum('PENDING', 'ACTIVE', 'LOCKED') not null default 'PENDING',
+KEY(sponsorid),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Campaigns
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_campaigns";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_campaigns (
+id bigint(20) not null auto_increment,
+sponsorid bigint(20) not null default '0',
+aid bigint(20) not null default '0',
+campaign_name varchar(255) not null default '',
+campaign_start varchar(10) not null default '0',
+campaign_end varchar(10) not null default '0',
+campaign_amount double(20,5) not null default '0.00000',
+campaign_expired enum('Y', 'N') not null default 'N',
+campaign_locked enum('Y', 'N') not null default 'Y',
+campaign_ended varchar(10) not null default '0',
+locked_reason tinyblob,
+locked_timestamp varchar(10) not null default '0',
+status enum('PENDING', 'ACTIVE', 'LOCKED') not null default 'PENDING',
+KEY(aid),
+KEY(sponsorid),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Campaigns + URLs + Banner
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_campaign_assigns";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_campaign_assigns (
+id bigint(20) not null auto_increment,
+campaignid bigint(20) not null default '0',
+urlid bigint(20) not null default '0',
+bannerid bigint(20) not null default '0',
+clicks bigint(20) not null default '0',
+views bigint(20) not null default '0',
+KEY(bannerid),
+KEY(urlid),
+KEY(campaignid),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Allowed data to display (administrative)
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_admin_data";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_admin_data (
+id bigint(20) not null auto_increment,
+data_row varchar(255) not null default '',
+display enum('Y', 'N') not null default 'N',
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Allowed data to display (sponsor-side)
+               //
+               $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_display_data";
+               $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_display_data (
+id bigint(20) not null auto_increment,
+sponsorid bigint(20) not null default '0',
+data_row varchar(255) not null default '',
+display enum('Y', 'N') not null default 'N',
+KEY(sponsorid),
+PRIMARY KEY(id)
+)TYPE=MyISAM";
+               //
+               // Default allowed data to display
+               //
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('id', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('company', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('position', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('tax_ident', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('salut', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('surname', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('family', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('street_nr1', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('street_nr2', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('zip', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('city', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('country', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('phone', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('fax', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('email', 'Y')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('url', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('password', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('remote_addr', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('sponsor_created', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('last_online', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('last_change', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('status', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('receive_warnings', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('warning_interval', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('points_amount', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('points_used', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('refid', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('ref_count', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('hash', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('last_pay', 'N')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_admin_data (data_row, display) VALUES ('last_curr', 'N')";
+               //
+               // Add default entries
+               //
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_registry (ext_name, is_active, aid, stamp_added) VALUES ('sponsor', 'N', '".GET_ADMIN_ID($_COOKIE['admin_login'])."', '".time()."')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_action_convert (ext_name, conv_rate, conv_name) VALUES('sponsor', '10', 'Mails')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_paytypes (pay_name, pay_min_count, pay_rate, pay_currency) VALUES ('Standart-Paket', 5, 1000.00000, '&euro;')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_paytypes (pay_name, pay_min_count, pay_rate, pay_currency) VALUES ('Spar-Paket', 1, 200.00000, '&euro;')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_paytypes (pay_name, pay_min_count, pay_rate, pay_currency) VALUES ('Power-Paket', 10, 2000.00000, '&euro;')";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_paytypes (pay_name, pay_min_count, pay_rate, pay_currency) VALUES ('Sponsor-Paket', 20, 4000.00000, '&euro;')";
+               //
+               // Admin menu
+               //
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', '', 'Sponsorenbereich', 'Den Sponsorenbereich verwalten. Hier k&ouml;nnen Sie auch Sonderaktionen seperat deakvieren oder wieder aktivieren, Sponsorenaccounts verwalten usw.', 7)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'add_sponsor', 'Neuer Sponsor', 'Neues Sponsorenaccount hinzuf&uuml;gen.', 1)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'unlock_sponsor', 'Sponsor freischalten', 'Sponsorenaccounts freigeben / sperren.', 2)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor', 'Sponsoren auflisten', 'Listet alle verf&uuml;gbaren Sponsorenaccounts auf.', 3)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'edit_sponsor', 'Sponsor &auml;ndern', 'Sponsorenaccount &auml;ndern (Grundaten, nicht Freigabe!).', 4)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'lock_sponsor', 'Sponsor ent-/sperren', 'Sponsorenaccount sperren und entsperren.', 5)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'del_sponsor', 'Sponsor l&ouml;schen', 'Sponsorenaccount l&ouml;schen.', 6)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'allow_sponsor_data', 'Datenverwaltung', 'Stellen Sie hier ein, welche Daten der Sponsor im Mitgliedsbereich &uuml;ber sicht anzeigen darf und welche nicht.', 7)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_pays', 'Bestellungen...', 'Bestellungen der Sponsoren auflisten / bearbeiten.', 8)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_menu', 'Sponsorenmen&uuml;', 'Das Sponsorenmen&uuml; kann hier ge&auml;ndert werden.', 9)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_campaigns', 'Kampagnen...', 'Verwaltung aller von Ihren Sponsoren eingerichteten Kampagnen.', 10)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_urls', 'URL-Verwaltung', 'Verwaltung (freischalten, sperren, l&ouml;schen, testen, bearbeiten usw.) von gebuchten URLs.', 11)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_banner', 'Banner-Verwaltung', 'Verwaltung (freischalten, sperren, l&ouml;schen, testen, bearbeiten usw.) von gebuchten Bannern.', 12)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_reg', 'Sponsor-Aktionen', 'Alle Sponsor-Aktionen auflisten und verwalten.', 13)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_pay', 'Buchungspakete', 'Die Sponsoren k&ouml;nnen sich {--POINTS--}-Pakete kaufen. Hier k&ouml;nnen Sie diese verwalten.', 14)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'list_sponsor_conv', '{--POINTS--} umwandeln...', 'Mit den vom Sponsor gekauften {--POINTS--} kann er Aktionen buchen. Hier stellen Sie die Umrechnungsrate von {--POINTS--} nach Sponsoraktionen um. Beispiel: 1 {--POINTS--} = 10 Mails.', 15)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('sponsor', 'config_sponsor', 'Einstellungen', 'Allgemeine Einstellungen am Sponsoring-System.', 16)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('repair', 'repr_sponsor', 'Sponsormen&uuml;', 'Gewichtung des Sponsormen&uuml;s reparieren.', 5)";
+               //
+               // Menu system (still admin menu)
+               //
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('menu', 'sponsor_medit', 'Sponsor-Men&uuml; editieren', 'Hier k&ouml;nnen Sie das Sponsorenmen&uuml; ver&auml;ndern: Positionen ver&auml;ndern, Men&uuml;titel &auml;ndern usw.', 7)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES ('menu', 'sponsor_madd', 'Sponsor-Men&uuml; hinzuf&uuml;gen', 'Hier k&ouml;nnen Sie einen neuen Men&uuml;punkt hinzuf&uuml;gen (falls Sie z.B. eigene Sponsoraktionen entwickelt haben oder welche versehendlich gel&ouml;scht haben.', 8)";
+               //
+               // Guest menu
+               //
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort) VALUES ('sponsor', '', 'Sponsoren', 2)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort) VALUES ('sponsor', 'sponsor_reg', 'Anmeldung', 1)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort) VALUES ('sponsor', 'sponsor_login', 'Einloggen', 2)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort) VALUES ('sponsor', 'sponsor_infos', 'Infos/Preise', 3)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort) VALUES ('sponsor', 'sponsor_agb', 'AGBs', 4)";
+               //
+               // Member menu
+               //
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu (action, what, title, sort) VALUES ('main', 'sponsor', 'Unsere Sponsoren', 8)";
+               //
+               // Add default menus to sponsor menu
+               //
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', '', 'Hauptauswahl', 'N', 1)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'welcome', 'Willkommen', 'N', 1)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'account', 'Ihr Account', 'N', 2)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'campaigns', 'Kampagnen', 'N', 3)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'urls', 'URL-Verwaltung', 'N', 4)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'banner', 'Banner-Verwaltung', 'N', 5)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'settings', 'Einstellungen', 'N', 6)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'fillup', 'Konto auff&uuml;llen', 'N', 7)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'stats', 'Statistiken', 'N', 8)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'inquiry', 'Kontaktanfrage', 'N', 9)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('main', 'refid', 'Referral-Link', 'N', 10)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('actions', '', 'Sponsorenaktionen', 'N', 2)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('actions', 'mail', 'Sponsor-Mail', 'N', 1)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('actions', 'banner', 'Banner buchen', 'N', 2)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('actions', 'text', 'Textlink buchen', 'N', 3)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('logout', '', 'Ausloggen', 'N', 3)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('logout', 'logout', 'Ausloggen', 'N', 1)";
+               $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_sponsor_menu (action, what, title, active, sort) VALUES('logout', 'guest', 'Zum Gastbereich', 'N', 2)";
+               //
+               // General configuration stuff
+               //
+               $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD sponsor_ref_points double(20,5) not null default '100.00000'";
+               $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD sponsor_min_points double(20,5) not null default '1000.00000'";
+
+               // Load CSS file
+               $EXT_CSS = "Y";
+       }
+        else
+       {
+               // Sponsor extension depends now on repair extension!
+               $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_extensions WHERE ext_name='sponsor' LIMIT 1";
+       }
+       break;
+
+case "remove": // Do stuff when removing extension
+       // SQL commands to run
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_data";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_orders";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_action_convert";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_paytypes";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_menu";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_registry";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_urls";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_banner";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_campaigns";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_campaign_assigns";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_admin_data";
+       $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_display_data";
+       $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE action='sponsor' OR what IN('repr_sponsor', 'sponsor_medit', 'sponsor_madd') LIMIT 20";
+       $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_guest_menu WHERE action='sponsor' LIMIT 5";
+       $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_member_menu WHERE what='sponsor' LIMIT 1";
+       break;
+
+case "activate": // Do stuff when admin activates this extension
+       // SQL commands to run
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_guest_menu SET visible='Y', locked='N' WHERE action='sponsor' LIMIT 4";
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET visible='Y', locked='N' WHERE what='sponsor' LIMIT 1";
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_sponsor_menu SET active='Y' WHERE active='N'";
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_sponsor_registry SET is_active='Y' WHERE is_active='N'";
+       break;
+
+case "deactivate": // Do stuff when admin deactivates this extension
+       // SQL commands to run
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_guest_menu SET visible='N', locked='Y' WHERE action='sponsor' LIMIT 4";
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET visible='N', locked='Y' WHERE what='sponsor' LIMIT 1";
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_sponsor_menu SET active='N' WHERE active='Y'";
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_sponsor_registry SET is_active='N' WHERE is_active='Y'";
+       break;
+
+case "update": // Update an extension
+       switch ($EXT_VER)
+       {
+       case "0.0.1": // SQL queries for v0.0.1
+               $SQLs[] = "";
+
+               // Update notes (these will be set as task text!)
+               $UPDATE_NOTES = "";
+               break;
+       }
+       break;
+
+default: // Do stuff when extension is loaded
+       $result_user = SQL_QUERY("SELECT * FROM "._MYSQL_PREFIX."_config WHERE config='0' LIMIT 1", __FILE__, __LINE__);
+       $DUMMY = SQL_FETCHARRAY($result_user);
+       $CONFIG['sponsor_min_points'] = $DUMMY['sponsor_min_points']; // Minimum points to order
+       $CONFIG['sponsor_ref_points'] = $DUMMY['sponsor_ref_points']; // Additional points when a sponsor brings you another sponsor
+       unset($DUMMY);
+       break;
+}
+
+// Language file prefix
+$EXT_LANG_PREFIX = "sponsor";
+
+// Extension is always active?
+$EXT_ALWAYS_ACTIVE = "N";
+
+//
+?>
diff --git a/inc/language/sponsor_de.php b/inc/language/sponsor_de.php
new file mode 100644 (file)
index 0000000..ae6ed7f
--- /dev/null
@@ -0,0 +1,326 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/02/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : sponsor_de.php                                   *
+ * -------------------------------------------------------------------- *
+ * Short description : German langugage support                         *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Deutsche Sprachunterstuetzung                    *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (basename($_SERVER['PHP_SELF']) == basename(__FILE__))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Language definitions
+define('SPONSOR_NOT_INITIALIZED', "Sponsorenbereich noch nicht eingerichtet!");
+define('ADMIN_CONFIG_SPONSOR_TITLE', "Allgemeine Einstellungen");
+define('ADMIN_SPONSOR_MIN_POINTS', "Minimum buchbare ".POINTS."");
+define('ADMIN_SPONSOR_REF_POINTS', "Einmalige Referral-Gutschrift bei Vermittlung eines neuen Sponsors");
+define('ADMIN_SPONSOR_ENTER_COMPANY_DATA', "Daten zur anzumeldenen Unternehmen eingeben");
+define('SPONSOR_ENTER_COMPANY_TITLE', "Firmenname");
+define('SPONSOR_ENTER_COMPANY_POSITION', "Position");
+define('SPONSOR_ENTER_TAX_IDENT', "Ust-Ident-Nr.");
+define('ADMIN_SPONSOR_ENTER_PERSONA_DATA', "Daten zur Person (oder bei Unternehmen Kontaktperson)");
+define('ADMIN_SPONSOR_ENTER_CONTACT_DATA', "Kontaktdaten des Sponsors");
+define('SPONSOR_ENTER_STREET_NR1', "Stra&szlig;e mit Hausnummer");
+define('SPONSOR_ENTER_STREET_NR2', "(noch Stra&szlig;e; Zeile 2)");
+define('SPONSOR_ENTER_CNTRY_ZIP_CITY', "L&auml;ndercode, PLZ, Wohnort");
+define('SPONSOR_ENTER_PHONE', "Telefonnummer");
+define('SPONSOR_ENTER_FAX', "Faxnummer");
+define('SPONSOR_ENTER_CELL', "Handynummer");
+define('SPONSOR_ENTER_EMAIL', "EMail-Adresse");
+define('SPONSOR_ENTER_URL', "Homepage-URL");
+define('ADMIN_SPONSOR_ENTER_PASSWORDS', "Passw&ouml;rter eingeben");
+define('SPONSOR_ENTER_PASSWORDS', "Passwort mit -best&auml;tigung");
+define('ADMIN_SPONSOR_WARNINGS_POINTS', "Warnungen und ".POINTS."");
+define('SPONSOR_RECEIVE_WARNINGS', "Sponsor erh&auml;lt bei jeder Aktion Mails zugesandt");
+define('SPONSOR_WARNING_INTERVAL', "Sendeinterval des Sponsorenberichtes");
+define('SPONSOR_ENTER_POINTS', "Guthaben an ".POINTS." zum Starten");
+define('ADD_SPONSOR', "Sponsor hinzuf&uuml;gen");
+define('ADMIN_SPONSOR_COMPANY_NOTE', "Wenn Sie eine Privatperson anmelden wollen, lassen Sie bitte die folgenden drei Felder einfach leer!");
+define('SPONSOR_DATA_NOT_SAVED', "Sponsorendaten wurden <U>nicht</U> gespeichert.");
+define('ADMIN_SPONSOR_REALLY_ADD_SPONSOR', "Sponsor existiert bereits!");
+define('ADMIN_SPONSOR_DO_YOU_REALLY_WANT_ADDING', "Ein Sponsor existiert bereits mit der eingegeben EMail-Adresse <B>{--__EMAIL--}</B>. Wollen Sie ihn dennoch hinzuf&uuml;gen?");
+define('ADMIN_SPONSOR_ADDED', "Sponsor wurde hinzugef&uuml;gt.");
+define('ADMIN_SPONSOR_UPDATED', "Sponsordaten wurden aktualisiert.");
+define('ADMIN_SPONSOR_FAILED', "Konnte Daten nichtn speichern!");
+define('ADMIN_SPONSOR_NONE_PENDING', "Kein Sponsorenaccount wartet auf Freischaltung.");
+define('SPONSOR_CREATED', "Angelegt");
+define('SPONSOR_UNLOCK', "Sponsoren freischalten");
+define('ADMIN_SPONSOR_UNLOCK_NOTES', "Wichtig: Schalten Sie nur Sponsoren frei, wenn diese auch bezahlt haben! Das Script wird dann den Status auf <U>Bezahlt</U> setzen.");
+define('ADMIN_SPONSOR_UNLOCK_TITLE', "Sponsorenaccounts freischalten");
+define('ADMIN_SPONSOR_NONE_SELECTED_UNLOCK', "Keinen Sponsor zum Freischalten ausgew&auml;hlt!");
+define('SPONSOR_NO_ADMIN', "Ihrer Bestellung wurde keinem Administrator zugewiesen!");
+define('SPONSOR_NO_PAYMENTS_FOUND', "Keine offenen Bestellungen gefunden!");
+define('ADMIN_SPONSOR_NONE_REGISTERED', "Kein Sponsor hat sich bei Ihnen angemeldet! :-(");
+define('ACCOUNT_PENDING', "Wartend");
+define('ADMIN_LIST_SPONSOR_ACCOUNTS', "Alle Sponsoren auflisten");
+define('SPONSOR_POINTS_LEFT', "Restguthaben");
+define('ADMIN_LIST_SPONSOR_NOTES', "Klicken Sie auf die ID-Nummer, um weitere Details zu sehen und um weitere Aktionen am Sponsorenaccount durchf&uuml;hren zu k&ouml;nnen! Klicken Sie auf das Restguthaben an ".POINTS.", um dem jeweiligen Sponsor mehr ".POINTS." aufzubuchen.");
+define('ADMIN_SPONSOR_404_1', "Sponsorenaccount <U>");
+define('ADMIN_SPONSOR_404_2', "</U> nicht gefunden!");
+define('ADMIN_SPONSOR_REFS_404_1', "Der Sponsor <U>");
+define('ADMIN_SPONSOR_REFS_404_2', "</U> hat keine Referrals!");
+define('ADMIN_SPONSOR_DETAILS', "Datenblatt eines Sponsors");
+define('ADMIN_SPONSOR_COMPANY_DATA', "Firmendaten des Sponsors");
+define('ADMIN_SPONSOR_PERSONA_DATA', "Pers&ouml;nliche Daten des Sponsors");
+define('ADMIN_SPONSOR_OTHER_DETAILS', "Sonstige Daten zum Sponsor");
+define('SPONSOR_POINTS_AMOUNT', "Guthaben");
+define('SPONSOR_POINTS_USED', "Verwendet");
+define('SPONSOR_RECEIVE_WARNINGS_SHORT', "Mailbenachrichtigung");
+define('SPONSOR_WARNING_INTERVAL_SHORT', "Benachrichtunsinterval");
+define('ADMIN_LAST_CHANGE', "Letzte &Auml;nderung");
+define('SPONSOR_REFID', "Von Sponsor geworben");
+define('ADMIN_SPONSOR_ACTIONS', "Aktionen am Sponsorenaccount");
+define('SPONSOR_ID', "Sponsor-ID");
+define('SPONSOR_STATUS', "Sponsor-Status");
+define('SPONSOR_REFERRALS', "Sponsoren geworben");
+define('ADMIN_INVALID_MODE_1', "Ung&uuml;tiger Modus <U>");
+define('ADMIN_INVALID_MODE_2', "</U> angegeben!");
+define('ADMIN_TPL_404_1', "Modus-Template <U>");
+define('ADMIN_TPL_404_2', "</U> nicht gefunden!");
+define('ADMIN_ADD_POINTS_TO_SPONSOR', "".POINTS." gutschreiben");
+define('ADMIN_SUB_POINTS_FROM_SPONSOR', "".POINTS." abziehen");
+define('ADMIN_SUM_SPONSOR_POINTS', "Summe ".POINTS."");
+define('ADMIN_SPONSOR_ADD_POINTS', "Jetzt gutschreiben");
+define('ADMIN_SPONSOR_SUB_POINTS', "Jetzt abziehen");
+define('ADMIN_SPONSPOR_NO_POINTS_TO_ADD', "Keine ".POINTS." zum Gutschreiben eingegeben!");
+define('ADMIN_SPONSPOR_NO_POINTS_TO_SUBTRACT', "Keine ".POINTS." zum Abziehen eingegeben!");
+define('ADMIN_SPONSOR_POINTS_ADDED', "".POINTS." wurden gutgeschrieben.");
+define('ADMIN_SPONSOR_POINTS_SUBTRACTED', "".POINTS." wurden abgezogen.");
+define('ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS', "Sie k&ouml;nnen keine auf Freischaltung wartende oder unbest&auml;tigte Accounts sperren/freigeben!");
+define('ADMIN_HEADER_DEL_SPONSOR_1', "Sponsorenaccount <U>");
+define('ADMIN_HEADER_DEL_SPONSOR_2', "</U> l&ouml;schen");
+define('ADMIN_TEXT_DEL_SPONSOR_1', "M&ouml;chten Sie den Sponsoren <B>");
+define('ADMIN_TEXT_DEL_SPONSOR_2', "</B> mit samt aller seiner Bestellungen unwiederruflich l&ouml;schen?");
+define('SPONSOR_DELETED_1', "Sponsorenaccount <U>");
+define('SPONSOR_DELETED_2', "</U> entfernt.");
+define('GUEST_SPONSOR_TITLE', "Anmeldung als Sponsor");
+define('GUEST_SPONSOR_TEASER_1', "Melden Sie sich als Sponsor von <STRONG>".MAIN_TITLE."</STRONG> an! Hier bekommen Sie f&uuml;r Ihr Geld die Zielgruppe, die Sie auch auf Ihren Produktseiten haben wollen!");
+define('GUEST_SPONSOR_TEASER_2', "Alles inklusiv: Ausf&uuml;hrliche Statistiken (auch per Mail im gew&uuml;nschten Zeitabstand) und einfache Verwaltung Ihrer ".POINTS." mit nur wenigen Klicks!");
+define('GUEST_SPONSOR_TEASER_3', "Werden Sie Sponsor und melden Sie sich noch heute an!");
+define('SPONSOR_ENTER_COMPANY_DATA', "Daten zum Unternehmen");
+define('SPONSOR_COMPANY_NOTE', "Sie k&ouml;nnen sich auch als private Person anmelden, lassen Sie dazu die drei folgenden Felder einfach leer!");
+define('SPONSOR_ENTER_PERSONA_DATA', "Daten zu Ihrer Person");
+define('SPONSOR_ENTER_CONTACT_DATA', "Kontaktm&ouml;glichkeiten (mindestens EMail!)");
+define('SPONSOR_WARNINGS', "Mailbenachrichtigungen");
+define('SPONSOR_SELECT_PAYMENT', "Buchungspaket ausw&auml;hlen");
+define('REGISTER_SPONSOR', "Jetzt verbindlich anmelden!");
+define('SPONSOR_PAYMENTS', "Bezahlung der ".POINTS."");
+define('SPONSOR_NO_ACTIONS_ACTIVATED', "Derzeit sind keine Aktionen im Sponsorenbereich m&ouml;glich!");
+define('SPONSOR_PAYTYPE', "Buchungspaket(e)");
+define('SPONSOR_PAYTYPE_VALUE', "Bestellwert");
+define('SPONSOR_PAYTYPE_COUNT', "Bestellmenge");
+define('GUEST_SPONSOR_RECEIVE_WARNINGS', "Bei Daten&auml;nderung eine Best&auml;tigung per Mail erhalten?");
+define('SPONSOR_ACCEPT_TERMS', "Ich/wir habe/n die [<B><A href=\"".URL."/modules.php?module=index&amp;what=sponsor_agb\" target=\"_blank\">AGBs</A></B>] gelesen und akzeptiert.");
+define('SPONSOR_TERMS_HEADER', "Allgemeine Gesch&auml;ftsbedingungen");
+
+// Add payment types
+define('SPONSOR_ADMIN_NO_PAYTYPES', "Noch keine Buchungspakete eingerichtet!");
+define('ADMIN_ADD_SPONSOR_PAYTYPE_TITLE', "Neue Buchungspaket hinzuf&uuml;gen");
+define('ADMIN_ADD_SPONSOR_PAYTYPE', "Buchungspaket hinzuf&uuml;gen");
+define('SPONSOR_PAYTYPE_NAME', "Bezeichnung");
+define('SPONSOR_PAYTYPE_NAME_HINT', "(max. 255 Zeichen)");
+define('SPONSOR_PAYTYPE_RATE', "Umrechnungsrate");
+define('SPONSOR_PAYTYPE_RATE_HINT', "(z.B. 1 &euro; = x ".POINTS.")");
+define('SPONSOR_PAYTYPE_MIN_COUNT', "Bestellmenge");
+define('SPONSOR_PAYTYPE_CURRENCY', "W&auml;hrung");
+define('SPONSOR_ADD_PAYTYPES_NOTES', "Hinweise zu den Buchungspaketen");
+define('SPONSOR_PAYTYPE_NAME_NOTE', "Geben Sie eine passende Bezeichnung zum Buchungspaket ein (z.B. <B>Spar-Paket</B>)");
+define('SPONSOR_PAYTYPE_RATE_NOTE', "Wie viele ".POINTS." soll der Sponsor f&uuml;r z.B. 1 &euro; bekommen?");
+define('SPONSOR_PAYTYPE_MIN_COUNT_NOTE', "Und wie oft soll dieses Buchungspaket <B>mindestens</B> eingekauft werden? (meistens einmal)");
+define('SPONSOR_PAYTYPE_CURRENCY_NOTE', "W&auml;hrung des Geldbetrages, die der Sponsor an Sie &uuml;berweisen soll.");
+define('SPONSOR_ADMIN_PAYTYPE_ALREADY_1', "Buchungspaket <U>");
+define('SPONSOR_ADMIN_PAYTYPE_ALREADY_2', "</U> bereits eingerichtet.");
+define('SPONSOR_ADMIN_PAYTYPE_ADDED_1', "Buchungspaket <U>");
+define('SPONSOR_ADMIN_PAYTYPE_ADDED_2', "</U> hinzugef&uuml;gt.");
+define('SPONSOR_LIST_PAYMENT_TYPES_TITLE', "Buchungspakete auflisten, bearbeiten und l&ouml;schen");
+define('SPONSOR_PAYTYPE_MIN_COUNT2', "Minium");
+define('ADMIN_SPONSOR_PAYTYPE_EDIT', "Bearbeiten");
+define('ADMIN_SPONSOR_PAYTYPE_DELETE', "L&ouml;schen");
+define('SPONSOR_EDIT_PAY_ENTRIES', "Buchungspakete editieren");
+define('SPONSOR_DELETE_PAY_ENTRIES', "Buchungspakete l&ouml;schen");
+define('SPONSOR_PAY_ENTRIES_CHANGED', "Buchungspakete ge&auml;ndert.");
+define('SPONSOR_PAY_ENTRIES_REMOVED', "Buchungspakete gel&ouml;scht.");
+define('SPONSOR_PAYMENT_LIST_IS_EMPTY', "Noch keine Buchungspakete eingerichtet!");
+define('ADMIN_SPONSOR_UNKOWN_STATUS_1', "Unbekannter Status <U>");
+define('ADMIN_SPONSOR_UNKOWN_STATUS_2', "</U> wurde bei der Anmeldung zur&uuml;ckgeliefert!");
+define('SPONSOR_REFERRAL', "Sponsoren-Referral");
+define('SPONSOR_REFID_WAS', "Sie wurden vom Sponsor geworben");
+define('SPONSOR_ACCOUNT_IS_PENDING', "EMail-Adresse best&auml;tigt! Sie haben soeben eine EMail mit weiteren Anweisungen erhalten.");
+
+// Header / text / email messages
+define('SPONSOR_LOCK_SPONSOR_HEADER', "Sponsorenaccount sperren");
+define('SPONSOR_UNLOCK_SPONSOR_HEADER', "Sponsorenaccount freigeben");
+define('SPONSOR_LOCK_SPONSOR_TEXT', "Wollen Sie das ausgew&auml;hlte Sponsorenaccount sperren? Falls ja, wird eine Mail an den Sponsor geschickt. Bitte geben Sie auch eine plaubsible Begr&uuml;ndung der Sperrung mit an!");
+define('SPONSOR_UNLOCK_SPONSOR_TEXT', "Wollen Sie das ausgew&auml;hlte Sponsorenaccount freigeben? Falls ja, wird eine Mail an den Sponsor geschickt.");
+define('SPONSOR_ACCOUNT_LOCKED', "Ihr Sponsorenaccount wurde hiermit von einem unserer Administratoren gesperrt. Bitte beachten Sie fuer die Zukunft unsere AGBs!");
+define('SPONSOR_ACCOUNT_UNLOCKED', "Ihr Sponsorenaccount wurde hiermit von einem unserer Administratoren wieder freigegeben. Sie koennen sich mit den alten Logindaten wieder einloggen. Sollten Sie Ihr Passwort vergessen haben, koennen Sie sich unter Sponsoren->Einloggen ein neues zusenden lassen.");
+define('SPONSOR_EMAIL_STREET_NR1', "Strasse mit Hausnummer");
+define('SPONSOR_EMAIL_STREET_NR2', "(noch Strasse; Zeile 2)");
+define('SPONSOR_EMAIL_CNTRY_ZIP_CITY', "Laendercode, PLZ, Wohnort");
+define('SPONSOR_PASS_UNCHANGED', "- Nicht geaendert! -");
+
+// Guest headers
+define('GUEST_SPONSOR_WANT_BECOME_HEADER', "Sie wollen unser Sponsor sein?");
+define('GUEST_SPONSOR_INFOS_PRICING_HEADER', "Hier sind Preise und was Sie f&uuml;r Ihr Geld bekommen!");
+define('GUEST_SPONSOR_PRICING_HEADER', "Unsere Preise sind einfach fair! Schauen Sie selbst:");
+define('GUEST_SPONSOR_ACTIONS_HEADER', "Und das bekommen Sie von uns:");
+
+// Link descriptions
+define('ADMIN_SPONSOR_DETAILS_LINK_TITLE', "Details des Sponsorenaccounts anzeigen");
+define('ADMIN_SPONSOR_EDIT_LINK_TITLE', "Sponsorenaccount &auml;ndern");
+define('ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE', "".POINTS." gutschreiben");
+define('ADMIN_SPONSOR_SUB_POINTS_LINK_TITLE', "".POINTS." abziehen");
+
+// Performable actions on a sponsor's account
+define('ADMIN_SPONSOR_EDIT', "Sponsor &auml;ndern");
+define('ADMIN_SPONSOR_DEL', "Sponsor l&ouml;schen");
+define('ADMIN_SPONSOR_LOCK', "Sponsoren ent-/sperren");
+define('ADMIN_LIST_SPONSOR_ORDERS', "Bestellungen bearbeiten");
+
+// Subject lines
+define('SPONSOR_UNLOCKED_SUBJ', "Freischaltung Ihres Sponsorenaccounts");
+define('SPONSOR_ADMIN_ADD_POINTS', "Gutschrift durch den Admin!");
+define('SPONSOR_ADMIN_SUB_POINTS', "Abzug durch den Admin!");
+define('SPONSOR_SUBJECT_LOCKED', "HINWEIS: Sperrung Ihres Sponsorenaccounts!");
+define('SPONSOR_SUBJECT_UNLOCKED', "HINWEIS: Freigabe Ihres Sponsorenaccounts!");
+define('SPONSOR_ADMIN_EDIT_SUBJECT', "HINWEIS: Sponsorenaccount geaendert durch Admin!");
+define('SPONSOR_ADMIN_DEL_SUBJECT', "HINWEIS: Sponsorenaccount geloescht durch Admin!");
+define('SPONSOR_PLEASE_CONFIRM_SUBJ', "HINWEIS: Bitte bestaetigen Sie Ihren Account!");
+define('SPONSOR_ACCOUNT_PENDING_SUBJ', "HINWEIS: Ihr Account warten auf Freischaltung!");
+define('ADMIN_NEW_SPONSOR', "Neue Anmeldung eines Sponsors");
+define('SPONSOR_ACTIVATION_LINK_SUBJ', "HINWEIS: Erneute Aussendung Ihres Bestaetigunglinkes!");
+define('SPONSOR_LOST_PASSWORD_SUBJ', "HINWEIS: Ihr neues Passwort");
+define('SPONSOR_ACC_DATA_SUBJ', "HINWEIS: Aenderung Ihrer Daten");
+define('SPONSOR_ACC_EMAIL_SUBJ', "HINWEIS: Bitte neue EMail-Adresse bestaetigen!");
+define('ADMIN_SPONSOR_ACC_EMAIL_SUBJ', "Sponsor hat seine EMail-Adresse geaendert!");
+define('ADMIN_SPONSOR_ACC_DATA_SUBJ', "Sponsor hat seine Daten geaendert!");
+define('ADMIN_SPONSOR_SETTINGS_SUBJ', "Sponsor hat seine Einstellungen geaendert!");
+define('SPONSOR_SETTINGS_SUBJ', "HINWEIS: Aenderung Ihrer Einstellungen");
+
+// Sponsor registration errors
+define('SPONSOR_SURNAME_IS_EMPTY', "Sie haben keinen Vornamen eingegeben!");
+define('SPONSOR_FAMILY_IS_EMPTY', "Sie haben keinen Nachnamen eingegeben!");
+define('SPONSOR_STREET_NR1_IS_EMPTY', "Sie haben keine Stra&szlig;e eingegeben!");
+define('SPONSOR_COUNTRY_IS_EMPTY', "Sie haben nicht den 2-stelligen L&auml;ndercode eingegeben!");
+define('SPONSOR_COUNTRY_IS_INVALID', "Der von Ihnen eingegebene 2-stellige L&auml;ndercode ist nicht korrekt!");
+define('SPONSOR_ZIP_IS_EMPTY', "Sie haben keine Postleitzahl eingegeben!");
+define('SPONSOR_CITY_IS_EMPTY', "Sie haben keinen Wohnort/Firmensitz eingegeben!");
+define('SPONSOR_PHONE_IS_EMPTY', "Sie haben keine Telefonnummer eingegeben!");
+define('SPONSOR_URL_IS_INVALID', "Die von Ihnen eingegebene Homepage-Adresse ist nicht korrekt!");
+define('SPONSOR_URL_IS_EMPTY', "Sie haben keine Homepage-URL eingegeben!");
+define('SPONSOR_EMAIL_IS_INVALID', "Die von Ihnen eingegebene EMail-Adresse ist nicht korrekt!");
+define('SPONSOR_PASSWORD1_EMPTY', "Sie haben kein Passwort eingegeben!");
+define('SPONSOR_PASSWORD2_EMPTY', "Sie haben keine Passwortbest&auml;tigung eingegeben!");
+define('SPONSOR_COMPANY_IS_EMPTY', "Sie haben keine Firmennamen eingegeben!");
+define('SPONSOR_POSITION_IS_EMPTY', "Sie haben keine Position eingegeben!");
+define('SPONSOR_TAX_IDENT_IS_EMPTY', "Sie haben keine Ust-Ident-Nr. eingegeben!");
+define('SPONSOR_REGISTER_SOMETHING_MISSING', "Die Sponsorenanmeldung konnte wegen der folgenden Punkte nicht durchgef&uuml;hrt werden");
+define('SPONSOR_PASSWORDS_MISMATCH', "Die beiden von Ihnen eingegebenen Passw&ouml;rter stimmen nicht &uuml;berein!");
+define('SPONSOR_TERMS_NOT_ACCEPTED', "Bitte akzeptieren Sie unsere [<B><A href=\"".URL."/modules.php?module=index&amp;what=sponsor_agb\" target=\"_blank\">AGBs</A></B>] !");
+define('SPONSOR_NO_PAYTYPE_SELECTED', "Bitte w&auml;hlen Sie noch ein Buchungspaket aus!");
+define('SPONSOR_NO_WARNING_INTERVAL_SELECTED', "Bitte w&auml;hlen Sie noch den Zeitabstand zwischen zwei Sponsorenberichten aus!");
+define('SPONSOR_NO_RECEIVE_WARNINGS_SELECTED', "Bitte w&auml;hlen Sie noch aus, ob Sie bei jeder Aktion Best&auml;tigungsmails empfangen wollen oder nicht!");
+define('SPONSOR_EMAIL_IS_ALREADY_REGISTERED', "Die von Ihnen eingegebene Email-Adresse existiert bereits in unserer Datenbank!");
+define('SPONSOR_ALREADY_FOUND_1', "Ein Sponsor ist bereits mit der Email-Adresse <U>");
+define('SPONSOR_ALREADY_FOUND_2', "</U> bei uns angemeldet!");
+define('SPONSOR_REGISTRATION_FAILED', "Anmeldung ist fehlgeschlagen!");
+define('SPONSOR_REGISTRATION_COMPLETED', "Anmeldung war erfolgreich! Es ist eine Mail zu Ihnen unterwegs, die weitere Anweisungen enth&auml;lt, um die Anmeldung abzuschliessen.");
+define('SPONSOR_UNKOWN_STATUS_1', "Bei der Anmeldung wurde ein unbekannter R&uuml;ckgabewert <U>");
+define('SPONSOR_UNKOWN_STATUS_2', "</U> erkannt. Bitte melden Sie dies dem Betreiber dieses ".MT_WORD2."!<BR>Vielen Dank.");
+define('SPONSOR_EMAIL_404_1', "Bei der Anmeldung ist uns ein Fehler unterlaufen: Ihr Sponsor-Account mit der EMail-Adresse <U>");
+define('SPONSOR_EMAIL_404_2', "</U> wurde nicht gefunden!");
+define('SPONSOR_ACCOUNT_404', "Sponsorenaccount nicht gefunden oder Link ist ung&uuml;tig. Oder haben Sie bereits den Best&auml;tigungslink angeklickt?");
+define('SPONSOR_ACCOUNT_PENDING_FAILED', "Bei der Umschaltung Ihres Sponorenaccounts auf <I>Wartend</I> trat ein unerwarteter Fehler auf!");
+define('SPONSOR_ACCOUNT_404_1', "Sponsorenaccount <U>");
+define('SPONSOR_ACCOUNT_404_2', "</U> nicht gefunden!");
+define('SPONSOR_ACCOUNT_FAILED_1', "Sponsorenaccount konnte nicht geladen werden: <U>");
+define('SPONSOR_ACCOUNT_FAILED_2', "</U>");
+define('SPONSOR_ACCOUNT_EMAIL_FAILED', "Konnten Sponsorenaccount nicht freigeben! Bitte benachrichtigen Sie den Support!");
+
+// Login form
+define('SPONSOR_LOGIN_WELCOME', "Willkommen zum Sponsorenlogin");
+define('SPONSOR_ENTER_ID', "Sponsor-ID");
+define('SPONSOR_ENTER_PASSWORD', "Passwort");
+define('SPONSOR_PASSWORD_LOST', "Zugangsdaten zum Sponsorenbereich erneut anfordern");
+define('SPONSOR_ACTIVATION_LINK_LOST', "Best&auml;tigungslink erneut anfordern");
+define('SPONSOR_SEND_ACTIVATION_LINK', "Best&auml;tigungslink anfordern");
+define('SPONSOR_BACK_TO_LOGIN', "Zur&uuml;ck zum Login-Formular");
+define('SPONSOR_ACTIVATION_SUBMIT', "Link erneut anfordern");
+define('SPONSOR_HOWTO_GET_ACTIVATION_LINK', "Geben Sie oben Ihre EMail-Adresse ein, die Sie bei der Anmeldung als Sponsor eingegeben haben. Sollten Sie diese auch nicht mehr wissen, kontaktieren Sie uns bitte.");
+define('SPONSOR_ACTIVATION_LINK_404', "Best&auml;tigungscode nicht aussendbar: Wir konnten entweder Ihren Account nicht finden, oder Sie haben bereits Ihren Account best&auml;tigt oder Sie wurden gesperrt.");
+define('SPONSOR_ACTIVATION_LINK_SENT', "Es ist eine EMail mit Ihrem Best&auml;tigungslink zu Ihnen unterwegs.");
+define('SPONSOR_SEND_LOST_PASSWORD', "Verlorenes Passwort aussenden");
+define('SPONSOR_LOST_PASS_SUBMIT', "Passwort zusenden");
+define('SPONSOR_HOWTO_GET_LOST_PASSWORD', "Geben Sie oben Ihre EMail-Adresse und die dazu geh&ouml;hrige Sponsor-ID ein, die Sie bei der Anmeldung als Sponsor eingegeben haben. Sie erhalten dann umgehnst ein neues Passwort zugesandt. Das alte Passwort k&ouml;nnen wir Ihnen leiter nicht zusenden. Sollten Sie diese Daten auch nicht mehr wissen, kontaktieren Sie uns bitte.");
+define('SPONSOR_LOST_PASSWORD_SENT', "Es ist eine EMail zu Ihnen unterwegs, die Ihr neues Passwort enth&auml;lt.");
+define('SPONSOR_LOST_PASSWORD_404', "Neues Passwort nicht aussendbar: Wir konnten entweder Ihren Account nicht finden, oder Sie haben noch nicht Ihren Account best&auml;tigt oder Sie wurden gesperrt.");
+define('SPONSOR_LOGIN_FAILED_404_WRONG_PASS', "Sponsoren-Account existiert nicht oder falsches Passwort!");
+define('SPONSOR_LOGIN_FAILED_UNCONFIRMED', "Sie haben noch nicht Ihre Email-Adresse best&auml;tigt!");
+define('SPONSOR_LOGIN_FAILED_PENDING', "Ihr Account wartet noch auf Freischaltung durch den Administrator!");
+define('SPONSOR_LOGIN_FAILED_LOCKED', "Ihr Account wurde gesperrt, vermutlich wegen Nichteinhaltung von Regeln!");
+define('SPONSOR_LOGIN_FAILED_EMAIL', "Sie haben Ihre Email-Adresse ge&auml;ndert und diese noch nicht best&auml;tigt!");
+define('SPONSPOR_COOKIE_SETUP_FAILED', "Es konnten keine Cookies gesetzt werden. Bitte Sicherheitseinstellungen in Ihrem Browser &uuml;berpr&uuml;fen!");
+define('SPONSOR_ONLY_AREA_ENTERED', "Sie haben einen Bereich aufgerufen, der nur den Sponsoren vorenthalten ist, die auch bezahlt haben. Bitte kehren Sie zur [&nbsp;<STRONG><A href=\"".URL."/index.php\">Eingangsseite</A></STRONG>&nbsp;] zur&uuml;ck!");
+define('SPONSOR_ACCOUNT_STATUS_FAILED', "Unerwarteter Zustand des Scriptes erreicht! Bitte Support benachrichtigen!");
+define('SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN', "Ihr Sponsorenaccount ist wieder freigegeben! Sie k&ouml;nnen sich nun erneut einloggen!");
+
+// Sponsor area
+define('SPONSOR_NO_MAIN_MENUS_ACTIVE', "Keine Hauptmen&uuml;s aktiviert!");
+define('SPONSOR_NO_SUB_MENUS_ACTIVE', "Keine Untermen&uuml;s aktiviert!");
+define('SPONSOR_CONTENT_404_1', "Konnte das Sponsor-Modul <U>");
+define('SPONSOR_CONTENT_404_2', "</U> auf dem Server nicht finden!");
+define('SPONSOR_WELCOME_TO', "Willkommen zum Sponsorenbereich!");
+define('SPONSOR_PASSWORD_NOTE', "Wollen Sie nur Ihre Daten, aber nicht das Passwort &auml;ndern, geben Sie Ihr aktuelles Passwort unter &quot;{--SPONSOR_ENTER_OLD_PASSWORD--}&quot; ein. Wollen Sie Ihr Passwort &auml;ndern, geben Sie Ihr derzeiges und zweimal das neue Passwort ein.");
+define('SPONSOR_POINTS_OVERVIEW', "Ihre {--POINTS--}-&Uuml;bersicht");
+define('SPONSOR_POINTS_TOTAL', "Gesamtanzahl {--POINTS--}");
+define('SPONSOR_FILL_UP_POINTS', "Jetzt {--POINTS--}-Guthaben auff&uuml;llen...");
+define('SPONSOR_ENTER_OLD_PASSWORD', "Geben Sie Ihr derzeitiges Passwort ein");
+define('SPONSOR_CHANGE_PASSWORD', "Neues Passwort einstellen");
+define('SPONSOR_ACCOUNT_DATA_SAVED', "Ihre Daten wurden gespeichert.");
+define('SPONSOR_ACCOUNT_EMAIL_CHANGED', "Sie haben Ihre EMail-Adresse ge&auml;ndert, Account wurde tempor&auml;r gesperrt. Bitte [<A href=\"".URL."/index.php\">hier klicken</A>], um in den Gastbereich zu gelangen.");
+define('SPONSOR_SETTINGS_HEADER', "Einstellungen Ihres Sponsorenaccounts");
+define('SPONSOR_UNKNOWN_WHAT_1', "Scripte-Fehler: Unbekannte Sponsor-Aktion <U>");
+define('SPONSOR_UNKNOWN_WHAT_2', "</U> erkannt!");
+define('SPONSOR_SETTINGS_SAVED', "Neue Einstellungen gespeichert.");
+
+// Error messages
+define('SPONSOR_NO_MESSAGE_GENERATED', "Fehler bei der Verarbeitung: Keine Nachricht generiert!");
+define('SPONSOR_NO_CURRENT_PASSWORD_ENTERED', "Sie haben Ihr derzeit gespeichertes Passwort nicht eingegeben!");
+define('SPONSOR_CURRENT_PASSWORD_DIDNOT_MATCH_DB', "Das von Ihnen und das in der Datenbank hinterlegte Passwort stimmen nicht &uuml;berein!");
+define('SPONSOR_BOTH_NEW_PASSWORDS_DIDNOT_MATCH', "Die von Ihnen eingegebenen neuen Passw&ouml;rter stimmen nicht &uuml;berein!");
+define('SPONSOR_PASSWORD_ONE_EMPTY', "Erstes einzugebenes Passwort ist leer!");
+define('SPONSOR_PASSWORD_TWO_EMPTY', "Zweites einzugebenes Passwort ist leer!");
+define('SPONSOR_PASSWORD_TOO_SHORT_1', "Eingegebenes Passwort entspricht nicht der Mindestl&auml;nge von <U>");
+define('SPONSOR_PASSWORD_TOO_SHORT_2', "</U> Zeichen!");
+define('SPONSOR_ACCOUNT_DATA_NOT_SAVED', "Ihre Daten wurden <U>nicht</U> gespeichert!");
+
+//
+?>
index 0bbf728c54b59a19c03f7a11fa60766ce5b3be9c..d0b3f1fd49cdfb3abed8ebc51ef536ea8688cdf6 100644 (file)
@@ -99,8 +99,8 @@ define('WERNIS_MEMBER_PAYOUT_POINTS', "Auszahlf&auml;higes {!POINTS!}-Guthaben")
 define('WERNIS_MEMBER_PAYOUT_MIN_POINTS', "Mindestens auszuzahlendes {!POINTS!}-Guthaben");
 define('WERNIS_MEMBER_PAYOUT_SUBMIT', "Auszahlung durchf&uuml;hren");
 define('WERNIS_MEMBER_PAYOUT_NOTE', "Ihr {!POINTS!}-Passwort wird bei {!MAIN_TITLE!} nicht gespeichert. Bitte bei {!POINTS!}-Betrag nur gerade Betr&auml;ge eingeben! &Uuml;berpr&uuml;fen Sie vor dem Absenden Ihren WDS66-Usernamen.");
 define('WERNIS_MEMBER_PAYOUT_MIN_POINTS', "Mindestens auszuzahlendes {!POINTS!}-Guthaben");
 define('WERNIS_MEMBER_PAYOUT_SUBMIT', "Auszahlung durchf&uuml;hren");
 define('WERNIS_MEMBER_PAYOUT_NOTE', "Ihr {!POINTS!}-Passwort wird bei {!MAIN_TITLE!} nicht gespeichert. Bitte bei {!POINTS!}-Betrag nur gerade Betr&auml;ge eingeben! &Uuml;berpr&uuml;fen Sie vor dem Absenden Ihren WDS66-Usernamen.");
-define('WERNIS_MEMBER_WDS66_ID', "Username bei WDS66-Portal: [<A href=\"http://192.168.1.17/new_autoinstaller/wds66/modules.php?module=wpass&amp;mode=new\" target=\"_blank\">Vergessen?</A>]");
-define('WERNIS_MEMBER_WDS66_PASSWORD', "{!POINTS!}-Passwort (nicht Accountpasswort!): [<A href=\"http://192.168.1.17/new_autoinstaller/wds66/modules.php?module=wpass&amp;mode=new\" target=\"_blank\">Vergessen?</A>]");
+define('WERNIS_MEMBER_WDS66_ID', "Username bei WDS66-Portal: [<A href=\"http://www.wds66.com/modules.php?module=wpass&amp;mode=new\" target=\"_blank\">Vergessen?</A>]");
+define('WERNIS_MEMBER_WDS66_PASSWORD', "{!POINTS!}-Passwort (nicht Accountpasswort!): [<A href=\"http://www.wds66.com/modules.php?module=wpass&amp;mode=new\" target=\"_blank\">Vergessen?</A>]");
 define('WERNIS_MEMBER_WDS66_AMOUNT', "Zu &uuml;berweisenden Betrag eingeben:");
 define('WERNIS_MEMBER_MODE_INVALID', "Ung&uuml;ltiger Modus <u>%s</u> erkannt! Bitte links im Men&uuml; fortfahren.");
 define('WERNIS_MEMBER_EMPTY_USERNAME', "Sie haben Ihren WDS66-Usernamen nicht eingegeben.");
 define('WERNIS_MEMBER_WDS66_AMOUNT', "Zu &uuml;berweisenden Betrag eingeben:");
 define('WERNIS_MEMBER_MODE_INVALID', "Ung&uuml;ltiger Modus <u>%s</u> erkannt! Bitte links im Men&uuml; fortfahren.");
 define('WERNIS_MEMBER_EMPTY_USERNAME', "Sie haben Ihren WDS66-Usernamen nicht eingegeben.");
diff --git a/inc/libs/sponsor_functions.php b/inc/libs/sponsor_functions.php
new file mode 100644 (file)
index 0000000..ac2324e
--- /dev/null
@@ -0,0 +1,647 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/23/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : sponsor_functions.php                            *
+ * -------------------------------------------------------------------- *
+ * Short description : Functions for the sponsor area                   *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Funktionen fuer den Sponsorenbereich             *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+//
+function SPONSOR_HANDLE_SPONSOR(&$POST, $NO_UPDATE=false, $MSGs=array(), $RET_STATUS=false)
+{
+       global $HTTP_GET_VARS, $_SERVER, $_COOKIE;
+       $SAVE = true; $UPDATE = false; $skip = false; $ALREADY = false;
+       $ret = "unused";
+
+       // Skip these entries
+       $SKIPPED = array(
+               'ok', 'edit', 'terms', 'pay_type'
+       );
+
+       // Save sponsor data
+       $DATA = array(
+               'keys'   => array(),
+               'values' => array()
+       );
+
+       // Check if sponsor already exists
+       foreach ($POST as $k=>$v)
+       {
+               if (!(array_search($k, $SKIPPED) > -1))
+               {
+                       // Check only posted input entries not the submit button
+                       switch ($k)
+                       {
+                       case "email":
+                               $ALREADY = false;
+                               if (!VALIDATE_EMAIL($v))
+                               {
+                                       // Email address is not valid
+                                       $SAVE = false;
+                               }
+                                else
+                               {
+                                       // Do we want to add a new sponsor or update his data?
+                                       $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_sponsor_data WHERE email='%s' LIMIT 1",
+                                        array($POST['email']), __FILE__, __LINE__);
+
+                                       // Is a sponsor alread in the db?
+                                       if (SQL_NUMROWS($result) == 1)
+                                       {
+                                               // Free memory
+                                               SQL_FREERESULT($result);
+
+                                               // Yes, he is!
+                                               if (($HTTP_GET_VARS['what'] == "add_sponsor") || ($NO_UPDATE))
+                                               {
+                                                       // Already found!
+                                                       $ALREADY = true;
+                                               }
+                                                else
+                                               {
+                                                       // Update his data
+                                                       $UPDATE = true;
+                                               }
+                                       }
+                               }
+                               break;
+
+                       case "pass1":
+                               $k = ""; $v = "";
+                               break;
+
+                       case "pass2":
+                               $k = "password"; $v = md5($v);
+                               break;
+
+                       case "url":
+                               if (!VALIDATE_URL($v)) $SAVE = false;
+                               break;
+
+                       default:
+                               // Test if there is are time selections
+                               $TEST = substr($k, -3);
+                               if ((($TEST == "_ye") || ($TEST == "_mo") || ($TEST == "_we") || ($TEST == "_da") || ($TEST == "_ho") || ($TEST == "_mi") || ($TEST == "_se")) && (!empty($v)))
+                               {
+                                       // Found a multi-selection for timings?
+                                       $TEST = substr($k, 0, -3);
+                                       if ((!empty($POST[$TEST."_ye"])) && (!empty($POST[$TEST."_mo"])) && (!empty($POST[$TEST."_we"])) && (!empty($POST[$TEST."_da"])) && (!empty($POST[$TEST."_ho"])) && (!empty($POST[$TEST."_mi"])) && (!empty($POST[$TEST."_se"])) && ($TEST != $TEST2))
+                                       {
+                                               // Generate timestamp
+                                               $POST[$TEST] = CREATE_TIMESTAMP_FROM_SELECTIONS($TEST, $POST);
+                                               $DATA['keys'][] = $TEST;
+                                               $DATA['values'][] = $POST[$TEST];
+
+                                               // Remove data from array
+                                               unset($POST[$TEST."_ye"]);
+                                               unset($POST[$TEST."_mo"]);
+                                               unset($POST[$TEST."_we"]);
+                                               unset($POST[$TEST."_da"]);
+                                               unset($POST[$TEST."_ho"]);
+                                               unset($POST[$TEST."_mi"]);
+                                               unset($POST[$TEST."_se"]);
+
+                                               // Skip adding
+                                               $k = ""; $skip = true; $TEST2 = $TEST;
+                                       }
+                               }
+                                else
+                               {
+                                       $skip = false; $TEST2 = "";
+                               }
+                               break;
+                       }
+
+                       if ((!empty($k)) && ($skip == false))
+                       {
+                               // Add data
+                               $DATA['keys'][] = $k; $DATA['values'][] = $v;
+                       }
+               }
+       }
+
+       // Save sponsor?
+       if ($SAVE)
+       {
+               // Default is no force even when a guest want to abuse this force switch
+               if ((empty($POST['force'])) || (!IS_ADMIN())) $POST['force'] = "0";
+
+               // SQL and message string is empty by default
+               $SQL = ""; $MSG = "";
+
+               // Update?
+               if ($UPDATE)
+               {
+                       // Update his data
+                       $SQL = "UPDATE "._MYSQL_PREFIX."_sponsor_data SET ";
+                       foreach ($DATA['keys'] as $k=>$v)
+                       {
+                               $SQL .= $v."='%s', ";
+                       }
+
+                       // Remove last ", " from SQL string
+                       $SQL = substr($SQL, 0, -2)." WHERE id='%s' LIMIT 1";
+                       $DATA['values'][] = bigintval($HTTP_GET_VARS['id']);
+
+                       // Generate message
+                       $MSG = SPONSOR_SET_MESSAGE(ADMIN_SPONSOR_UPDATED, "updated", $MSGs);
+                       $ret = "updated";
+               }
+                elseif ((!$ALREADY) || (($POST['force'] == "1") && (IS_ADMIN())))
+               {
+                       // Add new sponsor, first add more data
+                       $DATA['keys'][] = "sponsor_created"; $DATA['values'][] = time();
+                       $DATA['keys'][] = "status";
+                       if ((!$NO_UPDATE) && (IS_ADMIN()) && ($HTTP_GET_VARS['what'] == "add_sponsor"))
+                       {
+                               // Only allowed for admin
+                               $DATA['values'][] = "PENDING";
+                       }
+                        else
+                       {
+                               // Guest area
+                               $DATA['values'][] = "UNCONFIRMED";
+
+                               // Generate hash code
+                               $DATA['keys'][] = "hash";
+                               $DATA['values'][] = md5($_COOKIE['PHPSESSID'].":".$POST['email'].":".$_SERVER['REMOTE_ADDR'].":".$_SERVER['HTTP_USER_AGENT'].":".time());
+                               $DATA['keys'][] = "remote_addr";
+                               $DATA['values'][] = $_SERVER['REMOTE_ADDR'];
+                       }
+
+                       // Implode all data into strings
+                       $KEYS   = implode(", "  , $DATA['keys']);
+                       $VALUES = str_repeat("%s', '", count($DATA['values']) - 1);
+
+                       // Generate string
+                       $SQL = "INSERT INTO "._MYSQL_PREFIX."_sponsor_data (".$KEYS.") VALUES('".$VALUES."%s')";
+
+                       // Generate message
+                       $MSG = SPONSOR_SET_MESSAGE(ADMIN_SPONSOR_ADDED, "added", $MSGs);
+                       $ret = "added";
+               }
+                elseif ((!$NO_UPDATE) && (IS_ADMIN()))
+               {
+                       // Add all data as hidden data
+                       $OUT = "";
+                       foreach ($POST as $k=>$v)
+                       {
+                               // Do not add 'force' !
+                               if ($k != "force")
+                               {
+                                       $OUT .= "<INPUT type=\"hidden\" name=\"".$k."\" value=\"".stripslashes($v)."\">\n";
+                               }
+                       }
+                       define('__HIDDEN_DATA', $OUT);
+                       define('__EMAIL'      , $POST['email']);
+
+                       // Ask for adding a sponsor with same email address
+                       LOAD_TEMPLATE("admin_add_sponsor_already");
+                       return;
+               }
+                else
+               {
+                       // Already added!
+                       $MSG = SPONSOR_ALREADY_FOUND_1.$POST['email'].SPONSOR_ALREADY_FOUND_2;
+                       $ret = "already";
+               }
+
+               if (!empty($SQL))
+               {
+                       // Run SQL command
+                       $result = SQL_QUERY_ESC($SQL, $DATA['values'], __FILE__, __LINE__);
+               }
+
+               // Output message
+               if ((!$NO_UPDATE) && (IS_ADMIN()))
+               {
+                       LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+               }
+       }
+        else
+       {
+               // Error found!
+               $MSG = SPONSOR_SET_MESSAGE(SPONSOR_DATA_NOT_SAVED, "failed", $MSGs);
+               LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+       }
+
+       // Shall we return the status?
+       if ($RET_STATUS) return $ret;
+}
+//
+function SPONSOR_TRANSLATE_STATUS($status)
+{
+       switch ($status)
+       {
+       case "UNCONFIRMED":
+               $ret = ACCOUNT_UNCONFIRMED;
+               break;
+
+       case "CONFIRMED":
+               $ret = ACCOUNT_CONFIRMED;
+               break;
+
+       case "LOCKED":
+               $ret = ACCOUNT_LOCKED;
+               break;
+
+       case "PENDING":
+               $ret = ACCOUNT_PENDING;
+               break;
+
+       case "EMAIL":
+               $ret = ACCOUNT_EMAIL;
+               break;
+
+       default:
+               $ret = UNKNOWN_STATUS_1.$status.UNKNOWN_STATUS_2;
+               break;
+       }
+       return $ret;
+}
+// Search for an email address in the database
+function SPONSOR_FOUND_EMAIL_DB($email)
+{
+       // Default status is failed (as it is always be...)
+       $ret = false;
+
+       // Check for email (and secure input)
+       $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_sponsor_data WHERE email='%s' LIMIT 1",
+        array($email), __FILE__, __LINE__);
+
+       // Do we already have the provided email address in our DB?
+       if (SQL_NUMROWS($result) == 1) $ret = true;
+
+       // Return result
+       return $ret;
+}
+//
+function SPONSOR_SET_MESSAGE($msg, $pos, $array)
+{
+       // Check if the requested message was found in array
+       if (isset($array[$pos]))
+       {
+               // ... if yes then use it!
+               $ret = $array[$pos];
+       }
+        else
+       {
+               // ... else use default message
+               $ret = $msg;
+       }
+
+       // Return result
+       return $ret;
+}
+//
+function IS_SPONSOR()
+{
+       global $_COOKIE;
+       // Failed...
+       $ret = false;
+       if ((!empty($_COOKIE['sponsorid'])) && (!empty($_COOKIE['sponsorpass'])))
+       {
+               // Check cookies against database records...
+               $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE id='%s' AND password='%s' AND status='CONFIRMED' LIMIT 1",
+ array(bigintval($_COOKIE['sponsorid']), $_COOKIE['sponsorpass']), __FILE__, __LINE__);
+               if (SQL_NUMROWS($result) == 1)
+               {
+                       // All is fine
+                       $ret = true;
+               }
+
+               // Free memory
+               SQL_FREERESULT($result);
+       }
+
+       // Return status
+       return $ret;
+}
+//
+function GENERATE_SPONSOR_MENU($current)
+{
+       $OUT = "";
+       $WHERE = " AND active='Y'";
+       if (IS_ADMIN()) $WHERE = "";
+
+       // Load main menu entries
+       $result_main = SQL_QUERY("SELECT action, title FROM "._MYSQL_PREFIX."_sponsor_menu
+WHERE what='' ".$WHERE."
+ORDER BY sort", __FILE__, __LINE__);
+       if (SQL_NUMROWS($result_main) > 0)
+       {
+               // Load every menu and it's sub menus
+               while(list($action, $title_main) = SQL_FETCHROW($result_main))
+               {
+                       // Load sub menus
+                       $result_sub = SQL_QUERY_ESC("SELECT what, title FROM "._MYSQL_PREFIX."_sponsor_menu
+WHERE action='%s' AND what != '' ".$WHERE."
+ORDER BY sort", array($action), __FILE__, __LINE__);
+                       if (SQL_NUMROWS($result_sub) > 0)
+                       {
+                               // Load sub menus
+                               $SUB = "";
+                               while(list($what, $title_sub) = SQL_FETCHROW($result_sub))
+                               {
+                                       // Check if current selected menu is matching the loaded one
+                                       if ($current == $what) $title_sub = "<STRONG>".$title_sub."</STRONG>";
+
+                                       // Prepare data for the sub template
+                                       $content = array(
+                                               'what'  => $what,
+                                               'title' => $title_sub
+                                       );
+
+                                       // Load row template
+                                       $SUB .= LOAD_TEMPLATE("sponsor_what", true, $content);
+                               }
+
+                               // Prepare data for the main template
+                               $content = array(
+                                       'title' => $title_main,
+                                       'menu'  => $SUB
+                               );
+
+                               // Load menu template
+                               $OUT .= LOAD_TEMPLATE("sponsor_action", true, $content);
+                       }
+                        else
+                       {
+                               // No sub menus active
+                               $OUT .= LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_NO_SUB_MENUS_ACTIVE);
+                       }
+
+                       // Free memory
+                       SQL_FREERESULT($result_sub);
+               }
+       }
+        else
+       {
+               // No main menus active
+               $OUT .= LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_NO_MAIN_MENUS_ACTIVE);
+       }
+
+       // Free memory
+       SQL_FREERESULT($result_main);
+
+       // Return content
+       return $OUT;
+}
+//
+function GENERATE_SPONSOR_CONTENT($what)
+{
+       global $HTTP_POST_VARS, $HTTP_GET_VARS, $CONFIG;
+       $FILE = PATH."inc/modules/sponsor/".$what.".php";
+       $OUT = "";
+       if (@file_exists($FILE))
+       {
+               // Every sponsor action will output nothing directly. It will be written into $OUT!
+               require_once($FILE);
+       }
+        else
+       {
+               // File not found!
+               $OUT .= LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_CONTENT_404_1.$what.SPONSOR_CONTENT_404_2);
+       }
+
+       // Return content
+       return $OUT;
+}
+//
+function UPDATE_SPONSOR_LOGIN()
+{
+       global $_COOKIE, $CONFIG;
+
+       // Check if cookies are set
+       if ((empty($_COOKIE['sponsorid'])) || (empty($_COOKIE['sponsorpass']))) return false;
+
+       // Calculate cookie lifetime, maybe we have to change this so the admin can setup a
+       // seperate timeout for these two cookies?
+       $life = (time() + $CONFIG['online_timeout']);
+
+       // Is confirmed so both is fine and we can continue with login procedure
+       $login = ((setcookie("sponsorid"  , bigintval($_COOKIE['sponsorid']), $life, COOKIE_PATH)) &&
+                 (setcookie("sponsorpass", $_COOKIE['sponsorpass']         , $life, COOKIE_PATH)));
+
+       // Update database?
+       if ($login)
+       {
+               // Update last online timestamp
+               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data
+SET last_online='".time()."'
+WHERE id='%s' AND password='%s' LIMIT 1",
+ array(bigintval($_COOKIE['sponsorid']), $_COOKIE['sponsorpass']), __FILE__, __LINE__);
+       }
+
+       // Return status
+       return $login;
+}
+//
+function SPONSOR_SAVE_DATA($POST, $content)
+{
+       global $_COOKIE, $_SERVER, $HTTP_GET_VARS;
+       $EMAIL = false;
+
+       // Unsecure data which we don't want
+       $UNSAFE = array('password', 'id', 'remote_addr', 'sponsor_created', 'last_online', 'status', 'ref_count',
+                       'points_amount', 'points_used', 'refid', 'hash' , 'last_pay', 'last_curr', 'pass_old',
+                       'ok', 'pass1', 'pass2');
+
+       // Set default message ("not saved")
+       $MSG = SPONSOR_ACCOUNT_DATA_NOT_SAVED;
+
+       // Check for submitted passwords
+       if ((!empty($HTTP_POST_VARS['pass1'])) && (!empty($HTTP_POST_VARS['pass2'])))
+       {
+               // Are both passwords the same?
+               if ($HTTP_POST_VARS['pass1'] == $HTTP_POST_VARS['pass2'])
+               {
+                       // Okay, then set password and remove pass1 and pass2
+                       $HTTP_POST_VARS['password'] = md5($HTTP_POST_VARS['pass1']);
+               }
+       }
+
+       // Remove all (maybe spoofed) unsafe data from array
+       foreach ($UNSAFE as $remove)
+       {
+               unset($POST[$remove]);
+       }
+
+       // This array is for the submitted data which we will use with the SQL_QUERY_ESC() function to
+       // secure the data
+       $DATA = array();
+
+       // Prepare SQL string
+       $SQL = "UPDATE "._MYSQL_PREFIX."_sponsor_data SET";
+       foreach ($POST as $key=>$value)
+       {
+               // Mmmmm, too less security here???
+               $SQL   .= " ".strip_tags($key)."='%s',";
+
+               // We will secure this later inside the SQL_QUERY_ESC() function
+               $DATA[] = strip_tags($value);
+
+               // Compile {SLASH} and so on for the email templates
+               $POST[$key] = COMPILE_CODE($value);
+       }
+
+       // Check if email has changed
+       if ((!empty($content['email'])) && (!empty($POST['email'])))
+       {
+               if ($content['email'] != $POST['email'])
+               {
+                       // Change email address
+                       $EMAIL = true;
+
+                       // Okay, has changed then add status with UNCONFIRMED and new hash code
+                       $SQL .= " status='EMAIL', hash='%s',";
+
+                       // Generate hash code
+                       $HASH = md5($_COOKIE['PHPSESSID'].":".$POST['email'].":".$_SERVER['REMOTE_ADDR'].":".$_SERVER['HTTP_USER_AGENT'].":".time());
+                       $DATA[] = $HASH;
+               }
+       }
+
+       // Remove last commata
+       $SQL = substr($SQL, 0, -1);
+
+       // Add SQL tail data
+       $SQL .= " WHERE id='%s' AND password='%s' LIMIT 1";
+       $DATA[] = bigintval($_COOKIE['sponsorid']);
+       $DATA[] = $_COOKIE['sponsorpass'];
+
+       // Saving data was completed... ufff...
+       switch ($HTTP_GET_VARS['what'])
+       {
+       case "account": // Change account data
+               if ($EMAIL)
+               {
+                       $MSG   = SPONSOR_ACCOUNT_EMAIL_CHANGED;
+                       $templ = "admin_sponsor_change_email";
+                       $subj  = ADMIN_SPONSOR_ACC_EMAIL_SUBJ;
+               }
+                else
+               {
+                       $MSG   = SPONSOR_ACCOUNT_DATA_SAVED;
+                       $templ = "admin_sponsor_change_data";
+                       $subj  = ADMIN_SPONSOR_ACC_DATA_SUBJ;
+               }
+               break;
+
+       case "settings": // Change settings
+               // Translate some data
+               $content['receive']  = TRANSLATE_YESNO($content['receive_warnings']);
+               $content['interval'] = CREATE_FANCY_TIME($content['warning_interval']);
+
+               // Set message template and subject for admin
+               $MSG   = SPONSOR_SETTINGS_SAVED;
+               $templ = "admin_sponsor_settings";
+               $subj  = ADMIN_SPONSOR_SETTINGS_SUBJ;
+               break;
+
+       default: // Unknown sponsor what value!
+               $MSG = SPONSOR_UNKNOWN_WHAT_1.$HTTP_GET_VARS['what'].SPONSOR_UNKNOWN_WHAT_2;
+               $templ = ""; $subj = "";
+               break;
+       }
+
+       if (SQL_AFFECTEDROWS() == 1)
+       {
+               if (!empty($templ) && !empty($subj))
+               {
+                       // Run SQL command and check for success
+                       $result = SQL_QUERY_ESC($SQL, $DATA, __FILE__, __LINE__);
+
+                       // Add all data to content
+                       global $DATA;
+                       $DATA = $POST;
+
+                       // Change some data
+                       if (isset($content['salut'])) $content['salut'] = TRANSLATE_SEX($content['salut']);
+                       if (isset($DATA['salut']))    $DATA['salut']    = TRANSLATE_SEX($DATA['salut']);
+                       if (isset($content['receive_warnings'])) $DATA['receive']     = TRANSLATE_YESNO($POST['receive_warnings']);
+                       if (isset($content['warning_interval'])) $DATA['interval']    = CREATE_FANCY_TIME($POST['warning_interval']);
+
+                       // Send email to admins
+                       if (GET_EXT_VERSION("admins") < "0.4.1")
+                       {
+                               // Use old method to send out
+                               $msg = LOAD_EMAIL_TEMPLATE($templ, $content);
+                               SEND_ADMIN_EMAILS($subj, $msg);
+                       }
+                        else
+                       {
+                               // Use new system to send out
+                               SEND_ADMIN_EMAILS_PRO($subj, $templ, $content);
+                       }
+
+                       // Shall we send mail to the sponsor's new email address?
+                       if ($content['receive_warnings'] == "Y")
+                       {
+                               // Okay send email with confirmation link to new address and with no confirmation link
+                               // to the old address
+
+                               // First to old address
+                               switch ($HTTP_GET_VARS['what'])
+                               {
+                               case "account": // Change account data
+                                       $email_msg = LOAD_EMAIL_TEMPLATE("sponsor_change_data", $content);
+                                       SEND_EMAIL($content['email'], SPONSOR_ACC_DATA_SUBJ, $email_msg);
+
+                                       if ($EMAIL)
+                                       {
+                                               // Add hash code to content array
+                                               $content['hash'] = $HASH;
+
+                                               // Second mail goes to the new address
+                                               $email_msg = LOAD_EMAIL_TEMPLATE("sponsor_change_email", $content);
+                                               SEND_EMAIL($content['email'], SPONSOR_ACC_EMAIL_SUBJ, $email_msg);
+                                       }
+                                       break;
+
+                               case "settings": // Change settings
+                                       // Send email
+                                       $email_msg = LOAD_EMAIL_TEMPLATE("sponsor_settings", $content);
+                                       SEND_EMAIL($content['email'], SPONSOR_SETTINGS_SUBJ, $email_msg);
+                                       break;
+                               }
+                       }
+               }
+       }
+
+       // Return final message
+       return $MSG;
+}
+//
+?>
diff --git a/inc/modules/admin/action-sponsor.php b/inc/modules/admin/action-sponsor.php
new file mode 100644 (file)
index 0000000..0306396
--- /dev/null
@@ -0,0 +1,55 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/02/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : action-sponsor.php                               *
+ * -------------------------------------------------------------------- *
+ * Short description : SignUp-actons                                    *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : SignUp-Aktionen                                  *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+// Load the include file
+$INC = PATH."inc/modules/admin/what-".$what.".php";
+if (file_exists($INC))
+{
+       // Ok, we finally load the admin action module
+       include($INC);
+}
+ else
+{
+       $FATAL[] = ADMIN_404_ACTION_1.$what.ADMIN_404_ACTION_2;
+}
+//
+?>
index 899bd4c36ae215796af42622702046358dd6a016..684517c86dce8e038c187f0af65e8782ed0abb10 100644 (file)
@@ -79,7 +79,7 @@ function CHECK_ADMIN_LOGIN ($admin_login, $password)
                }
        }
 
                }
        }
 
-       /* DEBUG: */ echo "*".$pass."/".md5($password)."/".$ret."<br />";
+       //* DEBUG: */ echo "*".$pass."/".md5($password)."/".$ret."<br />";
        if ((strlen($pass) == 32) && ($pass == md5($password))) {
                // Generate new hash
                $pass = generateHash($password);
        if ((strlen($pass) == 32) && ($pass == md5($password))) {
                // Generate new hash
                $pass = generateHash($password);
diff --git a/inc/modules/admin/what-add_sponsor.php b/inc/modules/admin/what-add_sponsor.php
new file mode 100644 (file)
index 0000000..07767a6
--- /dev/null
@@ -0,0 +1,56 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/03/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-add_sponsor.php                             *
+ * -------------------------------------------------------------------- *
+ * Short description : Add new sponsor                                  *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Neuen Sponsor hinzufuegen                        *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if (isset($HTTP_POST_VARS['ok']))
+{
+       // Save sponsor in database
+       SPONSOR_HANDLE_SPONSOR($HTTP_POST_VARS);
+}
+ else
+{
+       // Prepare constants for the template
+       define('__SPONSOR_MIN_VALUE', $CONFIG['sponsor_min_points']);
+
+       // Output form
+       LOAD_TEMPLATE("admin_add_sponsor");
+}
+//
+?>
diff --git a/inc/modules/admin/what-config_sponsor.php b/inc/modules/admin/what-config_sponsor.php
new file mode 100644 (file)
index 0000000..22185a8
--- /dev/null
@@ -0,0 +1,61 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 12/21/2004 *
+ * ===============                              Last change: 12/21/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-config_title.php                            *
+ * -------------------------------------------------------------------- *
+ * Short description :                                                  *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  :                                                  *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if (isset($HTTP_POST_VARS['ok']))
+{
+       // Allow only direct points (non-floating)
+       $HTTP_POST_VARS['sponsor_min_points'] = bigintval($HTTP_POST_VARS['sponsor_min_points']);
+       $HTTP_POST_VARS['sponsor_ref_points'] = bigintval($HTTP_POST_VARS['sponsor_ref_points']);
+
+       // Save settings
+       ADMIN_SAVE_SETTINGS($HTTP_POST_VARS, "_config", "config='0'");
+}
+ else
+{
+       // Remember config data in constants for the template
+       define('__SPONSOR_MIN_POINTS', $CONFIG['sponsor_min_points']);
+       define('__SPONSOR_REF_POINTS', $CONFIG['sponsor_ref_points']);
+
+       // Load template
+       LOAD_TEMPLATE("admin_config_sponsor");
+}
+//
+?>
diff --git a/inc/modules/admin/what-del_sponsor.php b/inc/modules/admin/what-del_sponsor.php
new file mode 100644 (file)
index 0000000..0bd3444
--- /dev/null
@@ -0,0 +1,110 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/24/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-del_sponsor.php                             *
+ * -------------------------------------------------------------------- *
+ * Short description : Edit sponsor account                             *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenaccount aendern                         *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if (!empty($HTTP_GET_VARS['id']))
+{
+       // Check for selected sponsor
+       $result = SQL_QUERY_ESC("SELECT email, salut, surname, family FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1",
+        array($HTTP_GET_VARS['id']), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // Remove sponsor
+               if (isset($HTTP_POST_VARS['ok']))
+               {
+                       // Load data and remember it in constants
+                       list($email, $salut, $surname, $family) = SQL_FETCHROW($result);
+                       SQL_FREERESULT($result);
+                       define('__EMAIL'  , $email);
+                       define('__SALUT'  , TRANSLATE_SEX($salut));
+                       define('__SURNAME', $surname);
+                       define('__FAMILY' , $family);
+
+                       // Prepare message and send it away
+                       $msg = LOAD_EMAIL_TEMPLATE("del_sponsor", $HTTP_POST_VARS['reason'], $HTTP_GET_VARS['id']);
+                       SEND_EMAIL($email, SPONSOR_ADMIN_DEL_SUBJECT, $msg);
+
+                       // Remove account
+                       $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1",
+                        array(bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+
+                       // Remove orders
+                       $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_sponsor_orders WHERE sponsorid='%s' LIMIT 1",
+                        array(bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+
+                       // Output message
+                       LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_DELETED_1.$HTTP_GET_VARS['id'].SPONSOR_DELETED_2);
+               }
+                elseif (!empty($HTTP_POST_VARS['no']))
+               {
+                       // Do not delete him...
+                       LOAD_URL(URL."/modules.php?module=admin&amp;what=list_sponsor&amp;id=".$HTTP_GET_VARS['id']);
+               }
+                else
+               {
+                       // Load data
+                       list ($email, $salut, $sname, $fname) = SQL_FETCHROW($result);
+
+                       // Transfer data to constants for the template
+                       define('__EMAIL', $email);
+                       define('__SNAME', $sname);
+                       define('__FNAME', $fname);
+                       define('__SALUT', TRANSLATE_SEX($salut));
+                       define('__UID'  , $HTTP_GET_VARS['id']);
+
+                       // Display form
+                       LOAD_TEMPLATE("admin_del_sponsor");
+               }
+       }
+        else
+       {
+               // Sponsor not found!
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.$HTTP_GET_VARS['id'].ADMIN_SPONSOR_404_2);
+       }
+}
+ else
+{
+       // Not called by what-list_sponsor.php
+       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_CALL_NOT_DIRECTLY);
+}
+
+//
+?>
diff --git a/inc/modules/admin/what-edit_sponsor.php b/inc/modules/admin/what-edit_sponsor.php
new file mode 100644 (file)
index 0000000..005abac
--- /dev/null
@@ -0,0 +1,217 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/24/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-edit_sponsor.php                            *
+ * -------------------------------------------------------------------- *
+ * Short description : Edit sponsor account                             *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenaccount aendern                         *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if ((!empty($HTTP_GET_VARS['id'])) && (!empty($HTTP_GET_VARS['mode'])))
+{
+       // Check for selected sponsor
+       $result = SQL_QUERY_ESC("SELECT company, position, salut, 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 id='%s' LIMIT 1",
+        array($HTTP_GET_VARS['id']), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // Load sponsor details
+               $DATA = SQL_FETCHARRAY($result);
+               SQL_FREERESULT($result);
+
+               // Prepare all data for the template
+               //  Sponsor's ID
+               define('__SPONSOR_ID' , $HTTP_GET_VARS['id']);
+               //  Company's data
+               define('__COMPANY'    , $DATA['company']);
+               define('__POSITION'   , $DATA['position']);
+               define('__TAX_IDENT'  , $DATA['tax_ident']);
+               //  Personal data
+               switch ($DATA['salut'])
+               {
+               case "M":
+                       define('__SALUT_M', " selected");
+                       define('__SALUT_F', "");
+                       define('__SALUT_C', "");
+                       break;
+
+               case "F":
+                       define('__SALUT_M', "");
+                       define('__SALUT_F', " selected");
+                       define('__SALUT_C', "");
+                       break;
+
+               case "C":
+                       define('__SALUT_M', "");
+                       define('__SALUT_F', "");
+                       define('__SALUT_C', " selected");
+                       break;
+               }
+               define('__SURNAME'    , $DATA['surname']);
+               define('__FAMILY'     , $DATA['family']);
+               define('__STREET1'    , $DATA['street_nr1']);
+               define('__STREET2'    , $DATA['street_nr2']);
+               define('__ZIP'        , $DATA['zip']);
+               define('__CITY'       , $DATA['city']);
+               define('__COUNTRY'    , $DATA['country']);
+               //  Contact data
+               define('__PHONE'      , $DATA['phone']);
+               define('__FAX'        , $DATA['fax']);
+               define('__CELL'       , $DATA['cell']);
+               define('__EMAIL'      , $DATA['email']);
+               define('__URL'        , $DATA['url']);
+               //  Warning because low points
+               define('__REC_WARNING', ADD_SELECTION("yn", $DATA['receive_warnings'], "receive_warning"));
+               define('__INTERVAL'   , CREATE_TIME_SELECTIONS($DATA['warning_interval'], "warning_interval", "MWDh"));
+
+               // Sponsor was found
+               $TPL = "admin_edit_sponsor_".$HTTP_GET_VARS['mode']; $SQLs = array();
+               if ((isset($HTTP_POST_VARS['ok'])) || (isset($HTTP_POST_VARS['edit'])))
+               {
+                       // Perform action on mode
+                       switch ($HTTP_GET_VARS['mode'])
+                       {
+                       case "add_points": // Add points
+                               if (strval($HTTP_POST_VARS['points']) > 0)
+                               {
+                                       // Replace german decimal comma with computer's decimal dot
+                                       $POINTS = strval(str_replace(",", ".", $HTTP_POST_VARS['points']));
+
+                                       // Add points to account
+                                       $result_add = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET points_amount=points_amount+%s WHERE id='%s' LIMIT 1",
+                                        array($POINTS, bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+
+                                       // Remember points /reason for the template
+                                       define('__POINTS' , TRANSLATE_COMMA($POINTS));
+                                       define('__REASON' , $HTTP_POST_VARS['reason']);
+
+                                       // Send email
+                                       $msg = LOAD_EMAIL_TEMPLATE("sponsor_add_points", $HTTP_POST_VARS['reason'], true);
+                                       SEND_EMAIL(__EMAIL, SPONSOR_ADMIN_ADD_POINTS, $msg);
+                                       $MSG = ADMIN_SPONSOR_POINTS_ADDED;
+                               }
+                                else
+                               {
+                                       // No points entered to add!
+                                       $MSG = ADMIN_SPONSPOR_NO_POINTS_TO_ADD;
+                               }
+                               break;
+
+                       case "sub_points": // Subtract points
+                               if (strval($HTTP_POST_VARS['points']) > 0)
+                               {
+                                       // Replace german decimal comma with computer's decimal dot
+                                       $POINTS = strval(str_replace(",", ".", $HTTP_POST_VARS['points']));
+
+                                       // Add points to account
+                                       $result_add = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET points_used=points_used+%s WHERE id='%s' LIMIT 1",
+                                        array($POINTS, bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+
+                                       // Remember points /reason for the template
+                                       define('__POINTS' , TRANSLATE_COMMA($POINTS));
+                                       define('__REASON' , $HTTP_POST_VARS['reason']);
+
+                                       // Send email
+                                       $msg = LOAD_EMAIL_TEMPLATE("sponsor_sub_points", $HTTP_POST_VARS['reason'], true);
+                                       SEND_EMAIL(__EMAIL, SPONSOR_ADMIN_SUB_POINTS, $msg);
+                                       $MSG = ADMIN_SPONSOR_POINTS_SUBTRACTED;
+                               }
+                                else
+                               {
+                                       // No points entered to add!
+                                       $MSG = ADMIN_SPONSPOR_NO_POINTS_TO_SUBTRACT;
+                               }
+                               break;
+
+                       case "edit": // Edit sponsor account
+                               $PASS = true;
+                               if (($HTTP_POST_VARS['pass1'] != $HTTP_POST_VARS['pass2']) || ((empty($HTTP_POST_VARS['pass1'])) && (empty($HTTP_POST_VARS['pass1']))))
+                               {
+                                       // Remove passwords
+                                       unset($HTTP_POST_VARS['pass1']);
+                                       unset($HTTP_POST_VARS['pass2']);
+                                       $PASS = false;
+                               }
+                               SPONSOR_HANDLE_SPONSOR($HTTP_POST_VARS);
+
+                               // Convert some data for the email template
+                               $HTTP_POST_VARS['salut'] = TRANSLATE_SEX($HTTP_POST_VARS['salut']);
+                               $HTTP_POST_VARS['warning_interval'] = CREATE_FANCY_TIME($HTTP_POST_VARS['warning_interval']);
+                               if (!$PASS) $HTTP_POST_VARS['pass1'] = SPONSOR_PASS_UNCHANGED;
+
+                               // Load email template and send the mail away
+                               $msg = LOAD_EMAIL_TEMPLATE("admin_sponsor_edit", $HTTP_POST_VARS, false);
+                               SEND_EMAIL($HTTP_POST_VARS['email'], SPONSOR_ADMIN_EDIT_SUBJECT, $msg);
+                               break;
+
+                       default: // Unknown mode
+                               $MSG = ADMIN_INVALID_MODE_1.$HTTP_GET_VARS['mode'].ADMIN_INVALID_MODE_2;
+                               break;
+                       }
+
+                       if (!empty($MSG))
+                       {
+                               // Output message
+                               LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+                       }
+               }
+                elseif (file_exists(PATH."templates/".GET_LANGUAGE()."/html/admin/".$TPL.".tpl"))
+               {
+                       // Create mailto link
+                       define('__SPONSOR_VALUE', "<A href=\"mailto:".__EMAIL."\">".__SURNAME." ".__FAMILY."</A>");
+
+                       // Load mode template
+                       LOAD_TEMPLATE($TPL);
+               }
+                else
+               {
+                       // Template not found!
+                       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_TPL_404_1.$HTTP_GET_VARS['mode'].ADMIN_TPL_404_2);
+               }
+       }
+        else
+       {
+               // Sponsor not found!
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.$HTTP_GET_VARS['id'].ADMIN_SPONSOR_404_2);
+       }
+}
+ else
+{
+       // Not called by what-list_sponsor.php
+       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_CALL_NOT_DIRECTLY);
+}
+
+//
+?>
diff --git a/inc/modules/admin/what-list_sponsor.php b/inc/modules/admin/what-list_sponsor.php
new file mode 100644 (file)
index 0000000..fc48a1f
--- /dev/null
@@ -0,0 +1,200 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/25/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-list_sponsor.php                            *
+ * -------------------------------------------------------------------- *
+ * Short description : List all sponsors and their details              *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Alle Sponsoren und deren Details auflisten       *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if (!empty($HTTP_GET_VARS['id']))
+{
+       // Show detailed informations to a sponsor
+       $result = SQL_QUERY_ESC("SELECT company, position, salut, surname, family, street_nr1, street_nr2, zip, city, country, phone, fax, cell, email, url, tax_ident, status, sponsor_created, last_online, last_change, receive_warnings, points_amount, points_used, remote_addr, warning_interval, refid, ref_count
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE id='%s' LIMIT 1",
+ array(bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // Load sponsor details
+               $DATA = SQL_FETCHARRAY($result);
+               SQL_FREERESULT($result);
+
+               // Check if an entry is empty
+               foreach ($DATA as $k=>$v)
+               {
+                       if (empty($v)) $DATA[$k] = "---";
+               }
+
+               // Check for sponsor's orders (only count)
+               $result_orders = SQL_QUERY_ESC("SELECT COUNT(id) FROM "._MYSQL_PREFIX."_sponsor_orders WHERE sponsorid='%s'",
+                array(bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+               list($orders) = SQL_FETCHROW($result_orders);
+               SQL_FREERESULT($result_orders);
+               if (empty($orders)) $orders = "0";
+
+               // Prepare all data for the template
+               //  Sponsor's ID
+               define('__SPONSOR_ID'         , $HTTP_GET_VARS['id']);
+               //  Company's data
+               define('__SPONSOR_COMPANY'    , $DATA['company']);
+               define('__SPONSOR_POSITION'   , $DATA['position']);
+               define('__SPONSOR_TAX_IDENT'  , $DATA['tax_ident']);
+               //  Personal data
+               define('__SPONSOR_SALUT'      , TRANSLATE_SEX($DATA['salut']));
+               define('__SPONSOR_SURNAME'    , $DATA['surname']);
+               define('__SPONSOR_FAMILY'     , $DATA['family']);
+               define('__SPONSOR_STREET1'    , $DATA['street_nr1']);
+               define('__SPONSOR_STREET2'    , $DATA['street_nr2']);
+               define('__SPONSOR_ZIP'        , $DATA['zip']);
+               define('__SPONSOR_CITY'       , $DATA['city']);
+               define('__SPONSOR_COUNTRY'    , $DATA['country']);
+               //  Contact data
+               define('__SPONSOR_PHONE'      , $DATA['phone']);
+               define('__SPONSOR_FAX'        , $DATA['fax']);
+               define('__SPONSOR_CELL'       , $DATA['cell']);
+               define('__SPONSOR_EMAIL'      , "mailto:".$DATA['email']);
+               define('__SPONSOR_EMAIL_VALUE', $DATA['email']);
+               define('__SPONSOR_URL'        , DEREFERER($DATA['url']));
+               //  Timestamps
+               define('__SPONSOR_CREATED'    , MAKE_DATETIME($DATA['sponsor_created'], "2"));
+               define('__SPONSOR_LAST_ONLINE', MAKE_DATETIME($DATA['last_online'], "2"));
+               define('__SPONSOR_LAST_CHANGE', MAKE_DATETIME($DATA['last_change'], "2"));
+               //  Sponsor points
+               define('__SPONSOR_AMOUNT'     , TRANSLATE_COMMA($DATA['points_amount']));
+               define('__SPONSOR_USED'       , TRANSLATE_COMMA($DATA['points_used']));
+               //  Warning because low points
+               define('__SPONSOR_REC_WARNING', TRANSLATE_YESNO($DATA['receive_warnings']));
+               define('__SPONSOR_INTERVAL'   , CREATE_FANCY_TIME($DATA['warning_interval']));
+               //  Orders total
+               define('__SPONSOR_ORDERS'     , $orders);
+               //  Other data
+               define('__SPONSOR_STATUS'     , SPONSOR_TRANSLATE_STATUS($DATA['status']));
+               define('__SPONSOR_REFID'      , $DATA['refid']);
+               define('__SPONSOR_REMOTE_ADR' , $DATA['remote_addr']);
+               define('__SPONSOR_REFS'       , $DATA['ref_count']);
+
+               // Load template
+               LOAD_TEMPLATE("admin_list_sponsor_details");
+       }
+        else
+       {
+               // Sponsor not found
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.$HTTP_GET_VARS['id'].ADMIN_SPONSOR_404_2);
+       }
+}
+ elseif (!empty($HTTP_GET_VARS['rid']))
+{
+       // Search for sponsor
+       $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1",
+        array(bigintval($HTTP_GET_VARS['rid'])), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // Free memory
+               SQL_FREERESULT($result);
+
+               // Sponsor found so let's list all his referrals
+               $result = SQL_QUERY_ESC("SELECT id, salut, surname, family, email, status, sponsor_created, last_online, points_amount, points_used, remote_addr, ref_count
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE refid='%s' ORDER BY id",
+ array(bigintval($HTTP_GET_VARS['rid'])), __FILE__, __LINE__);
+
+               if (SQL_NUMROWS($result) > 0)
+               {
+                       // List refs now
+                       // Free memory
+                       SQL_FREERESULT($result);
+               }
+                else
+               {
+                       // No refs made so far
+                       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_REFS_404_1."<A href=\"".URL."/modules.php?module=admin&amp;what=list_sponsor&amp;id=".$HTTP_GET_VARS['rid']."\">".$HTTP_GET_VARS['rid']."</A>".ADMIN_SPONSOR_REFS_404_2);
+               }
+       }
+        else
+       {
+               // Sponsor not found
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.$HTTP_GET_VARS['rid'].ADMIN_SPONSOR_404_2);
+       }
+}
+ else
+{
+       // List all sponsors
+       $result_main = SQL_QUERY("SELECT id, salut, surname, family, email, status, sponsor_created, last_online, points_amount, points_used, remote_addr
+FROM "._MYSQL_PREFIX."_sponsor_data ORDER BY id", __FILE__, __LINE__);
+       if (SQL_NUMROWS($result_main) > 0)
+       {
+               // At least one sponsor found!
+               $OUT = ""; $SW = 2;
+               while(list($id, $salut, $sname, $fname, $email, $status, $created, $last, $amount, $used, $ip) = SQL_FETCHROW($result_main))
+               {
+                       // Transfer data to array
+                       $content = array(
+                               'id'      => $id,
+                               'sw'      => $SW,
+                               'salut'   => TRANSLATE_SEX($salut),
+                               'sname'   => $sname,
+                               'fname'   => $fname,
+                               'email'   => "mailto:".$email,
+                               'status'  => SPONSOR_TRANSLATE_STATUS($status),
+                               'created' => MAKE_DATETIME($created, "2"),
+                               'last'    => MAKE_DATETIME($last, "2"),
+                               'points'  => TRANSLATE_COMMA($amount - $used),
+                               'ip'      => $ip,
+                       );
+
+                       // Load row template
+                       $OUT .= LOAD_TEMPLATE("admin_list_sponsor_row", true, $content);
+                       $SW = 3 - $SW;
+               }
+
+               // Free memory
+               SQL_FREERESULT($result_main);
+               define('__SPONSOR_ROWS', $OUT);
+
+               // Load final template
+               LOAD_TEMPLATE("admin_list_sponsor");
+       }
+        else
+       {
+               // No sponsors registered so far
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_NONE_REGISTERED);
+       }
+}
+
+//
+?>
diff --git a/inc/modules/admin/what-list_sponsor_pay.php b/inc/modules/admin/what-list_sponsor_pay.php
new file mode 100644 (file)
index 0000000..587fc05
--- /dev/null
@@ -0,0 +1,249 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 06/10/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-list_sponsor_pay.php                        *
+ * -------------------------------------------------------------------- *
+ * Short description : List/edit/delete all payments and add new        *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Auflisten/Aendern/Loeschen aller Buchungspakete  *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+$MSG = "";
+
+if (isset($HTTP_POST_VARS['add']))
+{
+       // Check input variables
+       if (empty($HTTP_POST_VARS['pay_name'])) unset($HTTP_POST_VARS['add']);
+       if ((round($HTTP_POST_VARS['pay_rate']) == 0) || (empty($HTTP_POST_VARS['pay_rate']))) unset($HTTP_POST_VARS['add']);
+       $HTTP_POST_VARS['pay_min_count'] = bigintval($HTTP_POST_VARS['pay_min_count']);
+       if (($HTTP_POST_VARS['pay_min_count'] == 0) || (empty($HTTP_POST_VARS['pay_min_count']))) unset($HTTP_POST_VARS['add']);
+       if (empty($HTTP_POST_VARS['pay_currency'])) unset($HTTP_POST_VARS['add']);
+}
+ elseif ((isset($HTTP_POST_VARS['edit'])) || (isset($HTTP_POST_VARS['del'])) || (isset($HTTP_POST_VARS['change'])) || (isset($HTTP_POST_VARS['remove'])))
+{
+       // Check if at least one entry was selected
+       if (empty($HTTP_POST_VARS['id']))
+       {
+               // Nothing selected for editing / deleting???
+               unset($HTTP_POST_VARS['edit']);
+               unset($HTTP_POST_VARS['del']);
+               unset($HTTP_POST_VARS['change']);
+               unset($HTTP_POST_VARS['remove']);
+       }
+        elseif (isset($HTTP_POST_VARS['change']))
+       {
+               // Change entries here...
+               foreach ($HTTP_POST_VARS['id'] as $id=>$sel)
+               {
+                       // Secure ID
+                       $id = bigintval($id);
+
+                       // Save entry
+                       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_paytypes
+SET pay_name='%s', pay_rate='%s', pay_min_count='%s', pay_currency='%s' WHERE id='%s' LIMIT 1",
+ array($HTTP_POST_VARS['name'][$id], $HTTP_POST_VARS['rate'][$id], bigintval($HTTP_POST_VARS['min'][$id]), $HTTP_POST_VARS['curr'][$id], $id),
+ __FILE__, __LINE__);
+               }
+
+               // Generate message
+               $MSG = SPONSOR_PAY_ENTRIES_CHANGED;
+       }
+        elseif (isset($HTTP_POST_VARS['remove']))
+       {
+               // Remove entries here...
+               foreach ($HTTP_POST_VARS['id'] as $id=>$sel)
+               {
+                       // Remove entry
+                       $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_sponsor_paytypes WHERE id='%s' LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+               }
+
+               // Generate message
+               $MSG = SPONSOR_PAY_ENTRIES_REMOVED;
+       }
+
+       if (!empty($MSG))
+       {
+               // Output message
+               LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+               OUTPUT_HTML("<BR>");
+       }
+}
+
+if (isset($HTTP_POST_VARS['add']))
+{
+       // Check if entry with same name does exists
+       $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_sponsor_paytypes WHERE pay_name='%s' LIMIT 1",
+        array($HTTP_POST_VARS['pay_name']), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 0)
+       {
+               // No entry found so add this line
+               $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_sponsor_paytypes (pay_name, pay_rate, pay_min_count, pay_currency)
+ VALUES ('%s', '%s', '%s', '%s')",
+ array(htmlspecialchars($HTTP_POST_VARS['pay_name']), str_replace(",", ".", $HTTP_POST_VARS['pay_rate']), bigintval($HTTP_POST_VARS['pay_min_count']), htmlspecialchars($HTTP_POST_VARS['pay_currency'])),
+ __FILE__, __LINE__);
+
+               // Payment type added!
+               $MSG = SPONSOR_ADMIN_PAYTYPE_ADDED_1.$HTTP_POST_VARS['pay_name'].SPONSOR_ADMIN_PAYTYPE_ADDED_2;
+       }
+        else
+       {
+               // Free memory
+               SQL_FREERESULT($result);
+
+               // Entry does already exists
+               $MSG = SPONSOR_ADMIN_PAYTYPE_ALREADY_1.$HTTP_POST_VARS['pay_name'].SPONSOR_ADMIN_PAYTYPE_ALREADY_2;
+       }
+
+       // Output message
+       LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+       OUTPUT_HTML("<BR>");
+}
+ elseif ((isset($HTTP_POST_VARS['edit'])) || (isset($HTTP_POST_VARS['del'])))
+{
+       // Load all data
+       $OUT = ""; $SW = 2;
+       foreach ($HTTP_POST_VARS['id'] as $id=>$sel)
+       {
+               // Load entry
+               $result = SQL_QUERY_ESC("SELECT 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
+                       list($name, $rate, $min, $curr) = SQL_FETCHROW($result);
+                       SQL_FREERESULT($result);
+
+                       // Transfer data to array
+                       $content = array(
+                               'id'   => bigintval($id),
+                               'sw'   => bigintval($SW),
+                               'name' => htmlspecialchars($name),
+                               'rate' => TRANSLATE_COMMA($rate),
+                               'min'  => bigintval($min),
+                               'curr' => htmlspecialchars($curr)
+                       );
+
+                       if (isset($HTTP_POST_VARS['edit']))
+                       {
+                               // Edit entry
+                               $OUT .= LOAD_TEMPLATE("admin_list_sponsor_pay_edit_row", true, $content);
+                       }
+                        else
+                       {
+                               // Delete entry
+                               $OUT .= LOAD_TEMPLATE("admin_list_sponsor_pay_del_row", true, $content);
+                       }
+               }
+                else
+               {
+                       // Entry invalid
+                       $OUT .= LOAD_TEMPLATE("admin_list_sponsor_pay_404", true, $id);
+               }
+
+               // Switch colors
+               $SW = 3 - $SW;
+       }
+
+       // Remember content in constant
+       define('__SPONSOR_ROWS', $OUT);
+
+       // Load main template depending on mode (edit/delete)
+       if (isset($HTTP_POST_VARS['edit']))
+       {
+               // Load main edit template
+               LOAD_TEMPLATE("admin_list_sponsor_pay_edit");
+       }
+        else
+       {
+               // Load main delete template
+               LOAD_TEMPLATE("admin_list_sponsor_pay_del");
+       }
+}
+ else
+{
+       // Load all payment types
+       $result = SQL_QUERY("SELECT id, pay_name, pay_rate, pay_min_count, pay_currency FROM "._MYSQL_PREFIX."_sponsor_paytypes ORDER BY pay_name",
+        __FILE__, __LINE__);
+
+       // Do we have some paytypes setup?
+       if (SQL_NUMROWS($result) > 0)
+       {
+               // Prepare variables for listing
+               $SW = 2; $OUT = "";
+
+               // List alle found payment types
+               while(list($id, $name, $rate, $min, $currency) = SQL_FETCHROW($result))
+               {
+                       // Remember data in array
+                       $content = array(
+                               'sw'       => $SW,
+                               'id'       => $id,
+                               'name'     => $name,
+                               'rate'     => TRANSLATE_COMMA($rate),
+                               'min'      => $min,
+                               'currency' => $currency
+                       );
+
+                       // Add row
+                       $OUT .= LOAD_TEMPLATE("admin_list_sponsor_pay_row", true, $content);
+
+                       // Switch colors
+                       $SW = 3 - $SW;
+               }
+
+               // Free memory
+               SQL_FREERESULT($result);
+
+               // Remember rows in constant for the template
+               define('__LIST_ROWS', $OUT);
+
+               // Load list template
+               define('__LIST_CONTENT', LOAD_TEMPLATE("admin_list_sponsor_pay", true));
+       }
+        else
+       {
+               // Noting setup so far!
+               define('__LIST_CONTENT', LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_ADMIN_NO_PAYTYPES));
+       }
+
+       // Add new payment types here
+       define('__ADD_CONTENT', LOAD_TEMPLATE("admin_add_sponsor_paytype", true));
+
+       // Load final template
+       LOAD_TEMPLATE("admin_sponsor_paytypes");
+}
+
+//
+?>
diff --git a/inc/modules/admin/what-list_sponsor_pays.php b/inc/modules/admin/what-list_sponsor_pays.php
new file mode 100644 (file)
index 0000000..5c183d6
--- /dev/null
@@ -0,0 +1,67 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/24/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-list_sponsor_pays.php                       *
+ * -------------------------------------------------------------------- *
+ * Short description : Edit sponsor account                             *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenaccount aendern                         *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if (!empty($HTTP_GET_VARS['id']))
+{
+       // Check for selected sponsor
+       $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1",
+        array(bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // ...
+               // Free memory
+               SQL_FREERESULT($result);
+       }
+        else
+       {
+               // Sponsor not found!
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.$HTTP_GET_VARS['id'].ADMIN_SPONSOR_404_2);
+       }
+}
+ else
+{
+       // Not called by what-list_sponsor.php
+       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_CALL_NOT_DIRECTLY);
+}
+
+//
+?>
diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php
new file mode 100644 (file)
index 0000000..2d22e80
--- /dev/null
@@ -0,0 +1,143 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/24/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-lock_sponsor.php                            *
+ * -------------------------------------------------------------------- *
+ * Short description : Edit sponsor account                             *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenaccount aendern                         *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+$MSG = "";
+
+if (!empty($HTTP_GET_VARS['id']))
+{
+       // Check for selected sponsor
+       $result = SQL_QUERY_ESC("SELECT salut, surname, family, email, status FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1",
+        array($HTTP_GET_VARS['id']), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // Get sponsor's current status and let only confirmed and locked status pass
+               list($salut, $sname, $fname, $email, $status) = SQL_FETCHROW($result);
+               SQL_FREERESULT($result);
+
+               if (($status == "CONFIRMED") || ($status == "LOCKED"))
+               {
+                       // Transfer data to constants
+                       define('__SALUT'  , TRANSLATE_SEX($salut));
+                       define('__SURNAME', $sname);
+                       define('__FAMILY' , $fname);
+                       define('__ID'     , $HTTP_GET_VARS['id']);
+
+                       if (isset($HTTP_POST_VARS['ok']))
+                       {
+                               // Create messages
+                               if ($status == "CONFIRMED")
+                               {
+                                       // Message when sponsor's account got lock
+                                       define('__EMAIL_MSG', SPONSOR_ACCOUNT_LOCKED);
+                                       $subject = SPONSOR_SUBJECT_LOCKED;
+                                       $status = "LOCKED";
+                               }
+                                else
+                               {
+                                       // Message when sponsor's account got unlock
+                                       define('__EMAIL_MSG', SPONSOR_ACCOUNT_UNLOCKED);
+                                       $subject = SPONSOR_SUBJECT_UNLOCKED;
+                                       $status = "CONFIRMED";
+                               }
+
+                               // Load email message
+                               $msg = LOAD_EMAIL_TEMPLATE("lock_sponsor", $HTTP_POST_VARS['reason'], $HTTP_GET_VARS['id']);
+
+                               // And send it away
+                               SEND_EMAIL($email, $subject, $msg);
+
+                               // Update sponsor's account
+                               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET status='".$status."' WHERE id='%s' LIMIT 1",
+                                array(bigintval($HTTP_GET_VARS['id'])), __FILE__, __LINE__);
+                       }
+                        elseif (!empty($HTTP_POST_VARS['no']))
+                       {
+                               // No don't lock / unlock now!
+                               LOAD_URL(URL."/modules.php?module=admin&what=list_sponsor&id=".$HTTP_GET_VARS['id']);
+                       }
+                        else
+                       {
+                               // Create header and text messages
+                               if ($status == "CONFIRMED")
+                               {
+                                       // Messages when sponsor's account is confirmed
+                                       define('__HEADER_MESSAGE', SPONSOR_LOCK_SPONSOR_HEADER);
+                                       define('__TEXT_MESSAGE'  , SPONSOR_LOCK_SPONSOR_TEXT);
+                               }
+                                else
+                               {
+                                       // Messages when sponsor's account is locked
+                                       define('__HEADER_MESSAGE', SPONSOR_UNLOCK_SPONSOR_HEADER);
+                                       define('__TEXT_MESSAGE'  , SPONSOR_UNLOCK_SPONSOR_TEXT);
+                               }
+
+                               // Create email link
+                               define('__EMAIL_LINK', "<A href=\"mailto:".$email."\">".__SALUT." ".__SURNAME." ".__FAMILY."</A>");
+
+                               // Display form
+                               LOAD_TEMPLATE("admin_lock_sponsor");
+                       }
+               }
+                else
+               {
+                       // Cannot change status on unconfirmed or pending accounts!
+                       $MSG = ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS;
+               }
+       }
+        else
+       {
+               // Sponsor not found!
+               $MSG = ADMIN_SPONSOR_404_1.$HTTP_GET_VARS['id'].ADMIN_SPONSOR_404_2;
+       }
+}
+ else
+{
+       // Not called by what-list_sponsor.php
+       $MSG = ADMIN_CALL_NOT_DIRECTLY;
+}
+
+if (!empty($MSG))
+{
+       // Output message
+       LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+}
+//
+?>
diff --git a/inc/modules/admin/what-unlock_sponsor.php b/inc/modules/admin/what-unlock_sponsor.php
new file mode 100644 (file)
index 0000000..d8018db
--- /dev/null
@@ -0,0 +1,223 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/23/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-unlock_sponsor.php                          *
+ * -------------------------------------------------------------------- *
+ * Short description : Unlock sponsor accounts                          *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenaccounts freigeben                      *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+// Check if admin has submitted form
+if (isset($HTTP_POST_VARS['ok']))
+{
+       // Does he have selected at least one sponsor?
+       if (SELECTION_COUNT($HTTP_POST_VARS['id']) > 0)
+       {
+               // At least one entry selected
+               foreach ($HTTP_POST_VARS['id'] as $id=>$sel)
+               {
+                       // Load his personal data
+                       $result_main = SQL_QUERY_ESC("SELECT salut, surname, family, email, remote_addr, sponsor_created, points_amount, refid
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE status='PENDING' AND id='%s' LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+                       $refid = 0;
+                       if (SQL_NUMROWS($result_main) == 1)
+                       {
+                               // Load data and free memory
+                               list($salut, $sname, $fname, $email, $ip, $created, $points, $refid) = SQL_FETCHROW($result_main);
+
+                               // Check for open payments and close them
+                               $result = SQL_QUERY_ESC("SELECT DISTINCT so.aid, so.pay_count, so.pay_ordered, so.pay_status,
+sp.pay_name, sp.pay_rate, sp.pay_currency
+FROM "._MYSQL_PREFIX."_sponsor_orders AS so
+LEFT JOIN "._MYSQL_PREFIX."_sponsor_paytypes AS sp
+ON sp.id=so.payid
+WHERE so.sponsorid='%s'
+ORDER BY sp.pay_name",
+ array(bigintval($id)), __FILE__, __LINE__);
+                               if (SQL_NUMROWS($result) > 0)
+                               {
+                                       // Payment does exist
+                                       while(list($aid, $count, $ordered, $status, $pname, $prate, $pcurr) = SQL_FETCHROW($result))
+                                       {
+                                               if ($aid == "0")
+                                               {
+                                                       // No admin assigned!
+                                                       $aid = SPONSOR_NO_ADMIN;
+                                               }
+                                                else
+                                               {
+                                                       // Load admin's email address for contact
+                                                       $result_aid = SQL_QUERY_ESC("SELECT email FROM "._MYSQL_PREFIX."_admins WHERE id='%s' LIMIT 1",
+                                                        array(bigintval($aid)), __FILE__, __LINE__);
+                                                       list($aid) = SQL_FETCHROW($result_aid);
+                                                       SQL_FREERESULT($result_aid);
+
+                                                       // Check if admin login is still in db
+                                                       if (empty($aid)) $aid = ADMIN_NOT_FOUND;
+                                               }
+
+                                               // Transfer data to array
+                                               $content = array(
+                                                       'aid'   => $aid,
+                                                       'order' => ($count * $prate)." ".$pcurr,
+                                                       'stamp' => MAKE_DATETIME($ordered, "2"),
+                                                       'pname' => $pname,
+                                               );
+       
+                                               // Load email template
+                                               $content['msg'] = LOAD_EMAIL_TEMPLATE("sponsor_unlock_sponsor_pay", $content, $id);
+                                       }
+                               }
+                                        else
+                               {
+                                       // No payments found
+                                       $content['msg'] = SPONSOR_NO_PAYMENTS_FOUND;
+                               }
+
+                               // Free memory
+                               SQL_FREERESULT($result);
+                       }
+
+                       // Free memory
+                       SQL_FREERESULT($result_main);
+
+                       // Unlock sponsor account
+                       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET status='CONFIRMED'
+WHERE id='%s' AND status='PENDING' LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+
+                       // Update, if applyable, referral count and points
+                       if (($refid > 0) && ($refid != $id))
+                       {
+                               // Update referral account
+                               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data
+SET points_amount=points_amount+%s, ref_count=ref_count+1
+WHERE id='%s' LIMIT 1",
+ array($CONFIG['sponsor_ref_points'], bigintval($refid)), __FILE__, __LINE__);
+
+                               // Load referral's data
+                               if (SQL_AFFECTED_ROWS($link) == 1)
+                               {
+                                       $result = SQL_QUERY_ESC("SELECT id, salut, surname, family, email,
+(points_amount - points_used) AS points, receive_warnings, ref_count AS refs
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE id='%s' LIMIT 1",
+ array(bigintval($refid)), __FILE__, __LINE__);
+                                       $REFERRAL = SQL_FETCHARRAY($result);
+                                       if ($REFERRAL['receive_warnings'] == "Y")
+                                       {
+                                               // Translate some data
+                                               $REFERRAL['points']     = TRANSLATE_COMMA($REFERRAL['points']);
+                                               $REFERRAL['ref_points'] = TRANSLATE_COMMA($CONFIG['sponsor_ref_points']);
+                                               $REFERRAL['salut']      = TRANSLATE_SEX($REFERRAL['salut']);
+
+                                               // Send notification to referral
+                                               $REF_MSG = LOAD_EMAIL_TEMPLATE("sponsor_ref_notify", $REFERRAL);
+                                               SEND_EMAIL($REFERRAL['email'], SPONSOR_REF_NOTIFY_SUBJ, $REF_MSG);
+                                       }
+
+                                       // Free memory
+                                       SQL_FREERESULT($result);
+                               }
+                       }
+
+                       // Transfer data to array
+                       $content['salut']   = TRANSLATE_SEX($salut);
+                       $content['surname'] = $sname;
+                       $content['family']  = $fname;
+                       $content['sponsor'] = $id;
+                       $content['points']  = TRANSLATE_COMMA($points);
+
+                       // So let's send the email away
+                       $msg = LOAD_EMAIL_TEMPLATE("sponsor_unlocked", $content);
+                       SEND_EMAIL($email, SPONSOR_UNLOCKED_SUBJ, $msg);
+               }
+       }
+        else
+       {
+               // Nothing selected
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_NONE_SELECTED_UNLOCK);
+       }
+
+       // Add seperator
+       OUTPUT_HTML("<BR>");
+}
+
+// Begin listing of all pending sponsor accounts
+$result = SQL_QUERY("SELECT id, salut, surname, family, email, remote_addr, sponsor_created
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE status='PENDING' ORDER BY id", __FILE__, __LINE__);
+
+if (SQL_NUMROWS($result) > 0)
+{
+       // Entries found so let's list them!
+       $OUT = ""; $SW = 2;
+       while(list($id, $salut, $sname, $fname, $email, $ip, $created) = SQL_FETCHROW($result))
+       {
+               // Transfer data to array
+               $content = array(
+                       'sw'      => $SW,
+                       'id'      => $id,
+                       'salut'   => TRANSLATE_SEX($salut),
+                       'surname' => $sname,
+                       'family'  => $fname,
+                       'email'   => "mailto:".$email,
+                       'remote'  => $ip,
+                       'created' => MAKE_DATETIME($created, "2"),
+               );
+
+               // Load row template and switch colors
+               $OUT .= LOAD_TEMPLATE("admin_unlock_sponsor_row", true, $content);
+               $SW = 3 - $SW;
+       }
+       define('__SPONSOR_ROWS', $OUT);
+
+       // Load template
+       LOAD_TEMPLATE("admin_unlock_sponsor");
+}
+ else
+{
+       // No pending accounts found
+       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_NONE_PENDING);
+}
+
+// Free memory
+SQL_FREERESULT($result);
+
+//
+?>
diff --git a/inc/modules/guest/action-sponsor.php b/inc/modules/guest/action-sponsor.php
new file mode 100644 (file)
index 0000000..3485b82
--- /dev/null
@@ -0,0 +1,55 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 06/10/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : action-sponsor.php                               *
+ * -------------------------------------------------------------------- *
+ * Short description : Sponsor area                                     *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenbereich                                 *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("guest", basename(__FILE__));
+
+// Load the include file
+$INC = PATH."inc/modules/guest/what-".$what.".php";
+if (file_exists($INC))
+{
+       // Ok, we finally load the guest action module
+       include($INC);
+}
+ else
+{
+       $FATAL[] = GUEST_404_ACTION_1.$what.GUEST_404_ACTION_2;
+}
+//
+?>
diff --git a/inc/modules/guest/action-sponsors.php b/inc/modules/guest/action-sponsors.php
new file mode 100644 (file)
index 0000000..7148cc7
--- /dev/null
@@ -0,0 +1,56 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 10/14/2003 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : action-members.php                               *
+ * -------------------------------------------------------------------- *
+ * Short description : Menu points for members (login register, ...)    *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Menues fuer Mitglieder (Login, Anmeldung, ...)   *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("guest", basename(__FILE__));
+
+// Load the include file
+$INC = PATH."inc/modules/guest/what-".$what.".php";
+if (file_exists($INC))
+{
+       // Ok, we finally load the guest action module
+       include($INC);
+}
+ else
+{
+       $FATAL[] = GUEST_404_ACTION_1.$what.GUEST_404_ACTION_2;
+}
+//
+?>
diff --git a/inc/modules/guest/what-sponsor_agb.php b/inc/modules/guest/what-sponsor_agb.php
new file mode 100644 (file)
index 0000000..54d1dd6
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 06/10/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-sponsor_agb.php                             *
+ * -------------------------------------------------------------------- *
+ * Short description : General Terms & Conditions for the sponsor       *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Allgemeine Geschaeftsbedingungen fuer Sponsor    *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("guest", basename(__FILE__));
+
+//
+?>
diff --git a/inc/modules/guest/what-sponsor_infos.php b/inc/modules/guest/what-sponsor_infos.php
new file mode 100644 (file)
index 0000000..01a0f20
--- /dev/null
@@ -0,0 +1,134 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 06/10/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-sponsor_infos.php                           *
+ * -------------------------------------------------------------------- *
+ * Short description : Informations and prices for the sponsor          *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Informationen/Preise fuer den Sponsoren          *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("guest", basename(__FILE__));
+
+// Remove result_act
+unset($result_act);
+
+// Load all sponsor actions
+$result_act = SQL_QUERY("SELECT DISTINCT m.title, c.conv_rate, c.conv_name
+FROM "._MYSQL_PREFIX."_sponsor_menu AS m
+LEFT JOIN "._MYSQL_PREFIX."_sponsor_action_convert AS c ON m.what=c.ext_name
+LEFT JOIN "._MYSQL_PREFIX."_sponsor_registry AS r ON m.what=r.ext_name
+WHERE m.action='actions' AND r.is_active='Y'
+ORDER BY m.sort ASC", __FILE__, __LINE__);
+$num_act = SQL_NUMROWS($result_act);
+
+if ($num_act > 0)
+{
+       // Load all actions
+       $OUT_ACT = ""; $SW = 2;
+       while (list($title, $conv, $name) = SQL_FETCHROW($result_act))
+       {
+               // Prepare data for the row template
+               $content = array(
+                       'sw'    => $SW,
+                       'title' => $title,
+                       'conv'  => round($conv),
+                       'name'  => $name,
+               );
+
+               // Load row template and switch color
+               $OUT_ACT .= LOAD_TEMPLATE("guest_sponsor_act_row", true, $content);
+               $SW = 3 - $SW;
+       }
+
+       // 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", __FILE__, __LINE__);
+       if (SQL_NUMROWS($result_pay) > 0)
+       {
+               // Load all pay types
+               $OUT_PAY = ""; $SW = 2;
+               while (list($name, $rate, $min, $curr) = SQL_FETCHROW($result_pay))
+               {
+                       // Prepare data for the row template
+                       $content = array(
+                               'sw'    => $SW,
+                               'name'  => $name,
+                               'rate'  => TRANSLATE_COMMA($rate),
+                               'min'   => $min,
+                               'curr'  => $curr,
+                               'price' => $min,
+                       );
+
+                       if (!ereg(",", $content['price']))
+                       {
+                               // Add missing zeros
+                               $content['price'] .= ",".str_repeat("0", $CONFIG['max_comma']);
+                       }
+
+                       // Load row template and switch color
+                       $OUT_PAY .= LOAD_TEMPLATE("guest_sponsor_pay_row", true, $content);
+                       $SW = 3 - $SW;
+               }
+       }
+        else
+       {
+               // No pay types setuped so far!
+               $OUT_PAY = "<TR><TD colspan=\"2\">
+  ".LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_NO_ACTIONS_ACTIVATED)."
+</TD></TR>";
+       }
+}
+ else
+{
+       // No actions activated so far!
+       $OUT_ACT = "<TR><TD colspan=\"2\" class=\"bottom2\" style=\"padding-top: 10px; padding-bottom: 10px\">
+  ".LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_NO_ACTIONS_ACTIVATED)."
+</TD></TR>";
+       $OUT_PAY = "<TR><TD colspan=\"2\" class=\"bottom2\" style=\"padding-top: 10px; padding-bottom: 10px\">
+  ".LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_NO_ACTIONS_ACTIVATED)."
+</TD></TR>";
+}
+
+// Transfer rows to constans
+define('__SPONSOR_ACTIONS' , $OUT_ACT);
+define('__SPONSOR_PAYTYPES', $OUT_PAY);
+
+// Free memory
+if (isset($result_act)) SQL_FREERESULT($result_act);
+if (isset($result_pay)) SQL_FREERESULT($result_pay);
+
+// Load main template
+LOAD_TEMPLATE("guest_sponsor_infos");
+
+//
+?>
diff --git a/inc/modules/guest/what-sponsor_login.php b/inc/modules/guest/what-sponsor_login.php
new file mode 100644 (file)
index 0000000..77a6db5
--- /dev/null
@@ -0,0 +1,324 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 06/10/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-sponsor_login.php                           *
+ * -------------------------------------------------------------------- *
+ * Short description : Login form and password resending for sponsor    *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Loginformular und Neues Passwort fuer Sponsor    *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("guest", basename(__FILE__));
+
+$MODE = "";
+if (!empty($HTTP_GET_VARS['mode']))
+{
+       // A "special" mode of the login system was requested
+       switch ($HTTP_GET_VARS['mode'])
+       {
+               case "activate" : $MODE = "activate";  break; // Activation link requested
+               case "lost_pass": $MODE = "lost_pass"; break; // Request new password
+       }
+}
+
+// Check if hash for confirmation of email address is given...
+if (!empty($HTTP_GET_VARS['hash']))
+{
+       // Lookup sponsor
+       $result = SQL_QUERY_ESC("SELECT id, status, salut, surname, family,
+company, position, tax_ident,
+street_nr1, street_nr2, country, zip, city, email, phone, fax, cell,
+points_amount AS points, last_pay AS pay, last_curr AS curr
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE hash='%s' AND (status='UNCONFIRMED' OR status='EMAIL')
+LIMIT 1", array($HTTP_GET_VARS['hash']), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // Sponsor found, load his data...
+               $SPONSOR = SQL_FETCHARRAY($result);
+
+               // Translate salut and comma
+               $SPONSOR['salut']  = TRANSLATE_SEX($SPONSOR['salut']);
+               $SPONSOR['points'] = TRANSLATE_COMMA($SPONSOR['points']);
+               $SPONSOR['pay']    = TRANSLATE_COMMA($SPONSOR['pay']);
+
+               // Unconfirmed account or changed email address?
+               if ($SPONSOR['status'] == "UNCONFIRMED")
+               {
+                       // Set account to pending
+                       $result_update = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET status='PENDING'
+WHERE id='%s' AND hash='%s' AND status='UNCONFIRMED' LIMIT 1",
+ array(bigintval($SPONSOR['id']), $HTTP_GET_VARS['hash']), __FILE__, __LINE__);
+
+                       // Check on success 
+                       if (SQL_AFFECTEDROWS($link) == 1)
+                       {
+                               // Prepare mail and send it to the sponsor
+                               $MSG = LOAD_EMAIL_TEMPLATE("sponsor_pending", $SPONSOR);
+                               SEND_EMAIL($SPONSOR['email'], SPONSOR_ACCOUNT_PENDING_SUBJ, $MSG);
+
+                               // Send email to admin
+                               if (GET_EXT_VERSION("admins") >= "0.4.1")
+                               {
+                                       // Use new system
+                                       SEND_ADMIN_EMAILS_PRO (ADMIN_NEW_SPONSOR, "admin_sponsor_pending", $SPONSOR);
+                               }
+                                else
+                               {
+                                       // Send over old system
+                                       $msg_admin = LOAD_EMAIL_TEMPLATE("admin_sponsor_pending", $SPONSOR);
+                                       SEND_ADMIN_EMAILS (ADMIN_NEW_SPONSOR, $msg_admin);
+                               }
+
+                               // Sponsor account set to pending
+                               LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACCOUNT_IS_PENDING);
+                       }
+                        else
+                       {
+                               // Could not unlock account!
+                               LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACCOUNT_PENDING_FAILED);
+                       }
+               }
+                elseif ($SPONSOR['status'] == "EMAIL")
+               {
+                       // Changed email adress need to be confirmed
+                       $result_update = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET status='CONFIRMED'
+WHERE id='%s' AND hash='%s' AND status='EMAIL' LIMIT 1",
+ array(bigintval($SPONSOR['id']), $HTTP_GET_VARS['hash']), __FILE__, __LINE__);
+
+                       // Check on success 
+                       if (SQL_AFFECTEDROWS($link) == 1)
+                       {
+                               // Sponsor account is unlocked again
+                               LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN);
+                       }
+                        else
+                       {
+                               // Could not unlock account!
+                               LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACCOUNT_EMAIL_FAILED);
+                       }
+               }
+                else
+               {
+                       /// ??? Other status?
+                       LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACCOUNT_STATUS_FAILED);
+               }
+       }
+        else
+       {
+               // No sponsor found
+               LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACCOUNT_404);
+       }
+
+       // Free memory
+       SQL_FREERESULT($result);
+}
+ elseif ($MODE == "activate")
+{
+       // Send activation link again
+       if (isset($HTTP_POST_VARS['ok']))
+       {
+               // Check submitted data
+               if (empty($HTTP_POST_VARS['email'])) unset($HTTP_POST_VARS['ok']);
+       }
+
+       if (isset($HTTP_POST_VARS['ok']))
+       {
+               // Check email
+               $result = SQL_QUERY_ESC("SELECT id, hash, status, remote_addr, salut, surname, family, sponsor_created
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE email='%s' AND (status='UNCONFIRMED' OR status='EMAIL') LIMIT 1",
+ array($HTTP_POST_VARS['email']), __FILE__, __LINE__);
+               if (SQL_NUMROWS($result) == 1)
+               {
+                       // Unconfirmed sponsor account found so let's load the requested data
+                       $SPONSOR = SQL_FETCHARRAY($result);
+
+                       // Translate some data
+                       $SPONSOR['salut']           = TRANSLATE_SEX($SPONSOR['salut']);
+                       $SPONSOR['sponsor_created'] = MAKE_DATETIME($SPONSOR['sponsor_created']);
+
+                       // Prepare email and send it to the sponsor
+                       if ($SPONSOR['status'] == "UNCONFIRMED")
+                       {
+                               // Unconfirmed accounts
+                               $msg_sponsor = LOAD_EMAIL_TEMPLATE("sponsor_activate", $SPONSOR);
+                       }
+                        else
+                       {
+                               // Confirmed email address
+                               $msg_sponsor = LOAD_EMAIL_TEMPLATE("sponsor_email", $SPONSOR);
+                       }
+                       SEND_EMAIL($HTTP_POST_VARS['email'], SPONSOR_ACTIVATION_LINK_SUBJ, $msg_sponsor);
+
+                       // Output message
+                       LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACTIVATION_LINK_SENT);
+               }
+                else
+               {
+                       // No account found or not UNCONFIRMED
+                       LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_ACTIVATION_LINK_404);
+               }
+
+               // Free memory
+               SQL_FREERESULT($result);
+       }
+        else
+       {
+               // Load form
+               LOAD_TEMPLATE("guest_sponsor_activate");
+       }
+}
+ elseif ($MODE == "lost_pass")
+{
+       // Send new password
+       if (isset($HTTP_POST_VARS['ok']))
+       {
+               // Check submitted data
+               if (empty($HTTP_POST_VARS['email'])) unset($HTTP_POST_VARS['ok']);
+       }
+
+       if (isset($HTTP_POST_VARS['ok']))
+       {
+               // Check email
+               $result = SQL_QUERY_ESC("SELECT id, hash, remote_addr, salut, surname, family, sponsor_created
+FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE email='%s' AND id='%s' AND status='CONFIRMED' LIMIT 1",
+ array($HTTP_POST_VARS['email'], bigintval($HTTP_POST_VARS['id'])), __FILE__, __LINE__);
+               if (SQL_NUMROWS($result) == 1)
+               {
+                       // Unconfirmed sponsor account found so let's load the requested data
+                       $SPONSOR = SQL_FETCHARRAY($result);
+
+                       // Translate some data
+                       $SPONSOR['salut']           = TRANSLATE_SEX($SPONSOR['salut']);
+                       $SPONSOR['sponsor_created'] = MAKE_DATETIME($SPONSOR['sponsor_created']);
+
+                       // Generate password
+                       $SPONSOR['password']        = GEN_PASS();
+
+                       // Prepare email and send it to the sponsor
+                       $msg_sponsor = LOAD_EMAIL_TEMPLATE("sponsor_lost", $SPONSOR);
+                       SEND_EMAIL($HTTP_POST_VARS['email'], SPONSOR_LOST_PASSWORD_SUBJ, $msg_sponsor);
+
+                       // Update password
+                       $result_update = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data SET password='%s'
+WHERE id='%s' LIMIT 1",
+ array(md5($SPONSOR['password']), bigintval($SPONSOR['id'])), __FILE__, __LINE__);
+
+                       // Output message
+                       LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_LOST_PASSWORD_SENT);
+               }
+                else
+               {
+                       // No account found or not UNCONFIRMED
+                       LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_LOST_PASSWORD_404);
+               }
+
+               // Free memory
+               SQL_FREERESULT($result);
+       }
+        else
+       {
+               // Load form
+               LOAD_TEMPLATE("guest_sponsor_lost");
+       }
+}
+ elseif (isset($HTTP_POST_VARS['ok']))
+{
+       // Check status and login data ...
+       $result = SQL_QUERY_ESC("SELECT status FROM "._MYSQL_PREFIX."_sponsor_data
+WHERE id='%s' AND password='%s' LIMIT 1",
+ array(bigintval($HTTP_POST_VARS['sponsorid']), md5($HTTP_POST_VARS['pass'])), __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) == 1)
+       {
+               // Okay, first login data check passed, now has he/she an approved (CONFIRMED) account?
+               list($status) = SQL_FETCHROW($result);
+               if ($status == "CONFIRMED")
+               {
+                       // Calculate cookie lifetime, maybe we have to change this so the admin can setup a
+                       // seperate timeout for these two cookies?
+                       $life = (time() + $CONFIG['online_timeout']);
+
+                       // Is confirmed so both is fine and we can continue with login procedure
+                       $login = ((setcookie("sponsorid"  , bigintval($HTTP_POST_VARS['sponsorid']), $life, COOKIE_PATH)) &&
+                                 (setcookie("sponsorpass", md5($HTTP_POST_VARS['pass'])           , $life, COOKIE_PATH)));
+
+                       if ($login)
+                       {
+                               // Cookie setup successfull so we can forward to sponsor area
+                               LOAD_URL(URL."/modules.php?module=sponsor");
+                       }
+                        else
+                       {
+                               // Cookie setup failed!
+                               LOAD_TEMPLATE("admin_settings_saved", false, SPONSPOR_COOKIE_SETUP_FAILED);
+                               OUTPUT_HTML("<BR>");
+
+                               // Login formular and other links
+                               LOAD_TEMPLATE("guest_sponsor_login");
+                       }
+               }
+                else
+               {
+                       // Status is not fine
+                       $eval = "\$content = SPONSOR_LOGIN_FAILED_".strtoupper($status).";";
+                       eval($eval);
+                       LOAD_TEMPLATE("admin_settings_saved", false, $content);
+                       OUTPUT_HTML("<BR>");
+
+                       // Login formular and other links
+                       LOAD_TEMPLATE("guest_sponsor_login");
+               }
+       }
+        else
+       {
+               // Account missing or wrong pass! We shall not find this out for the "hacker folks"...
+               LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_LOGIN_FAILED_404_WRONG_PASS);
+               OUTPUT_HTML("<BR>");
+
+               // Login formular and other links
+               LOAD_TEMPLATE("guest_sponsor_login");
+       }
+
+       // Free memory
+       SQL_FREERESULT($result);
+}
+ else
+{
+       // Login formular and other links
+       LOAD_TEMPLATE("guest_sponsor_login");
+}
+
+//
+?>
diff --git a/inc/modules/guest/what-sponsor_reg.php b/inc/modules/guest/what-sponsor_reg.php
new file mode 100644 (file)
index 0000000..473e091
--- /dev/null
@@ -0,0 +1,458 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 06/10/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-sponsor_reg.php                             *
+ * -------------------------------------------------------------------- *
+ * Short description : Sponsor's registration form                      *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Anmeldeformular fuer Sponsoren                   *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("guest", basename(__FILE__));
+
+// Create array for form errors (= missing data)
+$FORM_ERRORS = array();
+
+if (isset($HTTP_POST_VARS['ok']))
+{
+       //
+       // Check submitted form data
+       //
+       // 1. Salutation / Surname / family name
+       if (empty($HTTP_POST_VARS['salut']))
+       {
+               // Surname is empty
+               $FORM_ERRORS[] = SPONSOR_NO_SALUT_SELECTED;
+       }
+       if (empty($HTTP_POST_VARS['surname']))
+       {
+               // Surname is empty
+               $FORM_ERRORS[] = SPONSOR_SURNAME_IS_EMPTY;
+       }
+       if (empty($HTTP_POST_VARS['family']))
+       {
+               // Surname is empty
+               $FORM_ERRORS[] = SPONSOR_FAMILY_IS_EMPTY;
+       }
+       // 2. Company name
+       // 012     3                          32    23      4                            43    3      4                           4321    12      3                          32    2     3                            3210
+       if (((empty($HTTP_POST_VARS['company'])) && ((!empty($HTTP_POST_VARS['tax_ident'])) || (!empty($HTTP_POST_VARS['position'])))) || ((!empty($HTTP_POST_VARS['company'])) && (empty($HTTP_POST_VARS['tax_ident']))))
+       {
+               if (empty($HTTP_POST_VARS['company']))
+               {
+                       // Company name is empty
+                       $FORM_ERRORS[] = SPONSOR_COMPANY_IS_EMPTY;
+               }
+                elseif (empty($HTTP_POST_VARS['tax_ident']))
+               {
+                       // Tax ident number name is empty
+                       $FORM_ERRORS[] = SPONSOR_TAX_IDENT_IS_EMPTY;
+               }
+               if (empty($HTTP_POST_VARS['position']))
+               {
+                       // Not fatal but not nice: position in company is empty
+                       $FORM_ERRORS[] = SPONSOR_POSITION_IS_EMPTY;
+               }
+       }
+       // 3. Street and number
+       if (empty($HTTP_POST_VARS['street_nr1']))
+       {
+               // Street name and house number are empty
+               $FORM_ERRORS[] = SPONSOR_STREET_NR1_IS_EMPTY;
+       }
+        elseif ((!empty($HTTP_POST_VARS['street_nr2'])) && (empty($HTTP_POST_VARS['street_nr1'])))
+       {
+               // 1st line for street is empty, but 2nd line not
+               $FORM_ERRORS[] = SPONSOR_STREET_NR1_IS_EMPTY_2_NOT;
+       }
+       // 4. Country code
+       if (empty($HTTP_POST_VARS['country']))
+       {
+               // Country code is empty
+               $FORM_ERRORS[] = SPONSOR_COUNTRY_IS_EMPTY;
+       }
+        elseif (strlen($HTTP_POST_VARS['country']) != 2)
+       {
+               // Country code is invalid
+               $FORM_ERRORS[] = SPONSOR_COUNTRY_IS_INVALID;
+       }
+       // 3. ZIP code
+       if (empty($HTTP_POST_VARS['zip']))
+       {
+               // ZIP code is empty
+               $FORM_ERRORS[] = SPONSOR_ZIP_IS_EMPTY;
+       }
+        elseif (bigintval($HTTP_POST_VARS['zip']) != $HTTP_POST_VARS['zip'])
+       {
+               // ZIP is invalid
+               $FORM_ERRORS[] = SPONSOR_ZIP_IS_INVALID;
+               $HTTP_POST_VARS['zip'] = "";
+       }
+       // 4. City
+       if (empty($HTTP_POST_VARS['city']))
+       {
+               // City is empty
+               $FORM_ERRORS[] = SPONSOR_CITY_IS_EMPTY;
+       }
+       // 5. Phone number
+       if (empty($HTTP_POST_VARS['phone']))
+       {
+               // City is empty
+               $FORM_ERRORS[] = SPONSOR_PHONE_IS_EMPTY;
+       }
+       // 6. Homepage URL
+       if (empty($HTTP_POST_VARS['url']))
+       {
+               // Homepage URL is empty
+               $FORM_ERRORS[] = SPONSOR_URL_IS_EMPTY;
+       }
+        elseif (!VALIDATE_URL($HTTP_POST_VARS['url']))
+       {
+               // Homepage URL is invalid
+               $FORM_ERRORS[] = SPONSOR_URL_IS_INVALID;
+               $HTTP_POST_VARS['url'] = "";
+       }
+       // 7. Light validation of email address
+       if ((empty($HTTP_POST_VARS['email'])) || ($HTTP_POST_VARS['email'] == "@"))
+       {
+               // Email is invalid/empty
+               $FORM_ERRORS[] = SPONSOR_EMAIL_IS_INVALID;
+       }
+        elseif (SPONSOR_FOUND_EMAIL_DB($HTTP_POST_VARS['email']))
+       {
+               // Email already found in database!
+               $FORM_ERRORS[] = SPONSOR_EMAIL_IS_ALREADY_REGISTERED;
+               $HTTP_POST_VARS['email'] = "";
+       }
+       // 8. Pay type selected?
+       if (empty($HTTP_POST_VARS['pay_type']))
+       {
+               // Not pay type selected
+               $FORM_ERRORS[] = SPONSOR_NO_PAYTYPE_SELECTED;
+       }
+       // 9. Interval of mails
+       if (empty($HTTP_POST_VARS['warning_interval']))
+       {
+               // No warning interval selected
+               $FORM_ERRORS[] = SPONSOR_NO_WARNING_INTERVAL_SELECTED;
+       }
+       // 10. Mail notifications disabled/enabled
+       if (empty($HTTP_POST_VARS['receive_warnings']))
+       {
+               // Option not selected!
+               $FORM_ERRORS[] = SPONSOR_NO_RECEIVE_WARNINGS_SELECTED;
+       }
+       // Did he enter his password twice?
+       if (((empty($HTTP_POST_VARS['pass1'])) || (empty($HTTP_POST_VARS['pass2']))) || (($HTTP_POST_VARS['pass1'] != $HTTP_POST_VARS['pass2']) && (!empty($HTTP_POST_VARS['pass1'])) && (!empty($HTTP_POST_VARS['pass2']))))
+       {
+               if (($HTTP_POST_VARS['pass1'] != $HTTP_POST_VARS['pass2']) && (!empty($HTTP_POST_VARS['pass1'])) && (!empty($HTTP_POST_VARS['pass2'])))
+               {
+                       // Passwords missmatch
+                       $FORM_ERRORS[] = SPONSOR_PASSWORDS_MISMATCH;
+               }
+                else
+               {
+                       if (empty($HTTP_POST_VARS['pass1']))
+                       {
+                               // Password 1 is empty
+                               $FORM_ERRORS[] = SPONSOR_PASSWORD1_EMPTY;
+                       }
+                       if (empty($HTTP_POST_VARS['pass2']))
+                       {
+                               // Password 2 is empty
+                               $FORM_ERRORS[] = SPONSOR_PASSWORD2_EMPTY;
+                       }
+               }
+       }
+       // Is the password long enough?
+        elseif (strlen($HTTP_POST_VARS['pass1']) < $CONFIG['pass_len'])
+       {
+               // Too short!
+               $FORM_ERRORS[] = SPONSOR_PASSWORD_TOO_SHORT;
+       }
+
+       // Check if he has accepted the terms&conditions
+       if (empty($HTTP_POST_VARS['terms']))
+       {
+               // Homepage URL is empty
+               $FORM_ERRORS[] = SPONSOR_TERMS_NOT_ACCEPTED;
+       }
+       
+       // If there is something wrong/missing stop registration
+       if (count($FORM_ERRORS) > 0) unset($HTTP_POST_VARS['ok']);
+}
+
+if ((isset($HTTP_POST_VARS['ok'])) && (count($FORM_ERRORS) == 0))
+{
+       // Generate message array
+       $MSGs = array(
+               'failed' => SPONSOR_REGISTRATION_FAILED,
+               'added'  => SPONSOR_REGISTRATION_COMPLETED,
+       );
+
+       // Calulate points
+       $result = SQL_QUERY_ESC("SELECT (pay_rate * pay_min_count) AS points, pay_min_count AS pay, pay_currency AS curr
+FROM "._MYSQL_PREFIX."_sponsor_paytypes
+WHERE id='%s' LIMIT 1", array($HTTP_POST_VARS['pay_type']), __FILE__, __LINE__);
+       list($points, $pay, $curr) = SQL_FETCHROW($result);
+
+       // Free memory
+       SQL_FREERESULT($result);
+
+       // Add points to array
+       $HTTP_POST_VARS['points_amount'] = $points;
+       $HTTP_POST_VARS['points_used']   = "0.00000";
+       $HTTP_POST_VARS['last_pay']      = $pay;
+       $HTTP_POST_VARS['last_curr']     = $curr;
+
+       // Register sponsor but never ever update here!
+       $STATUS = SPONSOR_HANDLE_SPONSOR($HTTP_POST_VARS, true, $MSGs, true);
+
+       // Check the status of the registration process
+       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",
+                array($HTTP_POST_VARS['email']), __FILE__, __LINE__);
+               if (SQL_NUMROWS($result) == 1)
+               {
+                       // ID found so let's load it for the confirmation email
+                       list($id, $hash) = SQL_FETCHROW($result);
+
+                       // Prepare data for the email template
+                       define('__ID'       , $id);
+                       define('__HASH'     , $hash);
+                       define('__EMAIL'    , $HTTP_POST_VARS['email']);
+                       define('__SURNAME'  , $HTTP_POST_VARS['surname']);
+                       define('__FAMILY'   , $HTTP_POST_VARS['family']);
+                       define('__SALUT'    , TRANSLATE_SEX($HTTP_POST_VARS['salut']));
+                       define('__TIMESTAMP', MAKE_DATETIME(time(), 0));
+                       define('__PASSWORD' , $HTTP_POST_VARS['pass1']);
+
+                       // Generate email and send it to the new sponsor
+                       $EMAIL_MSG = LOAD_EMAIL_TEMPLATE("sponsor_confirm", $hash);
+                       SEND_EMAIL($HTTP_POST_VARS['email'], SPONSOR_PLEASE_CONFIRM_SUBJ, $EMAIL_MSG);
+
+                       // Send mail to admin
+                       if (GET_EXT_VERSION("admins") >= "0.4.1")
+                       {
+                               // Use new system
+                               SEND_ADMIN_EMAILS_PRO(ADMIN_NEW_SPONSOR, "admin_sponsor_reg", $hash);
+                       }
+                        else
+                       {
+                               // Send over old system
+                               $msg_admin = LOAD_EMAIL_TEMPLATE("admin_sponsor_reg", $hash);
+                               SEND_ADMIN_EMAILS (ADMIN_NEW_SPONSOR, $msg_admin);
+                       }
+
+                       // Output message: DONE
+                       $MSG = $MSGs['added'];
+               }
+                else
+               {
+                       // Sponsor account not found???
+                       $MSG = SPONSOR_EMAIL_404_1.$HTTP_POST_VARS['email'].SPONSOR_EMAIL_404_2;
+               }
+
+               // Free memory
+               SQL_FREERESULT($result);
+               break;
+
+       default:
+               if (!IS_ADMIN())
+               {
+                       // Message for testing admin
+                       $MSG = ADMIN_SPONSOR_UNKOWN_STATUS_1.$STATUS.ADMIN_SPONSOR_UNKOWN_STATUS_2;
+               }
+                else
+               {
+                       // Message for the guest
+                       $MSG = SPONSOR_UNKOWN_STATUS_1.$STATUS.SPONSOR_UNKOWN_STATUS_2;
+               }
+               break;
+       }
+
+       // Display message
+       LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
+}
+ else
+{
+       // Check for payment types
+       $result = SQL_QUERY("SELECT id, pay_name, pay_rate, pay_currency, pay_min_count
+FROM "._MYSQL_PREFIX."_sponsor_paytypes
+ORDER BY pay_name", __FILE__, __LINE__);
+       if (SQL_NUMROWS($result) > 0)
+       {
+               // Load all types...
+               $OUT = "<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"300\" class=\"left2 right2 top2\">\n";
+               $SW = 2;
+               while(list($id, $name, $rate, $curr, $min) = SQL_FETCHROW($result))
+               {
+                       $OUT .= "<TR>
+  <TD class=\"bottom2 switch_sw".$SW."\" height=\"50\" style=\"padding-left: 2px; padding-right: 2px\">
+    <INPUT type=\"radio\" name=\"pay_type\" class=\"guest_normal\" value=\"".bigintval($id)."\">&nbsp;".$name."<BR>
+    <DIV align=\"right\">(".$min." ".$curr." = ".TRANSLATE_COMMA($rate * $min)." ".POINTS.")</DIV>
+  </TD>
+</TR>\n";
+                       $SW = 3 - $SW;
+               }
+               $OUT .= "</TABLE>\n";
+               define('__PAYMENT_LIST', $OUT);
+               SQL_FREERESULT($result);
+
+               // Check for invalid entries
+               if (count($FORM_ERRORS) > 0)
+               {
+                       // Some found... :-(
+                       define('__COMPANY'  , COMPILE_CODE($HTTP_POST_VARS['company']));
+                       define('__POSITION' , COMPILE_CODE($HTTP_POST_VARS['position']));
+                       define('__TAX_IDENT', COMPILE_CODE($HTTP_POST_VARS['tax_ident']));
+                       define('__SURNAME'  , COMPILE_CODE($HTTP_POST_VARS['surname']));
+                       define('__FAMILY'   , COMPILE_CODE($HTTP_POST_VARS['family']));
+                       define('__STREET1'  , COMPILE_CODE($HTTP_POST_VARS['street_nr1']));
+                       define('__STREET2'  , COMPILE_CODE($HTTP_POST_VARS['street_nr2']));
+                       define('__COUNTRY'  , COMPILE_CODE($HTTP_POST_VARS['country']));
+                       define('__ZIP'      , COMPILE_CODE($HTTP_POST_VARS['zip']));
+                       define('__CITY'     , COMPILE_CODE($HTTP_POST_VARS['city']));
+                       define('__PHONE'    , COMPILE_CODE($HTTP_POST_VARS['phone']));
+                       define('__FAX'      , COMPILE_CODE($HTTP_POST_VARS['fax']));
+                       define('__CELL'     , COMPILE_CODE($HTTP_POST_VARS['cell']));
+                       define('__EMAIL'    , COMPILE_CODE($HTTP_POST_VARS['email']));
+                       define('__URL'      , COMPILE_CODE($HTTP_POST_VARS['url']));
+
+                       // Check for salutation selection
+                       switch ($HTTP_POST_VARS['salut'])
+                       {
+                       case "M": // Male
+                               define('__SALUT_M'  , " selected");
+                               define('__SALUT_F'  , "");
+                               define('__SALUT_C'  , "");
+                               break;
+
+                       case "F": // Female
+                               define('__SALUT_M'  , "");
+                               define('__SALUT_F'  , " selected");
+                               define('__SALUT_C'  , "");
+                               break;
+
+                       case "C": // Company
+                               define('__SALUT_M'  , "");
+                               define('__SALUT_F'  , "");
+                               define('__SALUT_C'  , " selected");
+                               break;
+                       }
+
+                       // Check for receive_warnings
+                       switch ($HTTP_POST_VARS['receive_warnings'])
+                       {
+                       case "Y":
+                               define('__REC_Y'    , " selected");
+                               define('__REC_N'    , "");
+                               break;
+
+                       case "N":
+                               define('__REC_Y'    , "");
+                               define('__REC_N'    , " selected");
+                               break;
+                       }
+
+                       // Errors found
+                       $OUT = "<P align=\"center\">
+  <STRONG><FONT class=\"guest_failed\">".SPONSOR_REGISTER_SOMETHING_MISSING.":</FONT></STRONG><BR>
+</P>
+<OL>\n";
+                       foreach ($FORM_ERRORS as $error)
+                       {
+                               $OUT .= "<LI>".$error."</LI>\n";
+                       }
+                       $OUT .= "</OL><BR>\n";
+                       define('__SPONSOR_FORM_ERRORS', $OUT);
+                       define('__SPONSOR_REFID', $HTTP_POST_VARS['refid']);
+               }
+                else
+               {
+                       // None found, first call
+                       define('__COMPANY'  , "");
+                       define('__POSITION' , "");
+                       define('__TAX_IDENT', "");
+                       define('__SALUT_M'  , "");
+                       define('__SALUT_F'  , "");
+                       define('__SALUT_C'  , "");
+                       define('__SURNAME'  , "");
+                       define('__FAMILY'   , "");
+                       define('__STREET1'  , "");
+                       define('__STREET2'  , "");
+                       define('__COUNTRY'  , "");
+                       define('__ZIP'      , "");
+                       define('__CITY'     , "");
+                       define('__PHONE'    , "");
+                       define('__FAX'      , "");
+                       define('__CELL'     , "");
+                       define('__EMAIL'    , "");
+                       define('__URL'      , "");
+                       define('__REC_Y'    , "");
+                       define('__REC_N'    , "");
+
+                       // No errors found so far
+                       define('__SPONSOR_FORM_ERRORS', "");
+               }
+
+               // Prepare referral things
+               if (!isset($HTTP_GET_VARS['refid']))
+               {
+                       // No referral link
+                       define('__SPONSOR_REFID', "0");
+               }
+                else
+               {
+                       // Referral ID transmitted, we don't care here if it is right or not
+                       define('__SPONSOR_REFID', $HTTP_GET_VARS['refid']);
+               }
+
+               // Display registration form
+               LOAD_TEMPLATE("guest_sponsor_reg");
+       }
+        else
+       {
+               // Nothing added so far
+               LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_PAYMENT_LIST_IS_EMPTY);
+       }
+
+       // Free memory
+       SQL_FREERESULT($result);
+}
+
+//
+?>
diff --git a/inc/modules/member/what-sponsor.php b/inc/modules/member/what-sponsor.php
new file mode 100644 (file)
index 0000000..6fecc23
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 09/10/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-sponsor.php                                 *
+ * -------------------------------------------------------------------- *
+ * Short description : Introduce our sponsors                           *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Unsere Sponsoren vorstellen                      *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+}
+ elseif (!IS_LOGGED_IN())
+{
+       LOAD_URL(URL."/modules.php?module=index");
+}
+
+// Add description as navigation point
+ADD_DESCR("member", basename(__FILE__));
+
+// Loads the name-matching template
+LOAD_TEMPLATE(substr(basename(__FILE__), 5, -4));
+
+//
+?>
diff --git a/inc/modules/sponsor.php b/inc/modules/sponsor.php
new file mode 100644 (file)
index 0000000..5f54f36
--- /dev/null
@@ -0,0 +1,72 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 04/02/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : sponsor.php                                      *
+ * -------------------------------------------------------------------- *
+ * Short description : Sponsor area                                     *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Sponsorenbereich                                 *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       require($INC);
+} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
+       $FATAL[] = EXTENSION_PROBLEM_EXT_INACTIVE;
+       return;
+} elseif (!IS_SPONSOR()) {
+       // No sponsor!
+       $FATAL[] = SPONSOR_ONLY_AREA_ENTERED;
+       return;
+} elseif (empty($HTTP_GET_VARS['what'])) {
+       // Empty what value detected!
+       $HTTP_GET_VARS['what'] = "welcome";
+}
+
+// A valid sponsor login and we are allowed to enter this module so let's
+// update his cookies and online time
+UPDATE_SPONSOR_LOGIN();
+
+// Generate menu
+define('__SPONSOR_MENU', GENERATE_SPONSOR_MENU($HTTP_GET_VARS['what']));
+
+// Generate right-side output
+define('__SPONSOR_CONTENT', GENERATE_SPONSOR_CONTENT($HTTP_GET_VARS['what']));
+
+// Load header template
+define('__SPONSOR_HEADER', LOAD_TEMPLATE("sponsor_header", true));
+
+// Load footer template
+define('__SPONSOR_FOOTER', LOAD_TEMPLATE("sponsor_footer", true));
+
+// "You are here" navigation
+define('__SPONSOR_YOURE_HERE', ADD_DESCR("sponsor", $HTTP_GET_VARS['what'], false, false));
+
+// Load main sponsor template
+LOAD_TEMPLATE("sponsor_main");
+
+//
+?>
diff --git a/sponsor_confirm.php b/sponsor_confirm.php
new file mode 100644 (file)
index 0000000..85cdfdd
--- /dev/null
@@ -0,0 +1,64 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 09/09/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : sponsor_confirm.php                              *
+ * -------------------------------------------------------------------- *
+ * Short description : Redirection for the confirmation link            *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Weiterleitungsscript fuer den Bestaetigungslink  *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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                                                  *
+ ************************************************************************/
+
+// Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) )
+require_once("inc/libs/security_functions.php");
+
+// Load the required file(s)
+require ("inc/config.php");
+
+// Is the script installed?
+if (defined('mxchange_installed') && (mxchange_installed))
+{
+       // Base URL for redirection
+       $URL = URL."/modules.php?module=index&amp;what=sponsor_login&hash=";
+       if (empty($HTTP_GET_VARS['hash']))
+       {
+               // No refid and we add our refid (don't forget to set $def_refid!)
+               $URL = URL."/modules.php?module=index";
+       }
+        else
+       {
+               // We have an refid here. So we simply add it
+               $URL .= $HTTP_GET_VARS['hash'];
+       }
+       // Load the URL
+       LOAD_URL($URL);
+       // Redirection should be done here
+}
+ else
+{
+       // You have to configure first!
+       LOAD_URL(URL."/install.php");
+}
+// Really all done here... ;-)
+?>
diff --git a/sponsor_ref.php b/sponsor_ref.php
new file mode 100644 (file)
index 0000000..101bbb1
--- /dev/null
@@ -0,0 +1,73 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 09/09/2005 *
+ * ===============                              Last change: 05/18/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : sponsor_ref.php                                  *
+ * -------------------------------------------------------------------- *
+ * Short description : Redirection for the referral link                *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Weiterleitungsscript fuer die Referral-Links     *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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.       *
+ *                                                                      *
+ * 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                                                  *
+ ************************************************************************/
+
+// Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) )
+require_once("inc/libs/security_functions.php");
+
+// Load the required file(s)
+require ("inc/config.php");
+
+// Redirect only to registration page when this script is installed
+if (defined('mxchange_installed') && (mxchange_installed))
+{
+       // Base URL for redirection
+       $URL = URL."/modules.php?module=index&what=sponsor_reg&refid=";
+
+       // Get referral ID from ref or refid variable
+       $ref = 0;
+       if (!empty($HTTP_GET_VARS['ref']))        $ref = $HTTP_GET_VARS['ref'];
+        elseif (!empty($HTTP_GET_VARS['refid'])) $ref = $HTTP_GET_VARS['refid'];
+
+       if (!empty($ref))
+       {
+               // We have an refid here. So we simply add it
+               $URL .= $ref;
+       }
+        else
+       {
+               // No refid so we redirect to the index page
+               $URL = URL."/index.php";
+       }
+
+       // Load the URL
+       LOAD_URL($URL);
+
+       // Redirection should be done here
+}
+ else
+{
+       // You have to configure first!
+       LOAD_URL(URL."/install.php");
+}
+// Really all done here... ;-)
+
+?>
diff --git a/templates/de/emails/admin/admin_sponsor_change_data.tpl b/templates/de/emails/admin/admin_sponsor_change_data.tpl
new file mode 100644 (file)
index 0000000..85dd3cf
--- /dev/null
@@ -0,0 +1,34 @@
+Hallo lieber Administrator,
+
+einer unserer Sponsoren hat soeben seine Daten geaendert!
+
+Hier sind alle neuen (und in Klammern alten) Daten:
+------------------------------
+{--SPONSOR_ENTER_COMPANY_TITLE--}: $DATA[company] ($content[company])
+{--SPONSOR_ENTER_COMPANY_POSITION--}: $DATA[position] ($content[position])
+{--SPONSOR_ENTER_TAX_IDENT--}: $DATA[tax_ident] ($content[tax_ident])
+------------------------------
+{--GUEST_SEX--}: $DATA[salut] ($content[salut])
+{--SURNAME_FAMILY--}: $DATA[surname] $DATA[family] ($content[surname] $content[family])
+{--SPONSOR_EMAIL_STREET_NR1--}: $DATA[street_nr1] ($content[street_nr1])
+{--SPONSOR_EMAIL_STREET_NR2--}: $DATA[street_nr2] ($content[street_nr2])
+{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $DATA[country]-$DATA[zip] $DATA[city] ($content[country]-$content[zip] $content[city])
+------------------------------
+{--SPONSOR_ENTER_PHONE--}: $DATA[phone] ($content[phone])
+{--SPONSOR_ENTER_FAX--}: $DATA[fax] ($content[fax])
+{--SPONSOR_ENTER_CELL--}: $DATA[cell] ($content[cell])
+------------------------------
+{--SPONSOR_ENTER_EMAIL--}: $DATA[email] ($content[email])
+{--SPONSOR_ENTER_URL--}: $DATA[url] ($content[url])
+------------------------------
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Script
+
+{--URL--}/admin.php
diff --git a/templates/de/emails/admin/admin_sponsor_change_email.tpl b/templates/de/emails/admin/admin_sponsor_change_email.tpl
new file mode 100644 (file)
index 0000000..747617f
--- /dev/null
@@ -0,0 +1,34 @@
+Hallo lieber Administrator,
+
+einer unserer Sponsoren hat soeben seine EMail-Adresse geaendert!
+
+Hier sind alle neuen (und in Klammern alten) Daten:
+------------------------------
+{--SPONSOR_ENTER_COMPANY_TITLE--}: $DATA[company] ($content[company])
+{--SPONSOR_ENTER_COMPANY_POSITION--}: $DATA[position] ($content[position])
+{--SPONSOR_ENTER_TAX_IDENT--}: $DATA[tax_ident] ($content[tax_ident])
+------------------------------
+{--GUEST_SEX--}: $DATA[salut] ($content[salut])
+{--SURNAME_FAMILY--}: $DATA[surname] $DATA[family] ($content[surname] $content[family])
+{--SPONSOR_EMAIL_STREET_NR1--}: $DATA[street_nr1] ($content[street_nr1])
+{--SPONSOR_EMAIL_STREET_NR2--}: $DATA[street_nr2] ($content[street_nr2])
+{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $DATA[country]-$DATA[zip] $DATA[city] ($content[country]-$content[zip] $content[city])
+------------------------------
+{--SPONSOR_ENTER_PHONE--}: $DATA[phone] ($content[phone])
+{--SPONSOR_ENTER_FAX--}: $DATA[fax] ($content[fax])
+{--SPONSOR_ENTER_CELL--}: $DATA[cell] ($content[cell])
+------------------------------
+{--SPONSOR_ENTER_EMAIL--}: $DATA[email] ($content[email])
+{--SPONSOR_ENTER_URL--}: $DATA[url] ($content[url])
+------------------------------
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Script
+
+{--URL--}/admin.php
diff --git a/templates/de/emails/admin/admin_sponsor_edit.tpl b/templates/de/emails/admin/admin_sponsor_edit.tpl
new file mode 100644 (file)
index 0000000..810d4cb
--- /dev/null
@@ -0,0 +1,36 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+------------------------------
+Ihre Sponsor-ID lautet: {--__SPONSOR_ID--}
+------------------------------
+
+Einer unserer Administratoren hat soeben Ihren Sponsorenaccount geaendert.
+
+Es sind nun folgende Daten gesetzt:
+------------------------------
+{--SPONSOR_ENTER_COMPANY_TITLE--}: $content[company]
+{--SPONSOR_ENTER_COMPANY_POSITION--}: $content[position]
+{--SPONSOR_ENTER_TAX_IDENT--}: $content[tax_ident]
+------------------------------
+{--GUEST_SEX--}: $content[salut]
+{--SURNAME_FAMILY--}: $content[surname] $content[family]
+{--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1]
+{--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2]
+{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[country]-$content[zip] $content[city]
+------------------------------
+{--SPONSOR_ENTER_PHONE--}: $content[phone]
+{--SPONSOR_ENTER_FAX--}: $content[fax]
+{--SPONSOR_ENTER_CELL--}: $content[cell]
+------------------------------
+{--SPONSOR_ENTER_EMAIL--}: $content[email]
+{--SPONSOR_ENTER_URL--}: $content[url]
+------------------------------
+{--SPONSOR_WARNING_INTERVAL--}: $content[warning_interval]
+------------------------------
+{--PASS_1--}: $content[pass1]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/admin/admin_sponsor_pending.tpl b/templates/de/emails/admin/admin_sponsor_pending.tpl
new file mode 100644 (file)
index 0000000..f72e20c
--- /dev/null
@@ -0,0 +1,51 @@
+Hallo lieber Administrator,
+
+soeben hat ein neuer Sponsor seine EMail-Adresse bestaetigt. Dies wurde von der IP-Nummer $REMOTE_ADDR aus durchgefuehrt.
+
+Bitte setzen Sie sich mit ihm in Verbindung (die EMail-Adresse finden Sie weiter unten) und teilen Sie ihm Ihre
+Kontoverbindung mit!
+
+Hier sind nochmals alle seine Daten aus der Anmeldung:
+
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+-- Persoenliche Daten:      --
+------------------------------
+Anrede: $content[salut]
+------------------------------
+Vorname: $content[surname]
+------------------------------
+Nachname: $content[family]
+------------------------------
+-- Firmendaten:             --
+------------------------------
+Firmenname: $content[company]
+------------------------------
+Position: $content[position]
+------------------------------
+Ust-Ident-Nr.: $content[tax_ident]
+------------------------------
+-- Kontaktdaten:            --
+------------------------------
+Strasse, Zeile 1: $content[street_nr1]
+------------------------------
+Strasse, Zeile 2: $content[street_nr2]
+------------------------------
+Ländercode: $content[country]
+------------------------------
+Postleitzahl: $content[zip]
+------------------------------
+Wohnort: $content[city]
+------------------------------
+Telefonnummer: $content[phone]
+------------------------------
+Faxnummer: $content[fax]
+------------------------------
+Handynummer: $content[cell]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Script
+
+{--URL--}/modules.php?module=admin&action=login
\ No newline at end of file
diff --git a/templates/de/emails/admin/admin_sponsor_reg.tpl b/templates/de/emails/admin/admin_sponsor_reg.tpl
new file mode 100644 (file)
index 0000000..1195f39
--- /dev/null
@@ -0,0 +1,30 @@
+Hallo lieber Administrator,
+
+soeben hat sich ein neuer Sponsor zu unserem {--MT_WORD--} mit der IP-Nummer $REMOTE_ADDR angemeldet. Er wird
+als naechstes seine EMail-Adresse bestaetigen.
+
+Folgende Daten wurden dabei uebermittelt:
+------------------------------
+Sponsor-ID: {--__ID--}
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+Hash-Wert: {--__HASH--}
+------------------------------
+Angemeldet am: {--__TIMESTAMP--}
+------------------------------
+Anrede: {--__SALUT--}
+------------------------------
+Vorname: {--__SURNAME--}
+------------------------------
+Nachname: {--__FAMILY--}
+------------------------------
+
+Die restliche Daten koennen Sie im Admin-Bereich einsehen.
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Script
+
+{--URL--}/modules.php?module=admin&action=login
\ No newline at end of file
diff --git a/templates/de/emails/admin/admin_sponsor_settings.tpl b/templates/de/emails/admin/admin_sponsor_settings.tpl
new file mode 100644 (file)
index 0000000..eb4e632
--- /dev/null
@@ -0,0 +1,20 @@
+Hallo lieber Administrator,
+
+einer unserer Sponsoren hat soeben seine Einstellungen geaendert!
+
+Hier sind alle neuen (und in Klammern alten) Daten:
+------------------------------
+{--SPONSOR_RECEIVE_WARNINGS--}: $DATA[receive] ($content[receive])
+{--SPONSOR_WARNING_INTERVAL--}: $DATA[interval] ($content[interval])
+------------------------------
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Script
+
+{--URL--}/admin.php
diff --git a/templates/de/emails/del_sponsor.tpl b/templates/de/emails/del_sponsor.tpl
new file mode 100644 (file)
index 0000000..e53bb9b
--- /dev/null
@@ -0,0 +1,19 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+Einer unserer Administratoren hat soeben Ihren Account geloescht!
+
+Grund der Loeschung war folgender:
+------------------------------------
+$content
+------------------------------------
+Ihre Sponsor-ID war: $UID
+------------------------------------
+
+Wir wuenschen Ihnen weiterhin noch alles Gute und koennen Sie vielleicht irgentwann einmal wieder als Sponsor begruessen.
+
+Vielen Dank.
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
diff --git a/templates/de/emails/lock_sponsor.tpl b/templates/de/emails/lock_sponsor.tpl
new file mode 100644 (file)
index 0000000..34a8158
--- /dev/null
@@ -0,0 +1,21 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+--------------------------
+Ihre Sponsor-ID bei uns: $UID
+--------------------------
+
+{--__EMAIL_MSG--}
+
+Grund der Sperrung war:
+--------------------------
+$content
+--------------------------
+
+Sollten Sie damit nicht einverstanden sein, so melden Sie sich bitte bei uns ({--WEBMASTER--}). Wir kommen dann mit Ihnen bald in Kontakt.
+
+Vielen Dank.
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
diff --git a/templates/de/emails/sponsor/sponsor_activate.tpl b/templates/de/emails/sponsor/sponsor_activate.tpl
new file mode 100644 (file)
index 0000000..d36fc79
--- /dev/null
@@ -0,0 +1,31 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+Sie (oder ein anderer mit der IP-Nummer $REMOTE_ADDR) haben soeben Ihren Bestaetigungslink erneut angefordert.
+
+Hier ist Ihr Link:
+------------------------------
+{--URL--}/sponsor_confirm.php?hash=$content[hash]
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+
+Sollten Sie diesen nicht anklicken koennen, kopieren Sie ihn bitte in die Adresszeile Ihres Browsers.
+
+Sollten Sie sich nicht angemeldet haben, bitten wir diese Unangenehmlichkeit zu entschuligen. Leiten Sie dann
+einfach diese EMail komplett weiter an {--WEBMASTER--}. Wir werden dann diese Anmeldung volstaendig aus unserer
+Datenbank loeschen.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+Angemeldet am: $content[sponsor_created]
+------------------------------
+IP-Nummer bei Anmeldung $content[remote_addr]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_add_points.tpl b/templates/de/emails/sponsor/sponsor_add_points.tpl
new file mode 100644 (file)
index 0000000..393b262
--- /dev/null
@@ -0,0 +1,13 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+Einer unserer Administratoren hat Ihnen soeben {--__POINTS--} {--POINTS--} Ihrem Sponsoren-Account mit der ID {--__ID--} gutgeschrieben!
+
+Grund dazu war folgender:
+------------------------------
+$content
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_change_data.tpl b/templates/de/emails/sponsor/sponsor_change_data.tpl
new file mode 100644 (file)
index 0000000..5d81247
--- /dev/null
@@ -0,0 +1,36 @@
+Hallo $DATA[salut] $DATA[surname] $DATA[family].
+
+Sie haben heute Ihre Daten geaendert.
+
+Hier sind alle neuen (und in Klammern alten) Daten:
+------------------------------
+{--SPONSOR_ENTER_COMPANY_TITLE--}: $DATA[company] ($content[company])
+{--SPONSOR_ENTER_COMPANY_POSITION--}: $DATA[position] ($content[position])
+{--SPONSOR_ENTER_TAX_IDENT--}: $DATA[tax_ident] ($content[tax_ident])
+------------------------------
+{--GUEST_SEX--}: $DATA[salut] ($content[salut])
+{--SURNAME_FAMILY--}: $DATA[surname] $DATA[family] ($content[surname] $content[family])
+{--SPONSOR_EMAIL_STREET_NR1--}: $DATA[street_nr1] ($content[street_nr1])
+{--SPONSOR_EMAIL_STREET_NR2--}: $DATA[street_nr2] ($content[street_nr2])
+{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $DATA[country]-$DATA[zip] $DATA[city] ($content[country]-$content[zip] $content[city])
+------------------------------
+{--SPONSOR_ENTER_PHONE--}: $DATA[phone] ($content[phone])
+{--SPONSOR_ENTER_FAX--}: $DATA[fax] ($content[fax])
+{--SPONSOR_ENTER_CELL--}: $DATA[cell] ($content[cell])
+------------------------------
+{--SPONSOR_ENTER_EMAIL--}: $DATA[email] ($content[email])
+{--SPONSOR_ENTER_URL--}: $DATA[url] ($content[url])
+------------------------------
+
+Das Passwort wurde Ihnen aus Sicherheitsgruenden nicht mitgesendet.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
diff --git a/templates/de/emails/sponsor/sponsor_change_email.tpl b/templates/de/emails/sponsor/sponsor_change_email.tpl
new file mode 100644 (file)
index 0000000..ed9302e
--- /dev/null
@@ -0,0 +1,19 @@
+Hallo $DATA[salut] $DATA[surname] $DATA[family].
+
+Sie haben heute Ihre Email-Adresse geaendert. Ihr Account wurde somit temporaer gesperrt. Sie koennen es nun mit
+dem folgenden Link wieder freigeben:
+
+{--URL--}/sponsor_confirm.php?hash=$content[hash]
+
+Sollten Sie diesen nicht anklicken koennen, kopieren Sie ihn bitte in die Adresszeile Ihres Browsers.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
diff --git a/templates/de/emails/sponsor/sponsor_confirm.tpl b/templates/de/emails/sponsor/sponsor_confirm.tpl
new file mode 100644 (file)
index 0000000..a8d089e
--- /dev/null
@@ -0,0 +1,35 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+Sie (oder ein anderer mit der IP-Nummer $REMOTE_ADDR) haben sich soeben als Sponsor zu unserem {--MT_WORD--}
+angemeldet. Sie haben somit den ersten Schritt zu uns getan wofuer wir uns sehr bedanken.
+
+Als naechstes muessen Sie Ihre EMail-Adresse bestaetigen. Dieser Schritt ist erforderlich, um sicher zu gehen,
+dass auch kein anderer Sie angemeldet hat.
+
+Hier ist Ihr Link:
+------------------------------
+{--URL--}/sponsor_confirm.php?hash={--__HASH--}
+------------------------------
+Ihre Sponsor-ID lautet: {--__ID--}
+------------------------------
+Passwort zum Login: {--__PASSWORD--}
+------------------------------
+
+Sollten Sie diesen nicht anklicken koennen, kopieren Sie ihn bitte in die Adresszeile Ihres Browsers.
+
+Sollten Sie sich nicht angemeldet haben, bitten wir diese Unangenehmlichkeit zu entschuligen. Leiten Sie dann
+einfach diese EMail komplett weiter an {--WEBMASTER--}. Wir werden dann diese Anmeldung volstaendig aus unserer
+Datenbank loeschen.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+Angemeldet am: {--__TIMESTAMP--}
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_email.tpl b/templates/de/emails/sponsor/sponsor_email.tpl
new file mode 100644 (file)
index 0000000..40fcb6e
--- /dev/null
@@ -0,0 +1,24 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+Sie hatten bei uns Ihre EMail-Adresse geaendert und den Bestaetigungslink erneut angefordert. Hier sind nun
+alle noetigen Daten dazu.
+
+Hier ist Ihr Link:
+------------------------------
+{--URL--}/sponsor_confirm.php?hash=$content[hash]
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+
+Sollten Sie diesen nicht anklicken koennen, kopieren Sie ihn bitte in die Adresszeile Ihres Browsers.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_lost.tpl b/templates/de/emails/sponsor/sponsor_lost.tpl
new file mode 100644 (file)
index 0000000..2cf84fa
--- /dev/null
@@ -0,0 +1,28 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+Sie (oder ein anderer mit der IP-Nummer $REMOTE_ADDR) haben soeben ein neues Passwort angefordert.
+
+Hier sind Ihre neuen Zugangsdaten:
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+Neues Passwort: $content[password]
+------------------------------
+
+Sollten Sie dies nicht angefordert haben, bitten wir diese Unangenehmlichkeit zu entschuligen. Leiten Sie dann
+einfach diese EMail komplett and uns weiter. Wir sind unter der EMail-Adresse {--WEBMASTER--} zu erreichen.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+Angemeldet am: $content[sponsor_created]
+------------------------------
+IP-Nummer bei Anmeldung $content[remote_addr]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_pending.tpl b/templates/de/emails/sponsor/sponsor_pending.tpl
new file mode 100644 (file)
index 0000000..bdfab3c
--- /dev/null
@@ -0,0 +1,57 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+Sie haben soeben Ihre EMail-Adresse bestaetigt. Dies wurde von der IP-Nummer $REMOTE_ADDR aus durchgefuehrt.
+
+Wir werden uns bald mit Ihnen in Verbindung setzen und Ihnen unsere Kontodaten mitteilen. Zu unserer
+Sicherheit haben wir diese hier nicht aufgelistet. Bitte notieren Sie sich vorab folgende Daten:
+
+------------------------------
+Verwendungszweck: SPONSOR: $content[id],$content[points]
+------------------------------
+Zu ueberweisender Betrag: $content[pay] $content[curr]
+------------------------------
+
+Hier sind nochmals alle Ihre Daten aus der Anmeldung:
+
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+-- Persoenliche Daten:      --
+------------------------------
+Anrede: $content[salut]
+------------------------------
+Vorname: $content[surname]
+------------------------------
+Nachname: $content[family]
+------------------------------
+-- Firmendaten:             --
+------------------------------
+Firmenname: $content[company]
+------------------------------
+Position: $content[position]
+------------------------------
+Ust-Ident-Nr.: $content[tax_ident]
+------------------------------
+-- Kontaktdaten:            --
+------------------------------
+Strasse, Zeile 1: $content[street_nr1]
+------------------------------
+Strasse, Zeile 2: $content[street_nr2]
+------------------------------
+Ländercode: $content[country]
+------------------------------
+Postleitzahl: $content[zip]
+------------------------------
+Wohnort: $content[city]
+------------------------------
+Telefonnummer: $content[phone]
+------------------------------
+Faxnummer: $content[fax]
+------------------------------
+Handynummer: $content[cell]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_ref_notify.tpl b/templates/de/emails/sponsor/sponsor_ref_notify.tpl
new file mode 100644 (file)
index 0000000..898149a
--- /dev/null
@@ -0,0 +1,16 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+
+Soeben haben uns einen weiteren Sponsoren gebracht! Dafuer haben wir Ihrem Sponsor-Account einmalig
+$content[ref_points] {--POINTS--} gutgeschrieben.
+
+Sie haben jetzt ein Guthaben von $content[points] {--POINTS--} und uns schon $content[refs] neue Sponsoren
+gebracht. Vielen Dank fuer Ihre Mitarbeit!
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_settings.tpl b/templates/de/emails/sponsor/sponsor_settings.tpl
new file mode 100644 (file)
index 0000000..0943c7e
--- /dev/null
@@ -0,0 +1,22 @@
+Hallo $content[salut] $content[surname] $content[family].
+
+Sie haben heute Ihre Einstellungen geaendert.
+
+Hier sind alle neuen (und in Klammern alten) Daten:
+------------------------------
+{--GUEST_SPONSOR_RECEIVE_WARNINGS--}: $DATA[receive] ($content[receive])
+{--SPONSOR_WARNING_INTERVAL--}: $DATA[interval] ($content[interval])
+------------------------------
+
+Das Passwort wurde Ihnen aus Sicherheitsgruenden nicht mitgesendet.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
diff --git a/templates/de/emails/sponsor/sponsor_sub_points.tpl b/templates/de/emails/sponsor/sponsor_sub_points.tpl
new file mode 100644 (file)
index 0000000..0bdb3ca
--- /dev/null
@@ -0,0 +1,13 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+Einer unserer Administratoren hat Ihnen soeben {--__POINTS--} {--POINTS--} von Ihrem Sponsoren-Account mit der ID {--__ID--} abgezogen!
+
+Grund dazu war folgender:
+------------------------------
+$content
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_unlock.tpl b/templates/de/emails/sponsor/sponsor_unlock.tpl
new file mode 100644 (file)
index 0000000..d36fc79
--- /dev/null
@@ -0,0 +1,31 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+Sie (oder ein anderer mit der IP-Nummer $REMOTE_ADDR) haben soeben Ihren Bestaetigungslink erneut angefordert.
+
+Hier ist Ihr Link:
+------------------------------
+{--URL--}/sponsor_confirm.php?hash=$content[hash]
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+
+Sollten Sie diesen nicht anklicken koennen, kopieren Sie ihn bitte in die Adresszeile Ihres Browsers.
+
+Sollten Sie sich nicht angemeldet haben, bitten wir diese Unangenehmlichkeit zu entschuligen. Leiten Sie dann
+einfach diese EMail komplett weiter an {--WEBMASTER--}. Wir werden dann diese Anmeldung volstaendig aus unserer
+Datenbank loeschen.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+Angemeldet am: $content[sponsor_created]
+------------------------------
+IP-Nummer bei Anmeldung $content[remote_addr]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor/sponsor_unlocked.tpl b/templates/de/emails/sponsor/sponsor_unlocked.tpl
new file mode 100644 (file)
index 0000000..4f7768e
--- /dev/null
@@ -0,0 +1,19 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+------------------------------
+Ihre Sponsor-ID lautet: $content[sponsor]
+------------------------------
+
+Wir haben soeben Ihr Sponsoren-Account freigegeben! Sie koennen sich nun mit der Sponsor-ID und Ihrem Passwort
+(welches hier nicht genannt werden kann) im Sponsorenbereich einloggen und Ihre $content[points] {--POINTS--}
+zum Buchen von Aktionen benutzen.
+
+Hinweis:
+------------------------------
+$content[msg]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor_add_points.tpl b/templates/de/emails/sponsor_add_points.tpl
new file mode 100644 (file)
index 0000000..393b262
--- /dev/null
@@ -0,0 +1,13 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+Einer unserer Administratoren hat Ihnen soeben {--__POINTS--} {--POINTS--} Ihrem Sponsoren-Account mit der ID {--__ID--} gutgeschrieben!
+
+Grund dazu war folgender:
+------------------------------
+$content
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor_confirm.tpl b/templates/de/emails/sponsor_confirm.tpl
new file mode 100644 (file)
index 0000000..a8d089e
--- /dev/null
@@ -0,0 +1,35 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+Sie (oder ein anderer mit der IP-Nummer $REMOTE_ADDR) haben sich soeben als Sponsor zu unserem {--MT_WORD--}
+angemeldet. Sie haben somit den ersten Schritt zu uns getan wofuer wir uns sehr bedanken.
+
+Als naechstes muessen Sie Ihre EMail-Adresse bestaetigen. Dieser Schritt ist erforderlich, um sicher zu gehen,
+dass auch kein anderer Sie angemeldet hat.
+
+Hier ist Ihr Link:
+------------------------------
+{--URL--}/sponsor_confirm.php?hash={--__HASH--}
+------------------------------
+Ihre Sponsor-ID lautet: {--__ID--}
+------------------------------
+Passwort zum Login: {--__PASSWORD--}
+------------------------------
+
+Sollten Sie diesen nicht anklicken koennen, kopieren Sie ihn bitte in die Adresszeile Ihres Browsers.
+
+Sollten Sie sich nicht angemeldet haben, bitten wir diese Unangenehmlichkeit zu entschuligen. Leiten Sie dann
+einfach diese EMail komplett weiter an {--WEBMASTER--}. Wir werden dann diese Anmeldung volstaendig aus unserer
+Datenbank loeschen.
+
+------------------------------
+Verwendeter Browser: $HTTP_USER_AGENT
+------------------------------
+IP-Nummer: $REMOTE_ADDR
+------------------------------
+Angemeldet am: {--__TIMESTAMP--}
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor_pending.tpl b/templates/de/emails/sponsor_pending.tpl
new file mode 100644 (file)
index 0000000..bdfab3c
--- /dev/null
@@ -0,0 +1,57 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+Sie haben soeben Ihre EMail-Adresse bestaetigt. Dies wurde von der IP-Nummer $REMOTE_ADDR aus durchgefuehrt.
+
+Wir werden uns bald mit Ihnen in Verbindung setzen und Ihnen unsere Kontodaten mitteilen. Zu unserer
+Sicherheit haben wir diese hier nicht aufgelistet. Bitte notieren Sie sich vorab folgende Daten:
+
+------------------------------
+Verwendungszweck: SPONSOR: $content[id],$content[points]
+------------------------------
+Zu ueberweisender Betrag: $content[pay] $content[curr]
+------------------------------
+
+Hier sind nochmals alle Ihre Daten aus der Anmeldung:
+
+------------------------------
+Ihre Sponsor-ID lautet: $content[id]
+------------------------------
+-- Persoenliche Daten:      --
+------------------------------
+Anrede: $content[salut]
+------------------------------
+Vorname: $content[surname]
+------------------------------
+Nachname: $content[family]
+------------------------------
+-- Firmendaten:             --
+------------------------------
+Firmenname: $content[company]
+------------------------------
+Position: $content[position]
+------------------------------
+Ust-Ident-Nr.: $content[tax_ident]
+------------------------------
+-- Kontaktdaten:            --
+------------------------------
+Strasse, Zeile 1: $content[street_nr1]
+------------------------------
+Strasse, Zeile 2: $content[street_nr2]
+------------------------------
+Ländercode: $content[country]
+------------------------------
+Postleitzahl: $content[zip]
+------------------------------
+Wohnort: $content[city]
+------------------------------
+Telefonnummer: $content[phone]
+------------------------------
+Faxnummer: $content[fax]
+------------------------------
+Handynummer: $content[cell]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor_sub_points.tpl b/templates/de/emails/sponsor_sub_points.tpl
new file mode 100644 (file)
index 0000000..0bdb3ca
--- /dev/null
@@ -0,0 +1,13 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--},
+
+Einer unserer Administratoren hat Ihnen soeben {--__POINTS--} {--POINTS--} von Ihrem Sponsoren-Account mit der ID {--__ID--} abgezogen!
+
+Grund dazu war folgender:
+------------------------------
+$content
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/emails/sponsor_unlocked.tpl b/templates/de/emails/sponsor_unlocked.tpl
new file mode 100644 (file)
index 0000000..4f7768e
--- /dev/null
@@ -0,0 +1,19 @@
+Hallo $content[salut] $content[surname] $content[family],
+
+------------------------------
+Ihre Sponsor-ID lautet: $content[sponsor]
+------------------------------
+
+Wir haben soeben Ihr Sponsoren-Account freigegeben! Sie koennen sich nun mit der Sponsor-ID und Ihrem Passwort
+(welches hier nicht genannt werden kann) im Sponsorenbereich einloggen und Ihre $content[points] {--POINTS--}
+zum Buchen von Aktionen benutzen.
+
+Hinweis:
+------------------------------
+$content[msg]
+------------------------------
+
+Mit freundlichem Gruss,
+  Ihr {--MAIN_TITLE--} Team
+  
+{--URL--} ({--WEBMASTER--})
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_add_sponsor.tpl b/templates/de/html/admin/admin_add_sponsor.tpl
new file mode 100644 (file)
index 0000000..3c3c039
--- /dev/null
@@ -0,0 +1,292 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=add_sponsor" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" align="center" class="admin_table dashed" width="530">
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" colspan="3" align="center">
+    <STRONG>{--ADMIN_SPONSOR_ENTER_COMPANY_DATA--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="bottom2" width="10" height="40">&nbsp;</TD>
+  <TD class="bottom2" colspan="3" align="center">
+    <FONT class="admin_note">{--ADMIN_SPONSOR_COMPANY_NOTE--}</FONT>
+  </TD>
+  <TD class="bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" width="300">
+    {--SPONSOR_ENTER_COMPANY_TITLE--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD width="200">
+    <INPUT type="text" name="company" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_ENTER_COMPANY_POSITION--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="position" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_TAX_IDENT--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="tax_ident" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" colspan="3" align="center">
+    <STRONG>{--ADMIN_SPONSOR_ENTER_PERSONA_DATA--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--GUEST_SEX--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <SELECT name="salut" class="admin_select" size="1">
+      <OPTION value="M">{--SEX_M--}</OPTION>
+        <OPTION value="F">{--SEX_F--}</OPTION>
+        <OPTION value="C">{--SEX_C--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--GUEST_SURNAME--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="surname" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--GUEST_FAMILY--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="family" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" colspan="3" align="center">
+    <STRONG>{--ADMIN_SPONSOR_ENTER_CONTACT_DATA--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_STREET_NR1--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="street_nr1" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_STREET_NR2--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="street_nr2" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="country" class="admin_normal" size="2" maxlength="2" value="DE">-<INPUT type="text" name="zip" class="admin_normal" size="5" maxlength="6">
+    <INPUT type="text" name="city" class="admin_normal" size="10" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_PHONE--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="phone" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_FAX--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="fax" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_CELL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="cell" class="admin_normal" size="20" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_EMAIL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="email" class="admin_normal" size="20" maxlength="255" value="@">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_URL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="url" class="admin_normal" size="20" maxlength="255" value="http://">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" colspan="3" align="center">
+    <STRONG>{--ADMIN_SPONSOR_ENTER_PASSWORDS--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_PASSWORDS--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="password" name="pass1" class="admin_normal" size="10" maxlength="255">
+    <INPUT type="password" name="pass2" class="admin_normal" size="10" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" colspan="3" align="center">
+    <STRONG>{--ADMIN_SPONSOR_WARNINGS_POINTS--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_RECEIVE_WARNINGS--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <SELECT name="receive_warnings" class="admin_select" size="1">
+      <OPTION value="Y">{--YES--}</OPTION>
+        <OPTION value="N">{--NO--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_WARNING_INTERVAL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <SELECT name="warning_interval" class="admin_select" size="1">
+      <OPTION value="0">{--SELECT_NONE--}</OPTION>
+      <OPTION value="{--(ONE_DAY*1)--}">1 {--DAYS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*3)--}">3 {--DAYS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*7)--}" selected>1 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*14)--}">2 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*28)--}">4 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*56)--}">8 {--LIFE_WEEKS--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_POINTS--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="points_amount" class="admin_normal" size="6" maxlength="20" value="{--__SPONSOR_MIN_VALUE--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_footer seperator" width="10">&nbsp;</TD>
+  <TD class="admin_footer" colspan="3" align="center">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="admin_submit" value="{--ADD_SPONSOR--}">
+  </TD>
+  <TD class="admin_footer seperator" width="10">&nbsp;</TD>
+</TR>
+</TABLE>
+</FORM>
diff --git a/templates/de/html/admin/admin_add_sponsor_already.tpl b/templates/de/html/admin/admin_add_sponsor_already.tpl
new file mode 100644 (file)
index 0000000..e2ed865
--- /dev/null
@@ -0,0 +1,28 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=add_sponsor&amp;force=1" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" align="center" class="admin_table dashed" width="520">
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" align="center">
+    <STRONG>{--ADMIN_SPONSOR_REALLY_ADD_SPONSOR--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="3" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD width="10" height="30">&nbsp;</TD>
+  <TD align="center">
+    {--ADMIN_SPONSOR_DO_YOU_REALLY_WANT_ADDING--}
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="3" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_footer seperator" width="10">&nbsp;</TD>
+  <TD class="admin_footer" align="center">
+       {--__HIDDEN_DATA--}
+    <INPUT type="submit" name="ok" class="admin_submit" value="{--ADD_SPONSOR--}">
+  </TD>
+  <TD class="admin_footer seperator" width="10">&nbsp;</TD>
+</TR>
+</TABLE>
+</FORM>
diff --git a/templates/de/html/admin/admin_add_sponsor_paytype.tpl b/templates/de/html/admin/admin_add_sponsor_paytype.tpl
new file mode 100644 (file)
index 0000000..32682e8
--- /dev/null
@@ -0,0 +1,50 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=list_sponsor_pay" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="560" align="center" class="admin_table dashed">
+<TR>
+  <TD class="admin_title bottom2" colspan="3" align="center" height="30">
+    <STRONG>{--ADMIN_ADD_SPONSOR_PAYTYPE_TITLE--}:</STRONG>
+  </TD>
+</TR>
+<TR><TD height="8" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD width="350" align="right">{--SPONSOR_PAYTYPE_NAME--}:<BR><FONT class="tiny">{--SPONSOR_PAYTYPE_NAME_HINT--}</FONT></TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD width="200"><INPUT type="text" name="pay_name" size="10" maxlength="255" class="admin_normal"></TD>
+</TR>
+<TR><TD height="8" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD width="350" align="right">{--SPONSOR_PAYTYPE_RATE--}:<BR><FONT class="tiny">{--SPONSOR_PAYTYPE_RATE_HINT--}</FONT></TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD width="200"><INPUT type="text" name="pay_rate" size="7" maxlength="25" class="admin_normal" value="0.00000"></TD>
+</TR>
+<TR><TD height="8" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD width="350" align="right">{--SPONSOR_PAYTYPE_MIN_COUNT--}:</TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD width="200"><INPUT type="text" name="pay_min_count" size="2" maxlength="20" class="admin_normal" value="1"></TD>
+</TR>
+<TR><TD height="8" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD width="350" align="right">{--SPONSOR_PAYTYPE_CURRENCY--}:</TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD width="200"><INPUT type="text" name="pay_currency" size="3" maxlength="255" class="admin_normal" value="&euro;"></TD>
+</TR>
+<TR><TD height="5" colspan="3" class="seperator bottom2">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="3" align="center" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" class="admin_submit" name="add" value="{--ADMIN_ADD_SPONSOR_PAYTYPE--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+<DIV align="center">
+  <FONT class="admin_note tiny">
+    <U><B>{--SPONSOR_ADD_PAYTYPES_NOTES--}:</B></U><BR>
+    <BR>
+    <STRONG>{--SPONSOR_PAYTYPE_NAME--}:</STRONG>&nbsp;{--SPONSOR_PAYTYPE_NAME_NOTE--}<BR>
+    <STRONG>{--SPONSOR_PAYTYPE_RATE--}:</STRONG>&nbsp;{--SPONSOR_PAYTYPE_RATE_NOTE--}<BR>
+    <STRONG>{--SPONSOR_PAYTYPE_MIN_COUNT--}:</STRONG>&nbsp;{--SPONSOR_PAYTYPE_MIN_COUNT_NOTE--}<BR>
+    <STRONG>{--SPONSOR_PAYTYPE_CURRENCY--}:</STRONG>&nbsp;{--SPONSOR_PAYTYPE_CURRENCY_NOTE--}<BR>
+  </FONT>
+</DIV>
diff --git a/templates/de/html/admin/admin_config_sponsor.tpl b/templates/de/html/admin/admin_config_sponsor.tpl
new file mode 100644 (file)
index 0000000..d272dbe
--- /dev/null
@@ -0,0 +1,34 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=config_sponsor" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" align="center" class="admin_table dashed" width="500">
+<TR>
+  <TD colspan="2" align="center" class="admin_title bottom2" height="30">
+    <B>{--ADMIN_CONFIG_SPONSOR_TITLE--}</B>
+  </TD>
+</TR>
+<TR><TD colspan="2" class="seperator" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD align="right" width="350">
+    {--ADMIN_SPONSOR_MIN_POINTS--}:
+  </TD>
+  <TD width="150" align="center">
+    <INPUT type="text" class="admin_normal" name="sponsor_min_points" size="12" maxlength="20" value="{--__SPONSOR_MIN_POINTS--}">
+  </TD>
+</TR>
+<TR><TD colspan="2" class="seperator" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD align="right" width="350">
+    {--ADMIN_SPONSOR_REF_POINTS--}:
+  </TD>
+  <TD width="150" align="center">
+    <INPUT type="text" class="admin_normal" name="sponsor_ref_points" size="12" maxlength="20" value="{--__SPONSOR_REF_POINTS--}">
+  </TD>
+</TR>
+<TR><TD colspan="2" class="seperator bottom2" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="2" align="center" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_del_sponsor.tpl b/templates/de/html/admin/admin_del_sponsor.tpl
new file mode 100644 (file)
index 0000000..a9b9c8a
--- /dev/null
@@ -0,0 +1,30 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=del_sponsor&amp;id={--__UID--}" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="500" align="center" class="admin_table dashed">
+<TR>                                                                      
+  <TD align="center" class="admin_title bottom2" height="28">       
+    <STRONG class="admin_done">{--ADMIN_HEADER_DEL_SPONSOR_1--}{--__UID--}{--ADMIN_HEADER_DEL_SPONSOR_2--}</STRONG>    
+  </TD>                                                                   
+</TR>                                                      
+<TR><TD height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="center">
+    {--ADMIN_TEXT_DEL_SPONSOR_1--}{--__UID--}{--ADMIN_TEXT_DEL_SPONSOR_2--}
+  </TD>
+</TR>
+<TR><TD height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="center"><A href="mailto:{--__EMAIL--}">{--__SNAME--} {--__FNAME--}</A>({--__EMAIL--})</TD>
+</TR>
+<TR><TD height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="center"><TEXTAREA name="reason" class="admin_normal" rows="5" cols="50"></TEXTAREA></TD>
+</TR>
+<TR><TD height="5" class="seperator bottom2">&nbsp;</TD></TR>
+<TR>                                            
+  <TD align="center" class="admin_footer">                         
+    <INPUT type="submit" name="no" class="admin_no" value="{--NO--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="admin_yes" value="{--YES--}">
+  </TD>                                         
+</TR>
+</TABLE>
+</FORM>
diff --git a/templates/de/html/admin/admin_edit_sponsor_add_points.tpl b/templates/de/html/admin/admin_edit_sponsor_add_points.tpl
new file mode 100644 (file)
index 0000000..9eeedbd
--- /dev/null
@@ -0,0 +1,31 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=edit_sponsor&amp;mode=add_points&amp;id={--__SPONSOR_ID--}" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="500" align="center" class="admin_table dashed">
+<TR><TD class="admin_title seperator" height="10" colspan="3">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title" colspan="3" align="center">
+    {--ADMIN_ADD_POINTS_TO_SPONSOR--}:<BR>
+    <B>{--__SPONSOR_VALUE--}</B>
+  </TD>
+</TR>
+<TR><TD class="admin_title seperator bottom2" height="10" colspan="3">&nbsp;</TD></TR>
+<TR><TD height="8" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="right">{--ADMIN_SUM_SPONSOR_POINTS--}:</TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD><INPUT type="text" name="points" size="6" maxlength="7" class="admin_normal"></TD>
+</TR>
+<TR><TD height="5" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="right">{--ENTER_ADD_REASON--}:</TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD><TEXTAREA name="reason" class="admin_normal" rows="5" cols="20"></TEXTAREA></TD>
+</TR>
+<TR><TD height="5" colspan="3" class="seperator bottom2">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="3" align="center" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" class="admin_submit" name="ok" value="{--ADMIN_SPONSOR_ADD_POINTS--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
diff --git a/templates/de/html/admin/admin_edit_sponsor_edit.tpl b/templates/de/html/admin/admin_edit_sponsor_edit.tpl
new file mode 100644 (file)
index 0000000..4aeb1a6
--- /dev/null
@@ -0,0 +1,247 @@
+<DIV align="center"><FORM action="{--URL--}/modules.php?module=admin&amp;what=edit_sponsor&amp;id={--__SPONSOR_ID--}&amp;mode=edit" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="580" class="admin_table dashed" align="center">
+<TR>
+  <TD colspan="5" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--ADMIN_SPONSOR_ENTER_COMPANY_DATA--}: ({--__SPONSOR_ID--})</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2" width="10">&nbsp;</TD>
+  <TD class="bottom2" colspan="3" align="center">
+    <FONT class="admin_note">{--ADMIN_SPONSOR_COMPANY_NOTE--}</FONT>
+  </TD>
+  <TD class="bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" width="295">
+    {--SPONSOR_ENTER_COMPANY_TITLE--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD width="255">
+    <INPUT type="text" name="company" class="admin_normal" size="20" maxlength="255" value="{--__COMPANY--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_ENTER_COMPANY_POSITION--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="position" class="admin_normal" size="20" maxlength="255" value="{--__POSITION--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_TAX_IDENT--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="tax_ident" class="admin_normal" size="20" maxlength="255" value="{--__TAX_IDENT--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" colspan="3" align="center">
+    <STRONG>{--ADMIN_SPONSOR_ENTER_PERSONA_DATA--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD width="10">&nbsp;</TD>
+  <TD width="295" align="right" height="21">
+    {--GUEST_SEX--}:
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD width="255">
+    <SELECT name="salut" class="admin_select" size="1">
+      <OPTION value="M"{--__SALUT_M--}">{--SEX_M--}</OPTION>
+      <OPTION value="F"{--__SALUT_F--}">{--SEX_F--}</OPTION>
+      <OPTION value="C"{--__SALUT_C--}">{--SEX_C--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SURNAME_FAMILY--}:
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="surname" class="admin_normal" size="8" maxlength="255" value="{--__SURNAME--}">
+    <INPUT type="text" name="family" class="admin_normal" size="8" maxlength="255" value="{--__FAMILY--}">
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_ENTER_STREET_NR1--}:
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="street_nr1" class="admin_normal" size="20" maxlength="255" value="{--__STREET1--}">
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_ENTER_STREET_NR2--}:
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="street_nr2" class="admin_normal" size="20" maxlength="255" value="{--__STREET2--}">
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="country" class="admin_normal" size="2" maxlength="3" value="{--__COUNTRY--}">-<INPUT type="text" name="zip" class="admin_normal" size="5" maxlength="6" value="{--__ZIP--}">
+    <INPUT type="text" name="city" class="admin_normal" size="15" maxlength="255" value="{--__CITY--}">
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_PHONE--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="phone" class="admin_normal" size="20" maxlength="255" value="{--__PHONE--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_FAX--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="fax" class="admin_normal" size="20" maxlength="255" value="{--__FAX--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_CELL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="cell" class="admin_normal" size="20" maxlength="255" value="{--__CELL--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD width="10">&nbsp;</TD>
+  <TD align="right">
+    {--ADDY--}:
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="email" class="admin_normal" size="30" maxlength="255" value="{--__EMAIL--}">
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_URL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="url" class="admin_normal" size="30" maxlength="255" value="{--__URL--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="5" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--ADMIN_SPONSOR_ENTER_PASSWORDS--}</STRONG>
+  </TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_PASSWORDS--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="password" name="pass1" class="admin_normal" size="10" maxlength="255">
+    <INPUT type="password" name="pass2" class="admin_normal" size="10" maxlength="255">
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD width="10" height="30">&nbsp;</TD>
+  <TD colspan="3" align="center">
+    <FONT class="tiny">{--ADMIN_EDIT_USER_PASSWORD_NOTE--}</FONT>
+  </TD>
+  <TD width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="admin_title bottom2" colspan="3" align="center">
+    <STRONG>{--ADMIN_SPONSOR_WARNINGS_POINTS--}</STRONG>
+  </TD>
+  <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_RECEIVE_WARNINGS--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD style="padding-left: 15px">
+    <SELECT name="receive_warnings" class="admin_select" size="1">
+      <OPTION value="Y">{--YES--}</OPTION>
+        <OPTION value="N">{--NO--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_WARNING_INTERVAL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    {--__INTERVAL--}
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="5" align="center" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="edit" class="admin_submit" value="{--CHANGE_PROFILE--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM></DIV>
diff --git a/templates/de/html/admin/admin_edit_sponsor_sub_points.tpl b/templates/de/html/admin/admin_edit_sponsor_sub_points.tpl
new file mode 100644 (file)
index 0000000..721de01
--- /dev/null
@@ -0,0 +1,31 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=edit_sponsor&amp;mode=sub_points&amp;id={--__SPONSOR_ID--}" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="500" align="center" class="admin_table dashed">
+<TR><TD class="admin_title seperator" height="10" colspan="3">&nbsp;</TD></TR>
+<TR>
+  <TD class="admin_title" colspan="3" align="center">
+    {--ADMIN_SUB_POINTS_FROM_SPONSOR--}:<BR>
+    <B>{--__SPONSOR_VALUE--}</B>
+  </TD>
+</TR>
+<TR><TD class="admin_title seperator bottom2" height="10" colspan="3">&nbsp;</TD></TR>
+<TR><TD height="8" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="right">{--ADMIN_SUM_SPONSOR_POINTS--}:</TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD><INPUT type="text" name="points" size="6" maxlength="7" class="admin_normal"></TD>
+</TR>
+<TR><TD height="5" colspan="3" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="right">{--ENTER_SUB_REASON--}:</TD>
+  <TD width="10" class="seperator">&nbsp;</TD>
+  <TD><TEXTAREA name="reason" class="admin_normal" rows="5" cols="20"></TEXTAREA></TD>
+</TR>
+<TR><TD height="5" colspan="3" class="seperator bottom2">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="3" align="center" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" class="admin_submit" name="ok" value="{--ADMIN_SPONSOR_SUB_POINTS--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
diff --git a/templates/de/html/admin/admin_list_sponsor.tpl b/templates/de/html/admin/admin_list_sponsor.tpl
new file mode 100644 (file)
index 0000000..de5729a
--- /dev/null
@@ -0,0 +1,15 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=list_sponsor" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" align="center">
+<TR>
+  <TD colspan="4" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--ADMIN_LIST_SPONSOR_ACCOUNTS--}</STRONG>
+  </TD>
+</TR>
+{--__SPONSOR_ROWS--}
+<TR>
+  <TD colspan="4" align="center" class="admin_footer" style="padding: 5px">
+    <FONT class="admin_notes tiny">{--ADMIN_LIST_SPONSOR_NOTES--}</FONT>
+  </TD>
+</TR>
+</TABLE>
+</FORM>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_list_sponsor_details.tpl b/templates/de/html/admin/admin_list_sponsor_details.tpl
new file mode 100644 (file)
index 0000000..be7b96c
--- /dev/null
@@ -0,0 +1,130 @@
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" align="center" width="520">
+<TR>
+  <TD colspan="2" align="center" class="admin_title bottom2" height="30" style="padding: 5px">
+    <STRONG class="big">{--ADMIN_SPONSOR_DETAILS--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2" height="25">{--SPONSOR_ID--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_ID--} [&nbsp;<STRONG><A href="{--URL--}/modules.php?module=admin&amp;what=lock_sponsor&amp;id={--__SPONSOR_ID--}">{--__SPONSOR_STATUS--}</A></STRONG>&nbsp;]</TD>
+</TR>
+<TR>
+  <TD colspan="2" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--ADMIN_SPONSOR_COMPANY_DATA--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_COMPANY_TITLE--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_COMPANY--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_COMPANY_POSITION--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_POSITION--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_TAX_IDENT--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_TAX_IDENT--}</TD>
+</TR>
+<TR>
+  <TD colspan="2" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--ADMIN_SPONSOR_PERSONA_DATA--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SURNAME_FAMILY--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_SALUT--} {--__SPONSOR_SURNAME--} {--__SPONSOR_FAMILY--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_STREET_NR1--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_STREET1--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_STREET_NR2--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_STREET2--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_COUNTRY--}-{--__SPONSOR_ZIP--}&nbsp;{--__SPONSOR_CITY--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_PHONE--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_PHONE--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_FAX--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_FAX--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_CELL--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;{--__SPONSOR_CELL--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_EMAIL--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;<A href="{--__SPONSOR_EMAIL--}">{--__SPONSOR_EMAIL_VALUE--}</A>&nbsp;</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_ENTER_URL--}:&nbsp;</TD>
+  <TD class="bottom2">&nbsp;[&nbsp;<A href="{--__SPONSOR_URL--}" target="_blank"><B>{--EMAIL_URL_TEST--}</B></A>&nbsp;]&nbsp;</TD>
+</TR>
+<TR>
+  <TD colspan="2" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--ADMIN_SPONSOR_WARNINGS_POINTS--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_RECEIVE_WARNINGS_SHORT--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">{--__SPONSOR_REC_WARNING--}</TD>
+<TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_WARNING_INTERVAL_SHORT--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">{--__SPONSOR_INTERVAL--}</TD>
+<TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_POINTS_AMOUNT--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">&nbsp;[&nbsp;<A href="{--URL--}/modules.php?module=admin&amp;what=edit_sponsor&amp;id={--__SPONSOR_ID--}&amp;mode=add_points" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}"><B>{--__SPONSOR_AMOUNT--}</B></A>&nbsp;]</TD>
+<TR>
+</TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_POINTS_USED--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">&nbsp;[&nbsp;<A href="{--URL--}/modules.php?module=admin&amp;what=edit_sponsor&amp;id={--__SPONSOR_ID--}&amp;mode=sub_points" title="{--ADMIN_SPONSOR_SUB_POINTS_LINK_TITLE--}"><B>{--__SPONSOR_USED--}</B></A>&nbsp;]</TD>
+</TR>
+<TR>
+  <TD colspan="2" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--ADMIN_SPONSOR_OTHER_DETAILS--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_CREATED--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">{--__SPONSOR_CREATED--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--ADMIN_LAST_ONLINE--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">{--__SPONSOR_LAST_ONLINE--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--ADMIN_LAST_CHANGE--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">{--__SPONSOR_LAST_CHANGE--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--REMOTE_IP--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">{--__SPONSOR_REMOTE_ADR--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_REFID--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">{--__SPONSOR_REFID--}</TD>
+</TR>
+<TR>
+  <TD align="right" class="bottom2 right2">{--SPONSOR_REFERRALS--}:</STRONG>&nbsp;</TD>
+  <TD align="center" class="bottom2">[&nbsp;<A href="{--URL--}/modules.php?module=admin&amp;what=list_sponsor&amp;rid={--__SPONSOR_ID--}"><B>{--__SPONSOR_REFS--}</B></A>&nbsp;]</TD>
+</TR>
+<TR>
+  <TD colspan="2" class="admin_footer" style="padding: 5px">
+    <DIV align="center"><STRONG>{--ADMIN_SPONSOR_ACTIONS--}:</STRONG></DIV>
+    <UL>
+      <LI>&nbsp;[&nbsp;<A href="{--URL--}/modules.php?module=admin&amp;what=edit_sponsor&amp;id={--__SPONSOR_ID--}&amp;mode=edit">{--ADMIN_SPONSOR_EDIT--}</A>&nbsp;]</LI>
+      <LI>&nbsp;[&nbsp;<A href="{--URL--}/modules.php?module=admin&amp;what=del_sponsor&amp;id={--__SPONSOR_ID--}">{--ADMIN_SPONSOR_DEL--}</A>&nbsp;]</LI>
+      <LI>&nbsp;[&nbsp;<A href="{--URL--}/modules.php?module=admin&amp;what=lock_sponsor&amp;id={--__SPONSOR_ID--}">{--ADMIN_SPONSOR_LOCK--}</A>&nbsp;]</LI>
+      <LI>&nbsp;[&nbsp;<A href="{--URL--}/modules.php?module=admin&amp;what=list_sponsor_pays&amp;id={--__SPONSOR_ID--}">{--ADMIN_LIST_SPONSOR_ORDERS--}</A>&nbsp;] (<B>{--__SPONSOR_ORDERS--}</B>)</LI>
+    </UL>
+  </TD>
+</TR>
+</TABLE>
diff --git a/templates/de/html/admin/admin_list_sponsor_pay.tpl b/templates/de/html/admin/admin_list_sponsor_pay.tpl
new file mode 100644 (file)
index 0000000..4555d0a
--- /dev/null
@@ -0,0 +1,24 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=list_sponsor_pay" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="640" class="admin_table dashed" align="center">
+<TR>
+  <TD colspan="5" align="center" class="admin_title bottom2" height="30">
+    <STRONG>{--SPONSOR_LIST_PAYMENT_TYPES_TITLE--}</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="center" class="admin_title bottom2 right2" width="20"><STRONG>{--ID_SELECT--}</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="160"><STRONG>{--SPONSOR_PAYTYPE_NAME--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="150"><STRONG>{--SPONSOR_PAYTYPE_RATE--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="150"><STRONG>{--SPONSOR_PAYTYPE_MIN_COUNT2--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2" width="160"><STRONG>{--SPONSOR_PAYTYPE_CURRENCY--}:</STRONG></TD>
+</TR>
+{--__LIST_ROWS--}
+<TR>
+  <TD colspan="5" align="center" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}">&nbsp;*
+    <INPUT type="submit" name="edit" class="admin_submit" value="{--ADMIN_SPONSOR_PAYTYPE_EDIT--}">&nbsp;*
+    <INPUT type="submit" name="del" class="admin_delete" value="{--ADMIN_SPONSOR_PAYTYPE_DELETE--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_list_sponsor_pay_404.tpl b/templates/de/html/admin/admin_list_sponsor_pay_404.tpl
new file mode 100644 (file)
index 0000000..801c787
--- /dev/null
@@ -0,0 +1,5 @@
+<TR>
+  <TD colspan="5" align="center" class="switch_sw$content[sw] bottom2">
+    <STRONG>{--ENTRY_404_1--}$content{--ENTRY_404_2--}</STRONG>
+  </TD>
+</TR>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_list_sponsor_pay_del.tpl b/templates/de/html/admin/admin_list_sponsor_pay_del.tpl
new file mode 100644 (file)
index 0000000..38fa5ff
--- /dev/null
@@ -0,0 +1,25 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=list_sponsor_pay" method="POST" target="_self">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" width="640">
+<TR>
+  <TD align="center" colspan="5" class="admin_header bottom2" height="40">
+    <STRONG>{--SPONSOR_DELETE_PAY_ENTRIES--}</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="center" class="admin_title bottom2 right2" width="20"><STRONG>{--ID_SELECT--}</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="160"><STRONG>{--SPONSOR_PAYTYPE_NAME--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="150"><STRONG>{--SPONSOR_PAYTYPE_RATE--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="150"><STRONG>{--SPONSOR_PAYTYPE_MIN_COUNT2--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2" width="160"><STRONG>{--SPONSOR_PAYTYPE_CURRENCY--}:</STRONG></TD>
+</TR>
+{--__SPONSOR_ROWS--}
+<TR>
+  <TD align="center" colspan="5" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" class="admin_delete" name="remove" value="{--DEL_ENTRIES--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
diff --git a/templates/de/html/admin/admin_list_sponsor_pay_del_row.tpl b/templates/de/html/admin/admin_list_sponsor_pay_del_row.tpl
new file mode 100644 (file)
index 0000000..566dfb6
--- /dev/null
@@ -0,0 +1,17 @@
+<TR>
+  <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+    <INPUT type="checkbox" name="id[$content[id]]" class="admin_normal" value="1">
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;$content[name]
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;$content[rate]
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;$content[min]
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2">
+    &nbsp;$content[curr]
+  </TD>
+</TR>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_list_sponsor_pay_edit.tpl b/templates/de/html/admin/admin_list_sponsor_pay_edit.tpl
new file mode 100644 (file)
index 0000000..86ee3bf
--- /dev/null
@@ -0,0 +1,25 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=list_sponsor_pay" method="POST" target="_self">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" width="640">
+<TR>
+  <TD align="center" colspan="5" class="admin_header bottom2" height="40">
+    <STRONG>{--SPONSOR_EDIT_PAY_ENTRIES--}</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="center" class="admin_title bottom2 right2" width="20"><STRONG>{--ID_SELECT--}</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="160"><STRONG>{--SPONSOR_PAYTYPE_NAME--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="150"><STRONG>{--SPONSOR_PAYTYPE_RATE--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2" width="150"><STRONG>{--SPONSOR_PAYTYPE_MIN_COUNT2--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2" width="160"><STRONG>{--SPONSOR_PAYTYPE_CURRENCY--}:</STRONG></TD>
+</TR>
+{--__SPONSOR_ROWS--}
+<TR>
+  <TD align="center" colspan="5" class="admin_footer">
+    <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" class="admin_submit" name="change" value="{--SUBMIT_CHANGES--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
diff --git a/templates/de/html/admin/admin_list_sponsor_pay_edit_row.tpl b/templates/de/html/admin/admin_list_sponsor_pay_edit_row.tpl
new file mode 100644 (file)
index 0000000..0832bb2
--- /dev/null
@@ -0,0 +1,18 @@
+<TR>
+  <TD class="switch_sw$content[sw] bottom2 right2" align="center" height="29">
+    <B>$content[id]</B>
+    <INPUT type="hidden" name="id[$content[id]]" class="admin_normal" value="1">
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;<INPUT type="text" name="name[$content[id]]" class="admin_normal" size="16" maxlength="" value="$content[name]">
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;<INPUT type="text" name="rate[$content[id]]" class="admin_normal" size="19" maxlength="" value="$content[rate]">
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;<INPUT type="text" name="min[$content[id]]" class="admin_normal" size="3" maxlength="20" value="$content[min]">
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2">
+    &nbsp;<INPUT type="text" name="curr[$content[id]]" class="admin_normal" size="5" maxlength="" value="$content[curr]">
+  </TD>
+</TR>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_list_sponsor_pay_row.tpl b/templates/de/html/admin/admin_list_sponsor_pay_row.tpl
new file mode 100644 (file)
index 0000000..777fabb
--- /dev/null
@@ -0,0 +1,17 @@
+<TR>
+  <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+    <INPUT type="checkbox" name="id[$content[id]]" class="admin_normal" value="1">
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;$content[name]
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;$content[rate]
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2 right2">
+    &nbsp;$content[min]
+  </TD>
+  <TD class="switch_sw$content[sw] bottom2">
+    &nbsp;$content[currency]
+  </TD>
+</TR>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_list_sponsor_row.tpl b/templates/de/html/admin/admin_list_sponsor_row.tpl
new file mode 100644 (file)
index 0000000..b9821c4
--- /dev/null
@@ -0,0 +1,38 @@
+<TR>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="100"><STRONG>{--ID_SELECT--}</STRONG></TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="240" colspan="2"><STRONG>{--SURNAME_FAMILY--}:</STRONG></TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2" width="160"><STRONG>{--SPONSOR_POINTS_LEFT--}:</STRONG></TD>
+</TR>
+<TR>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="100">
+    [&nbsp;<B><A href="{--URL--}/modules.php?module=admin&amp;what=list_sponsor&amp;id=$content[id]" title="{--ADMIN_SPONSOR_DETAILS_LINK_TITLE--}">$content[id]</A></B>&nbsp;]
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="240" colspan="2">
+    <A href="$content[email]">$content[salut] $content[sname] $content[fname]</A>
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2" width="160">
+    [&nbsp;<B><A href="{--URL--}/modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=add_points" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}">$content[points]</A></B>&nbsp;]
+  </TD>
+</TR>
+<TR>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="100">
+    <STRONG>{--_STATUS--}</STRONG>:
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="160"><STRONG>{--SPONSOR_CREATED--}:</STRONG></TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="160"><STRONG>{--ADMIN_LAST_ONLINE--}:</STRONG></TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2" width="160"><STRONG>{--REMOTE_IP--}:</STRONG></TD>
+</TR>
+<TR>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="100">
+    [&nbsp;<B><A href="{--URL--}/modules.php?module=admin&amp;what=lock_sponsor&amp;id=$content[id]">$content[status]</A></B>&nbsp;]
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="120">
+    $content[created]
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2" width="120">
+    $content[last]
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2" width="160">
+    $content[ip]
+  </TD>
+</TR>
diff --git a/templates/de/html/admin/admin_lock_sponsor.tpl b/templates/de/html/admin/admin_lock_sponsor.tpl
new file mode 100644 (file)
index 0000000..13bebd8
--- /dev/null
@@ -0,0 +1,34 @@
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=lock_sponsor&amp;id={--__ID--}" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="500" align="center" class="admin_table dashed">
+<TR>
+  <TD align="center" class="admin_title bottom2">
+    <STRONG class="admin_done">{--__HEADER_MESSAGE--}</STRONG>
+  </TD>
+</TR>
+<TR><TD height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="center">
+    {--__TEXT_MESSAGE--} 
+  </TD>
+</TR>
+<TR><TD height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="center">
+    {--__EMAIL_LINK--}
+  </TD>
+</TR>
+<TR><TD height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD align="center">
+    <TEXTAREA name="reason" class="admin_normal" rows="5" cols="50"></TEXTAREA>
+  </TD>
+</TR>
+<TR><TD height="5" class="seperator bottom2">&nbsp;</TD></TR>
+<TR>
+  <TD align="center" class="admin_footer">
+    <INPUT type="submit" name="no" class="admin_no" value="{--NO--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="admin_yes" value="{--YES--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_sponsor_paytypes.tpl b/templates/de/html/admin/admin_sponsor_paytypes.tpl
new file mode 100644 (file)
index 0000000..b893dd1
--- /dev/null
@@ -0,0 +1,5 @@
+<DIV align="center">
+  {--__LIST_CONTENT--}<BR>
+  <BR>
+  {--__ADD_CONTENT--}
+</DIV>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_unlock_sponsor.tpl b/templates/de/html/admin/admin_unlock_sponsor.tpl
new file mode 100644 (file)
index 0000000..aae3688
--- /dev/null
@@ -0,0 +1,28 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=admin&amp;what=unlock_sponsor" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="620" class="admin_table dashed">
+<TR>
+  <TD colspan="4" class="admin_title bottom2" height="30" align="center">
+    <STRONG>{--ADMIN_SPONSOR_UNLOCK_TITLE--}</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="center" class="admin_title bottom2 right2"><STRONG>{--ID_SELECT--}</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2"><STRONG>{--SURNAME_FAMILY--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2 right2"><STRONG>{--REMOTE_IP--}:</STRONG></TD>
+  <TD align="center" class="admin_title bottom2"><STRONG>{--SPONSOR_CREATED--}:</STRONG></TD>
+</TR>
+{--__SPONSOR_ROWS--}
+<TR>
+  <TD colspan="4" class="admin_footer" height="30" align="center">
+    <INPUT type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="admin_submit" value="{--SPONSOR_UNLOCK--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
+
+<P align="center">
+  <STRONG class="admin_note">{--ADMIN_SPONSOR_UNLOCK_NOTES--}</STRONG>
+</P>
diff --git a/templates/de/html/admin/admin_unlock_sponsor_row.tpl b/templates/de/html/admin/admin_unlock_sponsor_row.tpl
new file mode 100644 (file)
index 0000000..d3e9ad9
--- /dev/null
@@ -0,0 +1,14 @@
+<TR>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+    <INPUT type="checkbox" name="id[$content[id]]" class="admin_normal" value="1">
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+    <A href="$content[email]">$content[salut] $content[surname] $content[family]</A>
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+    $content[remote]
+  </TD>
+  <TD align="center" class="switch_sw$content[sw] bottom2">
+    $content[created]
+  </TD>
+</TR>
diff --git a/templates/de/html/ext/ext_sponsor.tpl b/templates/de/html/ext/ext_sponsor.tpl
new file mode 100644 (file)
index 0000000..68ce4c0
--- /dev/null
@@ -0,0 +1 @@
+{--MT_WORD3--} &quot;leben&quot; von ihren Sponsoren. Mit dieser Erweiterung steht Ihnen eine professionelle L&ouml;sung bereit, mit der Sie neue Sponoren werben k&ouml;nnen.<BR><BR>Die wichtigsten Funktionen des Sponsorbereiches:<UL><LI>Echtzeitstatistik im Sponsorenbereich f&uuml;r jede Sponsoraktion seperat und gemeinsam</LI>Einfaches Nachbestellen von {--POINTS--}n (Konto auff&uuml;llen) und &Auml;ndern der Einstellungen des Sponsors (sowohl aus dem Adminbereich als auch vom Sponsor selber durchf&uuml;hrbar)</LI><LI>Volle administrative Kontrolle (z.B. wird das Sponsorenaccount gesperrt, wenn er seine Email-Adresse &auml;ndert oder neue {--POINTS--} bestellt hat; jede vom Sponsor durchgef&uuml;hrte Sponsorenaktion (Mailbuchung, neue SignUp-Aktion erstellt oder bestehende ge&auml;ndert) muss von Ihnen freigegeben werden)</LI><LI>Eigenes von anderen unabh&auml;ngige Men&uuml;system</LI><LI>Sie k&ouml;nnen (und sollten es auch) eigene Sponsoren-Accounts aus dem Adminbereich anlegen</LI><LI>Installieren Sie eine zus&auml;tzliche Erweiterung mit Sponsor-Anteil Ihrem {--MT_WORD--} hinzu, wird automatisch ein entsprechender Men&uuml;punkt in den Sponsorenbereich eingef&uuml;gt.</LI><LI>Einfache Werbemittel-Verwaltung: Die Sponsoren brauchen nur einmal eine URL bzw. einen Banner hinzuf&uuml;gen (ausser wenn diese gel&ouml;scht wurden).</LI><LI>Sp&auml;ter k&ouml;nnen die URLs und Banner beliebig Kampagnen zugewiesen werden.</LI><LI>Kampagnen k&ouml;nnen entweder von einem Anfangsdatum bis zu einem Enddatum laufen oder bis das &uuml;bertragene Guthaben an {--POINTS--} aufgebraucht ist.</LI><LI>In allen F&auml;llen ist eine Mail zum Sponsor und zu den Administratoren unterwegs!</LI><LI>Ihre Sponsoren werden im Mitgliedsbereich Ihren Mitgliedern etwas vorstellt. Bestimmen Sie dabei, welche Daten der Sponsor anzeigen lassen kann und welche nicht!</LI></OL>
diff --git a/templates/de/html/guest/guest_sponsor_act_row.tpl b/templates/de/html/guest/guest_sponsor_act_row.tpl
new file mode 100644 (file)
index 0000000..ab4f968
--- /dev/null
@@ -0,0 +1,6 @@
+<TR>
+  <TD align="right" class="switch_sw$content[sw] bottom2 right2" width="225">$content[title]:&nbsp;</TD>
+  <TD class="guest_title2 bottom2" style="padding-left: 2px; padding-right: 2px" width="225">
+    <FONT class="nobr"><STRONG>1 {--POINTS--}</STRONG> = <STRONG>$content[conv] $content[name]</STRONG></FONT>
+  </TD>
+</TR>
diff --git a/templates/de/html/guest/guest_sponsor_activate.tpl b/templates/de/html/guest/guest_sponsor_activate.tpl
new file mode 100644 (file)
index 0000000..accc52c
--- /dev/null
@@ -0,0 +1,42 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=index&amp;what=sponsor_login&amp;mode=activate" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table dashed" width="400">
+<TR>
+  <TD class="guest_title2 bottom2" align="center" height="30" colspan="2">
+    <STRONG>{--SPONSOR_SEND_ACTIVATION_LINK--}</STRONG>
+  </TD>
+</TR>
+<TD colspan="2" height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD width="200" align="right" style="padding-right: 10px" height="30">
+    {--SPONSOR_ENTER_EMAIL--}:
+  </TD>
+  <TD width="200">
+    <INPUT type="text" name="email" class="guest_normal" size="20" maxlength="255">
+  </TD>
+</TR>
+<TR>
+<TD colspan="2" height="5" class="bottom2 seperator">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="2" align="center" class="guest_footer">
+    <INPUT type="reset" class="guest_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="guest_submit" value="{--SPONSOR_ACTIVATION_SUBMIT--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
+
+<DIV align="center">
+  <FONT class="guest_note">{--SPONSOR_HOWTO_GET_ACTIVATION_LINK--}</FONT>
+</DIV>
+<BR>
+<DIV align="center">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table" width="100%">
+<TR>
+  <TD align="center" height="30">
+    --&gt;&nbsp;<A href="{--URL--}/modules.php?module=index&amp;what=sponsor_login">{--SPONSOR_BACK_TO_LOGIN--}</A><BR>
+  </TD>
+</TR>
+</TABLE>
+</DIV>
diff --git a/templates/de/html/guest/guest_sponsor_infos.tpl b/templates/de/html/guest/guest_sponsor_infos.tpl
new file mode 100644 (file)
index 0000000..5fb741e
--- /dev/null
@@ -0,0 +1,32 @@
+<DIV align="center">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table dashed" width="550">
+<TR>
+  <TD class="guest_title bottom2">
+    <STRONG class="big">{--GUEST_SPONSOR_WANT_BECOME_HEADER--}</STRONG><BR>
+    {--GUEST_SPONSOR_INFOS_PRICING_HEADER--}
+  </TD>
+</TR>
+<TR>
+  <TD align="center" class="bottom2" style="padding-top:15px; padding-bottom: 15px">
+    {--GUEST_SPONSOR_PRICING_HEADER--}<BR>
+    <TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table dashed" width="450">
+{--__SPONSOR_PAYTYPES--}
+    <TR><TD colspan="2" class="guest_title2 seperator" height="29">&nbsp;</TD></TR>
+    </TABLE>
+  </TD>
+</TR>
+<TR>
+  <TD align="center" style="padding-top: 15px; padding-bottom: 15px">
+    <TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table dashed" width="450">
+    <TR>
+      <TD colspan="2" align="center" class="guest_title2 bottom2" height="30">
+        <STRONG>{--GUEST_SPONSOR_ACTIONS_HEADER--}</STRONG>
+      </TD>
+    </TR>
+{--__SPONSOR_ACTIONS--}
+    <TR><TD colspan="2" class="guest_title2 seperator" height="29">&nbsp;</TD></TR>
+    </TABLE>
+  </TD>
+</TR>
+</TABLE>
+</DIV>
diff --git a/templates/de/html/guest/guest_sponsor_login.tpl b/templates/de/html/guest/guest_sponsor_login.tpl
new file mode 100644 (file)
index 0000000..050f00e
--- /dev/null
@@ -0,0 +1,52 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=index&amp;what=sponsor_login" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table dashed" width="400">
+<TR>
+  <TD class="guest_title2 bottom2" align="center" height="30" colspan="2">
+    <STRONG>{--SPONSOR_LOGIN_WELCOME--}</STRONG>
+  </TD>
+</TR>
+<TD colspan="2" height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD width="230" align="right" style="padding-right: 10px" height="30">
+    {--SPONSOR_ENTER_ID--}:
+  </TD>
+  <TD width="170">
+    <INPUT type="text" name="sponsorid" class="guest_normal" size="5" maxlength="20">
+  </TD>
+</TR>
+<TR>
+  <TD width="220" align="right" style="padding-right: 10px" height="30">
+    {--SPONSOR_ENTER_PASSWORD--}:
+  </TD>
+  <TD width="170">
+    <INPUT type="password" name="pass" class="guest_normal" size="10" maxlength="255">
+  </TD>
+</TR>
+<TD colspan="2" height="5" class="bottom2 seperator">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="2" align="center" class="guest_footer">
+    <INPUT type="reset" class="guest_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="guest_submit" value="{--LOGIN_SUBMIT--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
+
+<BR>
+
+<DIV align="center">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table" width="100%">
+<TR>
+  <TD align="center" height="30">
+    --&gt;&nbsp;<A href="{--URL--}/modules.php?module=index&amp;what=sponsor_login&amp;mode=lost_pass">{--SPONSOR_PASSWORD_LOST--}</A>
+  </TD>
+</TR>
+<TR>
+  <TD align="center" height="30">
+    --&gt;&nbsp;<A href="{--URL--}/modules.php?module=index&amp;what=sponsor_login&amp;mode=activate">{--SPONSOR_ACTIVATION_LINK_LOST--}</A><BR>
+  </TD>
+</TR>
+</TABLE>
+</DIV>
diff --git a/templates/de/html/guest/guest_sponsor_lost.tpl b/templates/de/html/guest/guest_sponsor_lost.tpl
new file mode 100644 (file)
index 0000000..43dc3f1
--- /dev/null
@@ -0,0 +1,50 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=index&amp;what=sponsor_login&amp;mode=lost_pass" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table dashed" width="400">
+<TR>
+  <TD class="guest_title2 bottom2" align="center" height="30" colspan="2">
+    <STRONG>{--SPONSOR_SEND_LOST_PASSWORD--}</STRONG>
+  </TD>
+</TR>
+<TD colspan="2" height="5" class="seperator">&nbsp;</TD></TR>
+<TR>
+  <TD width="200" align="right" style="padding-right: 10px" height="30">
+    {--SPONSOR_ENTER_ID--}:
+  </TD>
+  <TD width="200">
+    <INPUT type="text" name="id" class="guest_normal" size="5" maxlength="20">
+  </TD>
+</TR>
+<TR>
+  <TD width="200" align="right" style="padding-right: 10px" height="30">
+    {--SPONSOR_ENTER_EMAIL--}:
+  </TD>
+  <TD width="200">
+    <INPUT type="text" name="email" class="guest_normal" size="20" maxlength="255">
+  </TD>
+</TR>
+<TR>
+<TD colspan="2" height="5" class="bottom2 seperator">&nbsp;</TD></TR>
+<TR>
+  <TD colspan="2" align="center" class="guest_footer">
+    <INPUT type="reset" class="guest_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="guest_submit" value="{--SPONSOR_LOST_PASS_SUBMIT--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
+
+<DIV align="center">
+  <FONT class="guest_note">{--SPONSOR_HOWTO_GET_LOST_PASSWORD--}</FONT>
+</DIV>
+<BR>
+<DIV align="center">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="guest_table" width="100%">
+<TR>
+  <TD align="center" height="30">
+    --&gt;&nbsp;<A href="{--URL--}/modules.php?module=index&amp;what=sponsor_login">{--SPONSOR_BACK_TO_LOGIN--}</A><BR>
+  </TD>
+</TR>
+</TABLE>
+</DIV>
diff --git a/templates/de/html/guest/guest_sponsor_pay_row.tpl b/templates/de/html/guest/guest_sponsor_pay_row.tpl
new file mode 100644 (file)
index 0000000..29a8af2
--- /dev/null
@@ -0,0 +1,17 @@
+<TR>
+  <TD align="center" colspan="2" height="30" class="guest_title2 bottom2">
+    <STRONG>$content[name]:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD align="right" class="switch_sw$content[sw] right2" width="225" height="24">{--SPONSOR_PAYTYPE_COUNT--}:&nbsp;</TD>
+  <TD class="guest_title2 bottom2" style="padding-left: 2px; padding-right: 2px" width="225">
+    <FONT class="nobr"><STRONG>$content[rate] {--POINTS--}</STRONG></FONT>
+  </TD>
+</TR>
+<TR>
+  <TD align="right" class="switch_sw$content[sw] bottom2 right2" width="225" height="24">{--SPONSOR_PAYTYPE_VALUE--}:&nbsp;</TD>
+  <TD class="guest_title2 bottom2" style="padding-left: 2px; padding-right: 2px" width="225">
+    <FONT class="nobr"><STRONG>$content[price] $content[curr]</STRONG></FONT>
+  </TD>
+</TR>
diff --git a/templates/de/html/guest/guest_sponsor_reg.tpl b/templates/de/html/guest/guest_sponsor_reg.tpl
new file mode 100644 (file)
index 0000000..acd74cc
--- /dev/null
@@ -0,0 +1,350 @@
+{--__SPONSOR_FORM_ERRORS--}
+<DIV align="center"><STRONG class="big">{--GUEST_SPONSOR_TITLE--}</STRONG></DIV>
+<BR>
+{--GUEST_SPONSOR_TEASER_1--}<BR>
+<BR>
+{--GUEST_SPONSOR_TEASER_2--}<BR>
+<BR>
+{--GUEST_SPONSOR_TEASER_3--}<BR>
+<BR>
+<FORM action="{--URL--}/modules.php?module=index&amp;what=sponsor_reg" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" align="center" class="guest_table dashed" width="530">
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_ENTER_COMPANY_DATA--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR>
+  <TD class="bottom2" width="10" height="40">&nbsp;</TD>
+  <TD class="bottom2" colspan="3" align="center">
+    <FONT class="guest_note">{--SPONSOR_COMPANY_NOTE--}</FONT>
+  </TD>
+  <TD class="bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" width="200">
+    {--SPONSOR_ENTER_COMPANY_TITLE--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD width="300">
+    <INPUT type="text" name="company" class="guest_normal" size="20" maxlength="255" value="{--__COMPANY--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_ENTER_COMPANY_POSITION--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="position" class="guest_normal" size="20" maxlength="255" value="{--__POSITION--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_TAX_IDENT--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="tax_ident" class="guest_normal" size="20" maxlength="255" value="{--__TAX_IDENT--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_ENTER_PERSONA_DATA--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--GUEST_SEX--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <SELECT name="salut" class="guest_select" size="1">
+      <OPTION value="M"{--__SALUT_M--}>{--SEX_M--}</OPTION>
+        <OPTION value="F"{--__SALUT_F--}>{--SEX_F--}</OPTION>
+        <OPTION value="C"{--__SALUT_C--}>{--SEX_C--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--GUEST_SURNAME--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="surname" class="guest_normal" size="20" maxlength="255" value="{--__SURNAME--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--GUEST_FAMILY--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="family" class="guest_normal" size="20" maxlength="255" value="{--__FAMILY--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_ENTER_CONTACT_DATA--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_STREET_NR1--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="street_nr1" class="guest_normal" size="20" maxlength="255" value="{--__STREET1--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_STREET_NR2--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="street_nr2" class="guest_normal" size="20" maxlength="255" value="{--__STREET2--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="country" class="guest_normal" size="2" maxlength="2" value="{--__COUNTRY--}">-<INPUT type="text" name="zip" class="guest_normal" size="5" maxlength="6" value="{--__ZIP--}">
+    <INPUT type="text" name="city" class="guest_normal" size="10" maxlength="255" value="{--__CITY--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_PHONE--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="phone" class="guest_normal" size="20" maxlength="255" value="{--__PHONE--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_FAX--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="fax" class="guest_normal" size="20" maxlength="255" value="{--__FAX--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_CELL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="cell" class="guest_normal" size="20" maxlength="255" value="{--__CELL--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_EMAIL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="email" class="guest_normal" size="20" maxlength="255" value="{--__EMAIL--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_URL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="text" name="url" class="guest_normal" size="20" maxlength="255" value="{--__URL--}">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_ENTER_PASSWORDS--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_ENTER_PASSWORDS--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <INPUT type="password" name="pass1" class="guest_normal" size="10" maxlength="255">
+    <INPUT type="password" name="pass2" class="guest_normal" size="10" maxlength="255">
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_REFERRAL--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_REFID_WAS--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <STRONG>{--__SPONSOR_REFID--}</STRONG>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_WARNINGS--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--GUEST_SPONSOR_RECEIVE_WARNINGS--}&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <SELECT name="receive_warnings" class="guest_select" size="1">
+      <OPTION value="Y"{--__REC_Y--}>{--YES--}</OPTION>
+        <OPTION value="N"{--__REC_N--}>{--NO--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right">
+    {--SPONSOR_WARNING_INTERVAL--}:&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    <SELECT name="warning_interval" class="guest_select" size="1">
+      <OPTION value="0">{--SELECT_NONE--}</OPTION>
+      <OPTION value="{--(ONE_DAY*1)--}">1 {--DAYS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*3)--}">3 {--DAYS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*7)--}" selected>1 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*14)--}">2 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*28)--}">4 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*56)--}">8 {--LIFE_WEEKS--}</OPTION>
+    </SELECT>
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_PAYMENTS--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="right" valign="top">
+    {--SPONSOR_SELECT_PAYMENT--}:
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    {--__PAYMENT_LIST--}
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_title2 bottom2" width="10" height="30">&nbsp;</TD>
+  <TD class="guest_title2 bottom2" colspan="3" align="center">
+    <STRONG>{--SPONSOR_TERMS_HEADER--}</STRONG>
+  </TD>
+  <TD class="guest_title2 bottom2" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD align="center" valign="top">
+    <INPUT type="checkbox" name="terms" class="guest_normal" value="1">&nbsp;
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+  <TD>
+    {--SPONSOR_ACCEPT_TERMS--}
+  </TD>
+  <TD class="seperator" width="10">&nbsp;</TD>
+</TR>
+<TR><TD class="seperator bottom2" colspan="5" height="5">&nbsp;</TD></TR>
+<TR>
+  <TD class="guest_footer seperator" width="10">&nbsp;</TD>
+  <TD class="guest_footer" colspan="3" align="center">
+    <INPUT type="hidden" name="refid" value="{--__SPONSOR_REFID--}">
+    <INPUT type="reset" class="guest_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="guest_submit" value="{--REGISTER_SPONSOR--}">
+  </TD>
+  <TD class="guest_footer seperator" width="10">&nbsp;</TD>
+</TR>
+</TABLE>
+</FORM>
diff --git a/templates/de/html/sponsor/sponsor_account_form.tpl b/templates/de/html/sponsor/sponsor_account_form.tpl
new file mode 100644 (file)
index 0000000..885f919
--- /dev/null
@@ -0,0 +1,176 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=sponsor&amp;what=account" method="POST" style="padding-bottom: 0px">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="550" class="sponsor_table dashed">
+<TR>
+  <TD colspan="2" align="center" class="sponsor_header bottom2" height="32">
+    <STRONG>{--SPONSOR_ENTER_COMPANY_DATA--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_COMPANY_TITLE--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="company" class="guest_normal" size="20" maxlength="255" value="$content[company]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_COMPANY_POSITION--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="position" class="guest_normal" size="20" maxlength="255" value="$content[position]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_TAX_IDENT--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="tax_ident" class="guest_normal" size="20" maxlength="255" value="$content[tax_ident]">
+  </TD>
+</TR>
+<TR>
+  <TD colspan="2" align="center" class="sponsor_header bottom2" height="32">
+    <STRONG>{--SPONSOR_ENTER_PERSONA_DATA--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--GUEST_SEX--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<SELECT name="salut" class="guest_select" size="1">
+      <OPTION value="M"{--__SALUT_M--}>{--SEX_M--}</OPTION>
+      <OPTION value="F"{--__SALUT_F--}>{--SEX_F--}</OPTION>
+      <OPTION value="C"{--__SALUT_C--}>{--SEX_C--}</OPTION>
+    </SELECT>                                                                                                     
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--GUEST_SURNAME--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="surname" class="guest_normal" size="20" maxlength="255" value="$content[surname]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--GUEST_FAMILY--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="family" class="guest_normal" size="20" maxlength="255" value="$content[family]">
+  </TD>
+</TR>
+<TR>
+  <TD colspan="2" align="center" class="sponsor_header bottom2" height="32">
+    <STRONG>{--SPONSOR_ENTER_CONTACT_DATA--}</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_STREET_NR1--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="street_nr1" class="guest_normal" size="20" maxlength="255" value="$content[street_nr1]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_STREET_NR2--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="street_nr2" class="guest_normal" size="20" maxlength="255" value="$content[street_nr2]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="country" class="guest_normal" size="2" maxlength="2" value="$content[country]">-<INPUT type="text" name="zip" class="guest_normal" size="5" maxlength="6" value="$content[zip]">
+    <INPUT type="text" name="city" class="guest_normal" size="10" maxlength="255" value="$content[city]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_PHONE--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="phone" class="guest_normal" size="20" maxlength="255" value="$content[phone]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_FAX--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="fax" class="guest_normal" size="20" maxlength="255" value="$content[fax]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_CELL--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="cell" class="guest_normal" size="20" maxlength="255" value="$content[cell]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_EMAIL--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="email" class="guest_normal" size="20" maxlength="255" value="$content[email]">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_URL--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="text" name="url" class="guest_normal" size="20" maxlength="255" value="$content[url]">
+  </TD>
+</TR>
+<TR>
+  <TD class="sponsor_header bottom2" colspan="2" align="center" height="37">
+    <STRONG>{--SPONSOR_ENTER_OLD_PASSWORD--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_PASSWORD--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="password" name="pass_old" class="guest_normal" size="10" maxlength="255">
+  </TD>
+</TR>
+<TR>
+  <TD class="sponsor_header bottom2" colspan="2" align="center" height="37">
+    <STRONG>{--SPONSOR_CHANGE_PASSWORD--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_ENTER_PASSWORDS--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="password" name="pass1" class="guest_normal" size="10" maxlength="255">
+    <INPUT type="password" name="pass2" class="guest_normal" size="10" maxlength="255">
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2" colspan="2" align="center">
+    <FONT class="tiny guest_note">{--SPONSOR_PASSWORD_NOTE--}</FONT>
+  </TD>
+</TR>
+<TR>
+  <TD class="sponsor_footer" colspan="2" align="center" height="32">
+    <INPUT type="reset" class="guest_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="guest_submit" value="{--SAVE_SETTINGS--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
diff --git a/templates/de/html/sponsor/sponsor_action.tpl b/templates/de/html/sponsor/sponsor_action.tpl
new file mode 100644 (file)
index 0000000..28ba54e
--- /dev/null
@@ -0,0 +1,8 @@
+<TABLE border="0" cellspacing="0" cellpadding="0" width="100%">
+<TR>
+  <TD class="sponsor_action bottom2 left2 right2" align="center">
+    <STRONG>$content[title]</STRONG>
+  </TD>
+</TR>
+$content[menu]
+</TABLE>
diff --git a/templates/de/html/sponsor/sponsor_fillup_form.tpl b/templates/de/html/sponsor/sponsor_fillup_form.tpl
new file mode 100644 (file)
index 0000000..1d76868
--- /dev/null
@@ -0,0 +1,41 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=sponsor&amp;what=fillup" method="POST" style="padding-bottom: 0px">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="450" class="sponsor_table dashed">
+<TR>
+  <TD class="sponsor_header bottom2" colspan="2" align="center" height="37">
+    <STRONG>{--SPONSOR_POINTS_OVERVIEW--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_POINTS_AMOUNT--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;$content[points_amount] {--POINTS--}
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_POINTS_USED--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;$content[points_used] {--POINTS--}
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="27">
+    {--SPONSOR_POINTS_TOTAL--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;$content[points_total] {--POINTS--}
+  </TD>
+</TR>
+<TR>
+  <TD class="sponsor_footer" colspan="2" align="center" height="37">
+    <INPUT type="reset" class="guest_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="guest_submit" value="{--SAVE_SETTINGS--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
diff --git a/templates/de/html/sponsor/sponsor_footer.tpl b/templates/de/html/sponsor/sponsor_footer.tpl
new file mode 100644 (file)
index 0000000..6c6e9d0
--- /dev/null
@@ -0,0 +1,2 @@
+<!-- Werbebanner oder was auch immer? -->
+&nbsp;
diff --git a/templates/de/html/sponsor/sponsor_header.tpl b/templates/de/html/sponsor/sponsor_header.tpl
new file mode 100644 (file)
index 0000000..2bbfd6b
--- /dev/null
@@ -0,0 +1,2 @@
+<STRONG class="big">{--SPONSOR_WELCOME_TO--}</STRONG><BR>
+{--MAIN_TITLE--}
diff --git a/templates/de/html/sponsor/sponsor_main.tpl b/templates/de/html/sponsor/sponsor_main.tpl
new file mode 100644 (file)
index 0000000..f9df75c
--- /dev/null
@@ -0,0 +1,23 @@
+<DIV align="center">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="sponsor_table" width="100%" height="100%">
+<TR>
+  <TD colspan="2" class="sponsor_header" align="center" height="75">
+    {--__SPONSOR_HEADER--}
+  </TD>
+</TR>
+<TR>
+  <TD width="200" class="top2" align="center" valign="top">
+    {--__SPONSOR_MENU--}
+  </TD>
+  <TD align="left" valign="top" style="padding-left: 5px; padding-right: 5px">
+    {--__SPONSOR_YOURE_HERE--}
+    {--__SPONSOR_CONTENT--}
+  </TD>
+</TR>
+<TR>
+  <TD colspan="2" class="sponsor_table_footer" align="center" height="75">
+    {--__SPONSOR_FOOTER--}
+  </TD>
+</TR>
+</TABLE>
+</DIV>
diff --git a/templates/de/html/sponsor/sponsor_settings_form.tpl b/templates/de/html/sponsor/sponsor_settings_form.tpl
new file mode 100644 (file)
index 0000000..c8b4ae7
--- /dev/null
@@ -0,0 +1,50 @@
+<DIV align="center">
+<FORM action="{--URL--}/modules.php?module=sponsor&amp;what=settings" method="POST" style="padding-bottom: 0px">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="550" class="sponsor_table dashed">
+<TR>
+  <TD colspan="2" align="center" class="sponsor_header bottom2" height="32">
+    <STRONG>{--SPONSOR_SETTINGS_HEADER--}:</STRONG>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="75" style="padding-right: 5px">
+    {--GUEST_SPONSOR_RECEIVE_WARNINGS--}
+  </TD>
+  <TD class="bottom2" width="275" align="center">
+    {--YES--}<INPUT type="radio" name="receive_warnings" class="guest_normal" value="Y"{--__YES--}>
+    {--NO--}<INPUT type="radio" name="receive_warnings" class="guest_normal" value="N"{--__NO--}>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="55" style="padding-right: 5px">
+    {--SPONSOR_WARNING_INTERVAL--}
+  </TD>
+  <TD class="bottom2" width="275" align="center">
+    <SELECT name="warning_interval" class="guest_select" size="1">
+      <OPTION value="$content[warning_interval]">{--__CURRENT--}</OPTION>
+      <OPTION value="{--(ONE_DAY*1)--}">1 {--DAYS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*3)--}">3 {--DAYS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*7)--}">1 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*14)--}">2 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*28)--}">4 {--LIFE_WEEKS--}</OPTION>
+      <OPTION value="{--(ONE_DAY*56)--}">8 {--LIFE_WEEKS--}</OPTION>
+    </SELECT>
+  </TD>
+</TR>
+<TR>
+  <TD class="bottom2 right2" width="275" align="right" height="32">
+    {--SPONSOR_ENTER_PASSWORD--}:&nbsp;
+  </TD>
+  <TD class="bottom2" width="275">
+    &nbsp;<INPUT type="password" name="password" class="guest_normal" size="10" maxlength="255">
+  </TD>
+</TR>
+<TR>
+  <TD class="sponsor_footer" colspan="2" align="center" height="32">
+    <INPUT type="reset" class="guest_reset" value="{--CLEAR_FORM--}">&nbsp;*
+    <INPUT type="submit" name="ok" class="guest_submit" value="{--SAVE_SETTINGS--}">
+  </TD>
+</TR>
+</TABLE>
+</FORM>
+</DIV>
diff --git a/templates/de/html/sponsor/sponsor_welcome.tpl b/templates/de/html/sponsor/sponsor_welcome.tpl
new file mode 100644 (file)
index 0000000..42d8569
--- /dev/null
@@ -0,0 +1,5 @@
+Hallo {--__SALUT--} {--__SURNAME--} {--__FAMILY--}!<BR>
+<BR>
+Sch&ouml;n, dass wir Sie wieder in unserem Sponsorenbereich begr&uuml;ssen d&uuml;rfen!<BR>
+<BR>
+Sie haben noch {--__POINTS--} {--POINTS--} f&uuml;r weitere Sponsorenaktionen &uuml;brig.
diff --git a/templates/de/html/sponsor/sponsor_what.tpl b/templates/de/html/sponsor/sponsor_what.tpl
new file mode 100644 (file)
index 0000000..c75718f
--- /dev/null
@@ -0,0 +1,8 @@
+<!-- VORSICHT! Nur eine Tabellenzeile! Also ohne <TABLE> und </TABLE>! -->
+<TR>
+  <TD class="sponsor_what bottom2 left2 right2">
+    <A class="menu_blur" href="{--URL--}/modules.php?module=sponsor&amp;what=$content[what]">
+      &nbsp;<STRONG><BIG>&middot;</BIG></STRONG>&nbsp;$content[title]
+    </A>
+  </TD>
+</TR>
diff --git a/theme/business/css/sponsor.css b/theme/business/css/sponsor.css
new file mode 100644 (file)
index 0000000..67a0d7d
--- /dev/null
@@ -0,0 +1,16 @@
+.sponsor_table {
+       background-color        : #FFFFFF;
+}
+
+.sponsor_what {
+       height                  : 24px;
+}
+
+.sponsor_header, .sponsor_footer {
+       background-color        : #EEEEFF;
+}
+
+.sponsor_action {
+       background-color        : #EEEEFF;
+       height                  : 25px;
+}
diff --git a/theme/default/css/sponsor.css b/theme/default/css/sponsor.css
new file mode 100644 (file)
index 0000000..a693fd5
--- /dev/null
@@ -0,0 +1,16 @@
+.sponsor_table {
+       background-color        : #DDEEDD;
+}
+
+.sponsor_header, .sponsor_footer {
+       background-color        : #CCDDCC;
+}
+
+.sponsor_action {
+       background-color        : #CCDDCC;
+       height                  : 25px;
+}
+
+.sponsor_what {
+       height                  : 24px;
+}