<?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"] = "/ypc/proxycontrol";
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;
}
+
+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