Guest User

Untitled

a guest
Jul 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <?php
  2. $pages = array
  3. (
  4. 'signup' => './pages/registration.php',
  5. 'register' => './pages/reg_process.php',
  6. 'download' => './pages/download.php',
  7. 'concurrent' => './pages/concurrent.php',
  8. 'userrank' => './pages/userrank.php',
  9. 'clanrank' => './pages/clanrank.php',
  10. 'monthlyrank' => './pages/monthlyrank.php',
  11. 'serverinfo' => './pages/serverinfo.php',
  12. 'banned' => './pages/noobs.php',
  13. 'mobdropfinder' => './pages/bestiary.php',
  14. 'login' => './pages/login.php',
  15. 'loginprocess' => './pages/loginprocess.php',
  16. 'ticket' => './pages/subticket.php',
  17. 'report' => './pages/report.php',
  18. 'freepus' => './pages/powerupstore.php',
  19. 'donrpus' => './pages/pus.php',
  20. 'vote' => './pages/vote.php',
  21. 'changepw' => './pages/changepw.php',
  22. 'donate' => './pages/donate.php',
  23. 'signout' => './pages/logout.php',
  24. 'user' => './pages/user.php',
  25. 'clan' => './pages/clan.php',
  26. '' => './pages/default.php'
  27. );
  28.  
  29. if (!isset($_GET['call']))
  30. {
  31. $act = reset($pages);
  32. }
  33. else
  34. {
  35. $act = $_GET['call'];
  36. if (!property_exists((object)$pages, $act))
  37. {
  38. $act = reset($pages);
  39. }
  40. else
  41. {
  42. $act = $pages[$act];
  43. }
  44. }
  45. ?>
Add Comment
Please, Sign In to add comment