[ 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/ -> common.functions.php (sommaire)

(pas de description)

Poids: 361 lignes (7 kb)
Inclus ou requis: 3 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 15 fonctions

  getFilenameExtension()
  U2U()
  databaseEscape()
  uncompress()
  compress()
  getDateFromTimestamp()
  getRequestVar()
  printDebug()
  recordDbQueryCount()
  secureVarOperation()
  databaseSecure()
  secureVar()
  stripslashesPmv()
  setToLength()
  todayTime()

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

getFilenameExtension( $name )   X-Ref
Pas de description

U2U($szstr)   X-Ref
Pas de description

databaseEscape($str)   X-Ref
Pas de description

uncompress( $data, $compressed )   X-Ref
Pas de description

compress( $data, $compressed )   X-Ref
Pas de description

getDateFromTimestamp($ts)   X-Ref
returns the SQL-format date of the timestamp $ts

param: timestamp $ts
return: string date

getRequestVar($varName, $varDefault=null, $varType="string")   X-Ref
get a variable from the $_REQUEST superglobal

it tests the var type and exit if the variable doesn't have default value and
if the type doesn't match

param: string $varName name of the variable
param: string $varDefault default value. If '', and if the type doesn't match, exit() !
param: string $varType variable type

printDebug($message)   X-Ref
print message or array in debug mode

param: string $message

recordDbQueryCount($idSite)   X-Ref
log page generation performances (queries number and time)

param: int $idSite
param: bool true

secureVarOperation($var)   X-Ref
operation called by secureVar

param: int|string $var
return: int|string

databaseSecure($var)   X-Ref
Pas de description

secureVar($var)   X-Ref
secures the variable from SQL injection and from cross site scripting

param: int|string|array $var
param: int|string|array var secured

stripslashesPmv($str)   X-Ref
special stripslashes managing fucking magic_quotes

param: string|array $str
return: string|array stripslashed, or not

setToLength($id, $length)   X-Ref
set an int or string to a precise length, completing on the left with zero (O)

param: all $id
param: int $length
return: string string to length $length

todayTime()   X-Ref
returns seconds since midnight today

return: int seconds since midnight today



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