Update to latest version
這個提交存在於:
父節點
1bbfa09224
當前提交
e03d9bf23d
共有 1 個檔案被更改,包括 10 行新增 和 1 行删除
9
epub.php
9
epub.php
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
載入中…
新增表格
Add a link
新增問題並參考