public function allAction() { $includes = array(); $model = new MeshConfig(); /* //either v33 or v34 (default to v34) $version = $this->getParam("version"); if(is_null($version) && isset($_REQUEST["version"])) { $version = $_REQUEST["version"]; } */ $this->view->data = array(); $configs = $model->getConfigs(); foreach ($configs as $config) { $url = fullbase() . "/psmesh/json/name/" . $config->name; /* if(!is_null($version)) { $url.="/version/$version"; } */ //insert additional params $params = array(); if (isset($_REQUEST["new"])) { $params[] = "new"; } if (isset($_REQUEST["psds"])) { $params[] = "psds=" . $_REQUEST["psds"]; } //for backward compatibility if (isset($_REQUEST["pfds"])) { $params[] = "psds=" . $_REQUEST["psds"]; } if (count($params) > 0) { $url .= "?" . implode($params, "&"); } $this->view->data[] = array("include" => array($url)); } $this->render("json"); }
public function xmlAction() { $this->load(); header("Content-type: text/xml"); $this->view->header = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"; $this->view->header .= "<!--\n"; $this->view->header .= "If you are going to use this XML for your production service, please register this URL at\n"; $this->view->header .= "GOC in order for us to ensure that any changes to this XML will not break your service.\n"; $this->view->header .= "https://spreadsheets.google.com/viewform?hl=en&formkey=dE8xYjUtMk9zZlQ3WktMa2lTWV9MOHc6MA\n\n"; $this->view->header .= "This XML was generated via following MyOSG page:\n"; $this->view->header .= fullbase() . "/" . pagename() . "/?" . $_SERVER["QUERY_STRING"] . "\n"; $this->view->header .= "-->"; }
public function kmlAction() { $this->load(); $filename = "osg_site_map.kml"; header("Content-type: application/vnd.google-earth.kml+xml; charset=utf8"); header("Content-Disposition: attachment; filename={$filename}"); //recreate the original non-xml url ?> <!-- This KML was generated with a query in following MyOSG page <?php echo fullbase() . "/" . pagename() . "/?" . $_SERVER["QUERY_STRING"]; ?> --><?php }
function nullImage() { return "<img alt=\"null\" src=\"" . fullbase() . "/images/null.png\"/>"; }
public function indexAction() { echo "Please use <a href=\"" . fullbase() . "/rgstatushistory\">Resource Group / RSV Status History</a> page."; $this->render("none", null, true); }