[pLog-svn] Refer tracker

Ayalon ayalon at blog.nl
Sat Jun 9 12:07:25 EDT 2007


The switch in the admin was not working if you switched of refer tracking.
With this code it does..

-----Oorspronkelijk bericht-----
Van: plog-svn-bounces at devel.lifetype.net
[mailto:plog-svn-bounces at devel.lifetype.net] Namens Oscar Renalias
Verzonden: zaterdag 9 juni 2007 13:44
Aan: plog-svn at devel.lifetype.net
Onderwerp: Re: [pLog-svn] Refer tracker

What's this code for and what does it fix?

On 9 Jun 2007, at 11:43, Ayalon wrote:

> This code it needs to be:
>
>
>
> can somebody put it live for rollout? In dao/refers.class
>
>
>
> From line 21 till               // we only add a new referer if we  
> come from somewhere else than our own server
>
>             $ourHost = $_SERVER["HTTP_HOST"]; Just delete  
> everything and paste this..
>
>
>
>
>
>                 function Referers()
>
>         {
>
>                 $this->Model();
>
>
>
>                                                $config =&  
> Config::getConfig();
>
>             $this->_enabled = $config->getValue 
> ( "referer_tracker_enabled" );
>
>
>
>                                                $this->table = $this- 
> >getPrefix()."referers";
>
>         }
>
>
>
>         /**
>
>          * Adds a referer to the database.
>
>          *
>
>          * @param refererHeader The referer header as was received  
> by PHP.
>
>          * @param articleId The article being hit by this referer.
>
>          * @return Returns true if successful or false otherwise.
>
>          */
>
>         function addReferer( $refererHeader, $articleId, $blogId )
>
>         {
>
>             require_once( PLOG_CLASS_PATH."class/net/url.class.php" );
>
>
>
>                 // quit inmediately if this is not enabled...
>
>                 if( !$this->_enabled )
>
>                 return;
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn

_______________________________________________
pLog-svn mailing list
pLog-svn at devel.lifetype.net
http://limedaley.com/mailman/listinfo/plog-svn




More information about the pLog-svn mailing list