Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "header.php";
- $gallery_set = false;
- if(isset($_GET['gallery'])) {
- $gallery_set = true;
- $gallery = $_GET['gallery'];
- }
- $file_path = "gallery/{$gallery}.php";
- if($gallery_set && file_exists($file_path)) {
- include($file_path);
- } else {
- include("home.php");
- }
- include "footer.php";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement