Compare commits

..

No commits in common. "af6d0d8338feb668e14f6a09a42cc6e678150675" and "2222f6df9ead86468a1d3802f30982ae71e739a7" have entirely different histories.

3 changed files with 5 additions and 21 deletions

View File

@ -77,20 +77,10 @@ foreach ( $entries as $entry ) {
$folders[] = $info;
} else {
if ( (substr($entry, -3) == "cbz") || (substr($entry, -3) == "cbr") ) {
$withoutext = substr($entry, 0, -4);
if ( strlen($withoutext) <= ISSUELENGTHCUTOFF ) {
$info["comname"] = str_replace(" - ", "<br />", $withoutext);
} else {
if ( strpos($withoutext, " - ") !== false ) {
$info["comname"] = substr($withoutext, strpos($withoutext, " - ") + 3);
} else {
$info["comname"] = $withoutext;
}
}
//$info["comname"] = substr(((strpos($entry, " - ") !== false) ? str_replace(" - ", "<br />", $entry) : $entry), 0, -4);
$info["comname"] = substr(((strpos($entry, " - ") !== false) ? str_replace(" - ", "<br />", $entry) : $entry), 0, -4);
$info["relcomic"] = base64_encode($compath . (($compath == "/") ? "" : "/") . $entry);
$info["mtime"] = filemtime($fullcompath . $entry);
$info["thumburl"] = THUMBSDIR . $compath . (($compath == "/") ? "" : "/") . $withoutext . ".jpg";
$info["thumburl"] = THUMBSDIR . $compath . (($compath == "/") ? "" : "/") . substr($entry, 0, -4) . ".jpg";
if ( in_array($entry, $issues_read) ) {
$info["read"] = true;
$readclass = " readborder";

View File

@ -29,12 +29,6 @@ define('EXTRACTSDIR', 'comics');
//
define('ADULTMODE', false);
//
// The character count in the comic title where, when exceeded
// the folder/comic/series name will be removed for readability.
//
define('ISSUELENGTHCUTOFF', 25);
//
// Database information for tracking last read page
//

View File

@ -73,9 +73,9 @@ function makeThumb($item = "") {
$didwrite = file_put_contents($outfile, $imgdata);
if ( !$didwrite ) return false;
} elseif ( substr($comic, -3) == "cbr" ) {
$rar_file = RarArchive::open($comic);
$rar_file = rar_open($comic);
if ( $rar_file === false ) { return false; }
$entries = $rar_file->getEntries();
$entries = rar_list($rar_file);
$lowest = "~";
foreach ( $entries as $entry ) {
$imgname = $entry->getName();
@ -89,7 +89,7 @@ function makeThumb($item = "") {
}
}
}
$rar_file->close();
rar_close($rar_file);
} else {
return false;
}