Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Profile Extensions (url -> array())
- $areas = array(
- 'general' => array(
- 'resources' => false
- ),
- 'notes' => array(
- 'resources' => false
- )
- );
- // Additional "Shortcuts" (url -> array())
- $reflections = array(
- 'general' => 'general',
- 'main' => 'general',
- 'notes' => 'notes',
- 'note' => 'notes',
- 'notepad' => 'notes'
- );
- // If it's valid, go ahead and load it.
- if (isset($_REQUEST['area']) && array_key_exists($_REQUEST['area'], $reflections))
- loadModule($areas[$reflections[$_REQUEST['area']]]);
Add Comment
Please, Sign In to add comment