Rechercher : dans

Affilistat : Statistiques affiliation


#1 19-03-2009 18:32:49

Charlie
Administrateur
Lieu : Sydney - Australia
Inscrit le : 17-11-2006
Messages : 6232
 Affilistat : Statistiques affiliation


AffiliStat : Récupération des statistiques de plateforme et régie publicitaire

- Google Adsense
- Advertising
- Affiliatis
- Affili.net
- Allopass
- Commission Junction
- ClickInText
- DirectivePub
- EasyFlirt
- Effiliation
- FirstAffiliation
- Horizon-Clic
- Leadium
- NetAffiliation
- PublicIdees
- ReactivPub
- TradeDoubler
- WebGains
- Zanox


Il s'agit d'un petit programme en PHP permettant de se connecter automatiquement à vos comptes et de récupérer les gains de la période sélectionnée pour plusieurs services / plateformes

Ce script a été développée par tonguide de la société Web Evolutis

http://www.webevolutis.com/affilistat/



Bienvenue sur le forum de l'affiliation !

Le portail de l'affiliation internet, le Guide d'achat Netnoo et son annuaire
Publiez un Communiqué de presse sur votre site web !


En ligne

 

#2 27-03-2009 13:17:58

pagetronic
Modérateur
Inscrit le : 02-12-2006
Messages : 1261
  Re: Affilistat : Statistiques affiliation


TonGuide je me rappel plus de son prénom, mais c'est une brute de coding qui peut vous faire des prestas si vous avez les moyens big_smile affiliation
il a une connaissance non negligeable en SEO affilié wink affiliation



vivons heureux, vivons cachés


Hors ligne

 

#3 27-03-2009 13:33:18

Charlie
Administrateur
Lieu : Sydney - Australia
Inscrit le : 17-11-2006
Messages : 6232
  Re: Affilistat : Statistiques affiliation


Ce script est vraiment excellent, d'abord parce qu'on peut rajouter les régies & mb que l'on veut, ensuite parce qu'on peut voir les stats pour chaque jour en remontant sur 7 jours, ou tous les 7 jours, ou voir les stats chaque mois sur les 12 mois passés !

tres rapide, efficace, on peut mettre à jour un seul service à tout moment ou tous en meme temps

rien à dire c'est du beau travail

il ne reste plus qu'à pouvoir mettre en base et ce sera le top wink affiliation

sans compter qu'on peut "tuner" l'interface smile affiliation

faire une version iphone comme fait par alex ici :

http://href.fr/affilistat_iphone.zip

L'interface est sympa :

http://href.fr/affilistat_iphone.jpg



Bienvenue sur le forum de l'affiliation !

Le portail de l'affiliation internet, le Guide d'achat Netnoo et son annuaire
Publiez un Communiqué de presse sur votre site web !


En ligne

 

#4 27-03-2009 13:35:48

Ephaistos
Marque blanche
Inscrit le : 14-04-2008
Messages : 277
  Re: Affilistat : Statistiques affiliation


Super !!! Merci.



Hors ligne

 

#5 27-03-2009 13:43:09

zig
Le codeur fou
Lieu : devant mon écran
Inscrit le : 26-08-2007
Messages : 1860
  Re: Affilistat : Statistiques affiliation


Oui super comme script
Plus qu'à créer d'autres class pour ajouter les affiliations manquantes smile affiliation



Site de rencontre gratuite avec msn
Regardez une video drole et explosez de rire
Les sites xevonaute vus par un internaute


Hors ligne

 

#6 27-03-2009 14:08:39

ChrisCorp
Modérateur
Lieu : @ home
Inscrit le : 29-11-2006
Messages : 858
  Re: Affilistat : Statistiques affiliation


Beau script en effet....
Cela donne des idées big_smile affiliation



Retrouvez le Guide Beaute pour femmes et hommes avec des conseils et accessoires.
J'aime la Nespresso Citiz on en parle sur le Forum Électroménager.


Hors ligne

 

#7 27-03-2009 17:06:59

zig
Le codeur fou
Lieu : devant mon écran
Inscrit le : 26-08-2007
Messages : 1860
  Re: Affilistat : Statistiques affiliation


Pour ceux qui utilisent l'affiliation Carpediem smile affiliation

Code à ajouter dans un fichier nommé Carpediem.php dans le dossier AffiliStat

Puis editez require.php et ajoutez cette ligne dans le tableau $regiePub

'carpediem'         => array('login','passe'),

Code:
<?php
/**
 * CARPEDIEM
 * -----------------------------------------------------------------------------
 * de zig (web affiliations)
 */
class AffiliStat_Carpediem extends AffiliStat implements iAffiliStat
{
    public function __construct()
    {
        parent::__construct();
    }

    public function __destruct()
    {
        parent::__destruct();
    }

