From fe3d2b8b223e3d536291fdafa920494a13e22b91 Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 23 Jun 2021 14:39:12 +0200 Subject: [PATCH] Nchan foundation --- plugins/dynamix/include/DefaultPageLayout.php | 6 +++--- plugins/dynamix/template.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/dynamix/include/DefaultPageLayout.php b/plugins/dynamix/include/DefaultPageLayout.php index ece136b05..085f82a48 100644 --- a/plugins/dynamix/include/DefaultPageLayout.php +++ b/plugins/dynamix/include/DefaultPageLayout.php @@ -58,7 +58,7 @@ html{font-size:} .upgrade_notice i{margin:14px;float:right;cursor:pointer} .back_to_top{display:none;position:fixed;bottom:30px;right:12px;color:#e22828;font-size:2.5rem;z-index:999} /dev/null &"); + exec("$docroot/$script &>/dev/null &"); } // stop nchan scripts with the :stop option foreach ($stop as $row) { [$script,$opt] = my_explode(':',$row); if ($opt == 'stop') { - exec("pkill -f $script >/dev/null &"); + exec("pkill -f $docroot/$script >/dev/null &"); array_splice($running,array_search($row,$running),1); } } diff --git a/plugins/dynamix/template.php b/plugins/dynamix/template.php index d2d5b533e..a52793687 100644 --- a/plugins/dynamix/template.php +++ b/plugins/dynamix/template.php @@ -16,8 +16,8 @@ session_start(); // Register Nchan scripts function nchan_merge($root, $script) { - global $docroot, $nchan_run, $nchan; - $nchan_run = "$docroot/$root/nchan"; + global $nchan_run, $nchan; + $nchan_run = "$root/nchan"; $nchan = array_merge($nchan, array_map(function($n){global $nchan_run; return "$nchan_run/$n";}, explode(',',$script))); }