Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Configuration

Tom B edited this page Aug 1, 2014 · 7 revisions

Configuration

The configuration file is held within the app/config/ directory, where multiple values can be altered to manipulate how images are saved, displayed and served to users.

Options

RAW_IMAGE

This value controls whether just the raw image file should be served or a HTML page containing the image. The HTML page can be altered to contain anything you'd like, including Twitter card meta tags (already included!) If set to true, just the image will be displayed.

define('RAW_IMAGE', true);

RAW_IMAGE_LINK

Changing this value will control whether the script returns a link to the raw image or the viewer page when an image is uploaded. E.G. If set to true, you'll receive the URL with /images/png/dInD3.png on the end, rather than just the hash.

define('RAW_IMAGE_LINK', true);

PASSKEY

Setting this value controls the passkey you'll need to provide to upload images to the application. More information on what this is used for at /wiki/Setup.

define('PASSKEY', "password goes here");

APP_NAME

This value will set the prefix of the <title> element on HTML-view pages.

define('APP_NAME', "application name");
Clone this wiki locally