xxb/module/im/view/xdebug.html.php
2023-10-23 15:51:36 +08:00

70 lines
2.4 KiB
PHP

<?php
/**
* The debug view file of chat module of XXB.
*
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
* @license ZOSL (https://zpl.pub/page/zoslv1.html)
* @author Gang Liu <liugang@cnezsoft.com>
* @package chat
* @version $Id$
* @link https://xuanim.com
*/
?>
<?php if($this->app->user->admin != 'super'):?>
<?php include '../../common/view/header.lite.html.php';?>
<div class='container'>
<div class='notice text-center' style='font-size:24px;'>
<?php $_SERVER['SCRIPT_NAME'] = '/index.php';?>
<?php $link = $this->loadModel('user')->isLogon() ? $this->createLink('user', 'logout') : $this->createLink('user', 'login');?>
<?php if(!$checkXXBConfig):?>
<p class="text-danger"><?php echo $lang->im->xxbConfigError;?></p>
<?php endif;?>
<?php printf($lang->im->debugTips, html::a($link, $lang->login));?>
</div>
</div>
<?php else:?>
<?php
if($config->xuanxuan->backend != 'xxb')
{
include '../../common/view/header.modal.html.php';
$backLink = $this->createLink('setting', 'xuanxuan');
}
else
{
include '../../common/view/header.lite.html.php';
$backLink = $this->config->webRoot;
}
?>
<div class='panel center-block' style="width:500px;margin-top:100px;">
<div class='panel-heading'><i class="icon icon-cogs"></i> <strong><?php echo $lang->im->debugInfo;?></strong></div>
<table class='table table-form'>
<body>
<?php if(!$checkXXBConfig):?>
<tr>
<th class='w-80px'><?php echo $lang->im->errorInfo;?></th>
<td class='text-danger'><?php echo $lang->im->xxbConfigError;?></td>
</tr>
<?php endif;?>
<tr>
<th><?php echo $lang->im->key;?></th>
<td class='code'><?php echo $config->xuanxuan->key;?></td>
</tr>
<tr>
<th><?php echo $lang->im->url;?></th>
<td><?php echo $this->loadModel('im')->getServer() . $this->config->webRoot . 'x.php';?></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->im->xxdStatus;?></th>
<td><?php echo $xxdStatus;?></td>
</tr>
</body>
</table>
<?php if(!helper::isAjaxRequest()):?>
<div class='panel-footer text-center'><?php echo html::a($backLink, $lang->goback, 'class="btn btn-primary"');?></div>
<?php endif;?>
</div>
<?php endif;?>
</body>
</html>