Installation:
-
Get Linux. I used Raspbian.
-
Get Apache.
-
Get MySQL.
-
Get PHP.
-
Now, create a mysql database called images.
-
Then create two tables in your mysql database:
create table photos(
id MEDIUMINT NOT NULL AUTO_INCREMENT,
tags VARCHAR(1100) NOT NULL,
parent MEDIUMINT NOT NULL,
fileType CHAR(32) NOT NULL,
uploaded DATETIME NOT NULL,
PRIMARY KEY ( id )
);
create table folders(
id MEDIUMINT NOT NULL AUTO_INCREMENT,
name CHAR(32) NOT NULL,
parent MEDIUMINT NOT NULL,
created DATETIME NOT NULL,
PRIMARY KEY ( id )
);
- In your Apache root public folder, clone this repository.
- Add a directory called images.
- Copy assets/EXAMPLE_hidden.php to assets/hidden.php and add your credentials.
That's it! If you like what I made, say thank you by buying me a coffee!