PHP Comic Viewer Code
Status: Beta
Brought to you by:
devlogic
File | Date | Author | Commit |
---|---|---|---|
css | 2011-08-05 | devlogic | [r13] oh, yeah. AJAX support. |
img | 2011-08-05 | devlogic | [r13] oh, yeah. AJAX support. |
js | 2011-08-05 | devlogic | [r13] oh, yeah. AJAX support. |
README | 2011-08-05 | devlogic | [r16] added compilation hints for libnzip |
book.css | 2008-10-16 | devlogic | [r1] Initial import. Let's call this version 0.1. |
book.php | 2011-08-05 | devlogic | [r12] update for librar 3.0 |
config.php | 2011-08-05 | devlogic | [r15] |
ideas.txt | 2009-02-05 | devlogic | [r10] Something new I'm playing with, to replace the ... |
imager.php | 2009-02-05 | devlogic | [r10] Something new I'm playing with, to replace the ... |
index.css | 2008-10-16 | devlogic | [r1] Initial import. Let's call this version 0.1. |
index.php | 2009-02-24 | devlogic | [r11] na |
password.php | 2011-08-05 | devlogic | [r14] |
splitscreen.php | 2008-10-16 | devlogic | [r1] Initial import. Let's call this version 0.1. |
view_image.php | 2009-02-05 | devlogic | [r10] Something new I'm playing with, to replace the ... |
view_page.php | 2011-08-05 | devlogic | [r12] update for librar 3.0 |
php-cbviewer version 0.1 PHP-CBViewer is a web-based viewer for .cbr and .cbz "comic book archives". It utilizes the ZIP and RAR extensions to PHP, and maintains minimal filesystem usage by flushing its cache directory on each new pageload. At present it is only suitable for single-user installations, due to this cache-control mechanism. Requirements: PHP/RAR library (http://us.php.net/manual/en/rar.installation.php) PHP/Zip library (http://us3.php.net/manual/en/zip.installation.php) Note that you may need to install a pcre library in order to compile the zip library. Ubuntu and similar: libpcre3-dev, OS X Lion via Brew: pcre Setup: Edit config.php after making the following configurations: 1) Create a cache directory, which is web-accessible, to contain the current page. This cache directory must have the same parent directory as config.php. Give the cache directory sufficient permissions that the web server process can write to it (777, or chown()ed to the process owner of apache). Note that at present, when any page is loaded, everything else in this directory is deleted. Enter the basename of this directory (e.g., "cache") for $webcache in config.php. 2) Create a directory, which does not need to be web-accessible but does need to have sufficient permissions that the web server process can READ it (at least 555). Put all of your .cbr/.cbz files in this directory. Complex filesystem structures are OK; php-cbviewer will descend the filesystem tree. Enter the full path to this directory for $base in config.php. Copyright (C) 2008 Paul Leonard This program is free software; you can redistribute it and/or modify it under the terms of Version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.