mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 16:29:45 -05:00
Nchan start/stop foundation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2020, Lime Technology
|
||||
* Copyright 2012-2020, Bergware International.
|
||||
/* Copyright 2005-2021, Lime Technology
|
||||
* Copyright 2012-2021, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -57,16 +57,20 @@ foreach (glob('plugins/*', GLOB_ONLYDIR) as $plugin) {
|
||||
|
||||
// Get general variables
|
||||
$name = $_GET['name'];
|
||||
$dir = $_GET['dir'];
|
||||
$dir = $_GET['dir'];
|
||||
$path = substr(strtok($_SERVER['REQUEST_URI'],'?'),1);
|
||||
|
||||
// The current "task" is the first element of the path
|
||||
$task = strtok($path,'/');
|
||||
|
||||
// Here's the page we're rendering
|
||||
$myPage = $site[basename($path)];
|
||||
$myPage = $site[basename($path)];
|
||||
$pageroot = $docroot.'/'.dirname($myPage['file']);
|
||||
|
||||
// Nchan script start/stop tracking
|
||||
$nchan_go = "$pageroot/nchan";
|
||||
$nchan_no= "/tmp/nchan";
|
||||
|
||||
// Giddyup
|
||||
require_once "$docroot/webGui/include/DefaultPageLayout.php";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user