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