diff --git a/functions.php b/functions.php
index 9984c08..4fe9668 100644
--- a/functions.php
+++ b/functions.php
@@ -145,6 +145,19 @@ function get_vpn_url($domain,$passkey) {
return $url;
}
+function show_service($name, $containers) {
+ $str = '
'.$name."
";
+ $str .= '';
+ $containers = trim($containers);
+ $arr = explode(" ",$containers);
+ foreach ($arr as $container) {
+ $str .= $container."
";
+ }
+ $str .= '
';
+
+ echo $str;
+}
+
// not in use
function put_install_envs() {
diff --git a/scan.php b/scan.php
index 0451675..959256f 100644
--- a/scan.php
+++ b/scan.php
@@ -1,14 +1,6 @@
'.$name."";
- $str .= ''.$containers.'
-
';
-
- echo $str;
-}
-
sleep(1);
switch ($_GET["op"]) {
case "redis":