Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Current system
- $page = $_GET['page'];
- include("pages/{$_GET['page']}");
- // Proper system
- $page = $_GET['page'];
- switch($page) {
- case 'home':
- include('pages/home.php');
- break;
- case 'gallery':
- include('pages/gallery.php');
- break;
- }
- ?>
Add Comment
Please, Sign In to add comment