View difference between Paste ID: DCs1vqf0 and Sc54kwN6
SHOW: | | - or go back to the newest paste.
1-
<?php
1+
2
My Pastes
3-
// Current system
3+
4-
$page = $_GET['page'];
4+
    UntitledPHP | 1 hour ago
5-
include("pages/{$_GET['page']}");
5+
    UntitledPHP | 16 hours ago
6
    UntitledPHP | 16 hours ago
7-
// Proper system
7+
    UntitledPHP | 16 hours ago
8-
$page = $_GET['page'];
8+
    UntitledPHP | 17 hours ago
9-
switch($page) {
9+
    UntitledPHP | 17 hours ago
10-
	case 'home':
10+
    UntitledPHP | 23 hours ago
11-
		include('pages/home.php');
11+
    UntitledPHP | 23 hours ago
12-
	break;
12+
13-
	case 'gallery':
13+
Public Pastes
14-
		include('pages/gallery.php');
14+
15-
	break;
15+
    Y Tu Mama Tambien DVD41 sec ago
16-
}
16+
    Untitled15 sec ago
17
    Untitled15 sec ago
18-
?>
18+
    Untitled18 sec ago
19
    Untitled21 sec ago
20
    Untitled23 sec ago
21
    UntitledPower Shell | 27 sec ago
22
    Untitled29 sec ago