Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by Maino ( 14 years ago )
<?php
$whitelist = array
(
'404',
'admin',
'changemail',
'char',
'charaktere',
'downloads',
'event',
'guild',
'home',
'logout',
'lostpw',
'medien',
'news',
'ranking_chars',
'ranking_gilden',
'register',
'reset_char',
'spenden',
'team',
'usercp',
'vote',
'wartung',
);
if (isset($_GET['s'])) {
$page = trim($_GET['s']);
$path = 'inc/pages/';
if (file_exists($page.'.php') && in_array($page, $whitelist)) {
include($path.$page.'.php');
} else {
include($path.'home.php');
}
} else {
include($path.'home.php');
}
?>
Revise this Paste