仰望星辰工作室

better-staridc-MNBT

better-staridc-MNBT/ user/ajax.php 1.2 KB · 40 行 原始文件
Z zfhsh first commit 2 天前
1<?php
2/*
3 *本文件为控制面板功能性操作文件
4 *©梦奈
5*/
6include("../MPHX/common.php");
7@header('Content-Type: text/html; charset=UTF-8');
8mnbt_csrf_validate_request();
9$egn=$_POST['gn'] ?? '';
10if($islogins==1 || $egn=='login') {
11} else exit('{"code":"请登陆"}');
12 if($islogins==1) {
13 $cert=$DB->get_row_prepare("SELECT * FROM MN_bt WHERE btdh=? limit 1", [$ssbt]);
14 if(!$cert)exit('{"code":"宝塔服务器配置错误,请联系管理员"}');
15 $btipe=($cert['ptl']=='true'?'https':'http').'://'.$cert['btip'].':'.$cert['btdk'];
16 $btkeye=$cert['btmy'];
17 if($cert['btos']=='1') {
18 $os_xt=$conf['hxi'].'/';
19 $l_ler_a='/etc/hosts';
20 } else {
21 $os_xt=$conf['hxo'].'/';
22 $l_ler_a='C:\Windows\System32\drivers\etc\hosts';
23 }
24}
25if (($islogins==1 || $egn=='login') && function_exists('mnbt_plugin_dispatch_ajax') && mnbt_plugin_dispatch_ajax('user', $egn)) {
26 return;
27}
28include("api/login.php");
29include("api/domain.php");
30include("api/file.php");
31include("api/cache.php");
32include("api/site.php");
33include("api/ssl.php");
34include("api/monitor.php");
35include("api/deploy.php");
36include("api/database.php");
37include("api/site_stats.php");
38include("api/other.php");
39include("api/panel.php");
40exit('{"code":"请求错误!"}');