define('WS_TOOLS', WS_FILES . '/tools');
define('WS_PACKAGER', WS_FILES . '/packager');
+define('UUS_FILES', '/application/usstorage/');
+define('US_BOOKS', US_FILES . '/books');
+define('US_COLLECTIONS', US_FILES . '/collections');
+define('US_DOCS', US_FILES . '/docs');
+define('US_ICONS', US_FILES . '/icones');
+define('US_THEMES', US_FILES . '/themes');
+define('US_CACHE', US_FILES . '/cache');
+define('US_COMPILE_ASSETS', US_FILES . '/compile');
+define('US_SOUNDS', US_FILES . '/sounds');
+define('US_TOOLS', US_FILES . '/tools');
+define('US_PACKAGER', US_FILES . '/packager');
+
define('WORKER_PREFIX', 'worker.');
define('CACHE', ROOT . '/cache');
public function duplicate($book_id, $createur, $nom = null, $pages = false, $complete = false, $region = 'UE')
{
$nextId = $this->getNextId();
- if ($region === 'US') {
- $this->initUSStorage($nextId);
- }
$r = $this->con->select('SELECT * FROM books_vue WHERE book_id=\'' . $this->con->escape($book_id) . '\'');
public function creeEmpty($createur, $lang, $nom, $region)
{
$nextId = $this->getNextId();
- if ($region === 'US') {
- $this->initUSStorage($nextId);
- }
$c = $this->con->openCursor('books');
\r
public function getAssetDir($sub = '')\r
{\r
+ if($this->region==='US'){\r
+ return rtrim(US_BOOKS . '/working/' . $this->getAssetDirId() . '/' . trim($sub, '/'), '/') . '/';\r
+ }\r
return rtrim(WS_BOOKS . '/working/' . $this->getAssetDirId() . '/' . trim($sub, '/'), '/') . '/';\r
}\r
\r