Beispiel #1
0
 function GET($path)
 {
     echo web::render("index.php");
 }
Beispiel #2
0
 /**
  * Load a page under a masked URL
  * @param string URL to mask
  * @return string
  * @access public
  */
 function mask($location)
 {
     require_once 'HTTP/Request.php';
     $req =& new HTTP_Request($location);
     if (!PEAR::isError($req->sendRequest())) {
         echo $req->getResponseBody();
     } else {
         echo web::render('error.html');
     }
 }