$compilerDir = WS_BOOKS . '/datasCompiler/' . $book_id . '/';\r
$finalDir = WS_BOOKS . '/final/' . $book_id . '/';\r
\r
+ $rm = new cubeCommandLine('rm');\r
+ $rm->setArg('r');\r
+ $rm->setArg('f');\r
+ $rm->setArg(null, $finalDir);\r
+ $rm->execute();\r
+ mkdir($finalDir, 0777, true);\r
+\r
$book = $this->selectById($book_id);\r
$pages = $this->getPagesOfBook($book_id);\r
\r
$flexLight = new cubeFlexCompiler('FluidbookDatasLight', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH, 10);\r
\r
$filesToCopy = array();\r
-\r
$this->compileFlex($book_id, $complete, $compilerDir, $finalDir, $filesToCopy, $book, $pages, $flex, $flexLight);\r
\r
-\r
$res .= $flex->compile() . "\n\n-------------------\n\n";\r
$flexLight->addVariable('datasSize', filesize($compilerDir . '/FluidbookDatas.swf'));\r
$res .= $flexLight->compile();\r
$it->loadImage($image);\r
$it->resize($book->parametres->widgetSize, 10000);\r
$it->output('jpeg', $tempimage[$i], 100);\r
- \r
} catch (Exception $e) {\r
fb($e->getMessage());\r
$tempimage[$i] = $image;\r