Wiki

Clone wiki

ppaste / Configuration

Configuration

All ppaste config variables begin with $PPASTE_. See Installation#customize on how to apply them.

$PPASTE

Internal variable to check inclusions. Don't change!

$PPASTE_VERSION

Running ppaste version.

$PPASTE_FLAVOUR

How the ppaste install should be called.

$PPASTE_PICTURE_DIR

This tells ppaste where to save the uploaded/grabed pictures.

$PPASTE_PICTURE_URL

The URL where $PPASTE_PICTURE_DIR can be found.

$PPASTE_CODE_LENGTH

Length of the randomly generated code when a picture is uploaded/grabed.

$PPASTE_RENAME_FUNCTION

PHP function which does the file name renaming.

$PPASTE_IMAGE_FUNCTION

PHP function which does the image resizing. Set to image_dummy to disable resizing (this may be a security risk). The default is image_phpthumb which uses the PhpThumb Libray to resize images.

$PPASTE_IMAGE_LIB_PATH

The path to the PhpThumb Libray main file (ThumbLib.inc.php).

$PPASTE_IMAGE_SIZE

Maximum image size as an PHP-array.

$PPASTE_SHOW_TAIL

Show ppaste version & co at the end of the HTML output

$PPASTE_SHOW_FILETYPES

Show allowed filetypes in the HTML output.

$PPASTE_SHOW_BOOKMARKLET

Show bookmarklet code.

$PPASTE_URL

The path to the ppaste script file.

$PPASTE_COMPLETE_URL

The complete URL to the ppaste script file.

$PPASTE_TTL

Not implemented yet. See ppaste.php

$PPASTE_TTL_HOLD

Not implemented yet. See ppaste.php

Updated