Moving the old code aside into the archive as i begin a new
[glcas.git] / archive / v1 / lib / plugins / yumproxy.php
diff --git a/archive/v1/lib/plugins/yumproxy.php b/archive/v1/lib/plugins/yumproxy.php
new file mode 100644 (file)
index 0000000..68c8768
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+global $BASE_URLS, $MENU_ITEMS, $GLOBAL_BASE_URL;
+
+$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"] = "/ypc/proxycontrol";
+
+
+function yp_contentPane()
+{
+       echo "i am a yp content pane<br>";
+}
+
+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;
+}
+
+function yp_contentUrlsPrx()
+{
+       $calls["needs_base_page"] = false;
+       $calls["page_builder"] = "yp_proxyPageBuilder";
+       
+       return $calls;
+}
+
+function yp_proxyPageBuilder()
+{
+       echo "<html>I write the songs that make the whole world sing</html>";
+}
+?>
\ No newline at end of file