summaryrefslogtreecommitdiffstats
path: root/modules-available/debugconfig/page.inc.php
diff options
context:
space:
mode:
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')));
}