[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/include/ -> compat.inc.php (sommaire)

(pas de description)

Poids: 319 lignes (9 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 8 fonctions

  memSnap()
  file_get_contents()
  serendipity_strip_quotes()
  serendipity_get_bool()
  serendipity_getCharset()
  serendipity_detectLang()
  serendipity_getCoreVersion()
  serendipity_die()

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

memSnap($tshow = '')   X-Ref
Create a snapshot of the current memory usage

This functions makes use of static function properties to store the last used memory and the intermediate snapshots.
param: string   A label for debugging output
return: boolean  Return whether the snapshot could be evaluated

file_get_contents($filename, $use_include_path = 0)   X-Ref
Pas de description

serendipity_strip_quotes(&$var)   X-Ref
Pas de description

serendipity_get_bool($item)   X-Ref
Translate values coming from the Database into native PHP variables to detect boolean values.

param: string      input value
return: boolean     boolean output value

serendipity_getCharset()   X-Ref
Get the current charset

return: string      Empty string or "UTF-8/".

serendipity_detectLang($use_include = false)   X-Ref
Detect the language of the User Agent/Visitor

This function needs to be included at this point so that it is globally available, also
during installation.

param: boolean     Toggle whether to include the language that has been autodetected.
return: string      Return the detected language name

serendipity_getCoreVersion($version)   X-Ref
Get the current serendipity version, minus the "-alpha", "-beta" or whatever tags

param: string   Serendipity version
return: string   Serendipity version, stripped of unneeded parts

serendipity_die($html)   X-Ref
Make Serendipity emit an error message and terminate the script

param: string  HTML code to die with
return: null



Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics