34 Xray Beta

This commit is contained in:
2025-11-26 14:15:36 -03:00
parent d604c1e8ab
commit 6f81d9f9cf
4 changed files with 662 additions and 9 deletions

View File

@@ -31,6 +31,7 @@ require "/opt/DragonCore/speedtest.php";
require "/opt/DragonCore/limiterstart.php";
require "/opt/DragonCore/statusvps.php";
require "/opt/DragonCore/bottg.php";
require "/opt/DragonCore/xray.php";
function clearScreen()
@@ -91,6 +92,7 @@ function menuconnect()
"Dragon X Go" => "",
"Stunnel4" => "",
"OpenVPN" => "",
"Xray Core" => "",
"Portas Ativas" => "",
];
@@ -222,6 +224,37 @@ function menuv2()
echo "------------\n";
}
function menuxray()
{
// Build a static set of management options for Xray. Users can install, configure or
// remove Xray regardless of its current state. This avoids confusing toggles and allows
// explicit selection of actions.
$menuItems = [
'Criar Usuario Xray' => '',
'Remover Usuario Xray' => '',
'Listar Usuarios Xray' => '',
'Informacao Xray' => '',
'Gerar Certificado TLS' => '',
'Instalar/Configurar Xray Core' => '',
'Remover Xray Core' => '',
];
$maxDigits = strlen(count($menuItems));
echo "Gerenciamento Xray\n";
echo "------------\n";
$i = 1;
foreach ($menuItems as $item => $description) {
$number = str_pad($i, $maxDigits, " ", STR_PAD_LEFT);
echo "$number. $item";
if (!empty($description)) {
echo " $description";
}
echo "\n";
$i++;
}
echo "0. Voltar para o menu\n";
echo "------------\n";
}
if ($argc < 2) {
die("Use o MENU!\n");