continue;
}
$p = str_replace($dest . '/', '', $path);
- foreach ($ignore as $i) {
- if (preg_match('|' . $i . '|i', $p, $matches)) {
- continue 2;
- } else {
- $ext = strtolower(files::getExtension($p));
- if (in_array($ext, $videosExtensions)) {
- $videos[$ext][] = $path->getFilename();
- continue 2;
- }
- }
- }
$lines[] = $p;
}
}
class multimediaLink extends wsHTML5Link {
public function getHTMLContent() {
- $this->copyExternalFile($this->to);
+ //$this->copyExternalFile($this->to);
$w = $this->width * $this->compiler->getCssScale();
$h = $this->height * $this->compiler->getCssScale();
if ($this->alternative != '') {
$this->copyExternalFile($this->alternative);
}
$alt = $this->alternative == '' ? '' : '<img src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $w . '" height="' . $h . '" />';
+ return $alt;
return cubeMedia::flashObject(wsHTML5Link::getUniversalLocation($this->to), $w, $h, array(), '', '', 9, '#ffffff', $alt, 'true', 'default', 'transparent');
}
$this->book_id = $book_id;\r
\r
$this->vdir = $vdir;\r
- $this->dir = WS_SHM . '/packager/' . $book_id . '/';\r
+ $this->dir = ROOT . '/fluidbook/packager/' . $book_id . '/';\r
$this->whole = $whole;\r
\r
if (!file_exists($this->dir)) {\r
\r
$this->daoBook = new wsDAOBook($core->con);\r
$this->book = $this->daoBook->selectById($book_id);\r
- $this->pages = $this->daoBook->getPagesOfBook($book_id,false);\r
+ $this->pages = $this->daoBook->getPagesOfBook($book_id, false);\r
\r
$daoTheme = new wsDAOTheme($core->con);\r
$this->theme = $daoTheme->getThemeOfBook($book_id, true);\r
$rename = true;\r
}\r
\r
+ if (file_exists($zipfile)) {\r
+ unlink($zipfile);\r
+ }\r
+\r
$zip = new cubeCommandLine('zip');\r
$zip->cd($this->vdir);\r
$zip->setArg(null, $zipfile);\r
$zip->setArg('0');\r
- $zip->setArg('u');\r
$zip->setArg('r');\r
- $zip->setArg('X');\r
$zip->setArg(null, '.');\r
$zip->execute();\r
\r
if (is_null($this->vdir)) {\r
$this->vdir = $this->dir . $this->version . '/';\r
}\r
- fb($this->vdir);\r
$this->cleanVdir();\r
mkdir($this->vdir . '/data', 0777, true);\r
}\r