Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->project = $this->getCurrentProject();
     if (!$this->project) {
         return $this->project404Response();
     }
 }
 public function init()
 {
     parent::init();
     $member = \Member::currentUser();
     if (!$member) {
         return \Security::permissionFailure();
     }
     \Requirements::css('deploynaut-reactexample/static/style.css');
 }
 public function init()
 {
     parent::init();
     $this->project = $this->getCurrentProject();
     if (!$this->project) {
         return $this->project404Response();
     }
     // Performs canView permission check by limiting visible projects
     $this->environment = $this->getCurrentEnvironment($this->project);
 }
Ejemplo n.º 4
0
<!DOCTYPE html>
<html>
	<head>
		<?php 
require_once "classes/dispatcher.php";
Dispatcher::init();
require_once "classes/usuario.php";
Usuario::checkLogin();
?>
		<title>URL Shortener</title>
		<meta charset="utf-8" />
		<script src="jQuery/jquery-1.10.1.min.js"></script>
		<script src="jQuery/jquery-1.9.0.min.js"></script>
		
		<!--Inlude fancybox plugin -->
		<script type="text/javascript" src="jQuery/fancyBox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
		<script src="jQuery/fancyBox/source/jquery.fancybox.js"></script>
		<script src="jQuery/fancyBox/source/jquery.fancybox.pack.js"></script>
		<script type="text/javascript" src="jQuery/fancyBox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
		<script type="text/javascript" src="js/global.js"></script>
		<link rel="stylesheet" type="text/css" href="jQuery/fancyBox/source/jquery.fancybox.css" />
		<link rel="stylesheet" type="text/css" href="jQuery/fancyBox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
		<link rel="stylesheet" type="text/css" href="css/font-awesome.css" />
		<link rel="stylesheet" type="text/css" href="css/global.css" />
		
	</head>
	<body>
		<h1><a href="index.php">URL Shortener</a></h1>
		<?php 
include_once "menu.php";
?>