- PHP 59.2%
- CSS 20.6%
- JavaScript 20.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| css | ||
| fonts | ||
| functions | ||
| images | ||
| js | ||
| .gitignore | ||
| .htaccess | ||
| account-logout.php | ||
| admin-create-account.php | ||
| ajax-admin.php | ||
| ajax-album-addimage.php | ||
| ajax-album-create.php | ||
| ajax-album-edit.php | ||
| ajax-album-get-albums.php | ||
| ajax-album-get-images.php | ||
| ajax-edit.php | ||
| ajax-flagimage.php | ||
| ajax-getimages.php | ||
| ajax-login.php | ||
| ajax-register.php | ||
| ajax-upload.php | ||
| composer.json | ||
| composer.lock | ||
| config.yml | ||
| img.php | ||
| index.php | ||
| LICENSE | ||
| page-about.php | ||
| page-admin-users.php | ||
| page-admin.php | ||
| page-albums.php | ||
| page-errors.php | ||
| page-home.php | ||
| page-info.php | ||
| page-privacy.php | ||
| page-rules.php | ||
| README.md | ||
| show-image.php | ||
| site-footer.php | ||
| site-functions.php | ||
| site-header.php | ||
| site-settings.php | ||
Pic
Pic is an image-sharing site with end-to-end encryption. Every image uploaded is converted to WebP, has all metadata removed, and is encrypted at client level. Pic does not use a database at all.
Read more at pic.airikr.me/about.
Self-hosting
You can install Pic yourself on your own server. All you need is Apache or nginx and PHP.
- Clone this repository to the location where you want the directory containing the files to be (for example,
/var/www/html). - Point the web server to the directory and restart the web server.
- Change
domaininconfig.ymlto the domain you will be pointing Pic to. - Change
rootinconfig.ymlto the root directory where Pic is located (for example,/var/www/html).
- All files created by Pic (such as user data) will be stored outside the root directory (for example,
/var/www/html) and saved in{root}/files/pic. This can be changed on line 33 ofsite-settings.php. It is recommended that all these files be stored outside the root directory. - The directory specified on line 33 of
site-settings.phpshould be created as soon as you visit the webpage on your server.
- If you do not have a Pic directory for an existing website (e.g.
https://domain.tld/pic), remove/picfrom lines 31–33 and line 36 in.htaccess. - Create an admin account by going to
https://pic.domain.tld/admin-create-account.phporhttps://domain.tld/pic/admin-create-account.php - Log in using the login details provided by the website, and you can start using Pic.
AI
AI has been used to write all the code for and encrypt the files that are uploaded. The processing of the uploaded images (before they are saved on the server) has also been written by AI, including the display of thumbnails in the gallery.
AI can make mistakes, so if you have the relevant knowledge, please review the AI-generated code and contact me if you have found any vulnerabilities or other issues that need to be addressed.
All other code has been written by me by hand.