<?php

define('IN_PROFILE', true);

list($path,$query) = explode('?',$_SERVER[REQUEST_URI]);

$vars = explode('/', $path);



switch($vars[2]) {

	// $vars[3] = title

	case 'post':
		$_GET[p] = $vars[3];
		$_GET[nh] = $vars[4];
		$_GET[op] = $vars[5];
		break;

	case 'topic':
		$_GET[t] = $vars[4];
		$_GET[nh] = $vars[5];
		$_GET[op] = $vars[6];
		break;

	case 'list':
		$_GET[f] = $vars[4];
		$_GET[nh] = $vars[5];
		break;

	case 'rand':
		$_GET[op] = 'rand';
		break;
}

include('forum.php');

?>