$s = ' (' . ($i + 1) . '/' . $total . ')';\r
}\r
\r
-\r
-\r
// Send the email\r
$mail = new cubeMail();\r
$mail->returnPath = 'postmaster@fluidbook.com';\r
$cover = WS_DOCS . '/' . $pages[1]['document_id'] . '/p' . $pages[1]['document_page'] . '.jpg';\r
}\r
}\r
-\r
-\r
cubeHTTP::relayFile($cover);\r
-\r
exit;\r
}\r
\r
header('Location: http://www.wesco-eshop.fr');\r
}\r
\r
+ public function collection() {\r
+ $this->outputXML = false;\r
+ header('Content-type: application/json');\r
+ echo '[]';\r
+ exit;\r
+ }\r
+\r
}\r
\r
?>
\ No newline at end of file
protected function _createProject($os, $name, $ns) {
if ($os == 'ios') {
-
$dir = '/Phonegap/Projects/' . str_replace('.', '/', $ns);
$sdir = '/mnt/macbox' . $dir;
if (file_exists($sdir)) {
$cl->setArg(null, $dir);
$cl->setArg(null, $ns);
$cl->setArg(null, CubeIT_Text::str2URL($name));
- $cl->setSSH('paris.cubedesigners.com', 'vincent', 'iquique', 22022);
+ $cl->setSSH('paris.cubedesigners.com', 'vincent', '', 22022);
$cl->execute();
} elseif ($os == 'android') {
if ($this->action == 'references') {
- $root = '/home/fluidbook/www/references/';
+ $root = 'fluidbook@fluidbook.com:/home/fluidbook/www/references/';
$rootURL = 'http://www.fluidbook.com/references/';
} else if ($this->action == 'hosting') {
$root = '/home/fluidbook/hosting/';
return;
}
+ $destDistant = stristr($dest, '@');
+ if ($destDistant) {
+ list($distServer, $distDir) = explode(':', $dest);
+ }
+
+
if (!file_exists($dest)) {
- mkdir($dest, 0777, true);
+ if (!$destDistant) {
+ mkdir($dest, 0777, true);
+ } else {
+ `ssh $distServer "mkdir -p $distDir"`;
+ }
}
$cp = new cubeCommandLine('rsync');
$cp->setArg('force');
$cp->setArg('delete-after');
}
+ if ($destDistant) {
+ $cp->setArg('e', 'ssh');
+ }
$cp->setArg(null, rtrim($src, '/') . '/');
$cp->setArg(null, rtrim($dest, '/') . '/');
$cp->execute();