Moving the old code aside into the archive as i begin a new
[glcas.git] / archive / v1 / lib / plugins / yumproxy.php
1 <?php
2 global $BASE_URLS, $MENU_ITEMS, $GLOBAL_BASE_URL;
3
4 $BASE_URLS["ypc"]["base"] = "ypc"; // ap for apt-proxy
5 $BASE_URLS["ypc"]["function"] = "yp_contentUrlsCtl"; // the page builder function for us
6 $BASE_URLS["ypr"]["base"] = "ypr"; // ap for apt-proxy
7 $BASE_URLS["ypr"]["function"] = "yp_contentUrlsPrx"; // the page builder function for us
8 $MENU_ITEMS["yp"]["title"] = "YUM Proxy";
9 $MENU_ITEMS["yp"]["link"] = "/ypc/proxycontrol";
10
11
12 function yp_contentPane()
13 {
14         echo "i am a yp content pane<br>";
15 }
16
17 function yp_leftMenu()
18 {
19         echo "i am a yp leftmenu";
20 }
21
22 function yp_contentUrlsCtl()
23 {
24         $calls["needs_base_page"] = true;
25         $calls["content_pane_function"] = "yp_contentPane";
26         $calls["left_menu_function"] = "yp_leftMenu";
27         
28         return $calls;
29 }
30
31 function yp_contentUrlsPrx()
32 {
33         $calls["needs_base_page"] = false;
34         $calls["page_builder"] = "yp_proxyPageBuilder";
35         
36         return $calls;
37 }
38
39 function yp_proxyPageBuilder()
40 {
41         echo "<html>I write the songs that make the whole world sing</html>";
42 }
43 ?>