|
@@ -81,7 +81,10 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
|
|
|
$out=shell_exec($cmd);
|
|
$out=shell_exec($cmd);
|
|
|
DBG::log([ 'msg'=>"cmd and returns({$ret})", 'output'=>$out ]);
|
|
DBG::log([ 'msg'=>"cmd and returns({$ret})", 'output'=>$out ]);
|
|
|
$html = []; $startRead = false;
|
|
$html = []; $startRead = false;
|
|
|
- foreach ($out as $line) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ echo "<hr>".$out."<hr>"; //do poprawy, chce ruszyc, bo lokalnie mi dziala
|
|
|
|
|
+ /* foreach ($out as $line) {
|
|
|
if (!$startRead) {
|
|
if (!$startRead) {
|
|
|
if ('OUTPUT__START' == $line) {
|
|
if ('OUTPUT__START' == $line) {
|
|
|
$startRead = true;
|
|
$startRead = true;
|
|
@@ -99,6 +102,7 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
|
|
|
if (empty($html)) UI::alert('danger', "Empty output!");
|
|
if (empty($html)) UI::alert('danger', "Empty output!");
|
|
|
// echo UI::h('pre', [], htmlspecialchars(implode("\n", $html)));
|
|
// echo UI::h('pre', [], htmlspecialchars(implode("\n", $html)));
|
|
|
echo UI::h('div', ['class'=>"container", 'style'=>"padding:12px; border:1px solid #ddd"], $html);
|
|
echo UI::h('div', ['class'=>"container", 'style'=>"padding:12px; border:1px solid #ddd"], $html);
|
|
|
|
|
+ */
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
UI::alert('danger', $e->getMessage());
|
|
UI::alert('danger', $e->getMessage());
|
|
|
DBG::log($e);
|
|
DBG::log($e);
|