Aller au contenu principal Aide Panneau de contrôle

A+   A-

Logiciel serveur «  

Documentation : agents/referrals.php

class Referrals - Referral processing

This script is a reference file of this system.

Licence : GNU Lesser General Public License

Auteurs :

check_request() - Process one single HTTP request

function check_request()

  • returns void

This function removes any PHPSESSID data in the query string, if any

Voir aussi :

delete() - Delete one referer

function delete($referer)

  • $referer - string the referer to delete



Voir aussi :

list_by_dates() - List most recent referrals

function list_by_dates($offset=0, $count=10)

  • $offset=0 - int the offset from the start of the list; usually, 0 or 1
  • $count=10 - int the number of items to display



Voir aussi :

list_by_domain() - List most popular domains

function list_by_domain($offset=0, $count=10)

  • $offset=0 - int the offset from the start of the list; usually, 0 or 1
  • $count=10 - int the number of items to display

This function removes as many referrals coming from search engines as possible.

Voir aussi :

list_by_hits_for_url() - List referrals for a given URL

function list_by_hits_for_url($url, $offset=0, $count=10)

  • $url - string the referenced url
  • $offset=0 - int the offset from the start of the list; usually, 0 or 1
  • $count=10 - int the number of items to display



Voir aussi :

list_by_hits() - List most popular referrals

function list_by_hits($offset=0, $count=10)

  • $offset=0 - int the offset from the start of the list; usually, 0 or 1
  • $count=10 - int the number of items to display

list_by_keywords() - List most popular keywords

function list_by_keywords($offset=0, $count=10)

  • $offset=0 - int the offset from the start of the list; usually, 0 or 1
  • $count=10 - int the number of items to display



Voir aussi :

normalize() - Normalize an external reference

function normalize($link)

  • $link - string the raw reference
  • returns an array( normalized string, search keywords )

This function strips noise attributes from search engines

setup() - Create tables for referrals

function setup()

Voir aussi :

stat() - Get some statistics

function &stat()

  • returns the number of rows in table



Voir aussi :


tn