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

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.