ERROR.INI - index

THE ERROR.INI FILE

There are two global error message placeholders that can be referred to in HTML templates by:

        {$GLOBALS['system_message']} 
        {$GLOBALS['comment_message']}

Normally, these messages are blank and therefore do not display anything. If the code detects an error condition it calls a function to set one of the global error messages. For example, if a user comment is submitted without data, the code is similar to:

        if ($data == "")
        	htmlseterror('SUBMIT')

$GLOBALS['comment_message'] is then set to the message defined below under the section [SUBMIT] and the message gets displayed with the HTML template, the HTML automatically "adapting" (so to speak).

For list of generic error messages, they can be defined here outside of any section, like:

        WEEBLES = Weebles wobble but they don't fall down.

These error messages are retrieved by:

        $error = htmlgeterror('WEEBLES')

For sections (marked by []), id is the type of error message, msg is the error message, where id is one of "comment_message" or "system_message" (for now). If section does not have id the default_id will be used.