function tabs() { $page = CurrentPageName(); $tpl = new templates(); $artica_meta = new mysql_meta(); $array["system"] = '{system}'; if ($_GET["gpid"] == 0) { $isProxy = $artica_meta->isProxy($_GET["uuid"]); if ($isProxy) { $array["proxy-service"] = '{proxy_service}'; } $array["services"] = '{services}'; $array["snapshots"] = '{snapshots}'; $array["cloning"] = '{cloning}'; $array["snapshots-schedule"] = '{schedules}'; } else { $isProxy = $artica_meta->isProxyGroup($_GET["gpid"]); if ($isProxy) { $array["proxy-service"] = '{proxy_service}'; } } while (list($num, $ligne) = each($array)) { if ($num == "services") { $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"artica-meta.services.php?uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n"); continue; } if ($num == "snapshots") { $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"artica-meta.snapshots.php?uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n"); continue; } if ($num == "cloning") { $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"artica-meta.cloning.php?uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n"); continue; } if ($num == "snapshots-schedule") { $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"artica-meta.schedules.php?uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n"); continue; } $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes&uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n"); } echo build_artica_tabs($html, "meta-hosts-{$_GET["uuid"]}{$_GET["gpid"]}"); }