CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Functions
client.php.inc File Reference

Client specific methods. More...

Functions

 client_getIp ()
 
 client_getUserAgent ()
 
 client_isHTTPS ()
 
 client_getRefererSite ()
 
 client_isServerClient ()
 
 client_getDoNotTrack ()
 
 client_getUAInfos ($ua=false)
 
 client_checkIsBot ($ua=false)
 
 client_getBotInfos ($bot='')
 
 client_getBotInfosFromUserAgent ($ua='')
 
 client_getKnownBots ()
 
 client_checkIsTool ($ua=false)
 
 client_getToolInfos ($tool='')
 
 client_getToolInfosFromUserAgent ($ua='')
 
 client_getKnownTools ()
 
 client_checkIsGeneric ($ua=false)
 
 client_getGenericInfos ($generic='')
 
 client_getGenericInfosFromUserAgent ($ua='')
 
 client_getKnownGenerics ()
 
 client_checkIsHack ($ua=false)
 
 client_getHackInfos ($hack='')
 
 client_getHackInfosFromUserAgent ($ua='')
 
 client_getKnownHacks ()
 
 client_getFakeInfosFromUserAgent ($ua='')
 
 _client_mergeUAInfos ($req, $infos)
 
 _client_getUAPropertiesMaxVersions ()
 
 _client_isOnePlusDevice ($ua='')
 

Detailed Description

Client specific methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.48
Date
Creation: Jun 2007
Modification: Nov 2018
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Function Documentation

_client_getUAPropertiesMaxVersions ( )
private

Return some max property values to check.

Returns
array
_client_isOnePlusDevice (   $ua = '')
private

Check if given UA is a OnePlus device

Returns
boolean result
_client_mergeUAInfos (   $req,
  $infos 
)
private

Return merged informations.

Parameters
array$req
array$infos
Returns
array
client_checkIsBot (   $ua = false)

Return bot index if bot.

Parameters
string$ua
Returns
mixed
client_checkIsGeneric (   $ua = false)

Return generic index if generic.

Parameters
string$ua
Returns
mixed
client_checkIsHack (   $ua = false)

Return hack index if hack.

Parameters
string$ua
Returns
mixed
client_checkIsTool (   $ua = false)

return tool index if tool

Parameters
string$ua
Returns
mixed
client_getBotInfos (   $bot = '')

Return bot info if bot.

Parameters
string$bot
Returns
mixed
client_getBotInfosFromUserAgent (   $ua = '')

Return bot info from user agent.

Parameters
string$ua
Returns
mixed
client_getDoNotTrack ( )

Check if client is marked as Do Not Track.

Returns
boolean result
client_getFakeInfosFromUserAgent (   $ua = '')

Return fake visitor info from user agent.

Parameters
string$ua
Returns
mixed
client_getGenericInfos (   $generic = '')

Return generic info if generic.

Parameters
string$generic
Returns
mixed
client_getGenericInfosFromUserAgent (   $ua = '')

Return bot info from user agent.

Parameters
string$ua
Returns
mixed
client_getHackInfos (   $hack = '')

Return bot info if hack.

Parameters
string$hack
Returns
mixed
client_getHackInfosFromUserAgent (   $ua = '')

Return hack info from user agent.

Parameters
string$ua
Returns
mixed
client_getIp ( )

Return client IP address.

Returns
string
client_getKnownBots ( )

Return known bots list.

Returns
array
client_getKnownGenerics ( )

Return given known web generic library list.

Returns
array
client_getKnownHacks ( )

Return given known web hack or hack list.

Returns
array
client_getKnownTools ( )

Return given known tool list.

Returns
array
client_getRefererSite ( )

Return client referer site.

Returns
string
client_getToolInfos (   $tool = '')

Return tool info if tool.

Parameters
string$tool
Returns
mixed
client_getToolInfosFromUserAgent (   $ua = '')

Return tool info from user agent.

Parameters
string$ua
Returns
mixed
client_getUAInfos (   $ua = false)

Return client informations.

Parameters
mixte$ua
Returns
array
client_getUserAgent ( )

Return client user agent.

Returns
string
client_isHTTPS ( )

Check if page is loaded in HTTPS(SSL).

Returns
boolean result
client_isServerClient ( )

Check if the server is also the client.

Returns
boolean result