Last active
August 30, 2019 14:49
-
-
Save jakerb/477a7fa583ad34b1ca04cebaf4a0d398 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$project_query = $_GET['project']; | |
$projects = array( | |
'/test1/public/', | |
'/mynewproject/public/', | |
'site3/public/' | |
); | |
if(!empty($project_query)) { | |
$id = intval($project_query) + 1; | |
if(isset($projects[$id])) { | |
header('Location: ' . __DIR__ . $projects[$id]); | |
exit(); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment