[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/core/include/ -> Logs.functions.php (sommaire)

(pas de description)

Poids: 997 lignes (26 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 1 fichier
 libs/Request/Request.php

Définit 24 fonctions

  isPrefixTag()
  getPrefixTag()
  deletePrefixTag()
  setCookieFromPear()
  redirectToUrlIfNecessary()
  getHost()
  getIp()
  getFirstIpFromList()
  getOs()
  getContinent()
  getCountry()
  getHostnameExt()
  getBrowserInfo()
  recordDbCategory()
  recordDbPage()
  recordDbPageUrl()
  recordDbVars()
  recordDbLink_vp()
  recordDbInfoPage()
  loadImage()
  exitIfIpExcluded()
  processParams()
  displayPageWhenEmptyGet()
  displayLang()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

isPrefixTag($pageName)   X-Ref
Pas de description

getPrefixTag($pageName)   X-Ref
Pas de description

deletePrefixTag($pageName)   X-Ref
Pas de description

setCookieFromPear($aPearCookie)   X-Ref
Pas de description

redirectToUrlIfNecessary()   X-Ref
Pas de description

getHost($ip)   X-Ref
returns the hostname of the $ip

param: string $ip
return: string hostname

getIp()   X-Ref
returns an ip which can be resolved, if possible

return: string ip

getFirstIpFromList($ip)   X-Ref
returns first element of a comma separated list

param: string $ip
return: string first element before ','

getOs($userAgent)   X-Ref
get the visitor os

param: string $userAgent
param: array $osList
return: string

getContinent($country)   X-Ref
returns continent of $country

param: string $country isocode
param: array $coutryList
return: string continent (3 letters)

getCountry($host, $lang)   X-Ref
get visitor country with both information : Hostname and BrowserLang

param: string $host
param: string $lang browser lang
return: string

getHostnameExt($hostname)   X-Ref
returns valid phpmv hostname extension (site.co.jp in fvae.VARG.ceaga.site.co.jp)
from the complete hostname

param: string $hostname
return: string

getBrowserInfo($userAgent)   X-Ref
get visitor browser

param: string $userAgent

recordDbCategory($categoryName)   X-Ref
records in the DB a category, and recursively records its parent if not saved before

param: string $categoryName complete name of the category to record. Ex : "g1>g2>g3" which parent is "g1>g2"
return: int idparent of the category saved

recordDbPage($pageName, $pageUrl, $pageCategory, $b_savePageUrlBecauseEntry)   X-Ref
records the table 'page' if necessary and
create links to the page URL, links to the page category

param: string $pageName
param: string $pageUrl complete page Url
param: string $pageCategory "g1>g2>g3>g4". No category is string '' and has idCategory = 0
return: array (idpage of the page saved, idpageurl of the url of the page saved)

recordDbPageUrl($pageUrl, $idPage)   X-Ref
saves in the DB the pageUrl of the page $idPage, if necessary

param: string $pageUrl
param: int $idPage
return: bool

recordDbVars($varName, $varValue, $idLink_vp)   X-Ref
saves a variable value & name if not saved before
and create the link in table 'link_vpv'

param: string $varName
param: string|int $varValue
param: int $idLink_vp
return: bool

recordDbLink_vp($idVisit, $idPage, $idPageRef, $totalTime)   X-Ref
update the table link_vp

create the field if necessary with idvisit, idpage, ...
or update it if previously saved

param: int $idVisit
param: int $idPage
param: int $idPageRef
param: int $totalTime
return: int $idLink_vp

recordDbInfoPage($idVisit, $idPage, $idPageRef, $timeDiffRef, $a_vars)   X-Ref
saves all info concerning page & variables

param: int $idVisit
param: int $idPage
param: int $idPageRef idpageref or 0 if page referer not found
param: int $timeDiffRef
param: array $a_vars contains variables names and values array( 'name' => 'value', ...)
return: array contains $idLink_vp created and $idPage used (and maybe created if page was not recorded before)

loadImage($logo='pixel.gif', $idSite)   X-Ref
load image of phpmyvisites logo and calls performance log and footer display

param: string $logo name of the logo '1.png'
param: int $idSite
return: exit

exitIfIpExcluded($ip2long, $logo, &$o_site)   X-Ref
exit the script of the ip is recorded as an ip to exclude
or if the ip is in any range of ip to exclude for this site

param: int $ip2long ip2long version of ip
param: string $logo logo name '1.png' necessary if we exit the script
param: int $idSite
return: true or calls loadImage() and exit

processParams($url, $siteInfo)   X-Ref
process urls removing params in siteInfo following information contained in $siteInfo

param: string $url url, even imcomplete
param: array $siteInfo array('params_choice' => 'all|except|only|none', 'params_exlude' => 'p1;p2', params_include_only => 'p1;p2' )
return: string url processed

displayPageWhenEmptyGet()   X-Ref
Pas de description

displayLang()   X-Ref
Pas de description



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics