diff --git a/about.html b/about.html new file mode 100644 index 0000000..2379a87 --- /dev/null +++ b/about.html @@ -0,0 +1,13 @@ +

Authors

+

COPS is developped and maintained by Sébastien Lucas.

+ +

See full history on Github to check all authors.
+COPS use some external librairies, check README for the details.

+ +

Copyright

+

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
+The complete content of license is provided in file COPYING within distribution and also available online.

+ +

Contact

+

For more info please visit COPS Home Page

+

You can also check COPS's topic on MobileRead forum.

\ No newline at end of file diff --git a/about.xml b/about.xml index 35043ed..5c867d0 100644 --- a/about.xml +++ b/about.xml @@ -1,29 +1,21 @@ -
-
Authors
-
+
+

About COPS

+

Authors

COPS is developped and maintained by Sébastien Lucas.

See full history on Github to check all authors.

COPS use some external librairies, check README for the details.

-
-
Copyright
-
+

Copyright

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

The complete content of license is provided in file COPYING within distribution and also available online.

-
-
Contact
-
+

Contact

For more info please visit COPS Home Page

You can also check COPS's topic on MobileRead forum.

-
-
Thanks
-
+

Thanks

Thanks a lot to Kovid Goyal for Calibre.

And many thanks to all those who helped test COPS.

-
-
\ No newline at end of file diff --git a/base.php b/base.php index 55fa0f7..e8aa64a 100644 --- a/base.php +++ b/base.php @@ -377,8 +377,10 @@ class Page } } else { array_push ($this->entryArray, Author::getCount()); - array_push ($this->entryArray, Serie::getCount()); - array_push ($this->entryArray, Tag::getCount()); + $series = Serie::getCount(); + if (!is_null ($series)) array_push ($this->entryArray, $series); + $tags = Tag::getCount(); + if (!is_null ($tags)) array_push ($this->entryArray, $tags); foreach ($config['cops_calibre_custom_column'] as $lookup) { $customId = CustomColumn::getCustomId ($lookup); if (!is_null ($customId)) { diff --git a/bookdetail.php b/bookdetail.php index d9430f7..f8e3676 100644 --- a/bookdetail.php +++ b/bookdetail.php @@ -17,19 +17,8 @@ $serie = $book->getSerie (); $book->getLinkArray (); ?> - -
- -
- -
-
+
+ hasCover) { ?> @@ -39,21 +28,19 @@ $book->getLinkArray (); -
-
+ getDatas() as $data) { ?> - +

format ?>

-
-
" alt="" />title) ?>
-
- -
+

" alt="" />title) ?>

+

+

:

+ getLinkArray (); -
-
+

0) { ?> -
- -
+

+

:

+ getLinkArray (); -
-
+

-
-
- -
+

+

:

seriesIndex, htmlspecialchars ($serie->name)) ?> -
+

getPubDate() != "") { ?> -
- +

+

:

getPubDate() ?> -
+

getLanguages () != "") { ?> -
- +

+

:

getLanguages () ?> -
- + -
-
-
-
-
>getComment (false) ?>
-
-
\ No newline at end of file +
+

+
>getComment (false) ?>
+ \ No newline at end of file diff --git a/checkconfig.php b/checkconfig.php index 8a36162..4b81e4f 100644 --- a/checkconfig.php +++ b/checkconfig.php @@ -10,7 +10,7 @@ require_once ("config.php"); require_once ("base.php"); - header ("Content-Type:application/xhtml+xml"); + header ("Content-Type:text/html; charset=UTF-8"); $err = getURLParam ("err", -1); $error = NULL; @@ -21,38 +21,35 @@ } ?> - - + + - - - + COPS Configuration Check " media="screen" />
-
+
-

COPS Configuration Check

+

COPS Configuration Check

-
-
+ -
+
-
-
You've been redirected because COPS is not configured properly
-
-
+
+

You've been redirected because COPS is not configured properly

+

+
-
-
Check if GD is properly installed and loaded
-
+
+

Check if GD is properly installed and loaded

+

-

-
-
-
Check if Sqlite is properly installed and loaded
-
+ + +
+

Check if Sqlite is properly installed and loaded

+

-

-
-
-
Check if libxml is properly installed and loaded
-
+ + +
+

Check if libxml is properly installed and loaded

+

-

-
+ + $database) { ?> -
-
Check if Calibre database file exists and is readable
-
+
+

Check if Calibre database file exists and is readable

"; } ?> -
-
-
-
Check if Calibre database file can be opened with PHP
-
+ +
+

Check if Calibre database file can be opened with PHP

+

-

-
-
-
Check if Calibre database file contains at least some of the needed tables
-
+ + +
+

Check if Calibre database file contains at least some of the needed tables

+

-

-
+ + -
+ +
diff --git a/images/home.png b/images/home.png index 2b36f75..c3bfde9 100644 Binary files a/images/home.png and b/images/home.png differ diff --git a/images/info.png b/images/info.png index 38d9e76..5f9894b 100644 Binary files a/images/info.png and b/images/info.png differ diff --git a/images/next.png b/images/next.png index d258ec2..9abcd7e 100644 Binary files a/images/next.png and b/images/next.png differ diff --git a/images/previous.png b/images/previous.png index e41d472..55eeb89 100644 Binary files a/images/previous.png and b/images/previous.png differ diff --git a/images/search32.png b/images/search32.png index 1bf96bf..7f3e5fe 100644 Binary files a/images/search32.png and b/images/search32.png differ diff --git a/images/setting64.png b/images/setting64.png index da8ca57..7bdc3ac 100644 Binary files a/images/setting64.png and b/images/setting64.png differ diff --git a/images/sort32.png b/images/sort32.png index e6fe3b6..0e6c5c9 100644 Binary files a/images/sort32.png and b/images/sort32.png differ diff --git a/index.php b/index.php index 3913027..681455a 100644 --- a/index.php +++ b/index.php @@ -39,20 +39,18 @@ * HTTP_USER_AGENT = "Mozilla/5.0 (Linux; U; en-us; EBRD1101; EXT) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" */ - if (preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) { - $isEink = 1; - } else { - $isEink = 0; - } + if (preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) { + $isEink = 1; + } else { + $isEink = 0; + } ?> - - + + - - - + <?php echo htmlspecialchars ($currentPage->title) ?> @@ -63,17 +61,15 @@ + " media="screen" /> + " />