Home"; $repo=get_query_var('repo'); $package=get_query_var('package'); $arch=get_query_var('arch'); if ($repo == "") { // // Repositories // echo " > " . _r("Repositories"); echo "

" . _r("Available repositories") . ":

"; $request = wp_remote_get('https://push.openmamba.org/openmamba/distroquery/api/v1/repositories'); $j = json_decode($request["body"], true); foreach ($j as $repository) { $repository_url = $url_prefix . $repository["tag"]; echo "". $repository["tag"] . ": " . $repository["description"] . "
"; } } else if ($package == "") { // // Repository // echo " > Repositories"; $request = wp_remote_get('https://push.openmamba.org/openmamba/distroquery/api/v1/repository/' . $repo); $j = json_decode($request["body"], true); if ($j["error"] != "") { echo "

ERROR: " . $j["error"] . "

"; } else { echo " > " . $repo; echo "

" . _r("List of packages") . ":

"; foreach ($j as $package) { $package_url = $url_prefix . $repo . "/" . $package["name"]; echo "". $package["name"] . ": " . $package["summary"] . "
"; } } } else if ($arch == "") { // // Source package // echo " > " . _r("Repositories") . ""; $request = wp_remote_get('https://push.openmamba.org/openmamba/distroquery/api/v1/package/'. $repo . "/" . $package); $j = json_decode($request["body"], true); if ($j["error"] != "") { echo "

" . _r("ERROR") . ": " . $j["error"] . "

"; } else { echo " > $repo > " . $package; ?>

" width="24" height="24"> :

:
:
:
:
:
:
:
:" target=_blank>
:
:" . $child["name"] . "(" . $child["arch"] . ") "; } ?>
:
" . _r("Repositories") . ""; $request = wp_remote_get('https://push.openmamba.org/openmamba/distroquery/api/v1/package/'. $repo . "/" . $package . "/" . $arch); $j = json_decode($request["body"],true); if ($j["error"] != "") { echo "

" . _r("ERROR") . ": " . $j["error"] . "

"; } else { echo " > $repo > " . $package . " (" . $arch . ")"; ?>

" width="24" height="24"> :

:
:
:
:
:
:
:" target=_blank>
:". $j["source"]["name"] . " "; ?>
:". $brother . " "; } ?>
:
:
: