X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=plugins%2Fwebbase.php;h=fea2f2fbface9fccab527a2df05f2fab5f1e9f52;hb=2924678dd2b842e5ecbb2f009fc6601500312b57;hp=6fa59434a17543a8a947583cc948ef930a96e037;hpb=f99212f7d29b648f3698cf31cbcda6bc04cda182;p=glcas.git diff --git a/plugins/webbase.php b/plugins/webbase.php index 6fa5943..fea2f2f 100644 --- a/plugins/webbase.php +++ b/plugins/webbase.php @@ -19,7 +19,44 @@ class GLCASWebBase { function body($url) { - echo "i am disturbing, $url"; + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + + // first, list available repos + echo "
Name | Type | OS | Version | Architecture | Other | Prefix | Short URL | Browse | |
---|---|---|---|---|---|---|---|---|---|
$desc | $repotype | $os | $version | $arch | $other | $prefix | $shorturl | "; + + // get url + $browseurl = "$BASE_URL/repo/$rkey"; + if($shorturl!="-") { + $brurl = $shorturl; + if($prefix != "-") $brurl = "$prefix/$shorturl"; + $browseurl = "$BASE_URL/$brurl/"; + } + echo "Browse | "; + echo " | "; + echo "