Exemplo n.º 1
0
 public function page()
 {
     // Obtain the router class
     $router = new \GHCP\Router();
     // Fire the router class
     $router->route();
 }
Exemplo n.º 2
0
 public function deployByKey()
 {
     // Attempt to get a key from query string
     if (isset($_GET['key']) && is_numeric((int) $_GET['key'])) {
         // Store the key
         $key = $_GET['key'];
     } else {
         // Display not allowed, return false to prevent view
         echo "<h2>Not Allowed.</h2>";
         return false;
     }
     // Load this application's data
     $this->load($key);
     // Deploy this application
     $this->deploy();
     // Reroute to list page
     $router = new \GHCP\Router();
     $router->route('application-list');
     // Return false to prevent this view
     return FALSE;
 }