Plugin Directory

Changeset 491960


Ignore:
Timestamp:
01/19/2012 07:40:06 AM (14 years ago)
Author:
camaleo
Message:

reduced overload on banner display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • myeasyhider/trunk/inc/myEASYcom.php

    r486477 r491960  
    33 * myEASYcom.php: common functions for the myEASYwp plugins serie
    44 *
    5  * Version: 1.3.1 - 3 November 2011
     5 * Version: 1.3 - 23 July 2011
    66 * Author: Ugo Grandolini aka "Camaleo"
    77 * Support site: http://myeasywp.com
    88 *
    9  * Copyright (C) 2010,2011 Ugo Grandolini  (email : [email protected])
     9 * Copyright (C) 2010 Ugo Grandolini  (email : [email protected])
    1010*/
    1111
     
    5959        ;
    6060*/
    61     ?><div align="right" style="margin:12px 18px 0 0;">
     61    ?><div align="right" style="margin:12px 0 0 0;">
    6262        <span id="mc-response"><?php
    6363
     
    104104         * @since 1.0.1
    105105         */
    106         $inp = array("\r\n","\n","\r","\'");
     106        $inp = array("\r\n","\n","\r");
    107107
    108108        if($usebr) {
    109109
    110             $out = array('<br />','<br />','<br />',"'");
     110            $out = array('<br />','<br />','<br />');
    111111        }
    112112        else {
    113113
    114             $out = array('','','',"'");
     114            $out = array('','','');
    115115        }
    116116
     
    133133         * display the advertisment stuff
    134134         */
    135         $html = measycom_get_adcontents('/service/myads-1.1.php?p='.$ref_code.'&u='.$_SERVER['SERVER_NAME']);
     135//      $html = measycom_get_adcontents('/service/myads-1.1.php?p='.$ref_code.'&u='.$_SERVER['SERVER_NAME']);
     136        $html = measycom_get_adcontents('/service/ad-'.$ref_code.'.html');
    136137
    137138        echo '<div style="width:auto;height:auto;background:transparent;padding:0;margin:8px 0 0 0;">'
     
    152153         * log usage statistic
    153154         */
    154         measycom_get_adcontents('/service/myads-1.1.php?p='.$ref_code.'&u='.$_SERVER['SERVER_NAME'], true);
     155//      measycom_get_adcontents('/service/myads-1.1.php?p='.$ref_code.'&u='.$_SERVER['SERVER_NAME'], true);
     156        measycom_get_adcontents('/service/ad-'.$ref_code.'.html', true);
    155157//echo measycom_get_adcontents('/service/myads-1.1.php?p='.$ref_code.'&u='.$_SERVER['SERVER_NAME']);
    156158    }
     
    815817            if($this->ref_family==false) {
    816818
    817                 return $this->get_data('/service/myads-1.1.php?p='.$this->ref_code.'&u='.$_SERVER['SERVER_NAME']);
     819//              return $this->get_data('/service/myads-1.1.php?p='.$this->ref_code.'&u='.$_SERVER['SERVER_NAME']);
     820                return $this->get_data('/service/ad-'.$this->ref_code.'.html');
    818821            }
    819822            else {
    820823
    821                 return $this->get_data('/service/myads-1.1.php?p='.$this->ref_code.'&u='.$_SERVER['SERVER_NAME'], true);
     824//              return $this->get_data('/service/myads-1.1.php?p='.$this->ref_code.'&u='.$_SERVER['SERVER_NAME'], true);
     825                return $this->get_data('/service/ad-'.$this->ref_code.'.html', true);
    822826            }
    823827        }
     
    854858                 * HTTP ERROR
    855859                 */
    856                 $html = 'Connection error measycom_get_adcontents(' . $domain_path . ')';
     860                $html = 'Connection error myeasycom_get_adcontents(' . $domain_path . ')';
    857861            }
    858862            else {
Note: See TracChangeset for help on using the changeset viewer.