}\r
\r
public function setChapters($book_id, $json) {\r
- $chapters = json_decode($json,TRUE);\r
+ $chapters = json_decode($json, TRUE);\r
$res = array();\r
\r
foreach ($chapters as $c) {\r
$c['label'] = trim($c['label']);\r
$n = (string) $c['page'];\r
- $c['label'] = trim(preg_replace('|' . $n . '$|', '', $c['label']));\r
+ $c['label'] = trim(preg_replace('|' . $n . '$|iu', '', $c['label']));\r
$res[] = $c;\r
}\r
\r
return;\r
}\r
\r
- $res = $this->compile3($book_id, $complete);\r
+ $res = $this->compile3($book_id, $complete, $book);\r
$this->compile1($book_id);\r
$this->touchCompile($book_id);\r
return $res;\r
$it = new imageTools();\r
\r
\r
- $image = WS_DOCS . '/' . $page['document_id'] . '/html/t36-' . $page['document_page'] . '.jpg';\r
+ $image = WS_DOCS . '/' . $page['document_id'] . '/html/t150-' . $page['document_page'] . '.jpg';\r
\r
\r
try {\r
$jpg2swf->setArg('o', $tempswf[$i]);\r
$jpg2swf->setArg(null, $tempimage[$i]);\r
$jpg2swf->execute();\r
+ \r
+ fb($jpg2swf);\r
\r
$swfcombine->setArg(null, $tempswf[$i]);\r
}\r