From: vincent@cubedesigners.com Date: Fri, 2 Apr 2010 10:17:28 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d1ac6363b85b49292b8200c69937e76c4375c35c;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/class.ws.flash.php b/inc/ws/Controlleur/class.ws.flash.php index e7ebd2f40..bff99cc33 100644 --- a/inc/ws/Controlleur/class.ws.flash.php +++ b/inc/ws/Controlleur/class.ws.flash.php @@ -128,7 +128,11 @@ class wsFlash extends cubeFlashGateway { { global $core; $dao = new wsDAOTheme($core->con); - $theme = $dao->getThemeOfBook($this->args['book_id']); + if (isset($this->args['theme_id'])) { + $theme = $dao->selectById($this->args['theme_id']); + } else { + $theme = $dao->getThemeOfBook($this->args['book_id']); + } $this->_themeToXML($theme); } @@ -139,10 +143,17 @@ class wsFlash extends cubeFlashGateway { $dao = new wsDAOTheme($core->con); $themes = $dao->getAllThemes(); foreach($themes as $theme) { - $this->_themeToXML($theme); + $t = $this->xml->addChild('theme'); + $t->addAttribute('id', $theme->theme_id); + $t->addAttribute('nom', $theme->nom); } } + public function postThemeShot() + { + file_put_contents(ROOT . '/themes/' . $this->args['theme_id'] . '.jpg', base64_decode($this->args['data'])); + } + public function getAllIcones() { global $core; @@ -152,7 +163,7 @@ class wsFlash extends cubeFlashGateway { $i = $this->xml->addChild('icone'); $i->addAttribute('id', $icone->icone_id); $i->addAttribute('nom', $icone->nom); - $i->addAttribute('path', ICONS . $icone->icone_id . '.png'); + $i->addAttribute('path', ICONS . $icone->icone_id . '.png'); } } diff --git a/swf/_src/wsComposer.fla b/swf/_src/wsComposer.fla index 1d92c219d..441e120c4 100644 Binary files a/swf/_src/wsComposer.fla and b/swf/_src/wsComposer.fla differ