2020.02新版
This commit is contained in:
42
admin/pay_plugin.php
Normal file
42
admin/pay_plugin.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* 支付插件
|
||||
**/
|
||||
include("../includes/common.php");
|
||||
$title='支付插件';
|
||||
include './head.php';
|
||||
if($islogin==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
|
||||
?>
|
||||
<div class="container" style="padding-top:70px;">
|
||||
<div class="col-md-8 center-block" style="float: none;">
|
||||
<?php
|
||||
$my=isset($_GET['my'])?$_GET['my']:null;
|
||||
if($my=='refresh') {
|
||||
\lib\Plugin::updateAll();
|
||||
exit("<script language='javascript'>alert('刷新插件列表成功!');history.go(-1);</script>");
|
||||
}else{
|
||||
$list = \lib\Plugin::getAll();
|
||||
?>
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading"><h3 class="panel-title">系统共有 <b><?php echo count($list);?></b> 个支付插件 <span class="pull-right">【<a href="./pay_plugin.php?my=refresh">刷新插件列表</a>】</span></h3></div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead><tr><th>插件名称</th><th>插件描述</th><th>插件作者</th><th>包含的支付方式</th></tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($list as $res)
|
||||
{
|
||||
echo '<tr><td><b>'.$res['name'].'</b></td><td>'.$res['showname'].'</td><td><a href="'.$res['link'].'" target="_blank" rel="noreferrer">'.$res['author'].'
|
||||
</a></td><td>'.$res['types'].'</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<span class="glyphicon glyphicon-info-sign"></span> 支付插件目录:/plugins/,请将符合要求的支付插件源码解压到支付插件目录,然后点击 刷新插件列表 即可显示在该列表中。
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user