From 65a7fdc942d043dc442f800c54885b9fb8c54d91 Mon Sep 17 00:00:00 2001 From: gburton Date: Tue, 16 Aug 2016 17:44:42 +0100 Subject: [PATCH] Hardcode Paths --- account.php | 8 ++--- account_edit.php | 8 ++--- account_history.php | 8 ++--- account_history_info.php | 12 +++---- account_newsletters.php | 8 ++--- account_notifications.php | 8 ++--- account_password.php | 8 ++--- address_book.php | 8 ++--- address_book_process.php | 10 +++--- advanced_search.php | 8 ++--- advanced_search_result.php | 10 +++--- checkout_confirmation.php | 16 ++++----- checkout_payment.php | 12 +++---- checkout_payment_address.php | 10 +++--- checkout_process.php | 12 +++---- checkout_shipping.php | 14 ++++---- checkout_shipping_address.php | 12 +++---- checkout_success.php | 8 ++--- conditions.php | 8 ++--- contact_us.php | 8 ++--- cookie_usage.php | 8 ++--- create_account.php | 8 ++--- create_account_success.php | 8 ++--- download.php | 10 +++--- .../content/account/braintree/cards.php | 12 +++---- .../content/account/sage_pay/cards.php | 12 +++---- ext/modules/content/account/set_password.php | 8 ++--- ext/modules/content/account/stripe/cards.php | 12 +++---- ext/modules/payment/inpay/pb_handler.php | 4 +-- ext/modules/payment/ipayment/callback_cc.php | 2 +- ext/modules/payment/ipayment/callback_elv.php | 2 +- ext/modules/payment/ipayment/callback_pp.php | 2 +- ext/modules/payment/moneybookers/checkout.php | 16 ++++----- ext/modules/payment/paypal/express.php | 28 +++++++-------- .../payment/paypal/express_payflow.php | 20 +++++------ .../payment/paypal/hosted_checkout.php | 2 +- ext/modules/payment/paypal/pro_hosted_ipn.php | 2 +- ext/modules/payment/paypal/standard_ipn.php | 2 +- ext/modules/payment/sage_pay/checkout.php | 16 ++++----- .../payment/sage_pay/direct_3dauth.php | 6 ++-- ext/modules/payment/sage_pay/redirect.php | 4 +-- ext/modules/payment/sage_pay/server.php | 2 +- includes/application_top.php | 34 +++++++++---------- includes/classes/action_recorder.php | 6 ++-- includes/classes/boxes.php | 12 +++---- includes/classes/order_total.php | 4 +-- includes/classes/osc_template.php | 20 +++++------ includes/classes/payment.php | 4 +-- includes/classes/shipping.php | 4 +-- includes/configure.php | 8 ----- includes/functions/banner.php | 2 +- includes/functions/cache.php | 6 ++-- includes/functions/general.php | 2 +- includes/functions/html_output.php | 8 ++--- includes/functions/password_funcs.php | 4 +-- includes/modules/also_purchased_products.php | 2 +- includes/modules/boxes/bm_best_sellers.php | 2 +- includes/modules/boxes/bm_card_acceptance.php | 8 ++--- includes/modules/boxes/bm_categories.php | 2 +- includes/modules/boxes/bm_currencies.php | 2 +- includes/modules/boxes/bm_information.php | 2 +- includes/modules/boxes/bm_languages.php | 6 ++-- .../modules/boxes/bm_manufacturer_info.php | 4 +-- includes/modules/boxes/bm_manufacturers.php | 2 +- includes/modules/boxes/bm_order_history.php | 2 +- .../boxes/bm_product_notifications.php | 2 +- .../boxes/bm_product_social_bookmarks.php | 6 ++-- includes/modules/boxes/bm_reviews.php | 4 +-- includes/modules/boxes/bm_search.php | 2 +- includes/modules/boxes/bm_shopping_cart.php | 2 +- includes/modules/boxes/bm_specials.php | 2 +- includes/modules/boxes/bm_whats_new.php | 2 +- includes/modules/boxes/templates/specials.php | 2 +- .../modules/boxes/templates/whats_new.php | 2 +- .../checkout_success/cm_cs_downloads.php | 2 +- .../cm_cs_product_notifications.php | 2 +- .../checkout_success/cm_cs_thank_you.php | 2 +- .../content/footer/cm_footer_account.php | 2 +- .../content/footer/cm_footer_contact_us.php | 2 +- .../footer/cm_footer_information_links.php | 2 +- .../modules/content/footer/cm_footer_text.php | 2 +- .../cm_footer_extra_copyright.php | 2 +- .../footer_suffix/cm_footer_extra_icons.php | 2 +- .../content/header/cm_header_breadcrumb.php | 2 +- .../content/header/cm_header_buttons.php | 2 +- .../modules/content/header/cm_header_logo.php | 2 +- .../content/header/cm_header_messagestack.php | 2 +- .../content/header/cm_header_search.php | 2 +- .../modules/content/header/templates/logo.php | 2 +- .../content/index/cm_i_customer_greeting.php | 2 +- .../content/index/cm_i_new_products.php | 2 +- .../modules/content/index/cm_i_text_main.php | 2 +- .../content/index/cm_i_upcoming_products.php | 2 +- .../content/index/templates/new_products.php | 2 +- .../cm_in_category_description.php | 2 +- .../index_nested/cm_in_category_listing.php | 2 +- .../index_nested/cm_in_new_products.php | 2 +- .../templates/category_listing.php | 2 +- .../templates/category_new_products.php | 2 +- .../content/login/cm_create_account_link.php | 2 +- .../modules/content/login/cm_login_form.php | 2 +- .../modules/content/login/cm_paypal_login.php | 6 ++-- .../modules/content/navigation/cm_navbar.php | 6 ++-- .../content/product_info/cm_pi_gtin.php | 2 +- .../content/product_info/cm_pi_reviews.php | 2 +- .../ht_google_adwords_conversion.php | 2 +- .../modules/header_tags/ht_mailchimp_360.php | 4 +-- .../header_tags/ht_product_opengraph.php | 2 +- .../header_tags/ht_twitter_product_card.php | 2 +- .../modules/navbar_modules/nb_account.php | 2 +- includes/modules/navbar_modules/nb_brand.php | 2 +- .../modules/navbar_modules/nb_currencies.php | 2 +- .../navbar_modules/nb_hamburger_button.php | 2 +- includes/modules/navbar_modules/nb_home.php | 2 +- .../modules/navbar_modules/nb_languages.php | 2 +- .../navbar_modules/nb_new_products.php | 2 +- .../modules/navbar_modules/nb_reviews.php | 2 +- .../navbar_modules/nb_shopping_cart.php | 2 +- .../navbar_modules/nb_special_offers.php | 2 +- .../navbar_modules/nb_testimonials.php | 2 +- .../navbar_modules/templates/languages.php | 4 +-- includes/modules/new_products.php | 2 +- includes/modules/payment/braintree_cc.php | 4 +-- includes/modules/payment/psigate.php | 2 +- includes/modules/product_listing.php | 4 +-- includes/modules/shipping/usps.php | 2 +- includes/modules/social_bookmarks/sb_digg.php | 2 +- .../modules/social_bookmarks/sb_email.php | 2 +- .../modules/social_bookmarks/sb_facebook.php | 2 +- .../social_bookmarks/sb_google_plus_one.php | 2 +- .../social_bookmarks/sb_google_plus_share.php | 2 +- .../modules/social_bookmarks/sb_pinterest.php | 2 +- .../modules/social_bookmarks/sb_twitter.php | 2 +- includes/template_bottom.php | 2 +- includes/template_top.php | 2 +- index.php | 10 +++--- install/templates/pages/install_4.php | 15 +------- login.php | 8 ++--- logoff.php | 8 ++--- password_forgotten.php | 8 ++--- password_reset.php | 8 ++--- privacy.php | 8 ++--- product_info.php | 16 ++++----- product_reviews.php | 10 +++--- product_reviews_write.php | 10 +++--- products_new.php | 10 +++--- reviews.php | 10 +++--- shipping.php | 8 ++--- shopping_cart.php | 12 +++---- specials.php | 10 +++--- ssl_check.php | 8 ++--- tell_a_friend.php | 8 ++--- testimonials.php | 8 ++--- 153 files changed, 422 insertions(+), 443 deletions(-) diff --git a/account.php b/account.php index 66a22d40d..b0087a02c 100644 --- a/account.php +++ b/account.php @@ -17,11 +17,11 @@ tep_redirect(tep_href_link('login.php', '', 'SSL')); } - require(DIR_WS_LANGUAGES . $language . '/account.php'); + require('includes/languages/' . $language . '/account.php'); $breadcrumb->add(NAVBAR_TITLE, tep_href_link('account.php', '', 'SSL')); - require(DIR_WS_INCLUDES . 'template_top.php'); + require('includes/template_top.php'); ?>