Table of Contents generated with DocToc
- Project: artgallery
This is a very simple Art Gallery application/website written in PHP
.
It allows users to show their art (captured as an image).
- A webserver capable of running PHP,
shell_exec
andexec
need to be enabled forPHP
imagick
tool installed (for the use ofconvert
tool),wget
needs to be availableSQLite3
Jquery
(included in this release)SweetAlert
(incluced in this release). SweetAlert 2 GitHub.
- Checkout or Download the project to your webHost
- Edit the
/appConst.php
file:- For security reason, make sure to change the default values of
DB_LOCATION
,DB_NAME
- For security reason, change the admin folder name (Default is
/adminup
) - Create an
.htaccess
file in the admin folder rendering said folder accessible to authorized users only Please Read more here
- For security reason, make sure to change the default values of
- Access the file
/adminup/test_run.php
through your browser. If everything has been set properly, you will not see any error message. - Make sure to set
DEV
global constant to false in/appConst.php
. You can choose to edit other Global variables.- set
SHOW_RAND_GALLERY
totrue
orfalse
if you would like a gallery of random items to show. MAX_RAND_GALLERY
is the number of random items to be shown whenSHOW_RAND_GALLERY
is set to true.GALLERY_ACCESS_CODE
set this code to anything if you would like a code to be provided before visitors can see your art.
- set
- Enjoy :). To Add/Edit/Hide/Show/Purge items into/from your gallery, access the admin page
- You might want to Edit the style sheet in
index.php
to customize the Gallery to your liking.
- Light weight
< 1 MB
. - Your Gallery can be rearranged by dragging and dropping the uploaded items in any order you want.
- You can pick which items to show and/or hide.
- You can make your gallery accessible only to visitors with a particular token.
- Navigate Gallery with
Right
andLeft
keyboard keys.
Screenshot (no item in gallery)
Mobile version screenshot
Admin Screenshot
A: This happens because you might have not set up your .htaccess
file properly. Make sure the .htaccess has the full path to the .htpasswd file as in:
AuthUserFile /full/file/path/.htpasswd`
A: DEV
constant in appConst.php
is probably set to true
. Set that value to false
.
A: Make sure of the followings
apache
has write access to the imgs folder- the file size in
php.ini
is not too small