Advertisement
NeverPool

GC index

Aug 1st, 2011
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2. include ('common.php');
  3. ShowHead();
  4. TopNav();
  5. // Whitelist of valid includes
  6. $validPages = array("links", "todo", "contact", "change", "404", "privacy");
  7.  
  8. if (in_array($_GET['id'], $validPages))
  9. {
  10.     include "./pages/underscore/" . $_GET['id'] . ".php";
  11. }
  12. else
  13. {
  14. ?>
  15. <div class="colmask leftmenu">
  16.     <div class="colleft">
  17.         <div class="col1">
  18.             <!-- Column 1 start -->
  19.             <h2>Featured Game</h2>
  20. <div id="featured">
  21.     <a href="./games/shooting/sierra7.php"><img alt="Featured Game" src="featured.JPG" border="0"></a>
  22.         <br />
  23.     Click the image to play!
  24. </div>
  25. <p>
  26.     The featured game is Sierra 7! Fire at will in this intense FPS flash game!
  27.             <!-- Column 1 end -->
  28.         </div>
  29.        
  30. <?php
  31. }
  32.  ShowLeft();
  33.     echo '</div>
  34. </div>';
  35.  ShowFoot(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement