仰望星辰工作室

better-staridc-MNBT

better-staridc-MNBT/ user/sqlgl.php 732 B · 22 行 原始文件
Z zfhsh first commit 2 天前
1<?php
2include("../MPHX/common.php");
3@header('Content-Type: text/html; charset=UTF-8');
4$title = 'MN宝塔主机系统设置';
5include("./class.php");
6mnbt_user_require_login();
7$cert = $DB->get_row_prepare("SELECT * FROM MN_bt WHERE btdh=? limit 1", [$ssbt]);
8$btipe = ($cert['ptl'] == 'true' ? 'https' : 'http') . '://' . $cert['btip'] . ':' . $cert['btdk'];
9$btkeye = $cert['btmy'];
10$hxd = $yhc['hxd'];
11$user = $yhc['user'];
12$api = new bt_api($btipe, $btkeye);
13$r_data = $api->Databasebackuplist($hxd);
14$pattern = '/共(\d+)条/';
15$matches = [];
16preg_match($pattern, $r_data['page'] ?? '', $matches);
17$count = $matches[1] ?? 0;
18$bf_data = $r_data['data'] ?? [];
19if (!is_array($bf_data)) {
20 $bf_data = [];
21}
22mnbt_render('sqlgl');