Procedural File: lib_common.php
Source Location: /lib/lib_common.php
Page Details:
Tags:
AddDynamicFooter [line 1446]
AddDynamicFooter() Display JS footer
AddDynamicHeader [line 1436]
AddDynamicHeader() Display JS and CSS header
availablePlugins [line 1236]
array availablePlugins(
)
|
|
availablePlugins() Return available plugins
cancel_button [line 1020]
string cancel_button(
$back_uri $back_uri)
|
|
cancel_button() génére un bouton de retour
Parameters
check4newVersion [line 1455]
string check4newVersion(
)
|
|
check4newVersion() Display a link to download new version if available
checkdate_validity [line 904]
boolean checkdate_validity(
string $date, [string $msg = ''])
|
|
checkdate_validity() Vérifie la validité d'une date
Tags:
Parameters
string |
$date |
|
string |
$msg |
(optionnal) |
cleanString [line 1746]
string cleanString(
string $string, [array $allowed = array()])
|
|
cleanString() Remove exotic characters form string same as used in filemanager
Parameters
string |
$string |
|
array |
$allowed |
|
cutBody [line 462]
array cutBody(
string $text)
|
|
cutBody() Renvoie un texte en 2 parties dans un tableau
Parameters
cutText [line 443]
void cutText(
string $content, integer $length, [integer $abbr = 0], [string $end = '...'])
|
|
cutText() Découpe un texte à une longeur donnée.
Parameters
string |
$content |
|
integer |
$length |
|
integer |
$abbr |
|
string |
$end |
|
date_compare [line 678]
boolean date_compare(
$date1 $date1, $date2 $date2, $op $op)
|
|
date_compare() Compare 2 dates with a given operator.
Parameters
$date1 |
$date1 |
|
$date2 |
$date2 |
|
$op |
$op |
|
date_rfc2822 [line 832]
string date_rfc2822(
string $date)
|
|
date_rfc2822() Format date to RFC 2822 date format
Tags:
Parameters
display_errors [line 926]
void display_errors(
string $msg)
|
|
display_errors() Affichage d'un message d'erreur utilisateur
Tags:
Parameters
Display_linkin_page [line 1052]
void Display_linkin_page(
array $table_link, integer $total, integer $debut, [integer $pas = SELECT_LIMIT])
|
|
Display_linkin_page()
Parameters
array |
$table_link |
|
integer |
$total |
|
integer |
$debut |
|
integer |
$pas |
|
display_statut [line 1111]
string display_statut(
string $statut)
|
|
display_statut() renvoie le statut en pleines lettres
Parameters
distInclude [line 736]
void distInclude(
string $file, $default_dist)
|
|
distInclude() Include the required file if no user file is found, includes the dist/ version file. Localized files have the priority
Parameters
string |
$file |
|
|
$default_dist |
|
empty_nc [line 858]
string empty_nc(
string $content)
|
|
empty_nc() retourne le contenu ou N.C
Parameters
empty_none [line 873]
string empty_none(
string $content)
|
|
empty_none() retourne le contenu ou 'aucun'
Parameters
empty_numeric [line 888]
string empty_numeric(
string $content)
|
|
empty_none() retourne le contenu ou 0
Parameters
EnlargeImage [line 485]
string EnlargeImage(
string $uri, [string $style = ''], [string $alt_desc = ''])
|
|
EnlargeImage() Miniatures; agrandissement onclick
Parameters
string |
$uri |
|
string |
$style |
|
string |
$alt_desc |
|
ExcedMaxSize [line 988]
boolean ExcedMaxSize(
string $path, integer $width_max)
|
|
ExcedMaxSize() Teste si une image dépasse ou non la taille autorisée (en pixels)
Parameters
string |
$path |
|
integer |
$width_max |
|
extRegex [line 145]
extRegex() Transform a list given in the form "jpg,png,gif" into "(jpg)|(png)|(gif)" format
Parameters
footerAddJS [line 1406]
boolean footerAddJS(
string $path, [string $pos = 'default'])
|
|
footerAddJS() Add JS into footer
Parameters
formatBytes [line 1680]
string formatBytes(
int $bytes, [int $precision = 2])
|
|
formatBytes() Make File size readable
Parameters
int |
$bytes |
|
int |
$precision |
(optional) |
formatDate [line 805]
string formatDate(
string $date, [boolean $db = false])
|
|
formatDate() Renvoie la date aux formats yyyy-mm-dd ou dd-mm-yyyy suivant le cas de départ Si $db == true renvoie toujours la date au format yyyy-mm-dd
Parameters
formatNavTitle [line 503]
string formatNavTitle(
string $content)
|
|
formatNavTitle() Formatage des titres ( interface admin )
Parameters
formatText [line 561]
string formatText(
$content $content, [string $format = -1])
|
|
formatText() Formatage de texte pour affichage
Parameters
string |
$format |
|
$content |
$content |
|
formatTextli [line 518]
string formatTextli(
string $content)
|
|
formatTextli() Formatage des listes ( interface admin )
Parameters
formatTitleh2 [line 532]
string formatTitleh2(
string $content)
|
|
formatTitleh2() Formatage des titres h2 ( interface admin )
Parameters
GenerateXhtmlPage [line 1297]
void GenerateXhtmlPage(
$string $string, [integer $time = 2], [unknown $redirect = CURRENT_APP_URL])
|
|
GenerateXhtmlPage()
Parameters
integer |
$time |
|
unknown |
$redirect |
|
$string |
$string |
|
GetAllPhotoUri [line 1003]
array GetAllPhotoUri(
string $path, [string $opt = -1])
|
|
GetAllPhotoUri() renvoie les paths des photos dans un tableau
Parameters
getBreadcrumb [line 1626]
string getBreadcrumb(
[string $sep = '»'])
|
|
getBreadcrumb() get the Breadcrumb for displaying
Parameters
GetDisplayUserRight [line 1033]
string GetDisplayUserRight(
string $indice, [string $module = -1])
|
|
GetDisplayUserRight() renvoie les droits d'un utilisateur
Parameters
string |
$indice |
|
string |
$module |
|
getHttpParameters [line 34]
string getHttpParameters(
[ $prefix = '?'])
|
|
getHttpParameters() Renvoie les paramètres HTTP sous forme de chaîne de caractères
Parameters
getmicrotime [line 1224]
getmicrotime() renvoie le temps en microsecondes
getThemes [line 1721]
array getThemes(
string $f)
|
|
getThemes() Return installed themes into an array
Parameters
get_min_name [line 972]
string get_min_name(
string $path)
|
|
get_min_name() obtenir le nom de la miniature d'un fichier
Parameters
get_temp_name [line 957]
string get_temp_name(
string $path)
|
|
get_temp_name() obtenir le nom temporaire d'un fichier
Parameters
headerAddCSS [line 1346]
boolean headerAddCSS(
string $path, [string $pos = 'default'])
|
|
headerAddCSS() Add CSS into header
Parameters
headerAddJS [line 1374]
boolean headerAddJS(
string $path, [string $pos = 'default'])
|
|
headerAddJS() Add JS into header
Parameters
implode_with_keys [line 20]
string implode_with_keys(
string $glue, string $array)
|
|
implode_with_keys() implode avec clefs associées renvoyées sous forme de chaîne de caractères
Parameters
string |
$glue |
|
string |
$array |
|
IncludedatePickerJs [line 367]
void IncludedatePickerJs(
)
|
|
IncludedatePickerJs() Include jQuery date Picker if needed
IncludeFancyUploadJs [line 159]
void IncludeFancyUploadJs(
)
|
|
IncludeFancyUploadJs() Include jQuery Fancy Upload
IncludeLightboxJs [line 295]
void IncludeLightboxJs(
string $selector)
|
|
IncludeLightboxJs() Include Lightbox jQuery plugin
Parameters
string |
$selector |
£selector |
IncludeMultiSelectJs [line 345]
void IncludeMultiSelectJs(
)
|
|
IncludeMultiSelectJs() Include jQuery multiSelect plugin if needed
IncludePHPDebug [line 110]
IncludePHPDebug() Include Js & css for PHP_DEBUG
IncludeRichTextEditor [line 254]
void IncludeRichTextEditor(
)
|
|
IncludeRichTextEditor() Include RichTextEditor if enabled
IncludeTextBoxListJs [line 321]
void IncludeTextBoxListJs(
)
|
|
IncludeTextBoxListJs() Include jQuery TextBoxList plugin if needed
IncludeTextCornerJs [line 197]
void IncludeTextCornerJs(
)
|
|
IncludeTextCornerJs() Include jQuery text-corner plugin
IncludeTextResizerJs [line 92]
void IncludeTextResizerJs(
)
|
|
IncludeTextResizerJs() Include jQuery text-resizer plugin if no js wysiwyg are enabled
IncludeTimeline [line 68]
IncludeTimeline() Include SIMILE Timeline JS code if needed
IncludeTooltipJs [line 122]
void IncludeTooltipJs(
string $selector)
|
|
IncludeTooltipJs() Include jQuery tooltip plugin
Parameters
IncludeTreeJs [line 207]
IncludeTreeJs() Include jQuery tree plugin
isNullDate [line 843]
isRawText [line 545]
bool isRawText(
string $t)
|
|
isRawText() check if raw text or html text
Parameters
json_decode [line 1510]
void json_decode(
$content, [ $assoc = false])
|
|
For compatibility with PHP < 5.2 json_decode
Parameters
json_encode [line 1526]
void json_encode(
$content)
|
|
For compatibility with PHP < 5.2 json_encode
Parameters
linkin_content [line 1158]
string linkin_content(
string $content, [string $option = 'ALL'])
|
|
linkin_content() Cherche les liens et emails dans du contenu -> linkage
Parameters
string |
$content |
|
string |
$option |
|
linkin_page [line 1086]
string linkin_page(
string $string_uri, integer $total, integer $debut, [integer $pas = SELECT_LIMIT])
|
|
linkin_page() création d'un navigateur de pages numérotées
Parameters
string |
$string_uri |
|
integer |
$total |
|
integer |
$debut |
|
integer |
$pas |
|
ListDir [line 1650]
string ListDir(
int $dir_handle, string $path, string $url)
|
|
ListDir() Return an HTML list for a given folder
Parameters
int |
$dir_handle |
|
string |
$path |
|
string |
$url |
|
ln10filename [line 714]
string ln10filename(
string $file)
|
|
ln10filename() Build a localized filename according to the cuurent language
Parameters
loadThemeInfo [line 1485]
string loadThemeInfo(
string $type, string $name)
|
|
loadThemeInfo() Load theme info
Parameters
string |
$type |
|
string |
$name |
|
logfile [line 1699]
void logfile(
string $src, array $a)
|
|
logfile() Log into file
Parameters
num_phpversion [line 426]
integer num_phpversion(
)
|
|
num_phpversion() Retourne un entier comme numéro de version PHP
placeholderReplace [line 1281]
array placeholderReplace(
$array $array, $input $input)
|
|
placeholderReplace() format '{$key}'
Parameters
$array |
$array |
|
$input |
$input |
|
QuickBoxNow [line 1185]
string QuickBoxNow(
string $module, string $h1, string $liste, [string $suffixclass = ''])
|
|
QuickBoxNow() Génération de la quickbox
Parameters
string |
$module |
|
string |
$h1 |
|
string |
$liste |
|
string |
$suffixclass |
|
ReloadIndex [line 1206]
void ReloadIndex(
string $item)
|
|
ReloadIndex() Chargement de l'index après destruction de sessions
Parameters
ReplaceInvalidChars [line 593]
string ReplaceInvalidChars(
string $str)
|
|
ReplaceInvalidChars() Remplacement des caractères invalides par leurs entités HTML
Parameters
securityCheck [line 1789]
securityCheck() Test and sanitize user input from request
setBreadcrumb [line 1614]
void setBreadcrumb(
array $array)
|
|
setBreadcrumb() Set breadcrumb content
Parameters
sql_dump2array [line 1259]
array sql_dump2array(
$url $url, [$a $a = -1])
|
|
sql_dump2array()
Tags:
Parameters
stripAccents [line 615]
void stripAccents(
$string)
|
|
Parameters
stripText [line 625]
strip_input [line 46]
string strip_input(
string $str, [string $exceptions = false])
|
|
strip_input() Remove PHP and HTML code
Parameters
string |
$str |
|
string |
$exceptions |
|
SureCreateDir [line 393]
integer SureCreateDir(
string $pathname, integer $perms)
|
|
SureCreateDir() Créer un dossier s'il n'existe pas.
Parameters
string |
$pathname |
|
integer |
$perms |
|
SureRemoveDir [line 408]
integer SureRemoveDir(
$dir, $DeleteMe)
|
|
SureRemoveDir() Supprime le contenu d'un dossier et le dossier lui-même si précisé.
Parameters
system_error [line 941]
void system_error(
[string $msg = ERROR_SYSTEM])
|
|
system_error() Affichage d'un message d'erreur syst�me
Tags:
Parameters
themePath [line 781]
string themePath(
string $file, [string $path = 0])
|
|
themePath() check if a template file version exists or not if no user file is found in theme, return the default module version file.
Parameters
string |
$file |
|
string |
$path |
|
toStringSqlDate [line 647]
string toStringSqlDate(
[string $format = 'short'])
|
|
toStringSqlDate() Renvoie la date au format SQL
Parameters
validEmail [line 1541]
_debug [line 1328]
void _debug(
string $string)
|
|
_debug() Display a debug message
Parameters
|