protected function runCli($route = 'cli', $paramters = array()) { $indexcli = $this->getLoc() . '/building/indexcli.php'; $paramters = base64_encode(json_encode($paramters)); $phpbin = CFun::isWindows() ? 'php' : '/usr/local/php/bin/php'; $cmd = $phpbin . ' ' . $indexcli . ' ' . $route . ' ' . $paramters; CFun::Process($cmd); }
public function compressImage($src) { $cmd = $this->getConfig('sh_compress'); CFun::Process($cmd); }