Procedural File: lib_common.php
Source Location: /lib/lib_common.php
Page Details:
Tags:
cancel_button [line 699]
string cancel_button(
$back_uri $back_uri)
|
|
cancel_button() génére un bouton de retour
Parameters
checkdate_validity [line 583]
boolean checkdate_validity(
string $date, [string $msg = ''])
|
|
checkdate_validity() Vérifie la validité d'une date
Tags:
Parameters
string |
$date |
|
string |
$msg |
(optionnal) |
cutBody [line 238]
array cutBody(
string $text)
|
|
cutBody() Renvoie un texte en 2 parties dans un tableau
Parameters
cutText [line 222]
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 440]
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 |
|
display_errors [line 605]
void display_errors(
string $msg)
|
|
display_errors() Affichage d'un message d'erreur utilisateur
Tags:
Parameters
Display_linkin_page [line 731]
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 790]
string display_statut(
string $statut)
|
|
display_statut() renvoie le statut en pleines lettres
Parameters
distInclude [line 478]
void distInclude(
string $file)
|
|
distInclude() Include the required file if no user file is found, includes the dist/ version file.
Parameters
empty_nc [line 537]
string empty_nc(
string $content)
|
|
empty_nc() retourne le contenu ou N.C
Parameters
empty_none [line 552]
string empty_none(
string $content)
|
|
empty_none() retourne le contenu ou 'aucun'
Parameters
empty_numeric [line 567]
string empty_numeric(
string $content)
|
|
empty_none() retourne le contenu ou 0
Parameters
EnlargeImage [line 261]
string EnlargeImage(
string $uri, [string $style = ''], [string $alt_desc = ''])
|
|
EnlargeImage() Miniatures; agrandissement onclick
Parameters
string |
$uri |
|
string |
$style |
|
string |
$alt_desc |
|
ExcedMaxSize [line 667]
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 |
|
formatDate [line 496]
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 280]
string formatNavTitle(
string $content)
|
|
formatNavTitle() Formatage des titres ( interface admin )
Parameters
formatText [line 323]
string formatText(
$content $content, [string $format = -1])
|
|
formatText() Formatage de texte pour affichage
Parameters
string |
$format |
|
$content |
$content |
|
formatTextli [line 295]
string formatTextli(
string $content)
|
|
formatTextli() Formatage des listes ( interface admin )
Parameters
formatTitleh2 [line 309]
string formatTitleh2(
string $content)
|
|
formatTitleh2() Formatage des titres h2 ( interface admin )
Parameters
GenerateXhtmlPage [line 919]
void GenerateXhtmlPage(
$string $string, [integer $time = 2], [unknown $redirect = SITE_CITY_URL])
|
|
GenerateXhtmlPage()
Parameters
integer |
$time |
|
unknown |
$redirect |
|
$string |
$string |
|
GetAllPhotoUri [line 682]
array GetAllPhotoUri(
string $path, [string $opt = -1])
|
|
GetAllPhotoUri() renvoie les paths des photos dans un tableau
Parameters
GetDisplayUserRight [line 712]
string GetDisplayUserRight(
string $indice, [string $module = -1])
|
|
GetDisplayUserRight() renvoie les droits d'un utilisateur
Parameters
string |
$indice |
|
string |
$module |
|
getHttpParameters [line 48]
string getHttpParameters(
[ $prefix = '?'])
|
|
getHttpParameters() Renvoie les paramètres HTTP sous forme de chaîne de caractères
Parameters
getmicrotime [line 903]
getmicrotime() renvoie le temps en microsecondes
get_min_name [line 651]
string get_min_name(
string $path)
|
|
get_min_name() obtenir le nom de la miniature d'un fichier
Parameters
get_temp_name [line 636]
string get_temp_name(
string $path)
|
|
get_temp_name() obtenir le nom temporaire d'un fichier
Parameters
implode_with_keys [line 34]
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 162]
void IncludedatePickerJs(
)
|
|
IncludedatePickerJs() Include Lightbox jQuery date Picker if needed
IncludeLightboxJs [line 134]
void IncludeLightboxJs(
)
|
|
IncludeLightboxJs() Include Lightbox jQuery plugin if needed
IncludeRichTextEditor [line 100]
void IncludeRichTextEditor(
)
|
|
IncludeRichTextEditor() Include RichTextEditor if enabled
IncludeTextResizerJs [line 82]
void IncludeTextResizerJs(
)
|
|
IncludeTextResizerJs() Include jQuery text-resizer plugin if no js wysiwyg are enabled
isNullDate [line 522]
boolean isNullDate(
string $date)
|
|
isNullDate()
Parameters
linkin_content [line 837]
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 765]
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 |
|
num_phpversion [line 205]
integer num_phpversion(
)
|
|
num_phpversion() Retourne un entier comme numéro de version PHP
optimize [line 18]
string optimize(
string $buffer)
|
|
optimize() callback method to ob_start()
Parameters
QuickBoxNow [line 864]
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 885]
void ReloadIndex(
string $item)
|
|
ReloadIndex() Chargement de l'index après destruction de sessions
Parameters
ReplaceInvalidChars [line 355]
string ReplaceInvalidChars(
string $str)
|
|
ReplaceInvalidChars() Remplacement des caractères invalides par leurs entités HTML
Parameters
stripAccents [line 377]
void stripAccents(
$string)
|
|
Parameters
stripText [line 387]
strip_input [line 60]
string strip_input(
string $str, [string $exceptions = false])
|
|
strip_input() Remove PHP and HTML code
Parameters
string |
$str |
|
string |
$exceptions |
|
SureRemoveDir [line 187]
integer SureRemoveDir(
$dir, $DeleteMe)
|
|
SureRemoveDir() Supprime le contenu d'un dossier et le dossier lui-même si précisé.
Parameters
system_error [line 620]
void system_error(
[string $msg = ERROR_SYSTEM])
|
|
system_error() Affichage d'un message d'erreur syst�me
Tags:
Parameters
toStringSqlDate [line 409]
string toStringSqlDate(
[string $format = 'short'])
|
|
toStringSqlDate() Renvoie la date au format SQL
Parameters
|