Guest User

Untitled

a guest
May 20th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1.     // Profile Extensions (url -> array())
  2.     $areas = array(
  3.         'general' => array(
  4.             'resources' => false
  5.         ),
  6.         'notes' => array(
  7.             'resources' => false
  8.         )
  9.     );
  10.  
  11.     // Additional "Shortcuts" (url -> array())
  12.     $reflections = array(
  13.         'general' => 'general',
  14.         'main' => 'general',
  15.         'notes' => 'notes',
  16.         'note' => 'notes',
  17.         'notepad' => 'notes'
  18.     );
  19.  
  20.     // If it's valid, go ahead and load it.
  21.     if (isset($_REQUEST['area']) && array_key_exists($_REQUEST['area'], $reflections))
  22.         loadModule($areas[$reflections[$_REQUEST['area']]]);
Add Comment
Please, Sign In to add comment