debug.html.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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
  14. if($source == 'x_php')
  15. {
  16. include 'xdebug.html.php';
  17. return;
  18. }
  19. ?>
  20. <?php if($this->app->user->admin != 'super'):?>
  21. <?php include '../../common/view/header.lite.html.php';?>
  22. <div class='container' id='debugContainer'>
  23. <div class='notice text-center' style='font-size:24px;'>
  24. <?php $_SERVER['SCRIPT_NAME'] = '/index.php';?>
  25. <?php $link = $this->loadModel('user')->isLogon() ? $this->createLink('user', 'logout') : $this->createLink('user', 'login');?>
  26. <?php printf($lang->im->debugTips, html::a($link, $lang->login));?>
  27. </div>
  28. </div>
  29. <?php else:?>
  30. <?php include '../../common/view/header.modal.html.php';?>
  31. <?php js::set('showLog', $config->xuanxuan->debug);?>
  32. <div class='panel'>
  33. <div class='panel-heading'><?php echo $lang->im->serverInfo;?></div>
  34. <table class='table table-form'>
  35. <tbody>
  36. <tr>
  37. <th class='w-80px'><?php echo $lang->im->version;?></th>
  38. <td><?php echo $config->xuanxuan->version;?></td>
  39. </tr>
  40. <tr>
  41. <th><?php echo $lang->im->key;?></th>
  42. <td class='code'><?php echo $config->xuanxuan->key;?></td>
  43. </tr>
  44. <tr>
  45. <th><?php echo $lang->im->url;?></th>
  46. <td><?php echo $this->loadModel('im')->getServer() . $this->config->webRoot . 'x.php';?></td>
  47. </tr>
  48. </body>
  49. </table>
  50. </div>
  51. <?php if(!empty($config->xuanxuan->debug)):?>
  52. <div class='panel'>
  53. <div class='panel-heading'><?php echo $lang->im->log;?></div>
  54. <div id='log' class='panel-body code'></div>
  55. </div>
  56. <?php endif;?>
  57. <?php if(!helper::isAjaxRequest()):?>
  58. <div class='text-center'>
  59. <?php commonModel::printLink('setting', 'xuanxuan', '', $lang->goback, '', "class='btn btn-primary'");?></td>
  60. </div>
  61. <?php endif;?>
  62. <?php endif;?>
  63. <?php if($config->debug) js::import($jsRoot . 'jquery/form/min.js');?>
  64. <?php if(isset($pageJS)) js::execute($pageJS);?>
  65. </body>
  66. </html>