file datastore work
[glcas.git] / lib / plugins / aptproxy.php
index 65d0c0d..161ade2 100644 (file)
@@ -1,6 +1,32 @@
 <?php
 global $BASE_URLS;
 
-$BASE_URLS["ap"]["base"] = "ap"; // ap for apt-proxy
-$BASE_URLS["ap"]["function"] = "ap_pageBuilder"; // the page builder function for us
+$BASE_URLS["apc"]["base"] = "apc"; // ap for apt-proxy
+$BASE_URLS["apc"]["function"] = "ap_pageBuilderCtl"; // the page builder function for us
+$BASE_URLS["apr"]["base"] = "apr"; // ap for apt-proxy
+$BASE_URLS["apr"]["function"] = "ap_pageBuilderPrx"; // the page builder function for us
+
+$MENU_ITEMS["ap"]["title"] = "APT Proxy";
+$MENU_ITEMS["ap"]["link"] = "/apc/proxycontrol";
+
+function ap_pageBuilderCtl()
+{
+       $calls["needs_base_page"] = true;
+       $calls["content_pane_function"] = "ap_contentPane";
+       $calls["left_menu_function"] = "ap_leftMenu";
+       
+       return $calls;
+}
+
+function ap_contentPane()
+{
+       echo "i am a ap content pane<br>";
+}
+
+function ap_leftMenu()
+{
+       echo "i am a ap leftmenu";
+}
+
+
 ?>
\ No newline at end of file