Advertisement
Guest User

Untitled

a guest
Jul 16th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2.    
  3.     include "header.php";
  4.    
  5.     $category_set = false;
  6.     if(isset($_GET['gallery'])) {
  7.             $category_set = true;
  8.             $category = $_GET['gallery'];
  9.     }
  10.      
  11.     $file_path = "gallery/{$gallery}.php";
  12.     if($category_set && file_exists($file_path)) {
  13.             include($file_path);
  14.     } else {
  15.             include("home.php");
  16.     }
  17.  
  18.  
  19.     include "gallery.php";
  20.     include "footer.php";
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement