tce_functions_errmsg.php

Handle error/warning/system messages.<br> messagetype: <ul> <li>message</li> <li>warning</li> <li>error</li> </ul>

Source: shared/code/tce_functions_errmsg.php

Handle error/warning/system messages.<br> messagetype: <ul> <li>message</li> <li>warning</li> <li>error</li> </ul>

Constants

K_ALLOWED_ERROR_TAGS

HTML tags that are allowed in an error message.

const K_ALLOWED_ERROR_TAGS = '<a><b><br><em><p><ol><ul><li><small><table><tr><th><td>'

Source: shared/code/tce_functions_errmsg.php:32

Functions

F_display_db_error()

Print the database error message.

function F_display_db_error(mixed $exit = true)

Parameters:

  • $exit (mixed): (bool) if true output a message and terminate the current script [default = true].

Source: shared/code/tce_functions_errmsg.php:114

F_error_handler()

Custom PHP error handler function.

function F_error_handler(mixed $errno, mixed $errstr, mixed $errfile, mixed $errline)

Parameters:

  • $errno (mixed): (int) The first parameter, errno, contains the level of the error raised, as an integer.
  • $errstr (mixed): (string) The second parameter, errstr, contains the error message, as a string.
  • $errfile (mixed): (string) The third parameter is optional, errfile, which contains the filename that the error was raised in, as a string.
  • $errline (mixed): (int) The fourth parameter is optional, errline, which contains the line number the error was raised at, as an integer.

Source: shared/code/tce_functions_errmsg.php:129

F_file_exists()

Wrapper for file_exists.

Checks whether a file or directory exists. Only allows some protocols and local files.

function F_file_exists(mixed $filename): Returns

Parameters:

  • $filename (mixed)

Returns: Returns: TRUE if the file or directory specified by filename exists; FALSE otherwise.

Source: shared/code/tce_functions_errmsg.php:181

F_print_error()

Handle error/warning/system messages.

Print a message

function F_print_error(
    mixed $messagetype = 'MESSAGE',
    mixed $messagetoprint = '',
    mixed $exit = false
)

Parameters:

  • $messagetype (mixed): (string) Type of message: 0=no message, message; warning; error.
  • $messagetoprint (mixed): (string) message to print.
  • $exit (mixed): (bool) if true output a message and terminate the current script [default = false].

Source: shared/code/tce_functions_errmsg.php:41

F_url_exists()

Check if the URL exist.

function F_url_exists(mixed $url): Returns

Parameters:

  • $url (mixed)

Returns: Returns: TRUE if the URL exists; FALSE otherwise.

Source: shared/code/tce_functions_errmsg.php:153