-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from dunxd/COPS-3.2.2
Cops 3.2.2
- Loading branch information
Showing
870 changed files
with
164,922 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.git/ | ||
*.zip | ||
tests/ | ||
# keep the test database in the image here | ||
!tests/BaseWithSomeBooks/ | ||
tests/BaseWithSomeBooks/.calnotes/backup/ | ||
tests/BaseWithSomeBooks/.calnotes/retired/ | ||
tests/BaseWithSomeBooks/.caltrash/ | ||
tests/BaseWithSomeBooks/metadata_db_prefs_backup.json | ||
vendor/ | ||
# remove docker files | ||
docker/ | ||
docker-compose*.yaml | ||
# remove development files | ||
.vscode/ | ||
.yarn/ | ||
#!.yarn/releases | ||
#!.yarn/plugins | ||
.pnp.* | ||
# remove unused directories | ||
tools/ | ||
clover.xml | ||
coverage/ | ||
*.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{js,json,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[remote "upstream"] | ||
url = https://github.com/seblucas/cops.git | ||
fetch = +refs/heads/*:refs/remotes/upstream/* | ||
[remote "tryme"] | ||
url = https://github.com/SenorSmartyPants/cops.git | ||
fetch = +refs/heads/*:refs/remotes/tryme/* | ||
[remote "peltos"] | ||
url = https://github.com/peltos/cops.git | ||
fetch = +refs/heads/*:refs/remotes/peltos/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
DirectoryIndex index.php | ||
|
||
<IfModule mod_xsendfile.c> | ||
<Files fetch.php> | ||
XSendFile on | ||
</Files> | ||
</IfModule> | ||
|
||
########################################### | ||
# If the notation above don't work, you can try that one | ||
# Disclaimer : I'm no apache expert it can be bad security wise :( | ||
########################################### | ||
#XSendFile On | ||
#XSendFileAllowAbove on | ||
|
||
########################################### | ||
# On WAMP one user had to add this line in his httpd.conf | ||
# None of the above was working | ||
########################################### | ||
#XSendFilePath <YourCalibrePath> | ||
|
||
########################################### | ||
# If you want to use user based configuration with | ||
# apache 2.4 + php-fpm enable this | ||
# https://github.com/seblucas/cops/issues/213 | ||
########################################### | ||
#SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 | ||
|
||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
# @deprecated 3.1.0 use route urls instead | ||
RewriteRule ^download/(\d+)/(\d+)/.*\.(.*)$ index.php/fetch/$2/$1/ignore.$3 [L] | ||
RewriteRule ^download/(\d+)/.*\.(.*)$ index.php/fetch/0/$1/ignore.$2 [L] | ||
RewriteRule ^view/(\d+)/(\d+)/.*\.(.*)$ index.php/inline/$2/$1/ignore.$3 [L] | ||
RewriteRule ^view/(\d+)/.*\.(.*)$ index.php/inline/0/$1/ignore.$2 [L] | ||
# with $config['cops_front_controller'] = 'index.php' | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^(.*) index.php [L,E=PATH_INFO:/$1] | ||
</IfModule> | ||
|
||
<IfModule mod_expires.c> | ||
ExpiresActive on | ||
|
||
# Data | ||
ExpiresByType text/xml "access plus 0 seconds" | ||
ExpiresByType application/xml "access plus 0 seconds" | ||
ExpiresByType application/json "access plus 0 seconds" | ||
ExpiresByType application/xhtml+xml "access plus 0 seconds" | ||
|
||
# Favicon (cannot be renamed) | ||
ExpiresByType image/x-icon "access plus 1 week" | ||
|
||
# Media: images | ||
ExpiresByType image/png "access plus 1 month" | ||
ExpiresByType image/jpg "access plus 1 month" | ||
ExpiresByType image/jpeg "access plus 1 month" | ||
|
||
# Webfonts | ||
ExpiresByType font/truetype "access plus 1 month" | ||
ExpiresByType font/opentype "access plus 1 month" | ||
ExpiresByType application/x-font-woff "access plus 1 month" | ||
ExpiresByType image/svg+xml "access plus 1 month" | ||
ExpiresByType application/vnd.ms-fontobject "access plus 1 month" | ||
|
||
# CSS and JavaScript | ||
ExpiresByType text/css "access plus 1 year" | ||
ExpiresByType application/javascript "access plus 1 year" | ||
ExpiresByType text/javascript "access plus 1 year" | ||
</IfModule> | ||
|
||
########################################### | ||
# Uncomment if you wish to protect access with a password | ||
########################################### | ||
# If your covers and books are not available as soon as you protect it | ||
# You can try replacing the FilesMatch directive by this one | ||
# <FilesMatch "(index|feed)\.php"> | ||
# it helps for Sony PRS-TX and Aldiko, but beware fetch.php can be accessed | ||
# without authentication (see $config ['cops_fetch_protect'] for a workaround). | ||
########################################### | ||
#<FilesMatch "\.php$"> | ||
#AuthUserFile /path/to/file | ||
#AuthGroupFile /dev/null | ||
#AuthName "Acces securise" | ||
#AuthType Basic | ||
#Require valid-user | ||
#</FilesMatch> |
Oops, something went wrong.