xdebug.html.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * The debug view file of chat module of XXB.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
  6. * @license ZOSL (https://zpl.pub/page/zoslv1.html)
  7. * @author Gang Liu <liugang@cnezsoft.com>
  8. * @package chat
  9. * @version $Id$
  10. * @link https://xuanim.com
  11. */
  12. ?>
  13. <?php if($this->app->user->admin != 'super'):?>
  14. <?php include '../../common/view/header.lite.html.php';?>
  15. <div class='container'>
  16. <div class='notice text-center' style='font-size:24px;'>
  17. <?php $_SERVER['SCRIPT_NAME'] = '/index.php';?>
  18. <?php $link = $this->loadModel('user')->isLogon() ? $this->createLink('user', 'logout') : $this->createLink('user', 'login');?>
  19. <?php if(!$checkXXBConfig):?>
  20. <p class="text-danger"><?php echo $lang->im->xxbConfigError;?></p>
  21. <?php endif;?>
  22. <?php printf($lang->im->debugTips, html::a($link, $lang->login));?>
  23. </div>
  24. </div>
  25. <?php else:?>
  26. <?php
  27. if($config->xuanxuan->backend != 'xxb')
  28. {
  29. include '../../common/view/header.modal.html.php';
  30. $backLink = $this->createLink('setting', 'xuanxuan');
  31. }
  32. else
  33. {
  34. include '../../common/view/header.lite.html.php';
  35. $backLink = $this->config->webRoot;
  36. }
  37. ?>
  38. <div class='panel center-block' style="width:500px;margin-top:100px;">
  39. <div class='panel-heading'><i class="icon icon-cogs"></i> <strong><?php echo $lang->im->debugInfo;?></strong></div>
  40. <table class='table table-form'>
  41. <body>
  42. <?php if(!$checkXXBConfig):?>
  43. <tr>
  44. <th class='w-80px'><?php echo $lang->im->errorInfo;?></th>
  45. <td class='text-danger'><?php echo $lang->im->xxbConfigError;?></td>
  46. </tr>
  47. <?php endif;?>
  48. <tr>
  49. <th><?php echo $lang->im->key;?></th>
  50. <td class='code'><?php echo $config->xuanxuan->key;?></td>
  51. </tr>
  52. <tr>
  53. <th><?php echo $lang->im->url;?></th>
  54. <td><?php echo $this->loadModel('im')->getServer() . $this->config->webRoot . 'x.php';?></td>
  55. </tr>
  56. <tr>
  57. <th class='w-80px'><?php echo $lang->im->xxdStatus;?></th>
  58. <td><?php echo $xxdStatus;?></td>
  59. </tr>
  60. </body>
  61. </table>
  62. <?php if(!helper::isAjaxRequest()):?>
  63. <div class='panel-footer text-center'><?php echo html::a($backLink, $lang->goback, 'class="btn btn-primary"');?></div>
  64. <?php endif;?>
  65. </div>
  66. <?php endif;?>
  67. </body>
  68. </html>