/** * Nasazení externích skriptů */ public function deployScripts() { if (count($this->scriptsToDeploy)) { switch ($this->platform) { case 'windows': $this->nscBatArray[] = "\n" . 'echo ^<h2^>' . _('Skripty') . '^</h2^> >> %ICIEDIT_HTML% '; break; } foreach ($this->scriptsToDeploy as $script_name => $script_id) { switch ($this->platform) { case 'windows': $this->nscBatArray[] = "\n" . 'echo ^<a data-role="script" href="' . IECfg::getBaseURL() . 'scriptget.php?script_id=' . $script_id . '"^>' . $script_name . '^</a^>^<br^> >> %ICIEDIT_HTML% '; break; case 'linux': $this->nscBatArray[] = "\n" . ' # ' . $script_name . ' curl "' . IECfg::getBaseURL() . 'scriptget.php?script_id=' . $script_id . '" '; break; default: $this->nscBatArray[] = $this->nscBatArray[] = "\n" . ' ' . $this->nscvar . ' test '; break; } } } }