HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/mm.paycheckc.com/data/runtime/temp/67baa99fb5b6cdba5d97e5174ee7b031.php
<?php /*a:2:{s:90:"/www/wwwroot/mm.paycheckc.com/vendor/thinkcmf/cmf-appstore/src/view/app_store/plugins.html";i:1746023948;s:76:"/www/wwwroot/mm.paycheckc.com/public/themes/admin_default/public/header.html";i:1746023948;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

    <link href="/themes/admin_default/public/assets/themes/<?php echo cmf_get_admin_style('arcoadmin'); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="/themes/admin_default/public/assets/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/themes/admin_default/public/assets/fontawesome/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="/themes/admin_default/public/assets/fontawesome/css/v4-shims.min.css" rel="stylesheet" type="text/css">
    <link href="/themes/admin_default/public/assets/themes/<?php echo cmf_get_admin_style('arcoadmin'); ?>/simplebootadmin.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <?php 
        $is_mobile=cmf_is_mobile();
        $_static_version='1.0.5';
        $cmf_version=cmf_version();
        if (preg_match("/^(8|6)\./",$cmf_version)) {
        $_app=app()->http->getName();
        }else{
        $_app=request()->module();
        }
     ?>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            API_ROOT: {api: '/api/'},
            APP: '<?php echo $_app; ?>'/*当前应用名*/,
            IS_MOBILE: <?php echo !empty($is_mobile) ? 'true'  :  'false'; ?>,
            lang: function (langKey, params) {
                var lang = {
                    LOGIN_INVALID_TIPS: "<?php echo lang('LOGIN_INVALID_TIPS'); ?>",
                    'Please select at least one': "<?php echo lang('Please select at least one'); ?>",
                    Close: "<?php echo lang('CLOSE'); ?>",
                    'You sure you want to delete it?': "<?php echo lang('You sure you want to delete it?'); ?>",
                    'OK': "<?php echo lang('OK'); ?>",
                    'Are you sure you want to do this?':"<?php echo lang('Are you sure you want to do this?'); ?>"
                };
                return typeof lang[langKey] === 'undefined' ? langKey : lang[langKey];
            }
        };
    </script>
    <script src="/themes/admin_default/public/assets/js/jquery-1.12.4.min.js"></script>
    <script src="/themes/admin_default/public/assets/js/jquery-migrate-1.4.1.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_default/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.alias({noty: '/themes/admin_default/public/assets/js/noty-2.4.1.js'})
    </script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container: 'body',
                html: true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="<?php echo url('AppStore/apps'); ?>"><?php echo lang('ADMIN_APPSTORE_APPS'); ?></a></li>
        <li class="active"><a href="<?php echo url('AppStore/plugins'); ?>"><?php echo lang('ADMIN_APPSTORE_PLUGINS'); ?></a></li>
        <li><a href="<?php echo url('AppStore/themes'); ?>"><?php echo lang('ADMIN_APPSTORE_THEMES'); ?></a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20">
        <?php 
            $status=array("1"=>'开启',"0"=>'禁用',"3"=>'未安装');
         ?>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>插件名称</th>
                <th>插件标识</th>
                <th>描述</th>
                <th>版本</th>
                <!--                <th width="60">状态</th>-->
                <th width="90">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if(is_array($plugins) || $plugins instanceof \think\Collection || $plugins instanceof \think\Paginator): if( count($plugins)==0 ) : echo "" ;else: foreach($plugins as $key=>$vo): ?>
                <tr>
                    <td>
                        <a href="https://www.thinkcmf.com/appstore/plugin/<?php echo $vo['id']; ?>.html" target="_blank"><?php echo $vo['title']; ?></a>
                    </td>
                    <td><span class="label label-info"><?php echo $vo['name']; ?></span></td>
                    <td><?php echo $vo['description']; ?></td>
                    <td><span class="label label-success"><?php echo $vo['version']; ?></span></td>

                    <!--                    <td><?php echo $status[$vo['status']]; ?></td>-->
                    <td>
                        <?php if(empty($vo['installed']) || (($vo['installed'] instanceof \think\Collection || $vo['installed'] instanceof \think\Paginator ) && $vo['installed']->isEmpty())): if(empty($appstore_settings['access_token']) || (($appstore_settings['access_token'] instanceof \think\Collection || $appstore_settings['access_token'] instanceof \think\Paginator ) && $appstore_settings['access_token']->isEmpty())): ?>
                                <a class="btn btn-primary btn-xs js-install-plugin-btn"
                                   data-href="<?php echo url('AppStore/installPlugin',['id'=>$vo['id']]); ?>"
                                   title="<?php echo lang('Install'); ?>" data-toggle="tooltip">
                                    <i class="fa fa-plus-circle fa-fw"></i>
                                </a>
                                <?php else: if(empty($vo['has_bought']) || (($vo['has_bought'] instanceof \think\Collection || $vo['has_bought'] instanceof \think\Paginator ) && $vo['has_bought']->isEmpty())): ?>
                                    <a class="btn btn-info btn-xs"
                                       href="javascript:;" onclick="doBuyPlugin('<?php echo $vo['buy_url']; ?>')"
                                       title="购买" data-toggle="tooltip">
                                        <i class="fa fa-cart-plus fa-fw"></i>
                                    </a>
                                    <?php else: ?>
                                    <a class="btn btn-primary btn-xs js-ajax-dialog-btn"
                                       data-href="<?php echo url('AppStore/installPlugin',['id'=>$vo['id']]); ?>"
                                       data-wait-msg="正在安装..."
                                       title="<?php echo lang('Install'); ?>" data-toggle="tooltip">
                                        <i class="fa fa-plus-circle fa-fw"></i>
                                    </a>
                                <?php endif; ?>
                            <?php endif; else: if(!(empty($vo['need_update']) || (($vo['need_update'] instanceof \think\Collection || $vo['need_update'] instanceof \think\Paginator ) && $vo['need_update']->isEmpty()))): ?>
                                <a class="btn btn-success btn-xs js-ajax-dialog-btn"
                                   data-href="<?php echo url('AppStore/installPlugin',['id'=>$vo['id'],'version'=>$vo['installed_plugin']['version']]); ?>"
                                   title="升级" data-toggle="tooltip">
                                    <i class="fa fa-refresh fa-fw"></i>
                                </a>
                            <?php endif; ?>
                            <a class="btn btn-xs btn-danger js-ajax-dialog-btn"
                               href="<?php echo url('Plugin/uninstall',array('id'=>$vo['installed_plugin']['id'])); ?>"
                               data-msg="确定卸载该插件吗?"
                               title="<?php echo lang('Uninstall'); ?>" data-toggle="tooltip">
                                <i class="fa fa-trash fa-fw"></i>
                            </a>
                        <?php endif; ?>
                        <!--<a target="_blank" href2="https://www.thinkcmf.com/appstore/login/index" class="btn btn-primary btn-xs js-install-plugin-btn" data-href="<?php echo url('AppStore/installPlugin',['id'=>$vo['id']]); ?>">安装</a>-->
                    </td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
        <ul class="pagination"><?php echo $page; ?></ul>
    </form>
</div>
<script src="/static/js/admin.js"></script>
<script>
    $('.js-install-plugin-btn').click(function () {
        parent.openIframeLayer("<?php echo url('admin/AppStore/login'); ?>", '登录应用市场', {
            area: ['600px', '450px'],
            end: function () {
                window.location.reload()
            }
        });
    });

    var buyPluginLayerIndex = '';

    function doBuyPlugin(buyUrl) {
        buyUrl = buyUrl + "?app_store_token=<?php echo (isset($appstore_settings['access_token']) && ($appstore_settings['access_token'] !== '')?$appstore_settings['access_token']:''); ?>"
        parent.openIframeLayer(buyUrl, '购买插件', {
            area: ['95%', '90%'],
            end: function () {
            },
            success: function (layero, index) {
                buyPluginLayerIndex = index
            }
        });
    }


    window.parent.addEventListener('message', e => {
        // e.data为子页面发送的数据
        if (e.origin.match(/https?:\/\/www\.thinkcmf\.c(om|n)/)) {
            console.log(e)
            console.log(e.data)

            switch (e.data.action) {
                case "appstore/pay/complete":
                    window.location.reload()
                    parent.layer.close(buyPluginLayerIndex);
                    break;
            }
        }


    })
</script>
</body>
</html>