首页后端开发JAVA去除更新检测和后台日志(去除app更新检测)

去除更新检测和后台日志(去除app更新检测)

时间2023-03-24 17:24:50发布访客分类JAVA浏览368
导读:Typecho去除官方日志打开 admin/index.php,找到下面的代码并删除,在 96-105 行。Typecho去除更新检测接着找到下面的代码并删除,在 105-147 行。 $(document .ready(functi...

Typecho去除官方日志

打开 admin/index.php,找到下面的代码并删除,在 96-105 行。

Typecho去除更新检测

接着找到下面的代码并删除,在 105-147 行。

    $(document).ready(function () {
    
        var ul = $('#typecho-message ul'), cache = window.sessionStorage,
            html = cache ? cache.getItem('feed') : '',
            update = cache ? cache.getItem('update') : '';

    
        if (!!html) {
    
            ul.html(html);

        }
 else {
    
            html = '';
    
            $.get('?php $options->
    index('/action/ajax?do=feed');
     ?>
', function (o) {
    
                for (var i = 0;
     i  o.length;
 i ++) {
    
                    var item = o[i];
    
                    html += 'li>
    span>
    ' + item.date + '/span>
     a href="' + item.link + '" target="_blank">
    ' + item.title
                        + '/a>
    /li>
    ';

                }
    
    
                ul.html(html);
    
                cache.setItem('feed', html);

            }
    , 'json');

        }

    
        function applyUpdate(update) {

            if (update.available) {
    
                $('div class="update-check">
    p>
    '
                    + '?php _e('您当前使用的版本是 %s');
     ?>
    '.replace('%s', update.current) + 'br />
    '
                    + 'strong>
    a href="' + update.link + '" target="_blank">
    '
                    + '?php _e('官方最新版本是 %s');
     ?>
    '.replace('%s', update.latest) + '/a>
    /strong>
    /p>
    /div>
    ')
                .appendTo('.welcome-board').effect('highlight');

            }

        }

    
        if (!!update) {
    
            applyUpdate($.parseJSON(update));

        }
 else {
    
            update = '';
    
            $.get('?php $options->
    index('/action/ajax?do=checkVersion');
     ?>
', function (o, status, resp) {
    
                applyUpdate(o);
    
                cache.setItem('update', resp.responseText);

            }
    , 'json');

        }

    }
    );
    

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

phpadmintypecho后台日志

若转载请注明出处: 去除更新检测和后台日志(去除app更新检测)
本文地址: https://pptw.com/jishu/151.html
随机美图接口PHP代码(随机美图接口php代码是什么) Typecho增加首页分页功能(typecho单页)

游客 回复需填写必要信息