All pastes #238951 Raw Edit

Mine

public php v1 · immutable
·published 2006-11-05 04:35 UTC
rendered paste body
<?phprequire_once('../startup.php');//print_r($_SERVER);$thisdir = basename(dirname(__FILE__)); // Synchronize the tinycore folder with this folder.//(?:\?.*)?if(preg_match("/($thisdir\/[^\/\?$]+)\/?([^\/\?$]+)?/", $_SERVER['REQUEST_URI'], $matches)){var_dump($matches);	$category = $core->get_folder_uri($matches[1]);	if(!$category)		special_die('Category not found.');	if(isset($matches[2])) // If thread	{		$thread = $category->get_offset(urldecode($matches[2]));		if(!$thread)			special_die('Thread not found.');		include('thread.php');	}	else // Category	{		include('category.php');	}}//var_dump($matches);//exit();?>