[ PHPXref.com ] [ Generated: Sun Jul 20 17:59:13 2008 ] [ GLPI 0.65 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/glpi/common/ -> functions.php (summary)

(no description)

File Size: 552 lines (13 kb)
Included or required: 5 times
Referenced: 0 times
Includes or requires: 0 files

Defines 18 functions

  getDeviceTypeName()
  stripslashes_deep()
  addslashes_deep()
  clean_cross_side_scripting_deep()
  unclean_cross_side_scripting_deep()
  utf8_decode_deep()
  resume_text()
  autop()
  clicurl()
  split_text()
  rembo()
  convDateTime()
  convDate()
  sendFile()
  return_bytes_from_ini_vars()
  glpi_header()
  get_hour_from_sql()
  optimize_tables()

Functions
Functions that are not part of a class:

getDeviceTypeName($ID)   X-Ref
No description

stripslashes_deep($value)   X-Ref
Strip slash  for variable & array

param: $value item to stripslashes (array or string)
return: stripslashes item

addslashes_deep($value)   X-Ref
Add slash for variable & array

param: $value value to add slashes (array or string)
return: addslashes value

clean_cross_side_scripting_deep($value)   X-Ref
Prevent from XSS
Clean code

param: $value item to prevent (array or string)
return: clean item

unclean_cross_side_scripting_deep($value)   X-Ref
Invert fonction from clean_cross_side_scripting_deep

param: $value item to unclean from clean_cross_side_scripting_deep
return: unclean item

utf8_decode_deep($value)   X-Ref
Utf8 decode for variable & array

param: $value item to utf8_decode (array or string)
return: decoded item

resume_text($string,$length=255)   X-Ref
Resume test for followup

param: $string
param: $length
return: cut string

autop($pee, $br=1)   X-Ref
No description

clicurl($chaine)   X-Ref
Rend une url cliquable htp/https/ftp meme avec une variable Get

param: $chaine
return: $string

split_text($text, $start, $end)   X-Ref
Split the message into tokens ($inside contains all text inside $start and $end, and $outside contains all text outside)

param: $text
param: $start
param: $end
return: array

rembo($string)   X-Ref
Replace bbcode in text by html tag

param: $string
return: $string

convDateTime($time)   X-Ref
Convert a date YY-MM-DD to DD-MM-YY for display in a html table

param: $time
return: $time or $date

convDate($time)   X-Ref
Convert a date YY-MM-DD to DD-MM-YY for calendar

param: $time
return: $time or $date

sendFile($file,$filename)   X-Ref
Send a file to the navigator

param: $file
param: $filename
return: nothing

return_bytes_from_ini_vars($val)   X-Ref
Convert a value in byte, kbyte, mégabyte etc..

param: $val
return: $val

glpi_header($dest)   X-Ref
Header redirection hack

param: $dest Redirection destination
return: nothing

get_hour_from_sql($time)   X-Ref
Get hour from sql

param: $time
return: array

optimize_tables()   X-Ref
Optimize sql table

return: nothing



[ Powered by PHPXref - Served by Debian GNU/Linux ]