in file functions.inc.php, function delete_file() Deletes a file
display_comments
in file functions.inc.php, function display_comments() Returns the HTML code of the comments manager.
display_editor
in file functions.inc.php, function display_editor() Returns the HTML code of the user editor. It uses the ContentFormattingFactory class, it allows you to write less code lines.
in file functions.inc.php, function find_require_dir() Finds a folder according to the user language. You find the file in a folder in which there is one folder per lang. If it doesn't exist, you want to choose the file in another language. This function returns the path of an existing file (if the required lang exists, it will be it, otherwise it will be one of the existing files).
in file functions.inc.php, function get_ini_config() Returns the config field of a module configuration file. In fact, this field contains the default module configuration in which we can find some " characters. To solve the problem, this field is considered as a comment and when we want to retrieve its value, we have to call this method which returns its value.
get_module_name
in file functions.inc.php, function get_module_name() Retrieves the identifier (name of the folder) of the module which is currently executed.
get_start_page
in file functions.inc.php, function get_start_page() Retrieves the site start page.
get_uid
in file functions.inc.php, function get_uid() Returns a unique identifier (useful for example to generate some javascript ids)
get_ulang
in file functions.inc.php, function get_ulang() Returns the current user's language.
get_utheme
in file functions.inc.php, function get_utheme() Returns the current user's theme.
gmdate_format
in file functions.inc.php, function gmdate_format() Formats a date according to a specific form.
in file functions.inc.php, function load_ini_file() Loads a configuration file. You choose a bases path, and you specify a folder name in which you file should be found, if it doesn't exist, it will take a file in another folder. It's very interesting when you want to
load_menu_lang
in file functions.inc.php, function load_menu_lang() Loads a menu lang file. It will load alone the file corresponding to the user lang, but if it doesn't exist, another lang will be choosen. An error will be displayed on the page and the script execution will be stopped if no lang file is found for this menu.
load_module_lang
in file functions.inc.php, function load_module_lang() Loads a module lang file. It will load alone the file corresponding to the user lang, but if it doesn't exist, another lang will be choosen. An error will be displayed on the page and the script execution will be stopped if no lang file is found for this module.
in file functions.inc.php, function pages_displayed() This function is called by the kernel on each displayed page to count the number of pages seen at each hour.
parse_ini_array
in file functions.inc.php, function parse_ini_array() Parses a table written in a special syntax which is user-friendly and can be inserted in a ini file (PHP serialized arrays cannot be inserted because they contain the " character). The syntax is very easy, it really looks like the PHP array declaration: key => value, key2 => value2 You can nest some elements: key => (key1 => value1, key2 => value2), key2 => value2
phpboost_version
in file functions.inc.php, function phpboost_version() Returns the full phpboost version with its build number
in file functions.inc.php, function redirect() Redirects the user to the URL and stops purely the script execution (database deconnexion...).
redirect_confirm
in file functions.inc.php, function redirect_confirm() Displays a confirmation message during a defined delay and then redirects the user.
req
in file functions.inc.php, function req() Requires a file
retrieve
in file functions.inc.php, function retrieve() Retrieves an input variable. You can retrieve any parameter of the HTTP request which launched the execution of this page.
in file functions.inc.php, function second_parse() Second parses a string with several default parameters. This methods exists to lighten the number of lines written.
second_parse_url
in file functions.inc.php, function second_parse_url() Second parses relative urls to absolute urls.
set_subregex_multiplicity
in file functions.inc.php, function set_subregex_multiplicity() Returns the sub-regex with its multiplicity option
strhash
in file functions.inc.php, function strhash() Return a SHA256 hash of the $str string [with a salt]
strparse
in file functions.inc.php, function strparse() Parses a string with several default parameters. This methods exists to lighten the number of lines written.
strprotect
in file functions.inc.php, function strprotect() Protects an input variable. Never trust user input!
strtodate
in file functions.inc.php, function strtodate() Converts a formatted date to the SQL date format.
strtotimestamp
in file functions.inc.php, function strtotimestamp() Parses a formatted date
substr_html
in file functions.inc.php, function substr_html() Cuts a string containing some HTML code which contains some HTML entities. The substr PHP function considers a HTML entity as several characters. This function allows you to consider them as only one character.
in file functions.inc.php, function unparse() Unparses a string with several default parameters. This methods exists to lighten the number of lines written.
url
in file functions.inc.php, function url() Adds the session ID to an URL if the user doesn't accepts cookies. This functions allows you to generate an URL according to the site configuration concerning the URL rewriting.
url_encode_rewrite
in file functions.inc.php, function url_encode_rewrite() Prepares a string for it to be used in an URL (with only a-z, 0-9 and - characters).
in file functions.inc.php, function wordwrap_html() Inserts a carriage return every $lenght characters. It's equivalent to wordwrap PHP function but it can deal with the HTML entities. An entity is coded on several characters and the wordwrap function counts several characters for an entity whereas it represents only one character.