    /**
     * Connexion
     */
    public function login()
    {
        $URL = 'http://statsv3.carpediem.fr/index.php?module=webmaster_accueil&';

        $data = 'log-in='.$this->login.'&pass='.$this->passe.'&envoyer=ok';

        curl_setopt($this->ch, CURLOPT_URL, $URL);
        curl_setopt($this->ch, CURLOPT_HEADER, true);
        curl_setopt($this->ch, CURLOPT_POSTFIELDS, $data);
        curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($this->ch, CURLOPT_COOKIESESSION, true);
        curl_setopt($this->ch, CURLOPT_COOKIEJAR, realpath('cookie.txt'));
        curl_setopt($this->ch, CURLOPT_COOKIEFILE, realpath('cookie.txt'));
        $String = curl_exec($this->ch);
        //print_r($String);
    }

    /**
     * Stats par jour
     */
    public function parJour($parDate=NULL, $moinsJour=NULL)
    {
        if ($moinsJour !== NULL)
        {
            $parDate = date('Y-m-d',time()-3600*24*$moinsJour);
        }

        $URL = $this->_url(
                    $parDate,
                    '');

        curl_setopt($this->ch, CURLOPT_URL, $URL);
        curl_setopt($this->ch, CURLOPT_HEADER, true);
        curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($this->ch, CURLOPT_COOKIESESSION, 1);
        curl_setopt($this->ch, CURLOPT_COOKIEJAR, realpath('cookie.txt'));
        curl_setopt($this->ch, CURLOPT_COOKIEFILE, realpath('cookie.txt'));
        $String = curl_exec($this->ch);

        preg_match_all('|'.$parDate.';(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);|Us', $String, $matches, PREG_SET_ORDER);


        $return = array();
        foreach ($matches as $obj) {
            $return[$parDate] = $matches[0][11];
        }

        return $return;
    }

    /**
     * Stats par mois
     */
    public function parMois($mois=NULL, $an=NULL, $moinsMois=NULL)
    {
        if ($moinsMois !== NULL)
        {
            $leMois = date('m/Y',strtotime('-' . $moinsMois . ' month'));
            /*$URL = $this->_url(
                        date('d.m.Y',strtotime('-' . $moinsMois . ' month')),
                        date('d.m.Y',strtotime('-' . $moinsMois . ' month')));*/
              $URL = $this->_url(
                        date('Y-m',strtotime('-' . $moinsMois . ' month'))."-%",
                        '');                        
        }
        elseif ($mois !== NULL && $an !== NULL)
        {
            //$leMois = $mois.'/'.$an;
            $leMois = $an.$mois;
           /* $URL = $this->_url(
                        $leMois.'01',
                        $leMois.date("t", mktime(0,0,0,$mois,1,$an)));*/
            $URL = $this->_url(
                        $an."-".$mois."-%",''
                        );            
        }

        //echo $URL;

        curl_setopt($this->ch, CURLOPT_URL, $URL);
        curl_setopt($this->ch, CURLOPT_HEADER, false);
        curl_setopt($this->ch, CURLOPT_COOKIEJAR, realpath('cookie.txt'));
        curl_setopt($this->ch, CURLOPT_COOKIEFILE, realpath('cookie.txt'));
        curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
        $String = curl_exec($this->ch);

        preg_match_all('|'.$parDate.';(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);|Us', $String, $matches, PREG_SET_ORDER);

        $return = array();
        foreach ($matches as $obj) {
            $return[$leMois] = $matches[0][11];
        }

        return $return;
    }

    /**
     * Fonction
     */
    private function _url ($dateDeb, $dateFin)
    {
          return 'http://statsv3.carpediem.fr/index.php?module=webmaster_stats_autostat&log-in='.$this->login.'&pass='.$this->passe.'&date='.$dateDeb.'&p=';
    }
}
?>


Site de rencontre gratuite avec msn
Regardez une video drole et explosez de rire
Les sites xevonaute vus par un internaute


Hors ligne

 

#8 27-03-2009 18:02:45

Charlie
Administrateur
Lieu : Sydney - Australia
Inscrit le : 17-11-2006
Messages : 6232
  Re: Affilistat : Statistiques affiliation


Excellent merci Zig wink affiliation



Bienvenue sur le forum de l'affiliation !

Le portail de l'affiliation internet, le Guide d'achat Netnoo et son annuaire
Publiez un Communiqué de presse sur votre site web !


En ligne

 

#9 27-03-2009 19:08:01

zig
Le codeur fou
Lieu : devant mon écran
Inscrit le : 26-08-2007
Messages : 1860
  Re: Affilistat : Statistiques affiliation


Pour ceux qui utilisent l'affiliation the-adult-company.com

Code à ajouter dans un fichier nommé theadultcompany.php dans le dossier AffiliStat

Puis editez require.php et ajoutez cette ligne dans le tableau $regiePub

