feat: 后端全量更新 - 含所有本次需求
- Contract.php: 返回合约账户余额(balance_contract) - My.php: 地址管理增加BTC/ETH - AppContract.php: 一键平仓(closeall) - AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2) - site.php: 手续费减半(0.018→0.009) - agent_permission_setup.sql: 代理权限SQL - crypto_news_crawler.py: 新闻自动采集脚本
This commit is contained in:
File diff suppressed because one or more lines are too long
+2044
File diff suppressed because one or more lines are too long
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
class adminerPlugin extends PluginBase{
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
}
|
||||
public function regiest(){
|
||||
$this->hookRegiest(array(
|
||||
'templateCommonHeader' => 'adminerPlugin.addMenu'
|
||||
));
|
||||
}
|
||||
public function addMenu(){
|
||||
$config = $this->getConfig();
|
||||
$subMenu = $config['menuSubMenu'];
|
||||
navbar_menu_add(array(
|
||||
'name' => 'Adminer',
|
||||
'icon' => $this->appIcon(),
|
||||
'url' => $this->pluginApi,
|
||||
'target' => '_blank',
|
||||
'subMenu' => $subMenu,
|
||||
'use' => '1'
|
||||
));
|
||||
}
|
||||
public function index(){
|
||||
header('Location: '.$this->pluginHost.'adminer/');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
return array(
|
||||
'Adminer.meta.title' => "Database management",
|
||||
'Adminer.meta.desc' => " Database management in a single PHP file.<br/><br/>support:MySQL, PostgreSQL, SQLite, MS SQL, Oracle, SimpleDB, Elasticsearch, MongoDB, Firebird"
|
||||
);
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'Adminer.meta.title' => "数据库管理工具",
|
||||
'Adminer.meta.desc' => "Adminer 是一款全功能的数据库管理工具,类似phpMyAdmin,相比而言更轻量强大。<br/><br/>支持管理的数据库:MySQL, PostgreSQL, SQLite, MS SQL, Oracle, SimpleDB, Elasticsearch, MongoDB, Firebird<br/>由于安全要求比较高,此插件仅限管理员可以使用"
|
||||
);
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"id":"adminer",
|
||||
"name":"Adminer",
|
||||
"title":"{{LNG.Adminer.meta.title}}",
|
||||
"version":"4.77",
|
||||
"source":{
|
||||
"thumb":"",
|
||||
"className":"font-icon icon-bar-chart bg-blue-7",
|
||||
"screenshoot":["{{pluginHost}}static/screenshot.png"]
|
||||
},
|
||||
"category":"tools",
|
||||
"description":"{{LNG.Adminer.meta.desc}}",
|
||||
"keywords":"",
|
||||
"auther":{
|
||||
"copyright":"adminer.org",
|
||||
"homePage":"https://www.adminer.org"
|
||||
},
|
||||
"configItem":{
|
||||
"pluginAuth":{
|
||||
"type":"userSelect",
|
||||
"value":"role:1",
|
||||
"display":"{{LNG.Plugin.config.auth}}",
|
||||
"desc":"{{LNG.Plugin.config.authDesc}}",
|
||||
"require":1
|
||||
},
|
||||
"menuSubMenu":{
|
||||
"type":"switch",
|
||||
"value":1,
|
||||
"display":"{{LNG.menu_sub_menu}}"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 68 KiB |
Reference in New Issue
Block a user