summaryrefslogtreecommitdiffstats
path: root/modules-available/debugconfig/page.inc.php
diff options
context:
space:
mode:
authorChristoph Schulthess2017-02-21 10:13:51 +0100
committerChristoph Schulthess2017-02-21 10:13:51 +0100
commit758f55e901d46184003e79fed389d0d4d4e00d6b (patch)
tree09784d6a5884a777f480f7dfd15c5415b5122f5d /modules-available/debugconfig/page.inc.php
parentworking on taskstatus (diff)
downloadslx-admin-758f55e901d46184003e79fed389d0d4d4e00d6b.tar.gz
slx-admin-758f55e901d46184003e79fed389d0d4d4e00d6b.tar.xz
slx-admin-758f55e901d46184003e79fed389d0d4d4e00d6b.zip
mhpf
Diffstat (limited to 'modules-available/debugconfig/page.inc.php')
-rw-r--r--modules-available/debugconfig/page.inc.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules-available/debugconfig/page.inc.php b/modules-available/debugconfig/page.inc.php
index ea78e3c5..00698d26 100644
--- a/modules-available/debugconfig/page.inc.php
+++ b/modules-available/debugconfig/page.inc.php
@@ -3,7 +3,7 @@
class Page_debugConfig extends Page
{
- const DEFAULT_CONFIG = array("enabled" => false, "debugServer" => "127.0.0.1", "port" => 5900);
+ const DEFAULT_CONFIG = array("enabled" => false, "debugServer" => "127.0.0.1", "port" => 5500);
protected function doPreprocess()
{
@@ -24,9 +24,11 @@ class Page_debugConfig extends Page
{
$debug_config = $this->getConfig();
Render::addTemplate('debugconfig', array("debugEnabled" => $debug_config["enabled"], "debugServer" => $debug_config["debugServer"], "port" => $debug_config["port"]));
- $taskid = Taskmanager::isTask("DispatchRelay");
- if ($taskid !== Null )
- Render::addTemplate('relaystatus', array("taskid" => $taskid))
+ if (gettype($taskstatus) == 'array') {
+ error_log(count($taskstatus));
+ }
+
+ //Render::addTemplate('relaystatus', array("taskid" => $taskstatus));
}
private function getConfig()
@@ -39,7 +41,6 @@ class Page_debugConfig extends Page
private function setConfig()
{
- error_log(request::post('toggleDebug'));
$enabled = isset($_POST['toggleDebug']) ? true : false;
Property::setRemoteDebugConfig(array('enabled' => $enabled, 'debugServer' => Request::post('debugServer'), 'port' => Request::post('port')));
}