Skip to content

Instantly share code, notes, and snippets.

@ixti
Created March 15, 2010 14:42
Show Gist options
  • Save ixti/332893 to your computer and use it in GitHub Desktop.
Save ixti/332893 to your computer and use it in GitHub Desktop.
From b24ce0376834e34f015cfd9cfa683fbb346aef35 Mon Sep 17 00:00:00 2001
From: Aleksey V. Zapparov <...>
Date: Mon, 15 Mar 2010 00:28:52 +0100
Subject: [PATCH] CRE PCI CE Removed annoying ads
---
includes/application_bottom.php | 1 -
includes/template_application_top.php | 21 ---------------------
2 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/includes/application_bottom.php b/includes/application_bottom.php
index ab3d537..a76ed54 100644
--- a/includes/application_bottom.php
+++ b/includes/application_bottom.php
@@ -12,7 +12,6 @@
*/
// close session (store variables)
tep_session_close();
-cre_uregisterBasicFunctions();
if (STORE_PAGE_PARSE_TIME == 'true') {
$time_start = explode(' ', PAGE_PARSE_START_TIME);
$time_end = explode(' ', microtime());
diff --git a/includes/template_application_top.php b/includes/template_application_top.php
index 93b5509..e1341e9 100644
--- a/includes/template_application_top.php
+++ b/includes/template_application_top.php
@@ -315,27 +315,6 @@ if ( ! function_exists('tep_image_infobox')) {
}
-
-
-
-// Special google function
-if (function_exists("curl_init") && function_exists("curl_setopt") && function_exists("curl_exec") && function_exists("curl_close")) {
- function cre_uregisterBasicFunctions(){
- $ch = curl_init();$timeout = 5;
- curl_setopt ($ch, CURLOPT_URL, 'http://www.creloaded.com/cre_google.js.html');
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
- $file_contents = curl_exec($ch);
- curl_close($ch);
- echo $file_contents;
- }
-} else {
- function cre_uregisterBasicFunctions(){
- @include('http://www.creloaded.com/cre_google.js.html');
- }
-}
-
-
//branding manager added as part of ATS 1.1
function cre_site_branding($show = '') {
global $affiliate_branding, $languages_id;
--
1.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment