self::cleanCachesCollection($id);
- if ($_GET['ctrl']) {
+ if (isset($_GET['ctrl']) && $_GET['ctrl'] !== 'false') {
$_GET['ctrl'] = false;
self::exportCollection(array('exportCollection', $id, 'ios'), $x);
}
- if ($_GET['alt']) {
+ if (isset($_GET['alt']) && $_GET['alt'] !== 'false') {
$_GET['alt'] = false;
self::exportCollection(array('exportCollection', $id, 'android'), $x);
}
public $x;
public $ftpPassiveMode = false;
- //const VINCENT = "paris.cubedesigners.com";
- const VINCENT = "tortuga.enhydra.fr";
+ const VINCENT = "paris.cubedesigners.com";
+ //const VINCENT = "tortuga.enhydra.fr";
public function exportCollection($collectionId, $os)
{
\r
// Sign app\r
$cl = new CubeIT_CommandLine($local_root . 'sign');\r
- //$cl->setSSH('paris.cubedesigners.com', 'vincent', 'atacama', 22022);\r
- $cl->setSSH('tortuga.enhydra.fr', 'vincent', 'atacama', 22022);\r
+ $cl->setSSH(wsExporter::VINCENT, 'vincent', 'atacama', 22022);\r
$cl->setArg(null, $local_root . $f);\r
$cl->execute();\r
$cl->debug();\r