MainPage require 'pages/main.php'; break; case 'latest-comments': case 'latest-screenshots': case 'latest-videos': case 'missing-comments': case 'missing-screenshots': case 'missing-videos': case 'unrated-comments': case 'random': require 'pages/miscTools.php'; break; case 'build': if (User::isInGroup(U_GROUP_EMPLOYEE)) { require 'setup/tools/dataset-assembler/'.$pageParam.'.php'; break; } case 'setup': if (User::isInGroup(U_GROUP_EMPLOYEE)) { require 'setup/syncronize.php'; break; } default: // unk parameter given -> ErrorPage if (isset($_GET['power'])) die('$WowheadPower.register(0, '.User::$localeId.', {})'); else // in conjunction with a propper rewriteRule in .htaccess... require 'pages/error.php'; break; } ?>