'theadultcompany'         => array('login','passe'),

Code:
<?php
/**
 * THE ADULT COMPANY
 * -----------------------------------------------------------------------------
 * de zig (web affiliations)
 */
class AffiliStat_theadultcompany extends AffiliStat implements iAffiliStat
{
    public function __construct()
    {
        parent::__construct();
    }

    public function __destruct()
    {
        parent::__destruct();
    }

    /**
     * Connexion
     */
    public function login()
    {
        $URL = 'http://www.the-adult-company.com/public/fr/inscription/';

        $data = 'login='.$this->login.'&passwd='.$this->passe.'';

        curl_setopt($this->ch, CURLOPT_URL, $URL);
        curl_setopt($this->ch, CURLOPT_HEADER, true);
        curl_setopt($this->ch, CURLOPT_POSTFIELDS, $data);
        curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($this->ch, CURLOPT_COOKIESESSION, true);
        curl_setopt($this->ch, CURLOPT_COOKIEJAR, realpath('cookie.txt'));
        curl_setopt($this->ch, CURLOPT_COOKIEFILE, realpath('cookie.txt'));
        $String = curl_exec($this->ch);
        //print_r($String);
    }

    /**
     * Stats par jour
     */
    public function parJour($parDate=NULL, $moinsJour=NULL)
    {
        if ($moinsJour !== NULL)
        {
            $parDate = date('Y-m-d',time()-3600*24*$moinsJour);
        }

        $URL="http://www.the-adult-company.com/private/fr/rapport_ca/";
        $data = 'periode=jours&jours_start='.$parDate.'&jours_end='.$parDate.'';
        curl_setopt($this->ch, CURLOPT_URL, $URL);
        curl_setopt($this->ch, CURLOPT_POSTFIELDS, $data);        
        curl_setopt($this->ch, CURLOPT_HEADER, true);
        curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($this->ch, CURLOPT_COOKIESESSION, 1);
        curl_setopt($this->ch, CURLOPT_COOKIEJAR, realpath('cookie.txt'));
        curl_setopt($this->ch, CURLOPT_COOKIEFILE, realpath('cookie.txt'));
        $String = curl_exec($this->ch);
        
        preg_match_all('|<td class=\'col2 color\'>(.*)</td>|Us', $String, $matches, PREG_SET_ORDER);


        $return = array();
        foreach ($matches as $obj) {
            $return[$parDate] = str_replace(",",".",substr($matches[0][1],0,-4));
        }
        return $return;
    }

    /**
     * Stats par mois
     */
    public function parMois($mois=NULL, $an=NULL, $moinsMois=NULL)
    {
         if ($moinsMois !== NULL)
        {
            $leMois = date('Y-m',strtotime('-' . $moinsMois . ' month'));
          
        }
        elseif ($mois !== NULL && $an !== NULL)
        {
            //$leMois = $mois.'/'.$an;
            $leMois = $an.'-'.$mois;
           
        }

        $URL="http://www.the-adult-company.com/private/fr/rapport_ca/";
        $data = 'periode=jours&jours_start='.$leMois.'-01&jours_end='.$leMois.'-31';
        curl_setopt($this->ch, CURLOPT_URL, $URL);
        curl_setopt($this->ch, CURLOPT_POSTFIELDS, $data);        
        curl_setopt($this->ch, CURLOPT_HEADER, true);
        curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($this->ch, CURLOPT_COOKIESESSION, 1);
        curl_setopt($this->ch, CURLOPT_COOKIEJAR, realpath('cookie.txt'));
        curl_setopt($this->ch, CURLOPT_COOKIEFILE, realpath('cookie.txt'));
        $String = curl_exec($this->ch);
        preg_match_all('|<td class=\'col2 color\'>(.*)</td>|Us', $String, $matches, PREG_SET_ORDER);


        $return = array();
        foreach ($matches as $obj) {
            $return[$parDate] = str_replace(",",".",substr($matches[0][1],0,-4));
        }
        return $return;       
    }

    /**
     * Fonction
     */
    private function _url ($dateDeb, $dateFin)
    {

    }
}
?>


Site de rencontre gratuite avec msn
Regardez une video drole et explosez de rire
Les sites xevonaute vus par un internaute


Hors ligne

 

#10 27-03-2009 19:18:29

Charlie
Administrateur
Lieu : Sydney - Australia
Inscrit le : 17-11-2006
Messages : 6232
  Re: Affilistat : Statistiques affiliation


Good job smile affiliation "Le codeur fou" big_smile affiliation



Bienvenue sur le forum de l'affiliation !

Le portail de l'affiliation internet, le Guide d'achat Netnoo et son annuaire
Publiez un Communiqué de presse sur votre site web !


En ligne

 
1 invité et aucun membre actuellement sur ce forum. 

Pied de page des forums




Newsletter