Browse Source

Update module_main.htm

tags/6.2.7
叙述、别离 1 year ago
parent
commit
e3bf58f490
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/admin/templets/module_main.htm

+ 2
- 2
src/admin/templets/module_main.htm View File

@@ -59,9 +59,9 @@
$file = DEDEDATA."/module/{$v['hash']}.xml";
if (file_exists($file)) {
if (file_exists(DEDEDATA."/module/{$v['hash']}-readme.php")){
echo "<span class='btn btn-outline-success btn-sm'>已安装</span><a href='module_main.php?action=uninstall&hash={$v['hash']}' class='btn btn-outline-danger btn-sm'>卸载</a>";
echo "<span class='btn btn-outline-success btn-sm'>已安装</span><a href='module_main.php?action=uninstall&hash={$v['hash']}' class='btn btn-danger btn-sm'>卸载</a>";
} else {
echo "<span class='btn btn-outline-danger btn-sm'>未安装</span><a href='module_main.php?action=setup&hash={$v['hash']}' class='btn btn-outline-success btn-sm'>安装</a>";
echo "<span class='btn btn-outline-danger btn-sm'>未安装</span><a href='module_main.php?action=setup&hash={$v['hash']}' class='btn btn-success btn-sm'>安装</a>";
}
} else {
echo "<div id=\"status_{$v['hash']}\"><a href=\"javascript:getmodule('download','{$v['hash']}')\" class=\"btn btn-outline-warning btn-sm\">下载</a></div>";


Loading…
Cancel
Save