}\r
\r
public static function exportbookExe($args, &$x) {\r
- fb($_POST);\r
\r
$dest = array('dir' => null, 'file' => null);\r
if (isset($_POST['destination']) && is_array($_POST['destination'])) {\r
}
protected function _download() {
- $this->x->addRedirection(wsPackager::package($this->book_id, $this->version));
+ $r = wsPackager::package($this->book_id, $this->version);
+ fb($r);
+ $this->x->addRedirection($r);
}
protected function _getVersion($version) {
}
}
-
?>
\r
public function makePackage($zip) {\r
$this->preparePackage();\r
- if (SERVER == 'dictator') {\r
- $url = 'http://installer.fluidbook.com/make.php?nsi=' . base64_encode($this->nsi) . '&junk=' . TIME;\r
- file_get_contents($url);\r
- } else {\r
- $tmp=cubeFiles::tempnam();\r
- file_put_contents($tmp, $this->nsi);\r
- $makensis=new cubeCommandLine('makensis');\r
- $makensis->setArg(null,$tmp);\r
- $makensis->execute();\r
- unlink($tmp);\r
- }\r
+\r
+ $tmp = cubeFiles::tempnam();\r
+ file_put_contents($tmp, $this->nsi);\r
+ $makensis = new cubeCommandLine('makensis');\r
+ $makensis->setArg(null, $tmp);\r
+ $makensis->execute();\r
+\r
+ fb($this->nsi);\r
+ fb($makensis->command);\r
+ fb($makensis->output);\r
+ unlink($tmp);\r
\r
\r
return $this->getURLBase('exe');\r