Compare commits
	
		
			2 Commits
		
	
	
		
			c9f6b01fdc
			...
			ae477ab888
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ae477ab888 | |||
| aa9bb4ad1a | 
| 
						 | 
				
			
			@ -54,13 +54,16 @@ function makeThumb($item = "") {
 | 
			
		|||
      $imgdata = null;
 | 
			
		||||
      for ( $i=0; $i<$zip->numFiles; $i++ ) {
 | 
			
		||||
         $imgname = basename($zip->getNameIndex($i));
 | 
			
		||||
         $imgext = strtolower(pathinfo($imgname)['extension']);
 | 
			
		||||
         if ( (strcmp($lowest, $imgname) > 0)
 | 
			
		||||
              && ((strcasecmp($imgext, "jpg") == 0)
 | 
			
		||||
                  || (strcasecmp($imgext, "png") == 0)
 | 
			
		||||
                  || (strcasecmp($imgext, "webp") == 0)) ) {
 | 
			
		||||
            $lowest = $imgname;
 | 
			
		||||
            $imgdata = $zip->getFromIndex($i);
 | 
			
		||||
         $parts = pathinfo($imgname);
 | 
			
		||||
         if ( isset($parts['extension']) ) {
 | 
			
		||||
            $imgext = strtolower($parts['extension']);
 | 
			
		||||
            if ( (strcmp($lowest, $imgname) > 0)
 | 
			
		||||
                 && ((strcasecmp($imgext, "jpg") == 0)
 | 
			
		||||
                     || (strcasecmp($imgext, "png") == 0)
 | 
			
		||||
                     || (strcasecmp($imgext, "webp") == 0)) ) {
 | 
			
		||||
               $lowest = $imgname;
 | 
			
		||||
               $imgdata = $zip->getFromIndex($i);
 | 
			
		||||
            }
 | 
			
		||||
         }
 | 
			
		||||
      }
 | 
			
		||||
      $zip->close();
 | 
			
		||||
| 
						 | 
				
			
			@ -74,14 +77,17 @@ function makeThumb($item = "") {
 | 
			
		|||
      $lowest = "~";
 | 
			
		||||
      foreach ( $entries as $entry ) {
 | 
			
		||||
         $imgname = $entry->getName();
 | 
			
		||||
         $imgext = strtolower(pathinfo($imgname)['extension']);
 | 
			
		||||
         if ( (strcmp($lowest, $imgname) > 0)
 | 
			
		||||
              && ((strcasecmp($imgext, "jpg") == 0)
 | 
			
		||||
                  || (strcasecmp($imgext, "png") == 0)
 | 
			
		||||
                  || (strcasecmp($imgext, "webp") == 0)) ) {
 | 
			
		||||
            $lowest = $imgname;
 | 
			
		||||
            $didwrite = $entry->extract(false, $outfile);
 | 
			
		||||
            if ( !$didwrite ) { return false; }
 | 
			
		||||
         $parts = pathinfo($imgname);
 | 
			
		||||
         if ( isset($parts['extension']) ) {
 | 
			
		||||
            $imgext = strtolower($parts['extension']);
 | 
			
		||||
            if ( (strcmp($lowest, $imgname) > 0)
 | 
			
		||||
                 && ((strcasecmp($imgext, "jpg") == 0)
 | 
			
		||||
                     || (strcasecmp($imgext, "png") == 0)
 | 
			
		||||
                     || (strcasecmp($imgext, "webp") == 0)) ) {
 | 
			
		||||
               $lowest = $imgname;
 | 
			
		||||
               $didwrite = $entry->extract(false, $outfile);
 | 
			
		||||
               if ( !$didwrite ) { return false; }
 | 
			
		||||
            }
 | 
			
		||||
         }
 | 
			
		||||
      }
 | 
			
		||||
      rar_close($rar_file);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,6 +12,7 @@ var lightbox = null;
 | 
			
		|||
 | 
			
		||||
function getFolderContents() {
 | 
			
		||||
   $("#list").html("");
 | 
			
		||||
   toastr.info("Loading folder contents. Comics containing a large number of issues, or issues with a large number of pages, that have not been opened recently may take some time to load. Thank you for your patience!", "Loading Contents...", {timeOut: 15000});
 | 
			
		||||
   $.ajax({
 | 
			
		||||
      url      : 'ajax/getfoldercontents.php',
 | 
			
		||||
      dataType : 'json',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user