无限星辰工作室-客户无限互联网动力之源

标题: Discuz!X3.3以下版本删除后台自动更新通知 [打印本页]

作者: crx349    时间: 2018-9-26 20:58
标题: Discuz!X3.3以下版本删除后台自动更新通知
打开 source\function\function_admincp.php
删除:
  1. if($_G['adminid'] == 1 && $_GET['action'] == 'index') {
  2.                 $release = DISCUZ_RELEASE;

  3.                 $newsurl =  'ht'.'tp:/'.'/cus'.'tome'.'r.disc'.'uz.n'.'et/n'.'ews'.'.p'.'hp?'.siteinformation();
  4.                 echo <<<EOT
  5. <script type="text/javascript">
  6.         var newhtml = '';
  7.         newhtml += '<table class="tb tb2"><tr><th class="partition edited">您当前使用的 Discuz! 程序版本有重要更新,请参照以下提示进行及时升级</th></tr>';
  8.         newhtml += '<tr><td class="tipsblock"><a href="http://faq.comsenz.com/checkversion.php?product=Discuz&version={$version}&release={$release}&charset={$charset}" target="_blank"><img src="{$newsurl}" onload="shownews()" /></a></td></tr></table>';
  9.         \$('boardnews').style.display = 'none';
  10.         \$('boardnews').innerHTML = newhtml;
  11.         function shownews() {
  12.                 \$('boardnews').style.display = '';
  13.         }
  14. </script>
  15. EOT;
  16.         }
复制代码


source/admincp/admincp_index.php
删除:
  1. echo '<div id="boardnews"></div>';

  2. echo '<style>.rssbook{margin:8px 0 0 25px;}</style>';
  3. echo '<script >var nId = "4d1e7b6dd9c5070d1a82aeb8be5e72fc64db42701a1bc4d4",nWidth="400px",sColor="light",sText="'.cplang('subscribe_comsenz_email').'" ;</script><script src="http://list.qq.com/zh_CN/htmledition/js/qf/page/qfcode.js" charset="gb18030"></script>';
复制代码






欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://www.xmspace.net/) Powered by Discuz! X3.4