1
0
Fork 0
mirror of https://github.com/lx-s/simple-image-share.git synced 2025-12-06 02:30:49 +01:00
Simple pin or password-protected, self hosted image uploader with file-lifetime management.
Find a file
2017-01-19 09:34:45 +01:00
data Added empty index.html file to data dirs to prevent directory listing. 2017-01-16 16:41:04 +01:00
inc Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
res/css Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
scripts Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
.gitignore Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
.htaccess Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
i.php Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
index.php Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
LICENSE Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00
README.md Updated Readme.MD with new project name 2017-01-19 09:34:45 +01:00
robots.txt Added everything. Made a short README. Added a License. 2017-01-16 16:32:01 +01:00

simple-image-share

Simple pin/password-protected, self hosted image uploader with file-lifetime management.

Requirements

  • PHP 5.6+
  • Apache (for .htaccess)

Installation and Configuration

  1. Unzip the release archive files somewhere within on your web server.
  2. Copy inc/conf.inc.sample.php to inc/conf.inc.php.
  3. Open inc/conf.inc.php
    1. Add a sha256 hashed password to the $pins array (use scripts/generate_password.php). If you don't want to use password protection, set REQUIRE_PIN to false and leave the $pins-array empty.
    2. If wanted, configure IMG_DIR to a another directory. I recommend to move this directory outside of the web accessible root, for security purposes.
  4. Give the web server write permissions to IMG_DIR.
  5. Enjoy image uploading

Configure automatic image cleanup

simple-image-share comes with functionality to regularly clean up your data directory. Since images can be uploaded with a lifetime of "a day", "a year" "a month" or "unlimited" some housekeeper has to clean the old cruft, and that's what inc/cron.php is for.

To use it, you have to configure a secret in 'inc/conf.inc.php' and create a cron- job for https://<path to simple-image-share>/inc/cron.php?secret=<yoursecret>.