You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							29 lines
						
					
					
						
							682 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							29 lines
						
					
					
						
							682 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								use App\Configuration;
							 | 
						|
								use App\Enumerators\SessionElement;
							 | 
						|
								use App\Wrappers\TwigWrapper;
							 | 
						|
								
							 | 
						|
								require_once __DIR__ . "/../vendor/autoload.php";
							 | 
						|
								
							 | 
						|
								session_start();
							 | 
						|
								
							 | 
						|
								// Get the request URI and break it into segments
							 | 
						|
								$requestUri = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
							 | 
						|
								$requestElements = explode("/", trim($requestUri, "/"));
							 | 
						|
								
							 | 
						|
								switch($requestElements[0])
							 | 
						|
								{
							 | 
						|
								    case "Static":
							 | 
						|
								    case "favicon.ico":
							 | 
						|
								        return false;
							 | 
						|
								    case "":
							 | 
						|
								        require_once __DIR__ . '/../Pages/index.php';
							 | 
						|
								        return true;
							 | 
						|
								    case "tune":
							 | 
						|
								        $_GET['tune-id'] = $requestElements[1];
							 | 
						|
								        require_once __DIR__ . '/../Pages/tune/uuid.php';
							 | 
						|
								        return true;
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								return false;
							 | 
						|
								
							 |