diff options
Diffstat (limited to 'index.php')
| -rwxr-xr-x | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
| diff --git a/index.php b/index.php index 83cdd99..79fce10 100755 --- a/index.php +++ b/index.php | |||
| @@ -34,7 +34,7 @@ if (strpos($_SERVER['REQUEST_URI'],'index.php')) | |||
| 34 | 34 | ||
| 35 | ob_start(); | 35 | ob_start(); |
| 36 | 36 | ||
| 37 | $pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome'; | 37 | $pageName = basename($_GET['area']); |
| 38 | 38 | ||
| 39 | if (file_exists('pages/' . $pageName . '.php')) | 39 | if (file_exists('pages/' . $pageName . '.php')) |
| 40 | { | 40 | { |
