save_uploaded_file() read, and prune_images() deleted, any path in the "uploaded" POST field. Uploads now go to UPLOAD_DIR under a random name that only the session knows.
20 lines
575 B
Bash
20 lines
575 B
Bash
# Copy this file to .env and fill in the values. Git does not track .env.
|
|
# To keep the file outside the web root, set XXX_ENV_FILE to its path.
|
|
|
|
# MySQL connection
|
|
DB_HOST=localhost
|
|
DB_USER=xxx
|
|
DB_PASS=
|
|
DB_NAME=xxx
|
|
|
|
# Google reCAPTCHA v2 keys (https://www.google.com/recaptcha/admin)
|
|
RECAPTCHA_SITE_KEY=
|
|
RECAPTCHA_SECRET=
|
|
|
|
# Google Analytics tracking ID. Leave it empty to turn analytics off.
|
|
GOOGLE_ANALYTICS_ID=
|
|
|
|
# Directory for uploaded images waiting to be saved. Keep it outside the
|
|
# web root. The default is xxx-uploads in the system temporary directory.
|
|
UPLOAD_DIR=
|