$png = WS_ICONS . '/' . $iconSet . '/' . $dest . '.png';
$tmp1 = CubeIT_Files::tempnam() . '.png';
- $cmd = "/usr/bin/convert -density 200 -resize 20x20 -background none $tmp $tmp1";
+ $cmd = "/usr/bin/convert -density 200 -resize 25x25 -background none $tmp $tmp1";
echo $cmd . "\n";
echo `$cmd` . "\n";
file_put_contents(WS_ICONS . '/' . $iconSet . '/interface.svg', $res);
}
}
+
+ public static function installAtlanticCommunicationBook() {
+ $exporter = new wsExporter();
+ $exporter->export(15316, $x, 'install_ftp', 'online', "atlanticki-01:Tjz3N85h@ftp.cluster023.hosting.ovh.net/www/", '');
+ header('Location: http://www.atlantic-international-book-com.com/');
+ exit;
+ }
}
public $destinationDir;
public $destinationFile;
public $x;
+ public $ftpPassiveMode=false;
const VINCENT = "paris.cubedesigners.com";
}
if (stristr($path, 'ftp://')) {
- $this->_lftp($p, $path, false);
+ $this->_lftp($p, $path, $this->ftpPassiveMode);
} else {
$this->_rsync($p, $path);
}
}
}
- $lftp = new cubeCommandLine('lftp');
+ $lftp = new CubeIT_CommandLine('lftp');
$lftp->setArg('u', $u['user'] . ',' . $u['pass']);
$lftp->setArg('p', $u['port']);
$lftp->setArg('e', implode(';', $commandes));
}\r
$url = str_replace(' ', '%20', $v);\r
$cache = WS_CACHE . '/atlantic/' . md5($url);\r
- if (!file_exists($cache)) {\r
+ if (!file_exists($cache) || filemtime($url) > filemtime($cache)) {\r
copy($url, $cache);\r
$copylog = ' (copy) ';\r
} else {\r