diff --git a/xuanxuan/module/im/ext/control/debug.php b/xuanxuan/module/im/ext/control/debug.php new file mode 100644 index 0000000000..786c083ee0 --- /dev/null +++ b/xuanxuan/module/im/ext/control/debug.php @@ -0,0 +1,20 @@ +view->title = $this->lang->im->debug; + $this->view->source = $source; + $this->view->xxdStatus = $this->im->getXxdStatus(); + $this->view->checkXXBConfig = $this->im->checkXXBConfig(); + $this->display(); + } +} diff --git a/xuanxuan/module/im/ext/view/debug.html.php b/xuanxuan/module/im/ext/view/debug.html.php new file mode 100755 index 0000000000..dc5027247a --- /dev/null +++ b/xuanxuan/module/im/ext/view/debug.html.php @@ -0,0 +1,69 @@ + + * @package chat + * @version $Id$ + * @link https://xuanim.com + */ +?> + +app->user->admin != 'super'):?> + +
+
+ + loadModel('user')->isLogon() ? $this->createLink('user', 'logout') : $this->createLink('user', 'login');?> + im->debugTips, html::a($link, $lang->login));?> +
+
+ + + +
+
im->serverInfo;?>
+ + + + + + + + + + + + + + + +
im->version;?>xuanxuan->version;?>
im->key;?>xuanxuan->key;?>
im->url;?>config->webRoot . 'x.php';?>
+
+xuanxuan->debug)):?> +
+
im->log;?>
+
+
+ + +
+ goback, '', "class='btn btn-primary'");?> +
+ + +debug) js::import($jsRoot . 'jquery/form/min.js');?> + + + diff --git a/xuanxuan/module/setting/ext/view/xuanxuan.html.php b/xuanxuan/module/setting/ext/view/xuanxuan.html.php index 0830846c56..7475a4f3ed 100644 --- a/xuanxuan/module/setting/ext/view/xuanxuan.html.php +++ b/xuanxuan/module/setting/ext/view/xuanxuan.html.php @@ -11,6 +11,7 @@ */ ?> +xuanxuan, 'debug', 0);?> @@ -42,7 +43,7 @@ im->debug;?> - im->debugStatus, zget($config->xuanxuan, 'debug', 0)) : zget($lang->im->debugStatus, zget($config->xuanxuan, 'debug', 0));?> + im->debugStatus, $debug) : zget($lang->im->debugStatus, $debug);?> @@ -124,6 +125,7 @@ im->downloadXXD, 'hiddenwin', "class='btn btn-primary download download-package $disabled'");?> im->downloadConfig, 'hiddenwin', "class='btn btn-primary download $disabled'");?> im->changeSetting, '', "class='btn'");?> + im->viewDebug, '', "class='btn viewDebug' data-toggle='modal'");?> im->help, '_blank', "class='btn'");?>