A small project to provide a web interface for reading comics and webnovels int he CBZ and CBR format.
ajax | ||
comics | ||
core | ||
cron | ||
css | ||
img | ||
install | ||
js | ||
thumbs | ||
.gitignore | ||
.htaccess | ||
authfunctions.php | ||
downloadcomic.php | ||
functions.php | ||
header.php | ||
htmlfooter.php | ||
htmlheader.php | ||
index.php | ||
logout.php | ||
manifest.json | ||
README.md | ||
sess.php | ||
variables-dist.php |
Comics Viewer
This small project provides a web based viewer for comics in the CBZ and CBR formats. Comic archive files are parsed and extracted dynamically while browsing and viewing. Thumbnails are created for both series and issues the first time a folder is accessed.
This project requires
- PHP ImageMagick
- PHP RAR (PECL)
Don't forget to:
- Make sure the web server can read the folder than contains your comic book/novel archives
- Create a MySQL/MariaDB database for the app with privileges granted to a user
- Import the
install/initial_db_mysql.sql
database structure - Change the ownership of the
comics/
andthumbs/
folders to the web server user - Copy the
variables-dist.php
file tovariables.php
and edit that file appropriately - Set up the cron job for things in cron/. If installing on a systemd OS see services below.
Services
If installing on an OS that uses systemd there are service and timer files available to run the periodic jobs. They can be installed like so:
- Edit the script path to the appropriate installation location in the service file(s)
- Copy the service/timer files to the system:
sudo cp install/clearextracts.* /etc/systemd/system/
sudo systemctl daemon-reload
- Start the timer:
sudo systemctl start clearextracts.timer
- Enable the timer:
sudo systemctl enable clearextracts.timer