Update to latest version

這個提交存在於:
Sébastien Lucas 2013-04-19 14:28:18 +02:00
父節點 1bbfa09224
當前提交 e03d9bf23d

檢視檔案

@ -160,9 +160,18 @@ class EPub {
} }
$data = $this->zip->FileRead($path); $data = $this->zip->FileRead($path);
$data = preg_replace ("/src=[\"']([\w\/\.]*?)[\"']/", "src='epubfs.php?comp=$1'", $data);
$data = preg_replace ("/href=[\"']([\w\/\.]*?)[\"']/", "href='epubfs.php?comp=$1'", $data);
return $data; return $data;
} }
/**
* Get the component content type
*/
public function componentContentType($comp) {
return $this->xpath->query("//opf:manifest/opf:item[@href='$comp']")->item(0)->getAttribute('media-type');
}
/** /**
* Get the Epub content (TOC) as an array * Get the Epub content (TOC) as an array
* *