constants.php

Holds various constants used by back-end classes.

Markup Types

Define types of markup available for entries.

Constants
MARKUP_NONE

Use auto-markup.  All HTML tags are stripped, line and paragraph breaks are auto-inserted, and URLs are auto-converted into links.

MARKUP_BBCODE

Use LBCode markup, a bastardized version of BBCode.

MARKUP_HTML

Treat the markup as raw HTML, leaving it untouched.

MARKUP_MARKDOWN

Treat the markup as Markdown markup.

BlogEntry Error Codes

Update status constants for blog entry modifying.

Constants
UPDATE_SUCCESS

Update succeeded.

FileUpload Error Codes

Status constants used for file uploading.

Constants
FILEUPLOAD_NO_ERROR

Upload succeeded without errors.

FILEUPLOAD_NO_FILE

There was no file uploaded.

FILEUPLOAD_SERVER_TOO_BIG

The uploaded file is too big for the server.

FILEUPLOAD_FORM_TOO_BIG

The file is too big for the suggested size in the form.

FILEUPLOAD_PARTIAL_FILE

The file was not completely received.

FILEUPLOAD_NOT_UPLOADED

Generic upload failure.

FILEUPLOAD_NAME_TRUNCATED

The file name was too long and has been truncated.

FILEUPLOAD_BAD_NAME

The file name is not valid for upload.

FILEUPLOAD_NOT_INITIALIZED

Invalid form field name.