From 985d79f06163e5957c3f40b5a71ce85be9048f8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 27 Jan 2008 20:03:41 +0000 Subject: [PATCH] Code rewritings, load base config improved and many minor fixes... --- .gitattributes | 5 +- 0.2.1/admin.php | 4 +- 0.2.1/agb.php | 4 +- 0.2.1/beg.php | 6 +- 0.2.1/birthday_confirm.php | 6 +- 0.2.1/click.php | 4 +- 0.2.1/confirm.php | 4 +- 0.2.1/css.php | 4 +- 0.2.1/doubler.php | 4 +- 0.2.1/img.php | 4 +- 0.2.1/inc/autopurge.php | 4 +- 0.2.1/inc/birthday_mails.php | 3 - 0.2.1/inc/config.php | 2 +- 0.2.1/inc/daily-reset.php | 3 - 0.2.1/inc/databases.php | 2 +- 0.2.1/inc/db/lib-mysql3.php | 2 +- 0.2.1/inc/db/lib.php | 2 +- 0.2.1/inc/doubler_send.php | 2 +- 0.2.1/inc/extensions.php | 2 +- 0.2.1/inc/extensions/ext- | 2 +- 0.2.1/inc/extensions/ext-active.php | 2 +- 0.2.1/inc/extensions/ext-admins.php | 2 +- 0.2.1/inc/extensions/ext-admintheme1.php | 2 +- .../inc/extensions/ext-admintheme_default.php | 2 +- 0.2.1/inc/extensions/ext-autopurge.php | 2 +- 0.2.1/inc/extensions/ext-bank.php | 2 +- 0.2.1/inc/extensions/ext-beg.php | 2 +- 0.2.1/inc/extensions/ext-birthday.php | 2 +- 0.2.1/inc/extensions/ext-bonus.php | 2 +- 0.2.1/inc/extensions/ext-cache.php | 2 +- 0.2.1/inc/extensions/ext-country.php | 2 +- 0.2.1/inc/extensions/ext-demo.php | 2 +- 0.2.1/inc/extensions/ext-doubler.php | 2 +- 0.2.1/inc/extensions/ext-holiday.php | 2 +- 0.2.1/inc/extensions/ext-html_mail.php | 2 +- 0.2.1/inc/extensions/ext-mailid.php | 2 +- 0.2.1/inc/extensions/ext-maintenance.php | 2 +- 0.2.1/inc/extensions/ext-mediadata.php | 2 +- 0.2.1/inc/extensions/ext-mods.php | 2 +- 0.2.1/inc/extensions/ext-mydata.php | 2 +- 0.2.1/inc/extensions/ext-newsletter.php | 2 +- 0.2.1/inc/extensions/ext-nickname.php | 2 +- 0.2.1/inc/extensions/ext-online.php | 2 +- 0.2.1/inc/extensions/ext-optimize.php | 2 +- 0.2.1/inc/extensions/ext-order.php | 2 +- 0.2.1/inc/extensions/ext-other.php | 2 +- 0.2.1/inc/extensions/ext-payout.php | 2 +- 0.2.1/inc/extensions/ext-profile.php | 2 +- 0.2.1/inc/extensions/ext-rallye.php | 2 +- 0.2.1/inc/extensions/ext-register.php | 2 +- 0.2.1/inc/extensions/ext-repair.php | 2 +- 0.2.1/inc/extensions/ext-rewrite.php | 2 +- 0.2.1/inc/extensions/ext-sql_patches.php | 2 +- 0.2.1/inc/extensions/ext-support.php | 2 +- 0.2.1/inc/extensions/ext-task.php | 2 +- 0.2.1/inc/extensions/ext-theme.php | 2 +- 0.2.1/inc/extensions/ext-top10.php | 2 +- 0.2.1/inc/extensions/ext-transfer.php | 2 +- 0.2.1/inc/extensions/ext-user.php | 2 +- 0.2.1/inc/extensions/ext-wernis.php | 2 +- 0.2.1/inc/fatal_errors.php | 2 +- 0.2.1/inc/footer.php | 2 +- 0.2.1/inc/functions.php | 49 ++++++++------- 0.2.1/inc/gen_mediadata.php | 2 +- 0.2.1/inc/gen_sql_patches.php | 2 +- 0.2.1/inc/header.php | 2 +- 0.2.1/inc/install-inc.php | 2 +- 0.2.1/inc/language.php | 2 +- 0.2.1/inc/language/active_de.php | 2 +- 0.2.1/inc/language/admins_de.php | 2 +- 0.2.1/inc/language/autopurge_de.php | 2 +- 0.2.1/inc/language/bank_de.php | 2 +- 0.2.1/inc/language/beg_de.php | 2 +- 0.2.1/inc/language/birthday_de.php | 2 +- 0.2.1/inc/language/bonus_de.php | 2 +- 0.2.1/inc/language/cache_de.php | 2 +- 0.2.1/inc/language/country_de.php | 2 +- 0.2.1/inc/language/de.php | 2 +- 0.2.1/inc/language/doubler_de.php | 2 +- 0.2.1/inc/language/en.php | 2 +- 0.2.1/inc/language/holiday_de.php | 2 +- 0.2.1/inc/language/html_mail_de.php | 2 +- 0.2.1/inc/language/install_de.php | 2 +- 0.2.1/inc/language/mailid_de.php | 2 +- 0.2.1/inc/language/maintenance_de.php | 2 +- 0.2.1/inc/language/mediadata_de.php | 2 +- 0.2.1/inc/language/mods_de.php | 2 +- 0.2.1/inc/language/newsletter_de.php | 2 +- 0.2.1/inc/language/nickname_de.php | 2 +- 0.2.1/inc/language/online_de.php | 2 +- 0.2.1/inc/language/optimize_de.php | 2 +- 0.2.1/inc/language/order_de.php | 2 +- 0.2.1/inc/language/other_de.php | 2 +- 0.2.1/inc/language/payout_de.php | 2 +- 0.2.1/inc/language/rallye_de.php | 2 +- 0.2.1/inc/language/register_de.php | 2 +- 0.2.1/inc/language/repair_de.php | 2 +- 0.2.1/inc/language/rewrite_de.php | 2 +- 0.2.1/inc/language/support_de.php | 2 +- 0.2.1/inc/language/task_de.php | 2 +- 0.2.1/inc/language/theme_de.php | 2 +- 0.2.1/inc/language/top10_de.php | 2 +- 0.2.1/inc/language/transfer_de.php | 2 +- 0.2.1/inc/language/user_de.php | 2 +- 0.2.1/inc/language/wernis_de.php | 7 ++- 0.2.1/inc/libs/admins_functions.php | 2 +- 0.2.1/inc/libs/autopurge_functions.php | 2 +- 0.2.1/inc/libs/bonus_functions.php | 2 +- 0.2.1/inc/libs/cache_functions.php | 2 +- 0.2.1/inc/libs/country_functions.php | 2 +- 0.2.1/inc/libs/doubler_functions.php | 2 +- 0.2.1/inc/libs/holiday_functions.php | 2 +- 0.2.1/inc/libs/html_mail_functions.php | 2 +- 0.2.1/inc/libs/mediadata_functions.php | 2 +- 0.2.1/inc/libs/newsletter_functions.php | 2 +- 0.2.1/inc/libs/nickname_functions.php | 2 +- 0.2.1/inc/libs/optimize_functions.php | 2 +- 0.2.1/inc/libs/order_functions.php | 2 +- 0.2.1/inc/libs/output_functions.php | 2 +- 0.2.1/inc/libs/payout_functions.php | 2 +- 0.2.1/inc/libs/pro_functions.php | 3 - 0.2.1/inc/libs/rallye_functions.php | 2 +- 0.2.1/inc/libs/register_functions.php | 2 +- 0.2.1/inc/libs/rewrite_functions.php | 2 +- 0.2.1/inc/libs/security_functions.php | 16 ++++- 0.2.1/inc/libs/task_functions.php | 2 +- 0.2.1/inc/libs/transfer_functions.php | 2 +- 0.2.1/inc/libs/user_functions.php | 2 +- 0.2.1/inc/libs/wernis_functions.php | 6 +- 0.2.1/inc/load_cache.php | 2 +- 0.2.1/inc/load_extensions.php | 2 +- 0.2.1/inc/mails/_mails.php | 2 +- 0.2.1/inc/mails/beg_mails.php | 2 +- 0.2.1/inc/mails/birthday_mails.php | 2 +- 0.2.1/inc/mails/bonus_mails.php | 2 +- 0.2.1/inc/modules/admin.php | 2 +- 0.2.1/inc/modules/admin/action- | 2 +- 0.2.1/inc/modules/admin/action-admins.php | 2 +- 0.2.1/inc/modules/admin/action-bank.php | 2 +- 0.2.1/inc/modules/admin/action-country.php | 2 +- 0.2.1/inc/modules/admin/action-doubler.php | 2 +- 0.2.1/inc/modules/admin/action-email.php | 2 +- 0.2.1/inc/modules/admin/action-holiday.php | 2 +- 0.2.1/inc/modules/admin/action-login.php | 2 +- 0.2.1/inc/modules/admin/action-logout.php | 2 +- 0.2.1/inc/modules/admin/action-menu.php | 2 +- 0.2.1/inc/modules/admin/action-misc.php | 2 +- 0.2.1/inc/modules/admin/action-mods.php | 2 +- 0.2.1/inc/modules/admin/action-newsletter.php | 2 +- 0.2.1/inc/modules/admin/action-payouts.php | 2 +- 0.2.1/inc/modules/admin/action-rallye.php | 2 +- 0.2.1/inc/modules/admin/action-repair.php | 2 +- 0.2.1/inc/modules/admin/action-setup.php | 2 +- 0.2.1/inc/modules/admin/action-stats.php | 2 +- 0.2.1/inc/modules/admin/action-task.php | 2 +- 0.2.1/inc/modules/admin/action-theme.php | 2 +- 0.2.1/inc/modules/admin/action-transfer.php | 2 +- 0.2.1/inc/modules/admin/action-user.php | 2 +- 0.2.1/inc/modules/admin/action-wernis.php | 2 +- 0.2.1/inc/modules/admin/admin-inc.php | 2 +- 0.2.1/inc/modules/admin/overview-inc.php | 2 +- 0.2.1/inc/modules/admin/what- | 2 +- .../modules/admin/what-add_bank_package.php | 2 +- .../modules/admin/what-add_guestnl_cat.php | 2 +- 0.2.1/inc/modules/admin/what-add_points.php | 2 +- 0.2.1/inc/modules/admin/what-add_rallye.php | 2 +- 0.2.1/inc/modules/admin/what-admin_add.php | 2 +- 0.2.1/inc/modules/admin/what-adminedit.php | 2 +- 0.2.1/inc/modules/admin/what-admins_add.php | 2 +- .../inc/modules/admin/what-admins_contact.php | 2 +- .../inc/modules/admin/what-admins_contct.php | 2 +- 0.2.1/inc/modules/admin/what-admins_edit.php | 2 +- 0.2.1/inc/modules/admin/what-admins_mails.php | 2 +- 0.2.1/inc/modules/admin/what-autopurge.php | 2 +- 0.2.1/inc/modules/admin/what-bonus.php | 2 +- 0.2.1/inc/modules/admin/what-cache_stats.php | 2 +- 0.2.1/inc/modules/admin/what-chk_regs.php | 2 +- .../inc/modules/admin/what-config_active.php | 2 +- 0.2.1/inc/modules/admin/what-config_admin.php | 2 +- .../inc/modules/admin/what-config_admins.php | 2 +- .../modules/admin/what-config_autopurge.php | 4 +- 0.2.1/inc/modules/admin/what-config_beg.php | 2 +- .../modules/admin/what-config_birthday.php | 2 +- 0.2.1/inc/modules/admin/what-config_bonus.php | 2 +- 0.2.1/inc/modules/admin/what-config_cache.php | 2 +- 0.2.1/inc/modules/admin/what-config_cats.php | 2 +- .../inc/modules/admin/what-config_doubler.php | 2 +- 0.2.1/inc/modules/admin/what-config_email.php | 2 +- .../modules/admin/what-config_extensions.php | 2 +- .../inc/modules/admin/what-config_holiday.php | 2 +- 0.2.1/inc/modules/admin/what-config_home.php | 2 +- .../modules/admin/what-config_mediadata.php | 2 +- 0.2.1/inc/modules/admin/what-config_mods.php | 2 +- .../modules/admin/what-config_newsletter.php | 2 +- .../modules/admin/what-config_nickname.php | 2 +- 0.2.1/inc/modules/admin/what-config_order.php | 2 +- 0.2.1/inc/modules/admin/what-config_other.php | 12 ++-- .../inc/modules/admin/what-config_payouts.php | 2 +- .../inc/modules/admin/what-config_points.php | 6 +- .../admin/what-config_rallye_prices.php | 2 +- 0.2.1/inc/modules/admin/what-config_refid.php | 2 +- 0.2.1/inc/modules/admin/what-config_reg.php | 6 +- .../modules/admin/what-config_register.php | 2 +- .../modules/admin/what-config_register2.php | 6 +- .../inc/modules/admin/what-config_rewrite.php | 2 +- .../inc/modules/admin/what-config_secure.php | 2 +- 0.2.1/inc/modules/admin/what-config_stats.php | 4 +- 0.2.1/inc/modules/admin/what-config_title.php | 2 +- 0.2.1/inc/modules/admin/what-config_top10.php | 2 +- .../modules/admin/what-config_transfer.php | 2 +- 0.2.1/inc/modules/admin/what-config_user.php | 2 +- .../inc/modules/admin/what-config_wernis.php | 2 +- 0.2.1/inc/modules/admin/what-del_email.php | 2 +- 0.2.1/inc/modules/admin/what-del_holiday.php | 2 +- 0.2.1/inc/modules/admin/what-del_task.php | 2 +- 0.2.1/inc/modules/admin/what-del_transfer.php | 2 +- 0.2.1/inc/modules/admin/what-del_user.php | 2 +- 0.2.1/inc/modules/admin/what-edit_emails.php | 2 +- 0.2.1/inc/modules/admin/what-edit_user.php | 2 +- 0.2.1/inc/modules/admin/what-email_archiv.php | 2 +- .../inc/modules/admin/what-email_details.php | 2 +- 0.2.1/inc/modules/admin/what-email_stats.php | 2 +- 0.2.1/inc/modules/admin/what-extensions.php | 2 +- 0.2.1/inc/modules/admin/what-guest_add.php | 2 +- 0.2.1/inc/modules/admin/what-guestedit.php | 2 +- 0.2.1/inc/modules/admin/what-holiday_list.php | 2 +- .../inc/modules/admin/what-holiday_remove.php | 2 +- .../inc/modules/admin/what-list_autopurge.php | 2 +- .../modules/admin/what-list_bank_package.php | 2 +- 0.2.1/inc/modules/admin/what-list_beg.php | 2 +- 0.2.1/inc/modules/admin/what-list_bonus.php | 2 +- 0.2.1/inc/modules/admin/what-list_cats.php | 2 +- 0.2.1/inc/modules/admin/what-list_country.php | 2 +- 0.2.1/inc/modules/admin/what-list_doubler.php | 2 +- 0.2.1/inc/modules/admin/what-list_holiday.php | 2 +- 0.2.1/inc/modules/admin/what-list_links.php | 2 +- .../modules/admin/what-list_newsletter.php | 2 +- 0.2.1/inc/modules/admin/what-list_norefs.php | 2 +- 0.2.1/inc/modules/admin/what-list_payouts.php | 2 +- 0.2.1/inc/modules/admin/what-list_rallyes.php | 2 +- 0.2.1/inc/modules/admin/what-list_refs.php | 2 +- 0.2.1/inc/modules/admin/what-list_task.php | 2 +- .../inc/modules/admin/what-list_transfer.php | 2 +- .../modules/admin/what-list_unconfirmed.php | 2 +- 0.2.1/inc/modules/admin/what-list_user.php | 2 +- 0.2.1/inc/modules/admin/what-list_wernis.php | 8 +-- 0.2.1/inc/modules/admin/what-lock_user.php | 2 +- 0.2.1/inc/modules/admin/what-logs.php | 2 +- 0.2.1/inc/modules/admin/what-maintenance.php | 2 +- 0.2.1/inc/modules/admin/what-mem_add.php | 2 +- 0.2.1/inc/modules/admin/what-memedit.php | 2 +- 0.2.1/inc/modules/admin/what-optimize.php | 2 +- 0.2.1/inc/modules/admin/what-overview.php | 2 +- 0.2.1/inc/modules/admin/what-payments.php | 2 +- 0.2.1/inc/modules/admin/what-refbanner.php | 2 +- 0.2.1/inc/modules/admin/what-repair_amenu.php | 2 +- 0.2.1/inc/modules/admin/what-repair_amnu.php | 2 +- 0.2.1/inc/modules/admin/what-repair_cats.php | 2 +- 0.2.1/inc/modules/admin/what-repair_gmenu.php | 2 +- 0.2.1/inc/modules/admin/what-repair_gmnu.php | 2 +- 0.2.1/inc/modules/admin/what-repair_mmenu.php | 2 +- 0.2.1/inc/modules/admin/what-repair_mmnu.php | 2 +- 0.2.1/inc/modules/admin/what-send_bonus.php | 2 +- .../modules/admin/what-send_newsletter.php | 2 +- 0.2.1/inc/modules/admin/what-stats_mods.php | 2 +- 0.2.1/inc/modules/admin/what-sub_points.php | 2 +- 0.2.1/inc/modules/admin/what-theme_check.php | 2 +- 0.2.1/inc/modules/admin/what-theme_edit.php | 2 +- 0.2.1/inc/modules/admin/what-theme_import.php | 2 +- .../inc/modules/admin/what-unlock_emails.php | 2 +- 0.2.1/inc/modules/admin/what-updates.php | 2 +- 0.2.1/inc/modules/admin/what-usage.php | 2 +- 0.2.1/inc/modules/admin/what-user_online.php | 8 +-- 0.2.1/inc/modules/admin/what-usr_online.php | 2 +- 0.2.1/inc/modules/chk_login.php | 2 +- 0.2.1/inc/modules/frameset.php | 2 +- 0.2.1/inc/modules/frametester.php | 2 +- 0.2.1/inc/modules/guest/action- | 2 +- 0.2.1/inc/modules/guest/action-admin.php | 2 +- 0.2.1/inc/modules/guest/action-main.php | 2 +- 0.2.1/inc/modules/guest/action-members.php | 2 +- 0.2.1/inc/modules/guest/action-online.php | 2 +- 0.2.1/inc/modules/guest/action-themes.php | 2 +- 0.2.1/inc/modules/guest/what- | 2 +- 0.2.1/inc/modules/guest/what-active.php | 2 +- 0.2.1/inc/modules/guest/what-admin.php | 2 +- 0.2.1/inc/modules/guest/what-agb.php | 2 +- 0.2.1/inc/modules/guest/what-beg.php | 2 +- 0.2.1/inc/modules/guest/what-confirm.php | 2 +- 0.2.1/inc/modules/guest/what-doubler.php | 2 +- 0.2.1/inc/modules/guest/what-impressum.php | 2 +- 0.2.1/inc/modules/guest/what-infos.php | 2 +- 0.2.1/inc/modules/guest/what-login.php | 2 +- 0.2.1/inc/modules/guest/what-mediadata.php | 2 +- 0.2.1/inc/modules/guest/what-my_weblog.php | 2 +- 0.2.1/inc/modules/guest/what-rallyes.php | 2 +- 0.2.1/inc/modules/guest/what-register.php | 4 +- 0.2.1/inc/modules/guest/what-stats.php | 10 ++-- 0.2.1/inc/modules/guest/what-top10.php | 2 +- 0.2.1/inc/modules/guest/what-welcome.php | 2 +- .../inc/modules/guest/what-wernis_portal.php | 2 +- 0.2.1/inc/modules/index.php | 2 +- 0.2.1/inc/modules/loader.php | 2 +- 0.2.1/inc/modules/login.php | 2 +- 0.2.1/inc/modules/member/action- | 2 +- 0.2.1/inc/modules/member/action-account.php | 2 +- 0.2.1/inc/modules/member/action-bank.php | 2 +- 0.2.1/inc/modules/member/action-extras.php | 2 +- 0.2.1/inc/modules/member/action-logout.php | 2 +- 0.2.1/inc/modules/member/action-main.php | 2 +- 0.2.1/inc/modules/member/action-order.php | 2 +- 0.2.1/inc/modules/member/action-rals.php | 2 +- 0.2.1/inc/modules/member/action-stats.php | 2 +- 0.2.1/inc/modules/member/action-themes.php | 2 +- 0.2.1/inc/modules/member/what- | 2 +- 0.2.1/inc/modules/member/what-bank_create.php | 2 +- .../inc/modules/member/what-bank_deposit.php | 2 +- 0.2.1/inc/modules/member/what-bank_infos.php | 2 +- 0.2.1/inc/modules/member/what-bank_output.php | 2 +- .../inc/modules/member/what-bank_withdraw.php | 2 +- 0.2.1/inc/modules/member/what-beg.php | 2 +- 0.2.1/inc/modules/member/what-beg2.php | 2 +- 0.2.1/inc/modules/member/what-bonus.php | 2 +- 0.2.1/inc/modules/member/what-categories.php | 2 +- 0.2.1/inc/modules/member/what-doubler.php | 2 +- 0.2.1/inc/modules/member/what-guest.php | 2 +- 0.2.1/inc/modules/member/what-holiday.php | 2 +- 0.2.1/inc/modules/member/what-html_mail.php | 2 +- 0.2.1/inc/modules/member/what-logout.php | 2 +- 0.2.1/inc/modules/member/what-mydata.php | 2 +- 0.2.1/inc/modules/member/what-newsletter.php | 2 +- 0.2.1/inc/modules/member/what-nickname.php | 2 +- 0.2.1/inc/modules/member/what-order.php | 12 ++-- 0.2.1/inc/modules/member/what-payout.php | 2 +- 0.2.1/inc/modules/member/what-points.php | 2 +- 0.2.1/inc/modules/member/what-rallyes.php | 2 +- 0.2.1/inc/modules/member/what-reflinks.php | 2 +- 0.2.1/inc/modules/member/what-stats.php | 2 +- 0.2.1/inc/modules/member/what-support.php | 2 +- 0.2.1/inc/modules/member/what-themes.php | 2 +- 0.2.1/inc/modules/member/what-transfer.php | 2 +- 0.2.1/inc/modules/member/what-unconfirmed.php | 2 +- 0.2.1/inc/modules/member/what-welcome.php | 2 +- 0.2.1/inc/modules/member/what-wernis.php | 14 ++++- 0.2.1/inc/modules/order.php | 2 +- 0.2.1/inc/modules/welcome.php | 2 +- 0.2.1/inc/monthly/monthly_ | 2 +- 0.2.1/inc/monthly/monthly_beg.php | 2 +- 0.2.1/inc/monthly/monthly_bonus.php | 2 +- 0.2.1/inc/monthly/monthly_newsletter.php | 2 +- 0.2.1/inc/monthly_newsletter.php | 2 +- 0.2.1/inc/mysql-connect.php | 60 +++++-------------- 0.2.1/inc/mysql-manager.php | 9 ++- 0.2.1/inc/patch-system.php | 2 +- 0.2.1/inc/pool-update.php | 2 +- 0.2.1/inc/profile-updte.php | 6 +- 0.2.1/inc/reset/reset_ | 2 +- 0.2.1/inc/reset/reset_beg.php | 2 +- 0.2.1/inc/reset/reset_bonus.php | 2 +- 0.2.1/inc/reset/reset_daily.php | 2 +- 0.2.1/inc/reset/reset_engine.php | 2 +- 0.2.1/inc/reset/reset_holiday.php | 2 +- 0.2.1/inc/session.php | 2 +- 0.2.1/inc/sql_error.php | 2 +- 0.2.1/inc/stats_bonus.php | 2 +- 0.2.1/inc/stylesheet.php | 2 +- 0.2.1/inc/template.php | 3 - 0.2.1/inc/theme-manager.php | 2 +- 0.2.1/index.php | 4 +- 0.2.1/install.php | 4 +- 0.2.1/lead-confirm.php | 4 +- 0.2.1/login.php | 4 +- 0.2.1/mailid.php | 4 +- 0.2.1/mailid_top.php | 6 +- 0.2.1/modules.php | 6 +- 0.2.1/ref.php | 4 +- 0.2.1/show_bonus.php | 4 +- 0.2.1/templates/de/html/ext/ext_wernis.tpl | 2 +- .../html/member/member_wernis_mode_choose.tpl | 19 ++++++ 0.2.1/theme/business/theme.php | 2 +- 0.2.1/theme/default/theme.php | 2 +- 0.2.1/theme/desert/theme.php | 2 +- 0.2.1/view.php | 4 +- 383 files changed, 520 insertions(+), 527 deletions(-) delete mode 100644 0.2.1/inc/birthday_mails.php delete mode 100644 0.2.1/inc/daily-reset.php delete mode 100644 0.2.1/inc/libs/pro_functions.php delete mode 100644 0.2.1/inc/template.php create mode 100644 0.2.1/templates/de/html/member/member_wernis_mode_choose.tpl diff --git a/.gitattributes b/.gitattributes index 115371665e..58dd1c210a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -78,10 +78,8 @@ 0.2.1/inc/.secret/.deba26cfafe1cb6cc264c05daaee48d821c4c2d5e0d7c6aa8 -text 0.2.1/inc/.secret/.htaccess -text 0.2.1/inc/autopurge.php -text -0.2.1/inc/birthday_mails.php -text 0.2.1/inc/cache/.htaccess -text 0.2.1/inc/config.php -text -0.2.1/inc/daily-reset.php -text 0.2.1/inc/databases.php -text 0.2.1/inc/db/.htaccess -text 0.2.1/inc/db/lib-mysql3.php -text @@ -194,7 +192,6 @@ 0.2.1/inc/libs/order_functions.php -text 0.2.1/inc/libs/output_functions.php -text 0.2.1/inc/libs/payout_functions.php -text -0.2.1/inc/libs/pro_functions.php -text 0.2.1/inc/libs/rallye_functions.php -text 0.2.1/inc/libs/register_functions.php -text 0.2.1/inc/libs/rewrite_functions.php -text @@ -508,7 +505,6 @@ 0.2.1/inc/sql_error.php -text 0.2.1/inc/stats_bonus.php -text 0.2.1/inc/stylesheet.php -text -0.2.1/inc/template.php -text 0.2.1/inc/theme-manager.php -text 0.2.1/index.php -text 0.2.1/install.php -text @@ -1148,6 +1144,7 @@ 0.2.1/templates/de/html/member/member_welcome_header.tpl -text 0.2.1/templates/de/html/member/member_wernis.tpl -text 0.2.1/templates/de/html/member/member_wernis_form.tpl -text +0.2.1/templates/de/html/member/member_wernis_mode_choose.tpl -text 0.2.1/templates/de/html/member/member_wernis_row.tpl -text 0.2.1/templates/de/html/message.tpl -text 0.2.1/templates/de/html/metadata.tpl -text diff --git a/0.2.1/admin.php b/0.2.1/admin.php index a213986f95..2c61dc7931 100644 --- a/0.2.1/admin.php +++ b/0.2.1/admin.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "admin"; $CSS = -1; diff --git a/0.2.1/agb.php b/0.2.1/agb.php index e24d6be40f..a165e96419 100644 --- a/0.2.1/agb.php +++ b/0.2.1/agb.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "agb"; $CSS = -1; diff --git a/0.2.1/beg.php b/0.2.1/beg.php index d90f4ff9bd..b936b787ef 100644 --- a/0.2.1/beg.php +++ b/0.2.1/beg.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "beg"; @@ -145,7 +145,7 @@ if (defined('mxchange_installed') && (mxchange_installed)) // Set mode depending on how many mails the member has to confirm $locked = false; - if (($ref_payout > 0) && ($CONFIG['direct_pay'] == "N")) $locked = true; + if (($ref_payout > 0) && ($CONFIG['allow_direct_pay'] == "N")) $locked = true; // Is begging rallye active? if ($CONFIG['beg_rallye'] == "Y") diff --git a/0.2.1/birthday_confirm.php b/0.2.1/birthday_confirm.php index 3a96015fbd..8b6b78948e 100644 --- a/0.2.1/birthday_confirm.php +++ b/0.2.1/birthday_confirm.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "birthday_confirm"; $CSS = -1; @@ -73,7 +73,7 @@ WHERE b.userid=%d AND b.chk_value='%s' LIMIT 1", { // Set mode depending on how many mails the member has to confirm $locked = false; - if (($ref_payout > 0) && ($CONFIG['direct_pay'] == "N")) $locked = true; + if (($ref_payout > 0) && ($CONFIG['allow_direct_pay'] == "N")) $locked = true; // Add points to account ADD_POINTS_REFSYSTEM($uid, $GIFT, false, "0", $locked, strtolower($CONFIG['birthday_mode'])); diff --git a/0.2.1/click.php b/0.2.1/click.php index 3d89db469d..84868a6793 100644 --- a/0.2.1/click.php +++ b/0.2.1/click.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "click"; $CSS = -1; diff --git a/0.2.1/confirm.php b/0.2.1/confirm.php index 9470339899..9d18c11394 100644 --- a/0.2.1/confirm.php +++ b/0.2.1/confirm.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module to confirm $GLOBALS['module'] = "confirm"; $CSS = -1; diff --git a/0.2.1/css.php b/0.2.1/css.php index 82691293d3..e8813c4232 100644 --- a/0.2.1/css.php +++ b/0.2.1/css.php @@ -40,8 +40,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // This is a CSS file loader! $CSS = "1"; $GLOBALS['module'] = "css"; diff --git a/0.2.1/doubler.php b/0.2.1/doubler.php index eb0e9dc8f4..81aefa8066 100644 --- a/0.2.1/doubler.php +++ b/0.2.1/doubler.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "doubler"; diff --git a/0.2.1/img.php b/0.2.1/img.php index 5075429428..bedf3aa607 100644 --- a/0.2.1/img.php +++ b/0.2.1/img.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set�module $GLOBALS['module'] = "img"; $CSS = -1; diff --git a/0.2.1/inc/autopurge.php b/0.2.1/inc/autopurge.php index 9f4a0522d8..b9d7e68adb 100644 --- a/0.2.1/inc/autopurge.php +++ b/0.2.1/inc/autopurge.php @@ -34,11 +34,11 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } -if (($CONFIG['ap_active'] == "Y") && ($CONFIG['auto_purge'] > 0)) +if (($CONFIG['auto_purge_active'] == "Y") && ($CONFIG['auto_purge'] > 0)) { // First calculate the timestamp if (function_exists('CREATE_TIME_SELECTIONS')) diff --git a/0.2.1/inc/birthday_mails.php b/0.2.1/inc/birthday_mails.php deleted file mode 100644 index 095071be29..0000000000 --- a/0.2.1/inc/birthday_mails.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/0.2.1/inc/config.php b/0.2.1/inc/config.php index 6c4d029b7e..f590b9241f 100644 --- a/0.2.1/inc/config.php +++ b/0.2.1/inc/config.php @@ -34,7 +34,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/daily-reset.php b/0.2.1/inc/daily-reset.php deleted file mode 100644 index 21a8ebef63..0000000000 --- a/0.2.1/inc/daily-reset.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/0.2.1/inc/databases.php b/0.2.1/inc/databases.php index cc06566c34..a24c5a2836 100644 --- a/0.2.1/inc/databases.php +++ b/0.2.1/inc/databases.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/db/lib-mysql3.php b/0.2.1/inc/db/lib-mysql3.php index 3c8d2fbb6d..7b0358b6d8 100644 --- a/0.2.1/inc/db/lib-mysql3.php +++ b/0.2.1/inc/db/lib-mysql3.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/db/lib.php b/0.2.1/inc/db/lib.php index 5c778225e0..5c655545b9 100644 --- a/0.2.1/inc/db/lib.php +++ b/0.2.1/inc/db/lib.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/doubler_send.php b/0.2.1/inc/doubler_send.php index ee4172b241..4ebe37ad08 100644 --- a/0.2.1/inc/doubler_send.php +++ b/0.2.1/inc/doubler_send.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions.php b/0.2.1/inc/extensions.php index 3ff5ad9e8f..0b39a0c827 100644 --- a/0.2.1/inc/extensions.php +++ b/0.2.1/inc/extensions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/extensions/ext- b/0.2.1/inc/extensions/ext- index 925df141c5..526c2a6981 100644 --- a/0.2.1/inc/extensions/ext- +++ b/0.2.1/inc/extensions/ext- @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-active.php b/0.2.1/inc/extensions/ext-active.php index 1e9561adfd..6a2824f7e5 100644 --- a/0.2.1/inc/extensions/ext-active.php +++ b/0.2.1/inc/extensions/ext-active.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-admins.php b/0.2.1/inc/extensions/ext-admins.php index 44a2b463d0..092261f867 100644 --- a/0.2.1/inc/extensions/ext-admins.php +++ b/0.2.1/inc/extensions/ext-admins.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-admintheme1.php b/0.2.1/inc/extensions/ext-admintheme1.php index 5d91ac5f02..481b005049 100644 --- a/0.2.1/inc/extensions/ext-admintheme1.php +++ b/0.2.1/inc/extensions/ext-admintheme1.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-admintheme_default.php b/0.2.1/inc/extensions/ext-admintheme_default.php index 4a2dd65354..5d013927ee 100644 --- a/0.2.1/inc/extensions/ext-admintheme_default.php +++ b/0.2.1/inc/extensions/ext-admintheme_default.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-autopurge.php b/0.2.1/inc/extensions/ext-autopurge.php index a42343d58e..affe7ebe67 100644 --- a/0.2.1/inc/extensions/ext-autopurge.php +++ b/0.2.1/inc/extensions/ext-autopurge.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-bank.php b/0.2.1/inc/extensions/ext-bank.php index 5307e2d956..dffef9dc98 100644 --- a/0.2.1/inc/extensions/ext-bank.php +++ b/0.2.1/inc/extensions/ext-bank.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-beg.php b/0.2.1/inc/extensions/ext-beg.php index eb47701a3a..7cab063307 100644 --- a/0.2.1/inc/extensions/ext-beg.php +++ b/0.2.1/inc/extensions/ext-beg.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-birthday.php b/0.2.1/inc/extensions/ext-birthday.php index ad2624e7d1..7f7d744b63 100644 --- a/0.2.1/inc/extensions/ext-birthday.php +++ b/0.2.1/inc/extensions/ext-birthday.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-bonus.php b/0.2.1/inc/extensions/ext-bonus.php index 696a5a1b40..3f00e60954 100644 --- a/0.2.1/inc/extensions/ext-bonus.php +++ b/0.2.1/inc/extensions/ext-bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-cache.php b/0.2.1/inc/extensions/ext-cache.php index d814e31e3d..64e58f404d 100644 --- a/0.2.1/inc/extensions/ext-cache.php +++ b/0.2.1/inc/extensions/ext-cache.php @@ -35,7 +35,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-country.php b/0.2.1/inc/extensions/ext-country.php index 3e23e358b7..92100db64b 100644 --- a/0.2.1/inc/extensions/ext-country.php +++ b/0.2.1/inc/extensions/ext-country.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-demo.php b/0.2.1/inc/extensions/ext-demo.php index a8906b4a22..07172b7c23 100644 --- a/0.2.1/inc/extensions/ext-demo.php +++ b/0.2.1/inc/extensions/ext-demo.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-doubler.php b/0.2.1/inc/extensions/ext-doubler.php index ac7718d048..eb55750865 100644 --- a/0.2.1/inc/extensions/ext-doubler.php +++ b/0.2.1/inc/extensions/ext-doubler.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-holiday.php b/0.2.1/inc/extensions/ext-holiday.php index 8dd7ec42d9..d6065d1a62 100644 --- a/0.2.1/inc/extensions/ext-holiday.php +++ b/0.2.1/inc/extensions/ext-holiday.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-html_mail.php b/0.2.1/inc/extensions/ext-html_mail.php index 2929fca6b1..e2d3559052 100644 --- a/0.2.1/inc/extensions/ext-html_mail.php +++ b/0.2.1/inc/extensions/ext-html_mail.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-mailid.php b/0.2.1/inc/extensions/ext-mailid.php index bd0f291397..c8f5e70ff3 100644 --- a/0.2.1/inc/extensions/ext-mailid.php +++ b/0.2.1/inc/extensions/ext-mailid.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-maintenance.php b/0.2.1/inc/extensions/ext-maintenance.php index 29af8a5089..82ae161170 100644 --- a/0.2.1/inc/extensions/ext-maintenance.php +++ b/0.2.1/inc/extensions/ext-maintenance.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-mediadata.php b/0.2.1/inc/extensions/ext-mediadata.php index d11da3f44d..9d75a3e7f6 100644 --- a/0.2.1/inc/extensions/ext-mediadata.php +++ b/0.2.1/inc/extensions/ext-mediadata.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-mods.php b/0.2.1/inc/extensions/ext-mods.php index 9aa948d034..5d4c72b3ab 100644 --- a/0.2.1/inc/extensions/ext-mods.php +++ b/0.2.1/inc/extensions/ext-mods.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-mydata.php b/0.2.1/inc/extensions/ext-mydata.php index 0fc10e7827..dde42b60f2 100644 --- a/0.2.1/inc/extensions/ext-mydata.php +++ b/0.2.1/inc/extensions/ext-mydata.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-newsletter.php b/0.2.1/inc/extensions/ext-newsletter.php index 5d4fbb46e5..6c5a3d5d0e 100644 --- a/0.2.1/inc/extensions/ext-newsletter.php +++ b/0.2.1/inc/extensions/ext-newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-nickname.php b/0.2.1/inc/extensions/ext-nickname.php index e64697d181..b7866c3d05 100644 --- a/0.2.1/inc/extensions/ext-nickname.php +++ b/0.2.1/inc/extensions/ext-nickname.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-online.php b/0.2.1/inc/extensions/ext-online.php index f901c254fa..0d0a27d7c4 100644 --- a/0.2.1/inc/extensions/ext-online.php +++ b/0.2.1/inc/extensions/ext-online.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-optimize.php b/0.2.1/inc/extensions/ext-optimize.php index 23b7d64128..c1bfa8644f 100644 --- a/0.2.1/inc/extensions/ext-optimize.php +++ b/0.2.1/inc/extensions/ext-optimize.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-order.php b/0.2.1/inc/extensions/ext-order.php index a74c124d7a..51a27269f8 100644 --- a/0.2.1/inc/extensions/ext-order.php +++ b/0.2.1/inc/extensions/ext-order.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-other.php b/0.2.1/inc/extensions/ext-other.php index 4fd2dda6c3..54ea0df1c8 100644 --- a/0.2.1/inc/extensions/ext-other.php +++ b/0.2.1/inc/extensions/ext-other.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-payout.php b/0.2.1/inc/extensions/ext-payout.php index 4c4d92c92c..14b311e6a1 100644 --- a/0.2.1/inc/extensions/ext-payout.php +++ b/0.2.1/inc/extensions/ext-payout.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-profile.php b/0.2.1/inc/extensions/ext-profile.php index a4817b0773..ddc3a09487 100644 --- a/0.2.1/inc/extensions/ext-profile.php +++ b/0.2.1/inc/extensions/ext-profile.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-rallye.php b/0.2.1/inc/extensions/ext-rallye.php index fd160481c6..3b715f1f07 100644 --- a/0.2.1/inc/extensions/ext-rallye.php +++ b/0.2.1/inc/extensions/ext-rallye.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-register.php b/0.2.1/inc/extensions/ext-register.php index e3491a5520..57d196934d 100644 --- a/0.2.1/inc/extensions/ext-register.php +++ b/0.2.1/inc/extensions/ext-register.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-repair.php b/0.2.1/inc/extensions/ext-repair.php index 6f177a5a89..2bd09c683e 100644 --- a/0.2.1/inc/extensions/ext-repair.php +++ b/0.2.1/inc/extensions/ext-repair.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-rewrite.php b/0.2.1/inc/extensions/ext-rewrite.php index 5d19909f02..988e9565cd 100644 --- a/0.2.1/inc/extensions/ext-rewrite.php +++ b/0.2.1/inc/extensions/ext-rewrite.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-sql_patches.php b/0.2.1/inc/extensions/ext-sql_patches.php index c23bf6c1c0..c389f40fed 100644 --- a/0.2.1/inc/extensions/ext-sql_patches.php +++ b/0.2.1/inc/extensions/ext-sql_patches.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-support.php b/0.2.1/inc/extensions/ext-support.php index 09b7861f43..054715adeb 100644 --- a/0.2.1/inc/extensions/ext-support.php +++ b/0.2.1/inc/extensions/ext-support.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-task.php b/0.2.1/inc/extensions/ext-task.php index 0fd162c842..ca4c9f2219 100644 --- a/0.2.1/inc/extensions/ext-task.php +++ b/0.2.1/inc/extensions/ext-task.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-theme.php b/0.2.1/inc/extensions/ext-theme.php index 13f843e9e4..20b713ebdc 100644 --- a/0.2.1/inc/extensions/ext-theme.php +++ b/0.2.1/inc/extensions/ext-theme.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-top10.php b/0.2.1/inc/extensions/ext-top10.php index d446c44f7b..49086894ae 100644 --- a/0.2.1/inc/extensions/ext-top10.php +++ b/0.2.1/inc/extensions/ext-top10.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-transfer.php b/0.2.1/inc/extensions/ext-transfer.php index d5911dcbce..c495743641 100644 --- a/0.2.1/inc/extensions/ext-transfer.php +++ b/0.2.1/inc/extensions/ext-transfer.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-user.php b/0.2.1/inc/extensions/ext-user.php index ad23bd5840..a4b46c1259 100644 --- a/0.2.1/inc/extensions/ext-user.php +++ b/0.2.1/inc/extensions/ext-user.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/extensions/ext-wernis.php b/0.2.1/inc/extensions/ext-wernis.php index 656653437d..f46889884d 100644 --- a/0.2.1/inc/extensions/ext-wernis.php +++ b/0.2.1/inc/extensions/ext-wernis.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/fatal_errors.php b/0.2.1/inc/fatal_errors.php index f1e535d926..ba6416410e 100644 --- a/0.2.1/inc/fatal_errors.php +++ b/0.2.1/inc/fatal_errors.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/footer.php b/0.2.1/inc/footer.php index 719ba427da..e165a5ffe8 100644 --- a/0.2.1/inc/footer.php +++ b/0.2.1/inc/footer.php @@ -37,7 +37,7 @@ global $link, $frame, $CSS, $_GET, $header, $_SERVER; // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/functions.php b/0.2.1/inc/functions.php index 7ae88126ba..6bc73d52d5 100644 --- a/0.2.1/inc/functions.php +++ b/0.2.1/inc/functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -61,6 +61,7 @@ function is_SQLWriteable($sql) $fp = @fopen(PATH.$sql.".sql", 'a'); return @fclose($fp); } + // Open a table (you may want to add some header stuff here) function OPEN_TABLE($PERCENT = "", $CLASS = "", $ALIGN="left", $VALIGN="", $td_only=false) { @@ -98,6 +99,7 @@ function CLOSE_TABLE($ADD="") if (!empty($ADD)) OUTPUT_HTML ($ADD); OUTPUT_HTML (""); } + // Output HTML code directly or "render" it. You addionally switch the new-line character off function OUTPUT_HTML ($HTML, $NEW_LINE = true) { // Some global variables @@ -179,6 +181,7 @@ function OUTPUT_HTML ($HTML, $NEW_LINE = true) { flush(); } } + // Add a fatal error message to the queue array function ADD_FATAL ($message, $extra="") { @@ -191,6 +194,7 @@ function ADD_FATAL ($message, $extra="") $FATAL[] = sprintf($message, $extra); } } + // Load a template file and return it's content (only it's name; do not use ' or ") function LOAD_TEMPLATE($template, $return=false, $content="") { @@ -347,7 +351,8 @@ function LOAD_TEMPLATE($template, $return=false, $content="") return "E:".$template."
\n"; } } -// + +// Send mail out to an email address function SEND_EMAIL($TO, $SUBJECT, $MSG, $HTML="N", $FROM="") { // Compile subject line (for POINTS constant etc.) @@ -417,9 +422,10 @@ function SEND_EMAIL($TO, $SUBJECT, $MSG, $HTML="N", $FROM="") function CHECK_PHPMAILER_USAGE() { return (((defined('SMTP_HOSTNAME')) && (defined('SMTP_USER')) && (defined('SMTP_PASSWORD'))) || ((SMTP_HOSTNAME != "") && (SMTP_USER != ""))); } - -// Send a raw email -// @private + +/* + * Send out a raw email with PHPMailer class or legacy mail() command + */ function SEND_RAW_EMAIL ($to, $subject, $msg, $from) { // Shall we use PHPMailer class or legacy mode? if (CHECK_PHPMAILER_USAGE()) { @@ -458,28 +464,31 @@ function SEND_RAW_EMAIL ($to, $subject, $msg, $from) { } } // -function GEN_PASS($LEN="x") -{ + +// Generate a password in a specified length or use default password length +function GEN_PASS($LEN = 0) { global $CONFIG; - if ($LEN == "x") $LEN = $CONFIG['pass_len']; + if ($LEN == 0) $LEN = $CONFIG['pass_len']; + // Initialize array with all allowed chars $ABC = explode(",", "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0,1,2,3,4,5,6,7,8,9,-,+,_,/"); + // Initialize randomizer mt_srand((double) microtime() * 1000000); // Start creating password $PASS = ""; - for ($i = 0; $i < $LEN; $i++) - { + for ($i = 0; $i < $LEN; $i++) { $PASS .= $ABC[mt_rand(0, sizeof($ABC) -1)]; } // When the size is below 40 we can also add additional security by scrambling it - if (strlen($PASS) <= 40) - { + if (strlen($PASS) <= 40) { // Also scramble the password $PASS = scrambleString($PASS); - } + } + + // Return the password return $PASS; } // @@ -964,27 +973,21 @@ function MAKE_TIME($H, $M, $S, $stamp) return mktime($H, $M, $S, $MONTH, $DAY, $YEAR); } // -function LOAD_URL($URL) -{ +function LOAD_URL($URL) { // Add some data to URL if cookies are not accepted if ((!defined('__COOKIES')) || (!__COOKIES)) $URL = ADD_URL_DATA($URL); // Probe for bot from search engine - if ((eregi("spider", getenv('HTTP_USER_AGENT'))) || (eregi("bot", getenv('HTTP_USER_AGENT'))) || (eregi("spider", getenv('HTTP_USER_AGENT')))) - { + if ((eregi("spider", getenv('HTTP_USER_AGENT'))) || (eregi("bot", getenv('HTTP_USER_AGENT'))) || (eregi("spider", getenv('HTTP_USER_AGENT')))) { // Search engine bot detected so let's rewrite many chars for the link $URL = htmlentities(strip_tags($URL), ENT_QUOTES); // Output new location link as anchor OUTPUT_HTML ("".$URL."\n"); - } - elseif (!headers_sent()) - { + } elseif (!headers_sent()) { // Load URL when headers are not sent @header ("Location: ".str_replace("&", "&", $URL)); - } - else - { + } else { // Output error message include(PATH."inc/header.php"); OUTPUT_HTML (LOAD_URL_ERROR_1.$URL.LOAD_URL_ERROR_2); diff --git a/0.2.1/inc/gen_mediadata.php b/0.2.1/inc/gen_mediadata.php index c13e9d0fcc..403d2e35c6 100644 --- a/0.2.1/inc/gen_mediadata.php +++ b/0.2.1/inc/gen_mediadata.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/gen_sql_patches.php b/0.2.1/inc/gen_sql_patches.php index d143bf2efd..3b9e6b95ae 100644 --- a/0.2.1/inc/gen_sql_patches.php +++ b/0.2.1/inc/gen_sql_patches.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/header.php b/0.2.1/inc/header.php index 15e62a2105..d108192971 100644 --- a/0.2.1/inc/header.php +++ b/0.2.1/inc/header.php @@ -35,7 +35,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/install-inc.php b/0.2.1/inc/install-inc.php index 87688bf11a..2fb6d36439 100644 --- a/0.2.1/inc/install-inc.php +++ b/0.2.1/inc/install-inc.php @@ -38,7 +38,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language.php b/0.2.1/inc/language.php index 24493ca3b3..3039e9dc71 100644 --- a/0.2.1/inc/language.php +++ b/0.2.1/inc/language.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/active_de.php b/0.2.1/inc/language/active_de.php index e077b2a20e..366eb0a9da 100644 --- a/0.2.1/inc/language/active_de.php +++ b/0.2.1/inc/language/active_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/admins_de.php b/0.2.1/inc/language/admins_de.php index d84e7e7d55..678c9e7117 100644 --- a/0.2.1/inc/language/admins_de.php +++ b/0.2.1/inc/language/admins_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/autopurge_de.php b/0.2.1/inc/language/autopurge_de.php index 37ee29f17b..6c641caf20 100644 --- a/0.2.1/inc/language/autopurge_de.php +++ b/0.2.1/inc/language/autopurge_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/bank_de.php b/0.2.1/inc/language/bank_de.php index 2ed870e43d..33daab4e85 100644 --- a/0.2.1/inc/language/bank_de.php +++ b/0.2.1/inc/language/bank_de.php @@ -33,7 +33,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/beg_de.php b/0.2.1/inc/language/beg_de.php index c4d268bec5..538509ea99 100644 --- a/0.2.1/inc/language/beg_de.php +++ b/0.2.1/inc/language/beg_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/birthday_de.php b/0.2.1/inc/language/birthday_de.php index 9d7bec0f05..c1a84d12ec 100644 --- a/0.2.1/inc/language/birthday_de.php +++ b/0.2.1/inc/language/birthday_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/bonus_de.php b/0.2.1/inc/language/bonus_de.php index e72798dcaa..ce7f563a0e 100644 --- a/0.2.1/inc/language/bonus_de.php +++ b/0.2.1/inc/language/bonus_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/cache_de.php b/0.2.1/inc/language/cache_de.php index 74b148b53e..a03a82d77d 100644 --- a/0.2.1/inc/language/cache_de.php +++ b/0.2.1/inc/language/cache_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/country_de.php b/0.2.1/inc/language/country_de.php index 383b1d3b9c..31b7ac081a 100644 --- a/0.2.1/inc/language/country_de.php +++ b/0.2.1/inc/language/country_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/de.php b/0.2.1/inc/language/de.php index 93c921bd03..5e2207bd33 100644 --- a/0.2.1/inc/language/de.php +++ b/0.2.1/inc/language/de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/doubler_de.php b/0.2.1/inc/language/doubler_de.php index d9ae7ce386..1d9a2725d1 100644 --- a/0.2.1/inc/language/doubler_de.php +++ b/0.2.1/inc/language/doubler_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/en.php b/0.2.1/inc/language/en.php index 6e77ccba2f..12d3e560c2 100644 --- a/0.2.1/inc/language/en.php +++ b/0.2.1/inc/language/en.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/holiday_de.php b/0.2.1/inc/language/holiday_de.php index d5334f1a69..9b0a6335c1 100644 --- a/0.2.1/inc/language/holiday_de.php +++ b/0.2.1/inc/language/holiday_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/html_mail_de.php b/0.2.1/inc/language/html_mail_de.php index 151ba56116..5b38dae6dd 100644 --- a/0.2.1/inc/language/html_mail_de.php +++ b/0.2.1/inc/language/html_mail_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/install_de.php b/0.2.1/inc/language/install_de.php index 7277e4dc9e..a7261e4f68 100644 --- a/0.2.1/inc/language/install_de.php +++ b/0.2.1/inc/language/install_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/mailid_de.php b/0.2.1/inc/language/mailid_de.php index c75ddc631a..1434f19aab 100644 --- a/0.2.1/inc/language/mailid_de.php +++ b/0.2.1/inc/language/mailid_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/maintenance_de.php b/0.2.1/inc/language/maintenance_de.php index 920e269f88..2a07d0f801 100644 --- a/0.2.1/inc/language/maintenance_de.php +++ b/0.2.1/inc/language/maintenance_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/mediadata_de.php b/0.2.1/inc/language/mediadata_de.php index f208c9f9bd..e45ebfb08d 100644 --- a/0.2.1/inc/language/mediadata_de.php +++ b/0.2.1/inc/language/mediadata_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/mods_de.php b/0.2.1/inc/language/mods_de.php index 26b5eba80d..b9a3a5a9d4 100644 --- a/0.2.1/inc/language/mods_de.php +++ b/0.2.1/inc/language/mods_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/newsletter_de.php b/0.2.1/inc/language/newsletter_de.php index 244564c749..8ba5c739af 100644 --- a/0.2.1/inc/language/newsletter_de.php +++ b/0.2.1/inc/language/newsletter_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/nickname_de.php b/0.2.1/inc/language/nickname_de.php index 377ef0dca5..6c7b100134 100644 --- a/0.2.1/inc/language/nickname_de.php +++ b/0.2.1/inc/language/nickname_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/online_de.php b/0.2.1/inc/language/online_de.php index 912d0304fe..c20b7fa9de 100644 --- a/0.2.1/inc/language/online_de.php +++ b/0.2.1/inc/language/online_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/optimize_de.php b/0.2.1/inc/language/optimize_de.php index 1fe4effebe..957c7b4f53 100644 --- a/0.2.1/inc/language/optimize_de.php +++ b/0.2.1/inc/language/optimize_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/order_de.php b/0.2.1/inc/language/order_de.php index 2988266a25..5cba1fb229 100644 --- a/0.2.1/inc/language/order_de.php +++ b/0.2.1/inc/language/order_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/other_de.php b/0.2.1/inc/language/other_de.php index 1c04cf28b3..4a2350e5ff 100644 --- a/0.2.1/inc/language/other_de.php +++ b/0.2.1/inc/language/other_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/payout_de.php b/0.2.1/inc/language/payout_de.php index 5b0340d231..51f3b0a904 100644 --- a/0.2.1/inc/language/payout_de.php +++ b/0.2.1/inc/language/payout_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/rallye_de.php b/0.2.1/inc/language/rallye_de.php index 699dd10e05..5855bbec5a 100644 --- a/0.2.1/inc/language/rallye_de.php +++ b/0.2.1/inc/language/rallye_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/register_de.php b/0.2.1/inc/language/register_de.php index 0b1ef599e5..d85e070d52 100644 --- a/0.2.1/inc/language/register_de.php +++ b/0.2.1/inc/language/register_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/repair_de.php b/0.2.1/inc/language/repair_de.php index 9e1bfd5662..f54323ba9b 100644 --- a/0.2.1/inc/language/repair_de.php +++ b/0.2.1/inc/language/repair_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/rewrite_de.php b/0.2.1/inc/language/rewrite_de.php index 662482a43f..b8f15326f7 100644 --- a/0.2.1/inc/language/rewrite_de.php +++ b/0.2.1/inc/language/rewrite_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/support_de.php b/0.2.1/inc/language/support_de.php index 3b78b57d23..50645909c8 100644 --- a/0.2.1/inc/language/support_de.php +++ b/0.2.1/inc/language/support_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/task_de.php b/0.2.1/inc/language/task_de.php index 8e2d1a177b..05b402f5b0 100644 --- a/0.2.1/inc/language/task_de.php +++ b/0.2.1/inc/language/task_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/theme_de.php b/0.2.1/inc/language/theme_de.php index 9e228848c4..dfd6920ad7 100644 --- a/0.2.1/inc/language/theme_de.php +++ b/0.2.1/inc/language/theme_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/top10_de.php b/0.2.1/inc/language/top10_de.php index adf1551369..79c6fbb080 100644 --- a/0.2.1/inc/language/top10_de.php +++ b/0.2.1/inc/language/top10_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/transfer_de.php b/0.2.1/inc/language/transfer_de.php index ed25997d93..44f935f9d2 100644 --- a/0.2.1/inc/language/transfer_de.php +++ b/0.2.1/inc/language/transfer_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/user_de.php b/0.2.1/inc/language/user_de.php index 547896b189..d4ac193163 100644 --- a/0.2.1/inc/language/user_de.php +++ b/0.2.1/inc/language/user_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/language/wernis_de.php b/0.2.1/inc/language/wernis_de.php index 077c132c79..e08afedb16 100644 --- a/0.2.1/inc/language/wernis_de.php +++ b/0.2.1/inc/language/wernis_de.php @@ -34,7 +34,7 @@ // Some security stuff... if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -46,6 +46,9 @@ define('WERNIS_ADMIN_MIN_AMOUNT', "Minimumguthaben von {!POINTS!} für Ausza define('WERNIS_ADMIN_API_ID', "WDS66-API-ID (api_id=x)"); define('WERNIS_ADMIN_API_MD5', "WDS66-API-Key (api_md5=xxxxx; 32-stellig)"); define('WERNIS_ADMIN_CONFIG_NOTE', "Hier können Sie schon für 5,00€=25.000 Abfragen ein API-Account beantragen (dazu ist ein kostenloses {!POINTS!}-Account dennoch nötig!)"); - +define('MEMBER_WERNIS_MODE_CHOOSE', "Möchten Sie {!POINTS!} zu Ihrem WDS66-Hauptaccount ausbezahlt bekommen oder {!POINTS!} hier einzahlen?"); +define('MEMBER_WERNIS_MODE_WITHDRAW', "{!POINTS!} einzahlen"); +define('MEMBER_WERNIS_MODE_PAYOUT', "{!POINTS!} auszahlen"); + // ?> diff --git a/0.2.1/inc/libs/admins_functions.php b/0.2.1/inc/libs/admins_functions.php index 5097f38463..f2b881080e 100644 --- a/0.2.1/inc/libs/admins_functions.php +++ b/0.2.1/inc/libs/admins_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/autopurge_functions.php b/0.2.1/inc/libs/autopurge_functions.php index 9e5e973212..fb64ccd43e 100644 --- a/0.2.1/inc/libs/autopurge_functions.php +++ b/0.2.1/inc/libs/autopurge_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/libs/bonus_functions.php b/0.2.1/inc/libs/bonus_functions.php index f8fd598fcf..e71dcd4eb3 100644 --- a/0.2.1/inc/libs/bonus_functions.php +++ b/0.2.1/inc/libs/bonus_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // This function must be run *BEFORE* a link is removed from table 'mxchange_user_links' ! diff --git a/0.2.1/inc/libs/cache_functions.php b/0.2.1/inc/libs/cache_functions.php index fac260c28c..87c25188f8 100644 --- a/0.2.1/inc/libs/cache_functions.php +++ b/0.2.1/inc/libs/cache_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Caching class diff --git a/0.2.1/inc/libs/country_functions.php b/0.2.1/inc/libs/country_functions.php index e295590990..360b7a3864 100644 --- a/0.2.1/inc/libs/country_functions.php +++ b/0.2.1/inc/libs/country_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/doubler_functions.php b/0.2.1/inc/libs/doubler_functions.php index 70bdb10394..307d12273e 100644 --- a/0.2.1/inc/libs/doubler_functions.php +++ b/0.2.1/inc/libs/doubler_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/holiday_functions.php b/0.2.1/inc/libs/holiday_functions.php index c3d7c4a9ea..64ae52fda2 100644 --- a/0.2.1/inc/libs/holiday_functions.php +++ b/0.2.1/inc/libs/holiday_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/html_mail_functions.php b/0.2.1/inc/libs/html_mail_functions.php index 4f86b41c27..0ad0ebc6c1 100644 --- a/0.2.1/inc/libs/html_mail_functions.php +++ b/0.2.1/inc/libs/html_mail_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/mediadata_functions.php b/0.2.1/inc/libs/mediadata_functions.php index 7a14844c86..dc0a8ea4e9 100644 --- a/0.2.1/inc/libs/mediadata_functions.php +++ b/0.2.1/inc/libs/mediadata_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/newsletter_functions.php b/0.2.1/inc/libs/newsletter_functions.php index bfd6eaaa91..2cc971667d 100644 --- a/0.2.1/inc/libs/newsletter_functions.php +++ b/0.2.1/inc/libs/newsletter_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/nickname_functions.php b/0.2.1/inc/libs/nickname_functions.php index 983ff33585..48b853ce24 100644 --- a/0.2.1/inc/libs/nickname_functions.php +++ b/0.2.1/inc/libs/nickname_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/optimize_functions.php b/0.2.1/inc/libs/optimize_functions.php index 7d0e71aecc..bf9dbeaca0 100644 --- a/0.2.1/inc/libs/optimize_functions.php +++ b/0.2.1/inc/libs/optimize_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/order_functions.php b/0.2.1/inc/libs/order_functions.php index ea94efde39..9adf251744 100644 --- a/0.2.1/inc/libs/order_functions.php +++ b/0.2.1/inc/libs/order_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/libs/output_functions.php b/0.2.1/inc/libs/output_functions.php index e95766d9f2..df27137a66 100644 --- a/0.2.1/inc/libs/output_functions.php +++ b/0.2.1/inc/libs/output_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add HTML to the output stream diff --git a/0.2.1/inc/libs/payout_functions.php b/0.2.1/inc/libs/payout_functions.php index f6eeb82190..7ee40e59da 100644 --- a/0.2.1/inc/libs/payout_functions.php +++ b/0.2.1/inc/libs/payout_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/pro_functions.php b/0.2.1/inc/libs/pro_functions.php deleted file mode 100644 index 8ee80870c6..0000000000 --- a/0.2.1/inc/libs/pro_functions.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/0.2.1/inc/libs/rallye_functions.php b/0.2.1/inc/libs/rallye_functions.php index 6029ae71b6..5beddb3cad 100644 --- a/0.2.1/inc/libs/rallye_functions.php +++ b/0.2.1/inc/libs/rallye_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/register_functions.php b/0.2.1/inc/libs/register_functions.php index 1698facaea..d8073afb20 100644 --- a/0.2.1/inc/libs/register_functions.php +++ b/0.2.1/inc/libs/register_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/libs/rewrite_functions.php b/0.2.1/inc/libs/rewrite_functions.php index 26c0ac813c..8a8d41c215 100644 --- a/0.2.1/inc/libs/rewrite_functions.php +++ b/0.2.1/inc/libs/rewrite_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/libs/security_functions.php b/0.2.1/inc/libs/security_functions.php index 763305d213..09cf73d349 100644 --- a/0.2.1/inc/libs/security_functions.php +++ b/0.2.1/inc/libs/security_functions.php @@ -34,9 +34,21 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } + +/** + * Function to secure input strings + * + * @param $str The unsecured string + * @return $str A (hopefully) secured string against HTML and other things + */ +function secureString ($str) { + $str = trim(strip_tags($str)); + $str = htmlentities($str, ENT_QUOTES); + return $str; +} // Run only once this security check/exchange if (defined('__SECURITY')) return; @@ -207,7 +219,7 @@ if (!defined('_OB_CACHING')) } // At last secure the $_SERVER['PHP_SELF'] element -$_SERVER['PHP_SELF'] = htmlentities(strip_tags($_SERVER['PHP_SELF']), ENT_QUOTES); +$_SERVER['PHP_SELF'] = secureString($_SERVER['PHP_SELF']); // Split it up into path and filename $SELF_DIR = dirname($_SERVER['PHP_SELF']); diff --git a/0.2.1/inc/libs/task_functions.php b/0.2.1/inc/libs/task_functions.php index c16eca1421..e4e700444b 100644 --- a/0.2.1/inc/libs/task_functions.php +++ b/0.2.1/inc/libs/task_functions.php @@ -33,7 +33,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/transfer_functions.php b/0.2.1/inc/libs/transfer_functions.php index b69e25d076..0c6d01f4ad 100644 --- a/0.2.1/inc/libs/transfer_functions.php +++ b/0.2.1/inc/libs/transfer_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/libs/user_functions.php b/0.2.1/inc/libs/user_functions.php index fa7fc6e42e..bd20394892 100644 --- a/0.2.1/inc/libs/user_functions.php +++ b/0.2.1/inc/libs/user_functions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/libs/wernis_functions.php b/0.2.1/inc/libs/wernis_functions.php index 1f0674382a..1ea27b8dbe 100644 --- a/0.2.1/inc/libs/wernis_functions.php +++ b/0.2.1/inc/libs/wernis_functions.php @@ -34,13 +34,9 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } -// -function WERNIS_OUTPUT_WERNIS_LIST($POINTS) { - trigger_error(__METHOD__.":STUB!"); -} // ?> diff --git a/0.2.1/inc/load_cache.php b/0.2.1/inc/load_cache.php index 6a3c8544c3..e2d194df50 100644 --- a/0.2.1/inc/load_cache.php +++ b/0.2.1/inc/load_cache.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/load_extensions.php b/0.2.1/inc/load_extensions.php index 9154effc51..8bffaaa7fb 100644 --- a/0.2.1/inc/load_extensions.php +++ b/0.2.1/inc/load_extensions.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // diff --git a/0.2.1/inc/mails/_mails.php b/0.2.1/inc/mails/_mails.php index 1fb3d27099..a1dbc7ab1a 100644 --- a/0.2.1/inc/mails/_mails.php +++ b/0.2.1/inc/mails/_mails.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/mails/beg_mails.php b/0.2.1/inc/mails/beg_mails.php index cbb431b27f..c4fb2fe756 100644 --- a/0.2.1/inc/mails/beg_mails.php +++ b/0.2.1/inc/mails/beg_mails.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/mails/birthday_mails.php b/0.2.1/inc/mails/birthday_mails.php index 45d8cebc72..ac9bedd42e 100644 --- a/0.2.1/inc/mails/birthday_mails.php +++ b/0.2.1/inc/mails/birthday_mails.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("birthday")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/mails/bonus_mails.php b/0.2.1/inc/mails/bonus_mails.php index 9e02468614..63570a9a24 100644 --- a/0.2.1/inc/mails/bonus_mails.php +++ b/0.2.1/inc/mails/bonus_mails.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("bonus")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/modules/admin.php b/0.2.1/inc/modules/admin.php index 656744fead..5d610190e7 100644 --- a/0.2.1/inc/modules/admin.php +++ b/0.2.1/inc/modules/admin.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action- b/0.2.1/inc/modules/admin/action- index 5fd4c88430..984f25f6ac 100644 --- a/0.2.1/inc/modules/admin/action- +++ b/0.2.1/inc/modules/admin/action- @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-admins.php b/0.2.1/inc/modules/admin/action-admins.php index ee90f5154b..2e1404b03c 100644 --- a/0.2.1/inc/modules/admin/action-admins.php +++ b/0.2.1/inc/modules/admin/action-admins.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-bank.php b/0.2.1/inc/modules/admin/action-bank.php index 40c99341ca..65cbc4ac1a 100644 --- a/0.2.1/inc/modules/admin/action-bank.php +++ b/0.2.1/inc/modules/admin/action-bank.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-country.php b/0.2.1/inc/modules/admin/action-country.php index f40b37770b..1fd9354ded 100644 --- a/0.2.1/inc/modules/admin/action-country.php +++ b/0.2.1/inc/modules/admin/action-country.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-doubler.php b/0.2.1/inc/modules/admin/action-doubler.php index 52b3304968..4f26a77f30 100644 --- a/0.2.1/inc/modules/admin/action-doubler.php +++ b/0.2.1/inc/modules/admin/action-doubler.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-email.php b/0.2.1/inc/modules/admin/action-email.php index 32670ed58e..4ed9f9377b 100644 --- a/0.2.1/inc/modules/admin/action-email.php +++ b/0.2.1/inc/modules/admin/action-email.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-holiday.php b/0.2.1/inc/modules/admin/action-holiday.php index 3b27152d2c..6d967a6593 100644 --- a/0.2.1/inc/modules/admin/action-holiday.php +++ b/0.2.1/inc/modules/admin/action-holiday.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-login.php b/0.2.1/inc/modules/admin/action-login.php index 8b512d72a3..eac0e7365d 100644 --- a/0.2.1/inc/modules/admin/action-login.php +++ b/0.2.1/inc/modules/admin/action-login.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-logout.php b/0.2.1/inc/modules/admin/action-logout.php index c87a1af9f5..e1959d3d19 100644 --- a/0.2.1/inc/modules/admin/action-logout.php +++ b/0.2.1/inc/modules/admin/action-logout.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-menu.php b/0.2.1/inc/modules/admin/action-menu.php index 8b2e5c45b0..eac8f7532a 100644 --- a/0.2.1/inc/modules/admin/action-menu.php +++ b/0.2.1/inc/modules/admin/action-menu.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-misc.php b/0.2.1/inc/modules/admin/action-misc.php index bf33b47896..55aef98ee3 100644 --- a/0.2.1/inc/modules/admin/action-misc.php +++ b/0.2.1/inc/modules/admin/action-misc.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-mods.php b/0.2.1/inc/modules/admin/action-mods.php index bdec04ac1f..ac7e832b5e 100644 --- a/0.2.1/inc/modules/admin/action-mods.php +++ b/0.2.1/inc/modules/admin/action-mods.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-newsletter.php b/0.2.1/inc/modules/admin/action-newsletter.php index bb7a2d78e7..ce0be7cd3d 100644 --- a/0.2.1/inc/modules/admin/action-newsletter.php +++ b/0.2.1/inc/modules/admin/action-newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-payouts.php b/0.2.1/inc/modules/admin/action-payouts.php index c1ff401b56..931ac7d094 100644 --- a/0.2.1/inc/modules/admin/action-payouts.php +++ b/0.2.1/inc/modules/admin/action-payouts.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-rallye.php b/0.2.1/inc/modules/admin/action-rallye.php index 6d0e352009..c7885bf210 100644 --- a/0.2.1/inc/modules/admin/action-rallye.php +++ b/0.2.1/inc/modules/admin/action-rallye.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-repair.php b/0.2.1/inc/modules/admin/action-repair.php index b7edefb0aa..4cddf90d1e 100644 --- a/0.2.1/inc/modules/admin/action-repair.php +++ b/0.2.1/inc/modules/admin/action-repair.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-setup.php b/0.2.1/inc/modules/admin/action-setup.php index 32dedc7347..9d3ddb2533 100644 --- a/0.2.1/inc/modules/admin/action-setup.php +++ b/0.2.1/inc/modules/admin/action-setup.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-stats.php b/0.2.1/inc/modules/admin/action-stats.php index 333be71ee6..cd9218703e 100644 --- a/0.2.1/inc/modules/admin/action-stats.php +++ b/0.2.1/inc/modules/admin/action-stats.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-task.php b/0.2.1/inc/modules/admin/action-task.php index d6c874f5bc..3e12d50fdb 100644 --- a/0.2.1/inc/modules/admin/action-task.php +++ b/0.2.1/inc/modules/admin/action-task.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-theme.php b/0.2.1/inc/modules/admin/action-theme.php index cbf86b5143..11b0f3ba87 100644 --- a/0.2.1/inc/modules/admin/action-theme.php +++ b/0.2.1/inc/modules/admin/action-theme.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-transfer.php b/0.2.1/inc/modules/admin/action-transfer.php index 28e959207a..a36d026793 100644 --- a/0.2.1/inc/modules/admin/action-transfer.php +++ b/0.2.1/inc/modules/admin/action-transfer.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-user.php b/0.2.1/inc/modules/admin/action-user.php index 9cbf27f687..61a5196b46 100644 --- a/0.2.1/inc/modules/admin/action-user.php +++ b/0.2.1/inc/modules/admin/action-user.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/action-wernis.php b/0.2.1/inc/modules/admin/action-wernis.php index d4b6ed4f96..2a91124554 100644 --- a/0.2.1/inc/modules/admin/action-wernis.php +++ b/0.2.1/inc/modules/admin/action-wernis.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/admin-inc.php b/0.2.1/inc/modules/admin/admin-inc.php index 8375b9fe18..880c9d2bf5 100644 --- a/0.2.1/inc/modules/admin/admin-inc.php +++ b/0.2.1/inc/modules/admin/admin-inc.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/overview-inc.php b/0.2.1/inc/modules/admin/overview-inc.php index d6e20e8ff3..20ab6146fc 100644 --- a/0.2.1/inc/modules/admin/overview-inc.php +++ b/0.2.1/inc/modules/admin/overview-inc.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what- b/0.2.1/inc/modules/admin/what- index 137ed2eb03..f5e1bd3796 100644 --- a/0.2.1/inc/modules/admin/what- +++ b/0.2.1/inc/modules/admin/what- @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-add_bank_package.php b/0.2.1/inc/modules/admin/what-add_bank_package.php index e383cc40c1..d675aa862e 100644 --- a/0.2.1/inc/modules/admin/what-add_bank_package.php +++ b/0.2.1/inc/modules/admin/what-add_bank_package.php @@ -33,7 +33,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-add_guestnl_cat.php b/0.2.1/inc/modules/admin/what-add_guestnl_cat.php index eee3b7dcea..2e5a090357 100644 --- a/0.2.1/inc/modules/admin/what-add_guestnl_cat.php +++ b/0.2.1/inc/modules/admin/what-add_guestnl_cat.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-add_points.php b/0.2.1/inc/modules/admin/what-add_points.php index d061f16a17..173d1d6976 100644 --- a/0.2.1/inc/modules/admin/what-add_points.php +++ b/0.2.1/inc/modules/admin/what-add_points.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-add_rallye.php b/0.2.1/inc/modules/admin/what-add_rallye.php index a937990536..0ea1290fc7 100644 --- a/0.2.1/inc/modules/admin/what-add_rallye.php +++ b/0.2.1/inc/modules/admin/what-add_rallye.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-admin_add.php b/0.2.1/inc/modules/admin/what-admin_add.php index ffbabcb314..71bebceac5 100644 --- a/0.2.1/inc/modules/admin/what-admin_add.php +++ b/0.2.1/inc/modules/admin/what-admin_add.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-adminedit.php b/0.2.1/inc/modules/admin/what-adminedit.php index cee5a4b681..14d44b1cf0 100644 --- a/0.2.1/inc/modules/admin/what-adminedit.php +++ b/0.2.1/inc/modules/admin/what-adminedit.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-admins_add.php b/0.2.1/inc/modules/admin/what-admins_add.php index 363b6971f9..522deafff5 100644 --- a/0.2.1/inc/modules/admin/what-admins_add.php +++ b/0.2.1/inc/modules/admin/what-admins_add.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-admins_contact.php b/0.2.1/inc/modules/admin/what-admins_contact.php index a33f68ec0b..22bda7c22a 100644 --- a/0.2.1/inc/modules/admin/what-admins_contact.php +++ b/0.2.1/inc/modules/admin/what-admins_contact.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-admins_contct.php b/0.2.1/inc/modules/admin/what-admins_contct.php index 8e07614ef6..e63e588529 100644 --- a/0.2.1/inc/modules/admin/what-admins_contct.php +++ b/0.2.1/inc/modules/admin/what-admins_contct.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-admins_edit.php b/0.2.1/inc/modules/admin/what-admins_edit.php index 16491bc2ed..219aba5696 100644 --- a/0.2.1/inc/modules/admin/what-admins_edit.php +++ b/0.2.1/inc/modules/admin/what-admins_edit.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-admins_mails.php b/0.2.1/inc/modules/admin/what-admins_mails.php index e5c25775e9..54f166dd35 100644 --- a/0.2.1/inc/modules/admin/what-admins_mails.php +++ b/0.2.1/inc/modules/admin/what-admins_mails.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-autopurge.php b/0.2.1/inc/modules/admin/what-autopurge.php index 2a425d45d1..25984d3af9 100644 --- a/0.2.1/inc/modules/admin/what-autopurge.php +++ b/0.2.1/inc/modules/admin/what-autopurge.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-bonus.php b/0.2.1/inc/modules/admin/what-bonus.php index d040b78964..f2f4a76f2f 100644 --- a/0.2.1/inc/modules/admin/what-bonus.php +++ b/0.2.1/inc/modules/admin/what-bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-cache_stats.php b/0.2.1/inc/modules/admin/what-cache_stats.php index 905860e32f..46fc414121 100644 --- a/0.2.1/inc/modules/admin/what-cache_stats.php +++ b/0.2.1/inc/modules/admin/what-cache_stats.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-chk_regs.php b/0.2.1/inc/modules/admin/what-chk_regs.php index a947f23e0f..ea94610768 100644 --- a/0.2.1/inc/modules/admin/what-chk_regs.php +++ b/0.2.1/inc/modules/admin/what-chk_regs.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-config_active.php b/0.2.1/inc/modules/admin/what-config_active.php index ac121712f6..6dcc8041b7 100644 --- a/0.2.1/inc/modules/admin/what-config_active.php +++ b/0.2.1/inc/modules/admin/what-config_active.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_admin.php b/0.2.1/inc/modules/admin/what-config_admin.php index 4cf1302bca..6d27704573 100644 --- a/0.2.1/inc/modules/admin/what-config_admin.php +++ b/0.2.1/inc/modules/admin/what-config_admin.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_admins.php b/0.2.1/inc/modules/admin/what-config_admins.php index 232650b036..d1ccc43f7e 100644 --- a/0.2.1/inc/modules/admin/what-config_admins.php +++ b/0.2.1/inc/modules/admin/what-config_admins.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_autopurge.php b/0.2.1/inc/modules/admin/what-config_autopurge.php index 958b4f0e4b..dd5ea931b1 100644 --- a/0.2.1/inc/modules/admin/what-config_autopurge.php +++ b/0.2.1/inc/modules/admin/what-config_autopurge.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point @@ -68,7 +68,7 @@ if (isset($_POST['ok'])) // Mail confirmation links define('_CFG_AUTO_PURGE', CREATE_TIME_SELECTIONS($CONFIG['auto_purge'], "auto_purge", "MWD")); - if ($CONFIG['ap_active'] == "N") + if ($CONFIG['auto_purge_active'] == "N") { define('_CFG_AP_ACTIVE_N', " checked"); define('_CFG_AP_ACTIVE_Y', ""); diff --git a/0.2.1/inc/modules/admin/what-config_beg.php b/0.2.1/inc/modules/admin/what-config_beg.php index 0bb920c1fa..cef8f04875 100644 --- a/0.2.1/inc/modules/admin/what-config_beg.php +++ b/0.2.1/inc/modules/admin/what-config_beg.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-config_birthday.php b/0.2.1/inc/modules/admin/what-config_birthday.php index 1d4dd8ecfd..78ab4e6066 100644 --- a/0.2.1/inc/modules/admin/what-config_birthday.php +++ b/0.2.1/inc/modules/admin/what-config_birthday.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_bonus.php b/0.2.1/inc/modules/admin/what-config_bonus.php index 782a373125..a2b7d5bc59 100644 --- a/0.2.1/inc/modules/admin/what-config_bonus.php +++ b/0.2.1/inc/modules/admin/what-config_bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_cache.php b/0.2.1/inc/modules/admin/what-config_cache.php index 227f536807..d88b439224 100644 --- a/0.2.1/inc/modules/admin/what-config_cache.php +++ b/0.2.1/inc/modules/admin/what-config_cache.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_cats.php b/0.2.1/inc/modules/admin/what-config_cats.php index 9482fbfc4d..13480ff728 100644 --- a/0.2.1/inc/modules/admin/what-config_cats.php +++ b/0.2.1/inc/modules/admin/what-config_cats.php @@ -35,7 +35,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_doubler.php b/0.2.1/inc/modules/admin/what-config_doubler.php index 11d1321390..18936ee7af 100644 --- a/0.2.1/inc/modules/admin/what-config_doubler.php +++ b/0.2.1/inc/modules/admin/what-config_doubler.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_email.php b/0.2.1/inc/modules/admin/what-config_email.php index 9725ecff61..0f5c0f65e3 100644 --- a/0.2.1/inc/modules/admin/what-config_email.php +++ b/0.2.1/inc/modules/admin/what-config_email.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_extensions.php b/0.2.1/inc/modules/admin/what-config_extensions.php index 31903d638d..d216abe5d7 100644 --- a/0.2.1/inc/modules/admin/what-config_extensions.php +++ b/0.2.1/inc/modules/admin/what-config_extensions.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_holiday.php b/0.2.1/inc/modules/admin/what-config_holiday.php index 77726c6bed..f3c698d22e 100644 --- a/0.2.1/inc/modules/admin/what-config_holiday.php +++ b/0.2.1/inc/modules/admin/what-config_holiday.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_home.php b/0.2.1/inc/modules/admin/what-config_home.php index 2bd570a315..db688e6dfd 100644 --- a/0.2.1/inc/modules/admin/what-config_home.php +++ b/0.2.1/inc/modules/admin/what-config_home.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_mediadata.php b/0.2.1/inc/modules/admin/what-config_mediadata.php index 15f7c8b76d..5d68a1e076 100644 --- a/0.2.1/inc/modules/admin/what-config_mediadata.php +++ b/0.2.1/inc/modules/admin/what-config_mediadata.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_mods.php b/0.2.1/inc/modules/admin/what-config_mods.php index 976be58999..253d2bc0f5 100644 --- a/0.2.1/inc/modules/admin/what-config_mods.php +++ b/0.2.1/inc/modules/admin/what-config_mods.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_newsletter.php b/0.2.1/inc/modules/admin/what-config_newsletter.php index 9ae6c2e0e3..830529580b 100644 --- a/0.2.1/inc/modules/admin/what-config_newsletter.php +++ b/0.2.1/inc/modules/admin/what-config_newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-config_nickname.php b/0.2.1/inc/modules/admin/what-config_nickname.php index 819d48e1c1..c70db17055 100644 --- a/0.2.1/inc/modules/admin/what-config_nickname.php +++ b/0.2.1/inc/modules/admin/what-config_nickname.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_order.php b/0.2.1/inc/modules/admin/what-config_order.php index e3ae36bff5..6593bfb7f0 100644 --- a/0.2.1/inc/modules/admin/what-config_order.php +++ b/0.2.1/inc/modules/admin/what-config_order.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_other.php b/0.2.1/inc/modules/admin/what-config_other.php index 60145df453..d2bf210552 100644 --- a/0.2.1/inc/modules/admin/what-config_other.php +++ b/0.2.1/inc/modules/admin/what-config_other.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("other")) || (GET_EXT_VERSION("other") == "")) { // Missing extension! @@ -88,7 +88,7 @@ if (isset($_POST['ok'])) define('_CFG_UNCONFIRMED' , $CONFIG['unconfirmed']); define('_CFG_MAX_TLENGTH' , $CONFIG['max_tlength']); define('_CFG_CODE_LENGTH' , $CONFIG['code_length']); - define('_CFG_ACT_SYSTEM' , $CONFIG['activate_system']); + define('_CFG_ACT_SYSTEM' , $CONFIG['activate_xchange']); define('_CFG_MAX_SEND' , $CONFIG['max_send']); define('_CFG_REJECT_URL' , $CONFIG['reject_url']); @@ -100,7 +100,7 @@ if (isset($_POST['ok'])) define('_CFG_URL_TLOCK' , CREATE_TIME_SELECTIONS($CONFIG['url_tlock'] , "url_tlock" , "WDh")); define('_CFG_PROFILE_LOCK' , CREATE_TIME_SELECTIONS($CONFIG['profile_lock'] , "profile_lock" , "WDh")); define('_CFG_PROFILE_UPDATE', CREATE_TIME_SELECTIONS($CONFIG['profile_update'], "profile_update" , "YM")); - define('_CFG_PROF_REUPDATE' , CREATE_TIME_SELECTIONS($CONFIG['prof_reupdate'] , "resend_profile_update", "MWD")); + define('_CFG_PROF_REUPDATE' , CREATE_TIME_SELECTIONS($CONFIG['resend_profile_update'] , "resend_profile_update", "MWD")); } else { @@ -109,7 +109,7 @@ if (isset($_POST['ok'])) define('_CFG_URL_TLOCK' , " (".SECS.")"); define('_CFG_PROFILE_LOCK' , " (".SECS.")"); define('_CFG_PROFILE_UPDATE', " (".SECS.")"); - define('_CFG_PROF_REUPDATE' , " (".SECS.")"); + define('_CFG_PROF_REUPDATE' , " (".SECS.")"); } if ($CONFIG['test_text'] == "N") @@ -142,7 +142,7 @@ if (isset($_POST['ok'])) define('_CFG_URL_BLIST_N', ""); define('_CFG_URL_BLIST_Y', " checked"); } - if ($CONFIG['order_multi'] == "N") + if ($CONFIG['order_multi_page'] == "N") { define('_CFG_ORDER_MULTI_N', " checked"); define('_CFG_ORDER_MULTI_Y', ""); @@ -162,7 +162,7 @@ if (isset($_POST['ok'])) define('_CFG_AUTOSEND_ACTIVE_N', ""); define('_CFG_AUTOSEND_ACTIVE_Y', " checked"); } - if ($CONFIG['send_update'] == "N") + if ($CONFIG['send_prof_update'] == "N") { define('_CFG_SEND_UPDATE_N', " checked"); define('_CFG_SEND_UPDATE_Y', ""); diff --git a/0.2.1/inc/modules/admin/what-config_payouts.php b/0.2.1/inc/modules/admin/what-config_payouts.php index 42e097f938..fddab7800f 100644 --- a/0.2.1/inc/modules/admin/what-config_payouts.php +++ b/0.2.1/inc/modules/admin/what-config_payouts.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_points.php b/0.2.1/inc/modules/admin/what-config_points.php index 018fee1af7..a997f017af 100644 --- a/0.2.1/inc/modules/admin/what-config_points.php +++ b/0.2.1/inc/modules/admin/what-config_points.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -125,7 +125,7 @@ allow_direct_pay='%s', reg_points_mode='%s', ref_payout='%d' WHERE config='0' LIMIT 1", - $_POST['direct_pay'], + $_POST['allow_direct_pay'], $_POST['refmode'], $REF ); @@ -185,7 +185,7 @@ WHERE mails_confirmed < %d", $REF, $REF); { // Setup some settings like direct pay and so on // Including new add-mode for one-time referral bonus - switch ($CONFIG['direct_pay']) + switch ($CONFIG['allow_direct_pay']) { case "Y": define('__DIRECT_Y', " checked"); diff --git a/0.2.1/inc/modules/admin/what-config_rallye_prices.php b/0.2.1/inc/modules/admin/what-config_rallye_prices.php index aaf92d0db3..2ad2cebeca 100644 --- a/0.2.1/inc/modules/admin/what-config_rallye_prices.php +++ b/0.2.1/inc/modules/admin/what-config_rallye_prices.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_refid.php b/0.2.1/inc/modules/admin/what-config_refid.php index a51cf1a293..6d9b963c98 100644 --- a/0.2.1/inc/modules/admin/what-config_refid.php +++ b/0.2.1/inc/modules/admin/what-config_refid.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_reg.php b/0.2.1/inc/modules/admin/what-config_reg.php index 0a2bef9c68..69b4ed9f88 100644 --- a/0.2.1/inc/modules/admin/what-config_reg.php +++ b/0.2.1/inc/modules/admin/what-config_reg.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -65,8 +65,8 @@ if (isset($_POST['ok'])) define('LEAST_CATS_VALUE' , $CONFIG['least_cats']); define('__CFG_SHOW_REFID' , ADD_SELECTION("yn", $CONFIG['display_refid'], "display_refid")); define('__TIMEOUT_SELECTION', CREATE_TIME_SELECTIONS($CONFIG['ip_timeout'], "ip_timeout", "Dhm")); - define('__CFG_DBL_EMAIL' , ADD_SELECTION("yn", $CONFIG['dbl_email'], "check_double_email")); - define('__CFG_DBL_PASS' , ADD_SELECTION("yn", $CONFIG['dbl_pass'] , "check_double_pass")); + define('__CFG_DBL_EMAIL' , ADD_SELECTION("yn", $CONFIG['check_double_email'], "check_double_email")); + define('__CFG_DBL_PASS' , ADD_SELECTION("yn", $CONFIG['check_double_pass'] , "check_double_pass")); define('__REF_PAYOUT' , $CONFIG['ref_payout']); // Load normal template diff --git a/0.2.1/inc/modules/admin/what-config_register.php b/0.2.1/inc/modules/admin/what-config_register.php index d9d7fb87e8..b5db95b190 100644 --- a/0.2.1/inc/modules/admin/what-config_register.php +++ b/0.2.1/inc/modules/admin/what-config_register.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-config_register2.php b/0.2.1/inc/modules/admin/what-config_register2.php index 33d7b3b6a6..b60c5f9784 100644 --- a/0.2.1/inc/modules/admin/what-config_register2.php +++ b/0.2.1/inc/modules/admin/what-config_register2.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -59,8 +59,8 @@ if (isset($_POST['ok'])) define('LEAST_CATS_VALUE' , round($CONFIG['least_cats'])); define('__CFG_SHOW_REFID' , ADD_SELECTION("yn", $CONFIG['display_refid'] , "display_refid")); define('__TIMEOUT_SELECTION', CREATE_TIME_SELECTIONS($CONFIG['ip_timeout'] , "ip_timeout", "Dhm")); - define('__CFG_DBL_EMAIL' , ADD_SELECTION("yn", $CONFIG['dbl_email'] , "check_double_email")); - define('__CFG_DBL_PASS' , ADD_SELECTION("yn", $CONFIG['dbl_pass'] , "check_double_pass")); + define('__CFG_DBL_EMAIL' , ADD_SELECTION("yn", $CONFIG['check_double_email'] , "check_double_email")); + define('__CFG_DBL_PASS' , ADD_SELECTION("yn", $CONFIG['check_double_pass'] , "check_double_pass")); define('__CFG_CAT_DEFAULT' , ADD_SELECTION("yn", $CONFIG['register_default'], "register_default")); // Load normal template diff --git a/0.2.1/inc/modules/admin/what-config_rewrite.php b/0.2.1/inc/modules/admin/what-config_rewrite.php index 7cc07cc9fd..63576a2adc 100644 --- a/0.2.1/inc/modules/admin/what-config_rewrite.php +++ b/0.2.1/inc/modules/admin/what-config_rewrite.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_secure.php b/0.2.1/inc/modules/admin/what-config_secure.php index a8854299db..6d2c42daa4 100644 --- a/0.2.1/inc/modules/admin/what-config_secure.php +++ b/0.2.1/inc/modules/admin/what-config_secure.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } global $link; diff --git a/0.2.1/inc/modules/admin/what-config_stats.php b/0.2.1/inc/modules/admin/what-config_stats.php index 88d44e2231..5378300bc5 100644 --- a/0.2.1/inc/modules/admin/what-config_stats.php +++ b/0.2.1/inc/modules/admin/what-config_stats.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point @@ -48,7 +48,7 @@ if (isset($_POST['ok'])) else { // Guest stats - switch (strtolower($CONFIG['gstats_mode'])) + switch (strtolower($CONFIG['guest_stats'])) { case "members": define('__MEMBERS_RADIO', " checked selected"); diff --git a/0.2.1/inc/modules/admin/what-config_title.php b/0.2.1/inc/modules/admin/what-config_title.php index 6253cf3baf..83b60c9b67 100644 --- a/0.2.1/inc/modules/admin/what-config_title.php +++ b/0.2.1/inc/modules/admin/what-config_title.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_top10.php b/0.2.1/inc/modules/admin/what-config_top10.php index 15fc8a9f16..58d8e87cc3 100644 --- a/0.2.1/inc/modules/admin/what-config_top10.php +++ b/0.2.1/inc/modules/admin/what-config_top10.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_transfer.php b/0.2.1/inc/modules/admin/what-config_transfer.php index bf7947d092..8f2d683964 100644 --- a/0.2.1/inc/modules/admin/what-config_transfer.php +++ b/0.2.1/inc/modules/admin/what-config_transfer.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_user.php b/0.2.1/inc/modules/admin/what-config_user.php index 5c8ff51824..332a59dca7 100644 --- a/0.2.1/inc/modules/admin/what-config_user.php +++ b/0.2.1/inc/modules/admin/what-config_user.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-config_wernis.php b/0.2.1/inc/modules/admin/what-config_wernis.php index d8fbeb5d57..02f660cf40 100644 --- a/0.2.1/inc/modules/admin/what-config_wernis.php +++ b/0.2.1/inc/modules/admin/what-config_wernis.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-del_email.php b/0.2.1/inc/modules/admin/what-del_email.php index 34bfe88d1b..a235c7f98b 100644 --- a/0.2.1/inc/modules/admin/what-del_email.php +++ b/0.2.1/inc/modules/admin/what-del_email.php @@ -37,7 +37,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-del_holiday.php b/0.2.1/inc/modules/admin/what-del_holiday.php index 281f04c117..1f6826c102 100644 --- a/0.2.1/inc/modules/admin/what-del_holiday.php +++ b/0.2.1/inc/modules/admin/what-del_holiday.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-del_task.php b/0.2.1/inc/modules/admin/what-del_task.php index 3d5df0d0cf..8c7ca29a82 100644 --- a/0.2.1/inc/modules/admin/what-del_task.php +++ b/0.2.1/inc/modules/admin/what-del_task.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-del_transfer.php b/0.2.1/inc/modules/admin/what-del_transfer.php index 71047387a7..0d1dc80afc 100644 --- a/0.2.1/inc/modules/admin/what-del_transfer.php +++ b/0.2.1/inc/modules/admin/what-del_transfer.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-del_user.php b/0.2.1/inc/modules/admin/what-del_user.php index ccb18c6ad6..b518608063 100644 --- a/0.2.1/inc/modules/admin/what-del_user.php +++ b/0.2.1/inc/modules/admin/what-del_user.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-edit_emails.php b/0.2.1/inc/modules/admin/what-edit_emails.php index feca570cac..d00ca14d70 100644 --- a/0.2.1/inc/modules/admin/what-edit_emails.php +++ b/0.2.1/inc/modules/admin/what-edit_emails.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-edit_user.php b/0.2.1/inc/modules/admin/what-edit_user.php index 6986fb9b70..d054835e0c 100644 --- a/0.2.1/inc/modules/admin/what-edit_user.php +++ b/0.2.1/inc/modules/admin/what-edit_user.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-email_archiv.php b/0.2.1/inc/modules/admin/what-email_archiv.php index d6dee95169..d80ab0b9c0 100644 --- a/0.2.1/inc/modules/admin/what-email_archiv.php +++ b/0.2.1/inc/modules/admin/what-email_archiv.php @@ -37,7 +37,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-email_details.php b/0.2.1/inc/modules/admin/what-email_details.php index a0b36bb1f3..34ec4bf157 100644 --- a/0.2.1/inc/modules/admin/what-email_details.php +++ b/0.2.1/inc/modules/admin/what-email_details.php @@ -44,7 +44,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-email_stats.php b/0.2.1/inc/modules/admin/what-email_stats.php index 9f3f26d12f..4deef56742 100644 --- a/0.2.1/inc/modules/admin/what-email_stats.php +++ b/0.2.1/inc/modules/admin/what-email_stats.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-extensions.php b/0.2.1/inc/modules/admin/what-extensions.php index eb3a1e59d0..1be4e77415 100644 --- a/0.2.1/inc/modules/admin/what-extensions.php +++ b/0.2.1/inc/modules/admin/what-extensions.php @@ -33,7 +33,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-guest_add.php b/0.2.1/inc/modules/admin/what-guest_add.php index 9aeae1da3a..07f5e92919 100644 --- a/0.2.1/inc/modules/admin/what-guest_add.php +++ b/0.2.1/inc/modules/admin/what-guest_add.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-guestedit.php b/0.2.1/inc/modules/admin/what-guestedit.php index e8b5c01093..dcdbbfc68c 100644 --- a/0.2.1/inc/modules/admin/what-guestedit.php +++ b/0.2.1/inc/modules/admin/what-guestedit.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-holiday_list.php b/0.2.1/inc/modules/admin/what-holiday_list.php index 13e0225680..adaad4d59d 100644 --- a/0.2.1/inc/modules/admin/what-holiday_list.php +++ b/0.2.1/inc/modules/admin/what-holiday_list.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-holiday_remove.php b/0.2.1/inc/modules/admin/what-holiday_remove.php index f18ba81c43..d4bcf7fcd2 100644 --- a/0.2.1/inc/modules/admin/what-holiday_remove.php +++ b/0.2.1/inc/modules/admin/what-holiday_remove.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_autopurge.php b/0.2.1/inc/modules/admin/what-list_autopurge.php index 8d91f176af..637ec35bf6 100644 --- a/0.2.1/inc/modules/admin/what-list_autopurge.php +++ b/0.2.1/inc/modules/admin/what-list_autopurge.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_bank_package.php b/0.2.1/inc/modules/admin/what-list_bank_package.php index 00baa59deb..053fe1e767 100644 --- a/0.2.1/inc/modules/admin/what-list_bank_package.php +++ b/0.2.1/inc/modules/admin/what-list_bank_package.php @@ -33,7 +33,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_beg.php b/0.2.1/inc/modules/admin/what-list_beg.php index 40823a6a5d..bda36ba084 100644 --- a/0.2.1/inc/modules/admin/what-list_beg.php +++ b/0.2.1/inc/modules/admin/what-list_beg.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_bonus.php b/0.2.1/inc/modules/admin/what-list_bonus.php index a3439f8d73..05a060c8d3 100644 --- a/0.2.1/inc/modules/admin/what-list_bonus.php +++ b/0.2.1/inc/modules/admin/what-list_bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_cats.php b/0.2.1/inc/modules/admin/what-list_cats.php index 37d3d994e6..d7cf7a381c 100644 --- a/0.2.1/inc/modules/admin/what-list_cats.php +++ b/0.2.1/inc/modules/admin/what-list_cats.php @@ -35,7 +35,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_country.php b/0.2.1/inc/modules/admin/what-list_country.php index c367836906..bba67f34a5 100644 --- a/0.2.1/inc/modules/admin/what-list_country.php +++ b/0.2.1/inc/modules/admin/what-list_country.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_doubler.php b/0.2.1/inc/modules/admin/what-list_doubler.php index 2b42870756..e00401bbe5 100644 --- a/0.2.1/inc/modules/admin/what-list_doubler.php +++ b/0.2.1/inc/modules/admin/what-list_doubler.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_holiday.php b/0.2.1/inc/modules/admin/what-list_holiday.php index 2062a010cb..e7cb6e31b8 100644 --- a/0.2.1/inc/modules/admin/what-list_holiday.php +++ b/0.2.1/inc/modules/admin/what-list_holiday.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_links.php b/0.2.1/inc/modules/admin/what-list_links.php index c770a61066..b8bc605a19 100644 --- a/0.2.1/inc/modules/admin/what-list_links.php +++ b/0.2.1/inc/modules/admin/what-list_links.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_newsletter.php b/0.2.1/inc/modules/admin/what-list_newsletter.php index 7914229c3b..a9c6948bc5 100644 --- a/0.2.1/inc/modules/admin/what-list_newsletter.php +++ b/0.2.1/inc/modules/admin/what-list_newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_norefs.php b/0.2.1/inc/modules/admin/what-list_norefs.php index 69ef3999c0..ef2e80904b 100644 --- a/0.2.1/inc/modules/admin/what-list_norefs.php +++ b/0.2.1/inc/modules/admin/what-list_norefs.php @@ -33,7 +33,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("user")) || (GET_EXT_VERSION("user") == "")) { // Not active! diff --git a/0.2.1/inc/modules/admin/what-list_payouts.php b/0.2.1/inc/modules/admin/what-list_payouts.php index 264d3b33fa..6bf6c6c387 100644 --- a/0.2.1/inc/modules/admin/what-list_payouts.php +++ b/0.2.1/inc/modules/admin/what-list_payouts.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_rallyes.php b/0.2.1/inc/modules/admin/what-list_rallyes.php index 73dd580275..551721e29e 100644 --- a/0.2.1/inc/modules/admin/what-list_rallyes.php +++ b/0.2.1/inc/modules/admin/what-list_rallyes.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_refs.php b/0.2.1/inc/modules/admin/what-list_refs.php index 941c725cfb..3ff31fc93e 100644 --- a/0.2.1/inc/modules/admin/what-list_refs.php +++ b/0.2.1/inc/modules/admin/what-list_refs.php @@ -40,7 +40,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_task.php b/0.2.1/inc/modules/admin/what-list_task.php index 7af80f9076..e7fd9773f7 100644 --- a/0.2.1/inc/modules/admin/what-list_task.php +++ b/0.2.1/inc/modules/admin/what-list_task.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_transfer.php b/0.2.1/inc/modules/admin/what-list_transfer.php index 140d687c8c..a27a8c40d4 100644 --- a/0.2.1/inc/modules/admin/what-list_transfer.php +++ b/0.2.1/inc/modules/admin/what-list_transfer.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-list_unconfirmed.php b/0.2.1/inc/modules/admin/what-list_unconfirmed.php index f94c61ed5e..ba32acc03a 100644 --- a/0.2.1/inc/modules/admin/what-list_unconfirmed.php +++ b/0.2.1/inc/modules/admin/what-list_unconfirmed.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-list_user.php b/0.2.1/inc/modules/admin/what-list_user.php index 8fcd13d993..02efea054a 100644 --- a/0.2.1/inc/modules/admin/what-list_user.php +++ b/0.2.1/inc/modules/admin/what-list_user.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("user")) || (GET_EXT_VERSION("user") == "")) { // Missing extension! diff --git a/0.2.1/inc/modules/admin/what-list_wernis.php b/0.2.1/inc/modules/admin/what-list_wernis.php index 25f5637d38..2a1f7cac93 100644 --- a/0.2.1/inc/modules/admin/what-list_wernis.php +++ b/0.2.1/inc/modules/admin/what-list_wernis.php @@ -32,11 +32,11 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) -{ - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; +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__)); diff --git a/0.2.1/inc/modules/admin/what-lock_user.php b/0.2.1/inc/modules/admin/what-lock_user.php index cd2dcb5926..954e9dd6b7 100644 --- a/0.2.1/inc/modules/admin/what-lock_user.php +++ b/0.2.1/inc/modules/admin/what-lock_user.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-logs.php b/0.2.1/inc/modules/admin/what-logs.php index 7c93d39cbe..44203c2a53 100644 --- a/0.2.1/inc/modules/admin/what-logs.php +++ b/0.2.1/inc/modules/admin/what-logs.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-maintenance.php b/0.2.1/inc/modules/admin/what-maintenance.php index da9a14a6df..422aaf71b6 100644 --- a/0.2.1/inc/modules/admin/what-maintenance.php +++ b/0.2.1/inc/modules/admin/what-maintenance.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-mem_add.php b/0.2.1/inc/modules/admin/what-mem_add.php index 13d325b028..c9fd215681 100644 --- a/0.2.1/inc/modules/admin/what-mem_add.php +++ b/0.2.1/inc/modules/admin/what-mem_add.php @@ -35,7 +35,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add desciption as navigation point diff --git a/0.2.1/inc/modules/admin/what-memedit.php b/0.2.1/inc/modules/admin/what-memedit.php index 9c624c27bd..18b890d9f6 100644 --- a/0.2.1/inc/modules/admin/what-memedit.php +++ b/0.2.1/inc/modules/admin/what-memedit.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-optimize.php b/0.2.1/inc/modules/admin/what-optimize.php index 49991068f4..ef50eb2d27 100644 --- a/0.2.1/inc/modules/admin/what-optimize.php +++ b/0.2.1/inc/modules/admin/what-optimize.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-overview.php b/0.2.1/inc/modules/admin/what-overview.php index 76224555a8..a402abd8f2 100644 --- a/0.2.1/inc/modules/admin/what-overview.php +++ b/0.2.1/inc/modules/admin/what-overview.php @@ -33,7 +33,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-payments.php b/0.2.1/inc/modules/admin/what-payments.php index 9091b80e9b..20550cb1fb 100644 --- a/0.2.1/inc/modules/admin/what-payments.php +++ b/0.2.1/inc/modules/admin/what-payments.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-refbanner.php b/0.2.1/inc/modules/admin/what-refbanner.php index 6107feaae8..ebdeb8a53e 100644 --- a/0.2.1/inc/modules/admin/what-refbanner.php +++ b/0.2.1/inc/modules/admin/what-refbanner.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-repair_amenu.php b/0.2.1/inc/modules/admin/what-repair_amenu.php index 5f71eead5a..ee1a685c0c 100644 --- a/0.2.1/inc/modules/admin/what-repair_amenu.php +++ b/0.2.1/inc/modules/admin/what-repair_amenu.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-repair_amnu.php b/0.2.1/inc/modules/admin/what-repair_amnu.php index 86d123b3af..ec11f02506 100644 --- a/0.2.1/inc/modules/admin/what-repair_amnu.php +++ b/0.2.1/inc/modules/admin/what-repair_amnu.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-repair_cats.php b/0.2.1/inc/modules/admin/what-repair_cats.php index 571915a700..5a4b920f22 100644 --- a/0.2.1/inc/modules/admin/what-repair_cats.php +++ b/0.2.1/inc/modules/admin/what-repair_cats.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-repair_gmenu.php b/0.2.1/inc/modules/admin/what-repair_gmenu.php index 29b49908b9..84f85204e6 100644 --- a/0.2.1/inc/modules/admin/what-repair_gmenu.php +++ b/0.2.1/inc/modules/admin/what-repair_gmenu.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-repair_gmnu.php b/0.2.1/inc/modules/admin/what-repair_gmnu.php index 80b066ae05..fc854511b8 100644 --- a/0.2.1/inc/modules/admin/what-repair_gmnu.php +++ b/0.2.1/inc/modules/admin/what-repair_gmnu.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-repair_mmenu.php b/0.2.1/inc/modules/admin/what-repair_mmenu.php index ad31cdcbe4..ed6e90c222 100644 --- a/0.2.1/inc/modules/admin/what-repair_mmenu.php +++ b/0.2.1/inc/modules/admin/what-repair_mmenu.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-repair_mmnu.php b/0.2.1/inc/modules/admin/what-repair_mmnu.php index 1b489c7ed5..f4f019764a 100644 --- a/0.2.1/inc/modules/admin/what-repair_mmnu.php +++ b/0.2.1/inc/modules/admin/what-repair_mmnu.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-send_bonus.php b/0.2.1/inc/modules/admin/what-send_bonus.php index 25e1826e53..ea0bf650c4 100644 --- a/0.2.1/inc/modules/admin/what-send_bonus.php +++ b/0.2.1/inc/modules/admin/what-send_bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-send_newsletter.php b/0.2.1/inc/modules/admin/what-send_newsletter.php index eb947c4dfc..ebc0859e54 100644 --- a/0.2.1/inc/modules/admin/what-send_newsletter.php +++ b/0.2.1/inc/modules/admin/what-send_newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-stats_mods.php b/0.2.1/inc/modules/admin/what-stats_mods.php index 16e9b09496..3b64d0c2c6 100644 --- a/0.2.1/inc/modules/admin/what-stats_mods.php +++ b/0.2.1/inc/modules/admin/what-stats_mods.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-sub_points.php b/0.2.1/inc/modules/admin/what-sub_points.php index 51d52cfd0a..3fef3e63d1 100644 --- a/0.2.1/inc/modules/admin/what-sub_points.php +++ b/0.2.1/inc/modules/admin/what-sub_points.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-theme_check.php b/0.2.1/inc/modules/admin/what-theme_check.php index 4336ce9a1b..ce7533fefe 100644 --- a/0.2.1/inc/modules/admin/what-theme_check.php +++ b/0.2.1/inc/modules/admin/what-theme_check.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-theme_edit.php b/0.2.1/inc/modules/admin/what-theme_edit.php index b71d122226..bb16fe8734 100644 --- a/0.2.1/inc/modules/admin/what-theme_edit.php +++ b/0.2.1/inc/modules/admin/what-theme_edit.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-theme_import.php b/0.2.1/inc/modules/admin/what-theme_import.php index 3b9a3d77f9..cd70aec3c7 100644 --- a/0.2.1/inc/modules/admin/what-theme_import.php +++ b/0.2.1/inc/modules/admin/what-theme_import.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/admin/what-unlock_emails.php b/0.2.1/inc/modules/admin/what-unlock_emails.php index 0d98821587..f652f70f0b 100644 --- a/0.2.1/inc/modules/admin/what-unlock_emails.php +++ b/0.2.1/inc/modules/admin/what-unlock_emails.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-updates.php b/0.2.1/inc/modules/admin/what-updates.php index c1b09ecd4b..d973d08da9 100644 --- a/0.2.1/inc/modules/admin/what-updates.php +++ b/0.2.1/inc/modules/admin/what-updates.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-usage.php b/0.2.1/inc/modules/admin/what-usage.php index 06246e507e..169f0d0420 100644 --- a/0.2.1/inc/modules/admin/what-usage.php +++ b/0.2.1/inc/modules/admin/what-usage.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/admin/what-user_online.php b/0.2.1/inc/modules/admin/what-user_online.php index 38b13c7bbd..1f1e0a3239 100644 --- a/0.2.1/inc/modules/admin/what-user_online.php +++ b/0.2.1/inc/modules/admin/what-user_online.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -90,7 +90,7 @@ if (SQL_NUMROWS($result) > 0) // Is an administrator $userid = _IS_ADMIN; } - elseif (($mem == "N") && ($admin == "N")) + elseif (($mem == "N") && ($admin == "N")) { // Is a guest $userid = _IS_GUEST; @@ -102,7 +102,7 @@ if (SQL_NUMROWS($result) > 0) { OUTPUT_HTML("".$userid.""); } - else + else { OUTPUT_HTML($userid); } @@ -128,4 +128,4 @@ if (SQL_NUMROWS($result) > 0) "); } // -?> +?> diff --git a/0.2.1/inc/modules/admin/what-usr_online.php b/0.2.1/inc/modules/admin/what-usr_online.php index 031e31adbd..0c7880675f 100644 --- a/0.2.1/inc/modules/admin/what-usr_online.php +++ b/0.2.1/inc/modules/admin/what-usr_online.php @@ -34,7 +34,7 @@ // Some security stuff... if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/chk_login.php b/0.2.1/inc/modules/chk_login.php index 951898c3f5..a30f357575 100644 --- a/0.2.1/inc/modules/chk_login.php +++ b/0.2.1/inc/modules/chk_login.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/frameset.php b/0.2.1/inc/modules/frameset.php index 8a8dc51445..5f96478dcb 100644 --- a/0.2.1/inc/modules/frameset.php +++ b/0.2.1/inc/modules/frameset.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/frametester.php b/0.2.1/inc/modules/frametester.php index c5606a4384..0372b945d1 100644 --- a/0.2.1/inc/modules/frametester.php +++ b/0.2.1/inc/modules/frametester.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/action- b/0.2.1/inc/modules/guest/action- index c7c7a3dc6c..c10ba15b5a 100644 --- a/0.2.1/inc/modules/guest/action- +++ b/0.2.1/inc/modules/guest/action- @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/action-admin.php b/0.2.1/inc/modules/guest/action-admin.php index 1955158e43..a4c8a9861a 100644 --- a/0.2.1/inc/modules/guest/action-admin.php +++ b/0.2.1/inc/modules/guest/action-admin.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/action-main.php b/0.2.1/inc/modules/guest/action-main.php index 1130989fff..115be7722b 100644 --- a/0.2.1/inc/modules/guest/action-main.php +++ b/0.2.1/inc/modules/guest/action-main.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/action-members.php b/0.2.1/inc/modules/guest/action-members.php index 7b67ab2483..0529523c35 100644 --- a/0.2.1/inc/modules/guest/action-members.php +++ b/0.2.1/inc/modules/guest/action-members.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/action-online.php b/0.2.1/inc/modules/guest/action-online.php index a44315542d..41ab65bee2 100644 --- a/0.2.1/inc/modules/guest/action-online.php +++ b/0.2.1/inc/modules/guest/action-online.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!EXT_IS_ACTIVE("online")) diff --git a/0.2.1/inc/modules/guest/action-themes.php b/0.2.1/inc/modules/guest/action-themes.php index 9b1103a63d..71a71bdb81 100644 --- a/0.2.1/inc/modules/guest/action-themes.php +++ b/0.2.1/inc/modules/guest/action-themes.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/what- b/0.2.1/inc/modules/guest/what- index fefef0ea49..0d00e62e84 100644 --- a/0.2.1/inc/modules/guest/what- +++ b/0.2.1/inc/modules/guest/what- @@ -23,7 +23,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/guest/what-active.php b/0.2.1/inc/modules/guest/what-active.php index ea5b99c5fe..ddf5decf2c 100644 --- a/0.2.1/inc/modules/guest/what-active.php +++ b/0.2.1/inc/modules/guest/what-active.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("active")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/modules/guest/what-admin.php b/0.2.1/inc/modules/guest/what-admin.php index 1535f8115a..a960e352df 100644 --- a/0.2.1/inc/modules/guest/what-admin.php +++ b/0.2.1/inc/modules/guest/what-admin.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/what-agb.php b/0.2.1/inc/modules/guest/what-agb.php index 136a042343..853d59beca 100644 --- a/0.2.1/inc/modules/guest/what-agb.php +++ b/0.2.1/inc/modules/guest/what-agb.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/guest/what-beg.php b/0.2.1/inc/modules/guest/what-beg.php index 6dac6a10ff..77a5757436 100644 --- a/0.2.1/inc/modules/guest/what-beg.php +++ b/0.2.1/inc/modules/guest/what-beg.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/modules/guest/what-confirm.php b/0.2.1/inc/modules/guest/what-confirm.php index de7d8402b4..f95b08a4fd 100644 --- a/0.2.1/inc/modules/guest/what-confirm.php +++ b/0.2.1/inc/modules/guest/what-confirm.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/guest/what-doubler.php b/0.2.1/inc/modules/guest/what-doubler.php index 4d09d1b5fc..c691e4f73e 100644 --- a/0.2.1/inc/modules/guest/what-doubler.php +++ b/0.2.1/inc/modules/guest/what-doubler.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("doubler")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/modules/guest/what-impressum.php b/0.2.1/inc/modules/guest/what-impressum.php index e1a79e1bc9..c1a7c2eb5f 100644 --- a/0.2.1/inc/modules/guest/what-impressum.php +++ b/0.2.1/inc/modules/guest/what-impressum.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/guest/what-infos.php b/0.2.1/inc/modules/guest/what-infos.php index 7a140429b9..d95413b1de 100644 --- a/0.2.1/inc/modules/guest/what-infos.php +++ b/0.2.1/inc/modules/guest/what-infos.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/guest/what-login.php b/0.2.1/inc/modules/guest/what-login.php index 45222d29b7..d4591e1368 100644 --- a/0.2.1/inc/modules/guest/what-login.php +++ b/0.2.1/inc/modules/guest/what-login.php @@ -35,7 +35,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/what-mediadata.php b/0.2.1/inc/modules/guest/what-mediadata.php index a5ec19bfbe..35a6540651 100644 --- a/0.2.1/inc/modules/guest/what-mediadata.php +++ b/0.2.1/inc/modules/guest/what-mediadata.php @@ -37,7 +37,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!EXT_IS_ACTIVE("mediadata")) diff --git a/0.2.1/inc/modules/guest/what-my_weblog.php b/0.2.1/inc/modules/guest/what-my_weblog.php index af23268c3b..4ac90f7617 100644 --- a/0.2.1/inc/modules/guest/what-my_weblog.php +++ b/0.2.1/inc/modules/guest/what-my_weblog.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/guest/what-rallyes.php b/0.2.1/inc/modules/guest/what-rallyes.php index d6741867f2..f8f89db094 100644 --- a/0.2.1/inc/modules/guest/what-rallyes.php +++ b/0.2.1/inc/modules/guest/what-rallyes.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("rallye")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/modules/guest/what-register.php b/0.2.1/inc/modules/guest/what-register.php index 49eb58fc8b..f56b02cd81 100644 --- a/0.2.1/inc/modules/guest/what-register.php +++ b/0.2.1/inc/modules/guest/what-register.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("register"))) @@ -141,7 +141,7 @@ if (isset($_POST['ok'])) $FAILED = true; } } - if (($_POST['addy'] != "!") && ($CONFIG['dbl_email'] == "Y") && (!IS_ADMIN())) + if (($_POST['addy'] != "!") && ($CONFIG['check_double_email'] == "Y") && (!IS_ADMIN())) { // Does the email address already exists in our database? $CHK = SEARCH_EMAIL_USERTAB($_POST['addy']); diff --git a/0.2.1/inc/modules/guest/what-stats.php b/0.2.1/inc/modules/guest/what-stats.php index 0f6e8c46df..9182978f3f 100644 --- a/0.2.1/inc/modules/guest/what-stats.php +++ b/0.2.1/inc/modules/guest/what-stats.php @@ -34,22 +34,22 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point ADD_DESCR("guest", basename(__FILE__)); // Derterminate which stats we want and set mode and title for the link below stats block -if (!isset($_GET['mode'])) $_GET['mode'] = strtolower($CONFIG['gstats_mode']); +if (!isset($_GET['mode'])) $_GET['mode'] = strtolower($CONFIG['guest_stats']); switch ($_GET['mode']) { - case "members": $CONFIG['gstats_mode'] = "MEMBERS"; $lmode = "modules"; $ltitle = GUEST_STATS_MODULES; break; - case "modules": $CONFIG['gstats_mode'] = "MODULES"; $lmode = "members"; $ltitle = GUEST_STATS_MEMBERS; break; + case "members": $CONFIG['guest_stats'] = "MEMBERS"; $lmode = "modules"; $ltitle = GUEST_STATS_MODULES; break; + case "modules": $CONFIG['guest_stats'] = "MODULES"; $lmode = "members"; $ltitle = GUEST_STATS_MEMBERS; break; } OPEN_TABLE("100%", "guest_content", "center", "top"); -switch ($CONFIG['gstats_mode']) +switch ($CONFIG['guest_stats']) { case "MEMBERS": // Statistics about your members // Members yesterday / today online diff --git a/0.2.1/inc/modules/guest/what-top10.php b/0.2.1/inc/modules/guest/what-top10.php index 13a85e90ef..904ce45d6e 100644 --- a/0.2.1/inc/modules/guest/what-top10.php +++ b/0.2.1/inc/modules/guest/what-top10.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("top10")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/modules/guest/what-welcome.php b/0.2.1/inc/modules/guest/what-welcome.php index b35f25ac49..c77c81f212 100644 --- a/0.2.1/inc/modules/guest/what-welcome.php +++ b/0.2.1/inc/modules/guest/what-welcome.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point diff --git a/0.2.1/inc/modules/guest/what-wernis_portal.php b/0.2.1/inc/modules/guest/what-wernis_portal.php index f1983ca827..582c9d17cf 100644 --- a/0.2.1/inc/modules/guest/what-wernis_portal.php +++ b/0.2.1/inc/modules/guest/what-wernis_portal.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/index.php b/0.2.1/inc/modules/index.php index 1aaa36f966..82dacace52 100644 --- a/0.2.1/inc/modules/index.php +++ b/0.2.1/inc/modules/index.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!EXT_IS_ACTIVE("sql_patches", true)) diff --git a/0.2.1/inc/modules/loader.php b/0.2.1/inc/modules/loader.php index 763974b577..69e672bafd 100644 --- a/0.2.1/inc/modules/loader.php +++ b/0.2.1/inc/modules/loader.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/modules/login.php b/0.2.1/inc/modules/login.php index 098b6b9663..09d60b7dba 100644 --- a/0.2.1/inc/modules/login.php +++ b/0.2.1/inc/modules/login.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action- b/0.2.1/inc/modules/member/action- index 8ef862cee3..dfd0538542 100644 --- a/0.2.1/inc/modules/member/action- +++ b/0.2.1/inc/modules/member/action- @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-account.php b/0.2.1/inc/modules/member/action-account.php index bf2327bb65..e8e37a15d5 100644 --- a/0.2.1/inc/modules/member/action-account.php +++ b/0.2.1/inc/modules/member/action-account.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-bank.php b/0.2.1/inc/modules/member/action-bank.php index 2ca1405f64..d96a11c9f0 100644 --- a/0.2.1/inc/modules/member/action-bank.php +++ b/0.2.1/inc/modules/member/action-bank.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-extras.php b/0.2.1/inc/modules/member/action-extras.php index 4f929934c5..d3a602ae0d 100644 --- a/0.2.1/inc/modules/member/action-extras.php +++ b/0.2.1/inc/modules/member/action-extras.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-logout.php b/0.2.1/inc/modules/member/action-logout.php index 47d99efd71..c249c185be 100644 --- a/0.2.1/inc/modules/member/action-logout.php +++ b/0.2.1/inc/modules/member/action-logout.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-main.php b/0.2.1/inc/modules/member/action-main.php index 646d6767e6..8d4c6580c7 100644 --- a/0.2.1/inc/modules/member/action-main.php +++ b/0.2.1/inc/modules/member/action-main.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-order.php b/0.2.1/inc/modules/member/action-order.php index a2b493cadc..8e7002fc82 100644 --- a/0.2.1/inc/modules/member/action-order.php +++ b/0.2.1/inc/modules/member/action-order.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-rals.php b/0.2.1/inc/modules/member/action-rals.php index 1a8f44bf1b..5915fe5cc2 100644 --- a/0.2.1/inc/modules/member/action-rals.php +++ b/0.2.1/inc/modules/member/action-rals.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-stats.php b/0.2.1/inc/modules/member/action-stats.php index 20291741cc..0347d833b3 100644 --- a/0.2.1/inc/modules/member/action-stats.php +++ b/0.2.1/inc/modules/member/action-stats.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/action-themes.php b/0.2.1/inc/modules/member/action-themes.php index a895df83ef..86bc180797 100644 --- a/0.2.1/inc/modules/member/action-themes.php +++ b/0.2.1/inc/modules/member/action-themes.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what- b/0.2.1/inc/modules/member/what- index fa2983b230..684c6dca43 100644 --- a/0.2.1/inc/modules/member/what- +++ b/0.2.1/inc/modules/member/what- @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-bank_create.php b/0.2.1/inc/modules/member/what-bank_create.php index 3232766035..e4f89c2f56 100644 --- a/0.2.1/inc/modules/member/what-bank_create.php +++ b/0.2.1/inc/modules/member/what-bank_create.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-bank_deposit.php b/0.2.1/inc/modules/member/what-bank_deposit.php index 3232766035..e4f89c2f56 100644 --- a/0.2.1/inc/modules/member/what-bank_deposit.php +++ b/0.2.1/inc/modules/member/what-bank_deposit.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-bank_infos.php b/0.2.1/inc/modules/member/what-bank_infos.php index 3232766035..e4f89c2f56 100644 --- a/0.2.1/inc/modules/member/what-bank_infos.php +++ b/0.2.1/inc/modules/member/what-bank_infos.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-bank_output.php b/0.2.1/inc/modules/member/what-bank_output.php index 3232766035..e4f89c2f56 100644 --- a/0.2.1/inc/modules/member/what-bank_output.php +++ b/0.2.1/inc/modules/member/what-bank_output.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-bank_withdraw.php b/0.2.1/inc/modules/member/what-bank_withdraw.php index 3232766035..e4f89c2f56 100644 --- a/0.2.1/inc/modules/member/what-bank_withdraw.php +++ b/0.2.1/inc/modules/member/what-bank_withdraw.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-beg.php b/0.2.1/inc/modules/member/what-beg.php index ed11a3444b..6ed1350307 100644 --- a/0.2.1/inc/modules/member/what-beg.php +++ b/0.2.1/inc/modules/member/what-beg.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-beg2.php b/0.2.1/inc/modules/member/what-beg2.php index b92fc77583..6fc45776bb 100644 --- a/0.2.1/inc/modules/member/what-beg2.php +++ b/0.2.1/inc/modules/member/what-beg2.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-bonus.php b/0.2.1/inc/modules/member/what-bonus.php index 77aaa6ef84..f94b9934cf 100644 --- a/0.2.1/inc/modules/member/what-bonus.php +++ b/0.2.1/inc/modules/member/what-bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-categories.php b/0.2.1/inc/modules/member/what-categories.php index bffd2e41da..e7cdad1f35 100644 --- a/0.2.1/inc/modules/member/what-categories.php +++ b/0.2.1/inc/modules/member/what-categories.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-doubler.php b/0.2.1/inc/modules/member/what-doubler.php index 1ede1bec78..33d8b416ca 100644 --- a/0.2.1/inc/modules/member/what-doubler.php +++ b/0.2.1/inc/modules/member/what-doubler.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-guest.php b/0.2.1/inc/modules/member/what-guest.php index 93c5c9b407..8f3b80f32a 100644 --- a/0.2.1/inc/modules/member/what-guest.php +++ b/0.2.1/inc/modules/member/what-guest.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-holiday.php b/0.2.1/inc/modules/member/what-holiday.php index 34e271177a..83a9773232 100644 --- a/0.2.1/inc/modules/member/what-holiday.php +++ b/0.2.1/inc/modules/member/what-holiday.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-html_mail.php b/0.2.1/inc/modules/member/what-html_mail.php index 43e86aab83..a479a4f1e4 100644 --- a/0.2.1/inc/modules/member/what-html_mail.php +++ b/0.2.1/inc/modules/member/what-html_mail.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-logout.php b/0.2.1/inc/modules/member/what-logout.php index 7c69285169..459f69f5bf 100644 --- a/0.2.1/inc/modules/member/what-logout.php +++ b/0.2.1/inc/modules/member/what-logout.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-mydata.php b/0.2.1/inc/modules/member/what-mydata.php index ef73e41a06..b5547ec730 100644 --- a/0.2.1/inc/modules/member/what-mydata.php +++ b/0.2.1/inc/modules/member/what-mydata.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-newsletter.php b/0.2.1/inc/modules/member/what-newsletter.php index 2531ac7aa6..6a88ec91c4 100644 --- a/0.2.1/inc/modules/member/what-newsletter.php +++ b/0.2.1/inc/modules/member/what-newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-nickname.php b/0.2.1/inc/modules/member/what-nickname.php index 353f02ba16..de90b8928c 100644 --- a/0.2.1/inc/modules/member/what-nickname.php +++ b/0.2.1/inc/modules/member/what-nickname.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-order.php b/0.2.1/inc/modules/member/what-order.php index fb2137bccf..5b39004faf 100644 --- a/0.2.1/inc/modules/member/what-order.php +++ b/0.2.1/inc/modules/member/what-order.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) @@ -229,7 +229,7 @@ if (($HOLIDAY == "Y") && (GET_EXT_VERSION("holiday") >= "0.1.3")) { // Check if category and number of receivers is okay $ADD = ""; - if (($CONFIG['order_multi'] == "Y") && (!empty($_POST['zip']))) $ADD = "AND d.zip LIKE '".bigintval($_POST['zip'])."{PER}'"; + if (($CONFIG['order_multi_page'] == "Y") && (!empty($_POST['zip']))) $ADD = "AND d.zip LIKE '".bigintval($_POST['zip'])."{PER}'"; // Check for userids $result = SQL_QUERY_ESC("SELECT DISTINCT c.userid FROM "._MYSQL_PREFIX."_user_cats AS c @@ -515,7 +515,7 @@ LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__); $result_ver = SQL_QUERY_ESC("SELECT zip FROM "._MYSQL_PREFIX."_user_data WHERE userid=%d".$HTML." AND receive_mails > 0 AND status='CONFIRMED' LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__); - if ((SQL_NUMROWS($result_ver) == 1) && (!empty($_POST['zip'])) && ($CONFIG['order_multi'] == "Y")) + if ((SQL_NUMROWS($result_ver) == 1) && (!empty($_POST['zip'])) && ($CONFIG['order_multi_page'] == "Y")) { list($zip) = SQL_FETCHROW($result_ver); SQL_FREERESULT($result_ver); @@ -688,7 +688,7 @@ LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__); } // 01 2 21 12 2 23 443 3 3210 - if ((!empty($_POST['data'])) || (($CONFIG['order_multi'] == "N") && ((!IS_ADMIN()) && (!$HTML_EXT)))) + if ((!empty($_POST['data'])) || (($CONFIG['order_multi_page'] == "N") && ((!IS_ADMIN()) && (!$HTML_EXT)))) { // Pre-output categories $CAT = ""; @@ -751,7 +751,7 @@ LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__); if ($HTML_EXT) { // Add some content when html extension is active - if (($CONFIG['order_multi'] == "Y") || (IS_ADMIN())) $ADD = " \n"; + if (($CONFIG['order_multi_page'] == "Y") || (IS_ADMIN())) $ADD = " \n"; define('MEMBER_HTML_EXTENSION', LOAD_TEMPLATE("member_order-html_intro", true)); } else @@ -760,7 +760,7 @@ LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__); define('MEMBER_HTML_EXTENSION', ""); } // Do we want ZIP code or not? - if (($CONFIG['order_multi'] == "Y") || (IS_ADMIN())) + if (($CONFIG['order_multi_page'] == "Y") || (IS_ADMIN())) { // Yes $content = array( diff --git a/0.2.1/inc/modules/member/what-payout.php b/0.2.1/inc/modules/member/what-payout.php index 2d116a6d8c..0d5fa1688f 100644 --- a/0.2.1/inc/modules/member/what-payout.php +++ b/0.2.1/inc/modules/member/what-payout.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { // Don't call this directly! - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) { // Not logged in diff --git a/0.2.1/inc/modules/member/what-points.php b/0.2.1/inc/modules/member/what-points.php index 0991685f3d..662aa37b4a 100644 --- a/0.2.1/inc/modules/member/what-points.php +++ b/0.2.1/inc/modules/member/what-points.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-rallyes.php b/0.2.1/inc/modules/member/what-rallyes.php index 26cf978852..a801ad9286 100644 --- a/0.2.1/inc/modules/member/what-rallyes.php +++ b/0.2.1/inc/modules/member/what-rallyes.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-reflinks.php b/0.2.1/inc/modules/member/what-reflinks.php index a0b6c6149d..ecfd942e88 100644 --- a/0.2.1/inc/modules/member/what-reflinks.php +++ b/0.2.1/inc/modules/member/what-reflinks.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-stats.php b/0.2.1/inc/modules/member/what-stats.php index e1993611e0..07421b6af7 100644 --- a/0.2.1/inc/modules/member/what-stats.php +++ b/0.2.1/inc/modules/member/what-stats.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-support.php b/0.2.1/inc/modules/member/what-support.php index ec963261ad..dfaa41dec7 100644 --- a/0.2.1/inc/modules/member/what-support.php +++ b/0.2.1/inc/modules/member/what-support.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-themes.php b/0.2.1/inc/modules/member/what-themes.php index 79cf827193..b944752dec 100644 --- a/0.2.1/inc/modules/member/what-themes.php +++ b/0.2.1/inc/modules/member/what-themes.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-transfer.php b/0.2.1/inc/modules/member/what-transfer.php index 37d8cef468..b094fbb02e 100644 --- a/0.2.1/inc/modules/member/what-transfer.php +++ b/0.2.1/inc/modules/member/what-transfer.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-unconfirmed.php b/0.2.1/inc/modules/member/what-unconfirmed.php index f2af2174bb..2b21858f15 100644 --- a/0.2.1/inc/modules/member/what-unconfirmed.php +++ b/0.2.1/inc/modules/member/what-unconfirmed.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-welcome.php b/0.2.1/inc/modules/member/what-welcome.php index 6267c4a43b..2053a1fbde 100644 --- a/0.2.1/inc/modules/member/what-welcome.php +++ b/0.2.1/inc/modules/member/what-welcome.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif (!IS_LOGGED_IN()) diff --git a/0.2.1/inc/modules/member/what-wernis.php b/0.2.1/inc/modules/member/what-wernis.php index ef3eb7b6bb..4c5d7c7013 100644 --- a/0.2.1/inc/modules/member/what-wernis.php +++ b/0.2.1/inc/modules/member/what-wernis.php @@ -33,17 +33,25 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif (!IS_LOGGED_IN()) { +} elseif (!IS_LOGGED_IN()) { + // User is not logged in LOAD_URL(URL."/modules.php?module=index"); -} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) { +} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) { + // Extension "wernis" is not activated ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis"); return; } // Add description as navigation point ADD_DESCR("member", basename(__FILE__)); + +// Is the mode set (withdraw or payout) +if (!isset($_GET['mode'])) { + // Let the user choose what he wants to do + LOAD_TEMPLATE("member_wernis_mode_choose"); +} // ?> diff --git a/0.2.1/inc/modules/order.php b/0.2.1/inc/modules/order.php index 1f73ac9932..500ef4636b 100644 --- a/0.2.1/inc/modules/order.php +++ b/0.2.1/inc/modules/order.php @@ -35,7 +35,7 @@ $URL = ""; if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/modules/welcome.php b/0.2.1/inc/modules/welcome.php index ad6facd9e4..675ad75315 100644 --- a/0.2.1/inc/modules/welcome.php +++ b/0.2.1/inc/modules/welcome.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/monthly/monthly_ b/0.2.1/inc/monthly/monthly_ index 152f607d16..67c5a7f081 100644 --- a/0.2.1/inc/monthly/monthly_ +++ b/0.2.1/inc/monthly/monthly_ @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/monthly/monthly_beg.php b/0.2.1/inc/monthly/monthly_beg.php index a893fa3e92..a6a1ef17b5 100644 --- a/0.2.1/inc/monthly/monthly_beg.php +++ b/0.2.1/inc/monthly/monthly_beg.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/monthly/monthly_bonus.php b/0.2.1/inc/monthly/monthly_bonus.php index 1080cdd020..e8f07ce1cf 100644 --- a/0.2.1/inc/monthly/monthly_bonus.php +++ b/0.2.1/inc/monthly/monthly_bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("bonus")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/monthly/monthly_newsletter.php b/0.2.1/inc/monthly/monthly_newsletter.php index 4083cae8a0..4a39518139 100644 --- a/0.2.1/inc/monthly/monthly_newsletter.php +++ b/0.2.1/inc/monthly/monthly_newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("newsletter")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/monthly_newsletter.php b/0.2.1/inc/monthly_newsletter.php index be73d0357e..ca24fe1c5d 100644 --- a/0.2.1/inc/monthly_newsletter.php +++ b/0.2.1/inc/monthly_newsletter.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/mysql-connect.php b/0.2.1/inc/mysql-connect.php index c9a90d9e04..a17cea30cf 100644 --- a/0.2.1/inc/mysql-connect.php +++ b/0.2.1/inc/mysql-connect.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -92,56 +92,24 @@ if ((!mxchange_installing) && (mxchange_installed)) { // Connect to DB $link = SQL_CONNECT($MySQL['host'], $MySQL['login'], $MySQL['password'], __FILE__, __LINE__); - if ($link) + if ($link !== false) { $db = SQL_SELECT_DB($MySQL['dbase'], $link, __FILE__, __LINE__); - if ($db) + if ($db !== false) { - // Load configuration stuff 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 + // Load configuration stuff $result = SQL_QUERY("SELECT pass_len, points_register, points_ref, least_cats, check_double_email, check_double_pass, admin_notify, url_tlock, test_text, max_tlength, test_subj, autosend_active, max_send, url_blacklist, auto_purge, auto_purge_active, last_update, unconfirmed, profile_lock, online_timeout, mad_timestamp, mad_count, profile_update, send_prof_update, resend_profile_update, code_length, patch_level, patch_ctime, guest_stats, ref_payout, activate_xchange, order_multi_page, display_refid, ip_timeout, allow_direct_pay, config FROM "._MYSQL_PREFIX."_config WHERE config='0' LIMIT 1", __FILE__, __LINE__); - if (SQL_NUMROWS($result) == 1) - { + if (SQL_NUMROWS($result) == 1) { // Load data when previous SQL query did not fail - if ($result) $DUMMY = SQL_FETCHROW($result); - - // We copy the fetched data to the CONFIG array (or can you remember which number is for which config value??? ;-) ) - $CONFIG = array( - 'pass_len' => $DUMMY[0], // Minimum password length - 'points_register' => $DUMMY[1], // How many points the new member gets on registration - 'points_ref' => $DUMMY[2], // How many points a members gets on direct referral - 'least_cats' => $DUMMY[3], // Minimum number of categories to be selected - 'dbl_email' => $DUMMY[4], // Shall we check if the email address is already in out database? - 'dbl_pass' => $DUMMY[5], // Shall we - silencly - check if another user is using the same password? - 'admin_notify' => $DUMMY[6], // Shall I notify the admin if a member has changed his profile? - 'url_tlock' => $DUMMY[7], // Time in seconds to lock same ordered URL - 'test_text' => $DUMMY[8], // Shall I test the text against URLs? - 'max_tlength' => $DUMMY[9], // How long shall the ordered text be? - 'test_subj' => $DUMMY[10], // Shall I test the subject against URLs? - 'autosend_active' => $DUMMY[11], // Active / Deactive auto-send feature? (currently disabled feature) - 'max_send' => $DUMMY[12], // How many shall I send in one time from the pool? - 'url_blacklist' => $DUMMY[13], // Shall I enable or disable the URL black-list feature? - 'auto_purge' => $DUMMY[14], // How many days shall mails stay in stats table? (disabled!) - 'ap_active' => $DUMMY[15], // Shall auto-purge be enabled or disbaled? (disabled!) - 'last_update' => $DUMMY[16], // Last update when reset on database was - 'unconfirmed' => $DUMMY[17], // How many unconfirmed mails shall I allow to order new mails? - 'profile_lock' => $DUMMY[18], // Time in seconds to keep a member's profile write-protected after he changes something - 'online_timeout' => $DUMMY[19], // Session expiration in online list - 'profile_update' => $DUMMY[22], // How many seconds between profile update notification? - 'send_update' => $DUMMY[23], // Shall I send profile update notifications to your members? - 'prof_reupdate' => $DUMMY[24], // Seconds between re-notifications for profile update? - 'code_length' => $DUMMY[25], // Length of the code the member has to re-type - 'patch_level' => $DUMMY[26], // Installed patch level in database - 'patch_ctime' => $DUMMY[27], // Latest patch file - 'gstats_mode' => $DUMMY[28], // Guest statistics mode: About your members, module clicks or inactive - 'ref_payout' => $DUMMY[29], // After how many confirmed mails shall the referral bonus be paid? (0 = disable feature) - 'activate_system' => $DUMMY[30], // Automatic activation of your exchange after x days (0 = disable feature) - 'order_multi' => $DUMMY[31], // Shall I activate multiple pages in order form? This will enable sending by ZIP code - 'display_refid' => $DUMMY[32], // Shall I display the refid in registration form or not? - 'ip_timeout' => $DUMMY[33], // Timeout for same IP number in registration form - 'direct_pay' => $DUMMY[34], // Shall I pay "clicked" points directly or not? Not is default. - ); - unset($DUMMY); + if (!$result) { + // Something went wrong + ADD_FATAL(FATAL_CANNOT_LOAD_CONFIG); + return; + } + + // Load the configuration + $CONFIG = array_merge($CONFIG, SQL_FETCHARRAY($result)); // Initialize include-file-pool $INC_POOL = array(); @@ -234,7 +202,7 @@ if ((!mxchange_installing) && (mxchange_installed)) $dummy = CHECK_MODULE($GLOBALS['module']); if ($dummy == "done") COUNT_MODULE($GLOBALS['module']); unset($dummy); - if ($CONFIG['activate_system'] > 0) ACTIVATE_EXCHANGE(); + if ($CONFIG['activate_xchange'] > 0) activateExchange(); } else { diff --git a/0.2.1/inc/mysql-manager.php b/0.2.1/inc/mysql-manager.php index 2c7aedc35a..9174ad2ead 100644 --- a/0.2.1/inc/mysql-manager.php +++ b/0.2.1/inc/mysql-manager.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -1450,12 +1450,11 @@ function ADD_OPTION_LINES($table, $id, $name, $default="",$special="",$where="") // Return - hopefully - the requested data return $ret; } -// -function ACTIVATE_EXCHANGE() -{ +// Aiut +function activateExchange() { global $CONFIG; $result = SQL_QUERY("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE status='CONFIRMED' AND max_mails > 0", __FILE__, __LINE__); - if (SQL_NUMROWS($result) >= $CONFIG['activate_system']) + if (SQL_NUMROWS($result) >= $CONFIG['activate_xchange']) { // Free memory SQL_FREERESULT($result); diff --git a/0.2.1/inc/patch-system.php b/0.2.1/inc/patch-system.php index 3ae220ed2d..a4e844fe68 100644 --- a/0.2.1/inc/patch-system.php +++ b/0.2.1/inc/patch-system.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/pool-update.php b/0.2.1/inc/pool-update.php index 8b5ac43844..c46f422072 100644 --- a/0.2.1/inc/pool-update.php +++ b/0.2.1/inc/pool-update.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/profile-updte.php b/0.2.1/inc/profile-updte.php index 179e0a3ace..42854a435e 100644 --- a/0.2.1/inc/profile-updte.php +++ b/0.2.1/inc/profile-updte.php @@ -35,15 +35,15 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } -if (($CONFIG['send_update'] == "Y") && ($CONFIG['profile_update'] > 0) && ($CONFIG['prof_reupdate'])) +if (($CONFIG['send_prof_update'] == "Y") && ($CONFIG['profile_update'] > 0) && ($CONFIG['resend_profile_update'])) { // Ok, we shall send update notifications... $TIMEOUT = bigintval(time() - $CONFIG['profile_update']); - $TIMEOUT2 = bigintval(time() - $CONFIG['prof_reupdate']); + $TIMEOUT2 = bigintval(time() - $CONFIG['resend_profile_update']); // Load personal data 0 1 2 3 4 5 6 $result = SQL_QUERY_ESC("SELECT userid, email, sex, surname, family, last_update, joined diff --git a/0.2.1/inc/reset/reset_ b/0.2.1/inc/reset/reset_ index fb3a1a29b4..6d6f0c0041 100644 --- a/0.2.1/inc/reset/reset_ +++ b/0.2.1/inc/reset/reset_ @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/reset/reset_beg.php b/0.2.1/inc/reset/reset_beg.php index ec489cd299..908deb6d2f 100644 --- a/0.2.1/inc/reset/reset_beg.php +++ b/0.2.1/inc/reset/reset_beg.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/reset/reset_bonus.php b/0.2.1/inc/reset/reset_bonus.php index 23d32cd745..d0809b0a67 100644 --- a/0.2.1/inc/reset/reset_bonus.php +++ b/0.2.1/inc/reset/reset_bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("bonus")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/reset/reset_daily.php b/0.2.1/inc/reset/reset_daily.php index c239de93ea..312a649f37 100644 --- a/0.2.1/inc/reset/reset_daily.php +++ b/0.2.1/inc/reset/reset_daily.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/reset/reset_engine.php b/0.2.1/inc/reset/reset_engine.php index eb4d3359b6..eed4be5587 100644 --- a/0.2.1/inc/reset/reset_engine.php +++ b/0.2.1/inc/reset/reset_engine.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("engine")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/reset/reset_holiday.php b/0.2.1/inc/reset/reset_holiday.php index 25306fc9c0..59072f4218 100644 --- a/0.2.1/inc/reset/reset_holiday.php +++ b/0.2.1/inc/reset/reset_holiday.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } elseif ((!EXT_IS_ACTIVE("holiday")) && (!IS_ADMIN())) diff --git a/0.2.1/inc/session.php b/0.2.1/inc/session.php index 6a2910dcbe..72d3474243 100644 --- a/0.2.1/inc/session.php +++ b/0.2.1/inc/session.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/sql_error.php b/0.2.1/inc/sql_error.php index 81695b0a11..80ad3d5b9d 100644 --- a/0.2.1/inc/sql_error.php +++ b/0.2.1/inc/sql_error.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/stats_bonus.php b/0.2.1/inc/stats_bonus.php index 6f63ca7c8c..138e157fb0 100644 --- a/0.2.1/inc/stats_bonus.php +++ b/0.2.1/inc/stats_bonus.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/stylesheet.php b/0.2.1/inc/stylesheet.php index 424bcf0c87..f77419cf2e 100644 --- a/0.2.1/inc/stylesheet.php +++ b/0.2.1/inc/stylesheet.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/inc/template.php b/0.2.1/inc/template.php deleted file mode 100644 index 85660d41b0..0000000000 --- a/0.2.1/inc/template.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/0.2.1/inc/theme-manager.php b/0.2.1/inc/theme-manager.php index d464448f14..58e059157f 100644 --- a/0.2.1/inc/theme-manager.php +++ b/0.2.1/inc/theme-manager.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/index.php b/0.2.1/index.php index fb98fd1dcf..05dcbe8428 100644 --- a/0.2.1/index.php +++ b/0.2.1/index.php @@ -38,8 +38,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "index"; diff --git a/0.2.1/install.php b/0.2.1/install.php index 1566acdb69..bac5820b55 100644 --- a/0.2.1/install.php +++ b/0.2.1/install.php @@ -54,8 +54,8 @@ require ("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "install"; diff --git a/0.2.1/lead-confirm.php b/0.2.1/lead-confirm.php index fd99b48984..a3c3638a19 100644 --- a/0.2.1/lead-confirm.php +++ b/0.2.1/lead-confirm.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "lead-confirm"; diff --git a/0.2.1/login.php b/0.2.1/login.php index 1d157a65e5..b8682bd4b8 100644 --- a/0.2.1/login.php +++ b/0.2.1/login.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "login"; diff --git a/0.2.1/mailid.php b/0.2.1/mailid.php index b48ee7bafa..268419ef12 100644 --- a/0.2.1/mailid.php +++ b/0.2.1/mailid.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Tell everyone we are in this module $GLOBALS['module'] = "mailid"; $CSS = -1; diff --git a/0.2.1/mailid_top.php b/0.2.1/mailid_top.php index a653e8e427..8338d98aae 100644 --- a/0.2.1/mailid_top.php +++ b/0.2.1/mailid_top.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Tell everyone we are in this module $GLOBALS['module'] = "mailid"; $CSS = "0"; @@ -214,7 +214,7 @@ if (defined('mxchange_installed') && (mxchange_installed)) if (bigintval($_POST['gfx_check']) == $img_code) { // Right code entered add points and remove entry - if (($ref_pay > 0) && ($CONFIG['direct_pay'] == "N")) + if (($ref_pay > 0) && ($CONFIG['allow_direct_pay'] == "N")) { // Don't add points over the referral system $locked = true; diff --git a/0.2.1/modules.php b/0.2.1/modules.php index 3950e6df28..f700cb43f3 100644 --- a/0.2.1/modules.php +++ b/0.2.1/modules.php @@ -42,8 +42,8 @@ global $what, $action; $CSS = 0; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['userid'] = 0; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Secure the module name (very important line!) $GLOBALS['module'] = htmlentities(strip_tags($_GET['module']), ENT_QUOTES); @@ -126,7 +126,7 @@ if ((!empty($CONFIG['maintenance'])) && ($CONFIG['maintenance'] == "Y") && (!IS_ break; case "404": - ADD_FATAL(LLANG_MOD_REG_404_1.$GLOBALS['module'].LANG_MOD_REG_404_2); + ADD_FATAL(LANG_MOD_REG_404_1.$GLOBALS['module'].LANG_MOD_REG_404_2); break; case "locked": diff --git a/0.2.1/ref.php b/0.2.1/ref.php index 6b2502cbac..bc65a42221 100644 --- a/0.2.1/ref.php +++ b/0.2.1/ref.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "ref"; $CSS = -1; diff --git a/0.2.1/show_bonus.php b/0.2.1/show_bonus.php index 8e1ed5f24d..ebf4acd774 100644 --- a/0.2.1/show_bonus.php +++ b/0.2.1/show_bonus.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set this because we have no module in URI $GLOBALS['module'] = "show_bonus"; $CSS = 0; diff --git a/0.2.1/templates/de/html/ext/ext_wernis.tpl b/0.2.1/templates/de/html/ext/ext_wernis.tpl index 2715a29f1e..41c8351639 100644 --- a/0.2.1/templates/de/html/ext/ext_wernis.tpl +++ b/0.2.1/templates/de/html/ext/ext_wernis.tpl @@ -1 +1 @@ -Mit dieser Erweiterung können Sie Ihren Mitgliedern eine Auszahlung ihrer Internet-Währung Wernis auf ihr WDS66-Hauptaccount überweisen lassen. Sie als Wernis-Anbieter brauchen dazu selbstverständlich ein Wernis-Account mit einem API-Account. Mehr dazu auf www.wds66.com +Mit dieser Erweiterung können Sie Ihren Mitgliedern eine Auszahlung ihrer Internet-Währung Wernis auf ihr WDS66-Hauptaccount überweisen lassen. Sie als Wernis-Anbieter brauchen dazu selbstverständlich ein Wernis-Account mit einem API-Account. Mehr dazu auf www.wds66.com. Damit Ihr System einheitlicher ist, sollten Sie unter Sonstige Einstellungen die Währung Ihres {!MT_WORD2!} auf Wernis umstellen. \ No newline at end of file diff --git a/0.2.1/templates/de/html/member/member_wernis_mode_choose.tpl b/0.2.1/templates/de/html/member/member_wernis_mode_choose.tpl new file mode 100644 index 0000000000..c3073fb45a --- /dev/null +++ b/0.2.1/templates/de/html/member/member_wernis_mode_choose.tpl @@ -0,0 +1,19 @@ + + + + + + + + +
+ {--MEMBER_WERNIS_MODE_CHOOSE--} +
+
{--MEMBER_WERNIS_MODE_WITHDRAW--}
+ +
+ +
{--MEMBER_WERNIS_MODE_PAYOUT--}
+
+
diff --git a/0.2.1/theme/business/theme.php b/0.2.1/theme/business/theme.php index d469ffe7b3..e9dee3203c 100644 --- a/0.2.1/theme/business/theme.php +++ b/0.2.1/theme/business/theme.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/theme/default/theme.php b/0.2.1/theme/default/theme.php index d81d21c586..ce955fd49b 100644 --- a/0.2.1/theme/default/theme.php +++ b/0.2.1/theme/default/theme.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/theme/desert/theme.php b/0.2.1/theme/desert/theme.php index 87144afe99..0d3b8e5580 100644 --- a/0.2.1/theme/desert/theme.php +++ b/0.2.1/theme/desert/theme.php @@ -34,7 +34,7 @@ // Some security stuff... if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } diff --git a/0.2.1/view.php b/0.2.1/view.php index 63eb74a5f9..26435d8f17 100644 --- a/0.2.1/view.php +++ b/0.2.1/view.php @@ -37,8 +37,8 @@ require_once("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; -if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action'])); -if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what'])); +if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']); +if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); // Set module $GLOBALS['module'] = "view"; $CSS = -1; -- 2.39.5