









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/
En ligne








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 ![]()
il a une connaissance non negligeable en SEO affilié ![]()
Hors ligne










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 ![]()
sans compter qu'on peut "tuner" l'interface ![]()
faire une version iphone comme fait par alex ici :
http://href.fr/affilistat_iphone.zip
L'interface est sympa :
En ligne





Re: Affilistat : Statistiques affiliation
Super !!! Merci.
Hors ligne








Re: Affilistat : Statistiques affiliation
Oui super comme script
Plus qu'à créer d'autres class pour ajouter les affiliations manquantes ![]()
Hors ligne







Re: Affilistat : Statistiques affiliation
Beau script en effet....
Cela donne des idées ![]()
Hors ligne








Re: Affilistat : Statistiques affiliation
Pour ceux qui utilisent l'affiliation Carpediem ![]()
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'),
<?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='; } } ?>
Hors ligne










Re: Affilistat : Statistiques affiliation
Excellent merci Zig ![]()
En ligne








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'),
<?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)
{
}
}
?>Hors ligne










Re: Affilistat : Statistiques affiliation
Good job
"Le codeur fou" ![]()
En ligne
Partenaires : Creer site| Altiref| Forum| Boutique| Femissima| Consoles| Caméra numérique| Ameublement| Guide voyage| Référencement