phpBB

Code Changes

File: includes/functions_compress.php

  Unmodified   Added   Modified   Removed
Line 409Line 409
	function close()
{
// Write out central file directory and footer ... if it exists

	function close()
{
// Write out central file directory and footer ... if it exists

		if (sizeof($this->ctrl_dir))

		if (count($this->ctrl_dir))

		{
fwrite($this->fp, $this->file());
}

		{
fwrite($this->fp, $this->file());
}

Line 511Line 511
		$ctrldir = implode('', $this->ctrl_dir);

return $ctrldir . $this->eof_cdh .

		$ctrldir = implode('', $this->ctrl_dir);

return $ctrldir . $this->eof_cdh .

			pack('v', sizeof($this->ctrl_dir)) .	// total # of entries "on this disk"
pack('v', sizeof($this->ctrl_dir)) . // total # of entries overall

			pack('v', count($this->ctrl_dir)) .	// total # of entries "on this disk"
pack('v', count($this->ctrl_dir)) . // total # of entries overall

			pack('V', strlen($ctrldir)) .			// size of central dir
pack('V', $this->datasec_len) . // offset to start of central dir
"\x00\x00"; // .zip file comment length

			pack('V', strlen($ctrldir)) .			// size of central dir
pack('V', $this->datasec_len) . // offset to start of central dir
"\x00\x00"; // .zip file comment length