Skip to content

Instantly share code, notes, and snippets.

@jakerb
Last active August 30, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakerb/477a7fa583ad34b1ca04cebaf4a0d398 to your computer and use it in GitHub Desktop.
Save jakerb/477a7fa583ad34b1ca04cebaf4a0d398 to your computer and use it in GitHub Desktop.
<?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