more initial code
[glcas.git] / lib / plugins / yumproxy.php
index cccb29d..5db52a0 100644 (file)
@@ -1,8 +1,12 @@
 <?php
-global $BASE_URLS;
+global $BASE_URLS, $MENU_ITEMS, $GLOBAL_BASE_URL;
 
-$BASE_URLS["yp"]["base"] = "yp"; // ap for apt-proxy
-$BASE_URLS["yp"]["function"] = "yp_contentUrls"; // the page builder function for us
+$BASE_URLS["ypc"]["base"] = "ypc"; // ap for apt-proxy
+$BASE_URLS["ypc"]["function"] = "yp_contentUrlsCtl"; // the page builder function for us
+$BASE_URLS["ypr"]["base"] = "ypr"; // ap for apt-proxy
+$BASE_URLS["ypr"]["function"] = "yp_contentUrlsPrx"; // the page builder function for us
+$MENU_ITEMS["yp"]["title"] = "YUM Proxy";
+$MENU_ITEMS["yp"]["link"] = "$GLOBAL_BASE_URL/ypc/proxycontrol";
 
 
 function yp_contentPane()
@@ -10,10 +14,16 @@ function yp_contentPane()
        echo "i am a yp content pane<br>";
 }
 
-function yp_contentUrls()
+function yp_leftMenu()
+{
+       echo "i am a yp leftmenu";
+}
+
+function yp_contentUrlsCtl()
 {
        $calls["needs_base_page"] = true;
        $calls["content_pane_function"] = "yp_contentPane";
+       $calls["left_menu_function"] = "yp_leftMenu";
        
        return $calls;
 }