This version was patched to primarily work with PHP 8.x, but will work with PHP
7 as well. PHP 5... as 0f 2026/10/30, it is possible again.


Some things:

* Everything seems to work properly except the dynamic banner to an extent. It
  is possible to view it by itself, but the image is not generated to the
  resultant .epub file, so the dynamic banner ends up broken.

* Epub.php needed an each() shim attached for now.

* Added the official ePub logo for skin use, 16x16 size. Should probably add a
  24x24 version or something.

* Fixed the Table of Contents link oversight, which also plagued Display Word.
  [Properly fixed 2026/09/23]

* Fixed generating ePub books when no cover image is selected, by author or
  admin.

* Fixed generating ePub books when no image support is enabled. Also disabled
  error message in cover images, as it is technically not needed for Cover
  Image: NONE choices.

* Added optional blank-cover.png image.

* typo fix in cover_img.php.

* install.php uses eFiction dbnumrows() function instead of hardcoded
  mysql_num_rows or mysqli_num_rows functions.

* uninstall.php was missing the epubversion language include(), so fixed.

* Module has been converted to support PHP 5 again... partially. You do n

* install.php has been fixed to support table column epubread to be higher than
  127, e.g. from tinyint(1) to int(1). May need to be set higher. You're going
  to have to update this yourself if this module is already installed.

* upgrade.php uses eFiction dbnumrows() function instead of hardcoded
  mysql_num_rows functions.

* default_tpls now has fixed versions in the default_tpls and its variants
  subdirectory. A chosen variant should be renamed to epubs.tpl after adding it
  to default_tpls and a skin, since not all skins use the same listbox style
  (some use {oddeven}, some do not).

* a new file, browse_timestamp.php now exists. Only needed for e107-efiction
  and eFiction 3 Mod, as the dates are stored using the Unix timestamp instead
  of datetimes like the upstream eFiction releases. If you are using either
  version, replace the original browse.php file with that version.

* Deprecation notice fixes in libs/HTMLPurifier.standalone.php regarding
  #[\ReturnTypeWillChange] for PHP 8.x users. A later PHP class version upgrade
  fixes this, however. (Spoiler: no.)

* Deprecation notice fixes in dynban.php and dyncover.php re: passing null to
  stripslashes for PHP 8.x users.

* Deprecation notice definitive fixes in libs/HTMLPurifier.standalone.php
  regarding #[\ReturnTypeWillChange] for PHP 8.x users. The later class version
  did not fix it, but specifying bool and mixed in their respective spots have
  fixed this in the original and newer class versions. What I did discover,
  however, is that the later ePub+Zip classes actually write the UTC timestamp
  attributes properly to files, unlike the currently packed version.

                                                                   Ami Sapphire
        2026/09/16, 2026/09/19, 2026/09/23, 2026/09/25, 2026/09/28, 2026/10/30,
                                 2026/11/02, 2026/11/11, 2026/11/15, 2026/11/16
