34 Xray Beta
This commit is contained in:
33
menu.php
33
menu.php
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user