<?php define('IN_PROFILE', true); list($path) = explode('?',$_SERVER[REQUEST_URI]); $vars = explode('/',$path); $_GET[user] = $vars[2]; switch($vars[3]) { case 'journal': $_GET[item] = $vars[4]; $_GET[nh] = $vars[5]; include('/home/theforum/public_html/blog.php'); break; case 'friends': $_GET[op] = $vars[4]; include('/home/theforum/public_html/friends.php'); break; case 'mycommentedjournals': $_GET[poster] = $vars[2]; case 'posts': if ($vars[4] == 'journals') { $_GET[mode] = 'journals'; $_GET[poster] = $vars[2]; include('/home/theforum/public_html/search.php'); } else if ($vars[4] == 'subscribed_topics') { $_GET[mode] = 'subscribed'; include('/home/theforum/public_html/search.php'); } else if ($vars[4] == 'topics') { $_GET[mode] = 'topicsby'; $_GET[user] = $vars[2]; $_GET[forum_id] = $vars[5]; include('/home/theforum/public_html/search.php'); } else if ($vars[4] == 'replies') { $_GET[repliestome] = 1; $_GET[person] = $vars[2]; include('/home/theforum/public_html/search.php'); } else { $_GET[poster] = $vars[2]; $_GET[forum_id] = $vars[4]; include('/home/theforum/public_html/search.php'); } break; case 'pics': $_GET[pic] = $vars[4]; if ($vars[4] > 0) { $_GET[user] = ''; } include('/home/theforum/public_html/pics.php'); break; case 'polls': include('/home/theforum/public_html/polls.php'); break; default: include('/home/theforum/public_html/profile.php'); break; } ?>