sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o uid=33 -o gid=33 -o allow_other fluidbook@kingkong.cubedesigners.com:/home/fluidbook/data/docs /usfiles
fi
-mkdir -p /toolbox
-if mountpoint -q "/toolbox"; then
+mkdir -p /application/protected/fluidbookpublication
+if mountpoint -q "/application/protected/fluidbookpublication"; then
:
else
- sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -p 58745 -o uid=33 -o gid=33 -o allow_other toolbox@toolbox.fluidbook.com:/application/protected/fluidbookpublication /toolbox
+ sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -p 58745 -o uid=33 -o gid=33 -o allow_other toolbox@toolbox.fluidbook.com:/application/protected/fluidbookpublication /application/protected/fluidbookpublication
fi
\ No newline at end of file
<?php
-die(file_exists('/files/status') && file_exists('/usfiles/status') && file_exists('/toolbox/stats') ? '1' : '0');
\ No newline at end of file
+die(file_exists('/files/status') && file_exists('/usfiles/status') && file_exists('/toolbox/status') ? '1' : '0');
\ No newline at end of file
<?php
use Fluidbook\Farmer\ProcessFile;
+use Fluidbook\Farmer\ProcessFileNoMapping;
require_once __DIR__ . "/vendor/autoload.php";
-$p = new ProcessFile($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']);
+
+if (isset($_POST['toolbox'])) {
+ $class = ProcessFileNoMapping::class;
+} else {
+ $class = ProcessFile::class;
+}
+$p = new $class($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']);
die($p->process());
\ No newline at end of file
--- /dev/null
+<?php
+
+namespace Fluidbook\Farmer;
+
+
+class ProcessFileNoMapping extends ProcessFile{
+ public function getOut() {
+ $this->getDistantOut();
+ }
+
+ public function process() {
+ $this->getPath($this->isForce());
+ }
+}
\ No newline at end of file