}\r
$book = $dao->selectById($this->args['book_id']);\r
\r
- $absoluteURL = 'http://' . $_SERVER['HTTP_HOST'] . '/viewer/' . $book->book_id . '_' . $book->hash . '_' . TIME . '/';\r
+ $viewer='viewer';\r
+ if(wsDroits::admin()){\r
+ $viewer='vieweru';\r
+ }\r
+\r
+ $absoluteURL = 'http://' . $_SERVER['HTTP_HOST'] . '/'.$viewer.'/' . $book->book_id . '_' . $book->hash . '_' . TIME . '/';\r
$this->xml->addChild('compiledBook', $absoluteURL . 'index.swf?base=' . $absoluteURL);\r
}\r
}\r
<?php\r
+\r
class wsBox extends cubeMetier {\r
- protected $top;\r
- protected $left;\r
- protected $right;\r
- protected $bottom;\r
- protected $width;\r
- protected $height;\r
\r
- public function __construct($top, $left, $right, $bottom)\r
- {\r
- $this->top = $top;\r
- $this->left = $left;\r
- $this->right = $right;\r
- $this->bottom = $bottom;\r
+ protected $top;\r
+ protected $left;\r
+ protected $right;\r
+ protected $bottom;\r
+ protected $width;\r
+ protected $height;\r
+\r
+ public function __construct($top, $left, $right, $bottom) {\r
+ $this->top = $top;\r
+ $this->left = $left;\r
+ $this->right = $right;\r
+ $this->bottom = $bottom;\r
+\r
+ $this->width = $this->right - $this->left;\r
+ $this->height = $this->bottom - $this->top;\r
+ }\r
\r
- $this->width = $this->right - $this->left;\r
- $this->height = $this->bottom - $this->top;\r
- }\r
}\r
\r
?>
\ No newline at end of file