<?php
/**
 * <pre>
 * Invision Power Services
 * IP.Board vVERSION_NUMBER
 * Sets up SEO templates
 * Last Updated: $Date: 2010-02-24 19:38:05 -0500 (Wed, 24 Feb 2010) $
 * </pre>
 *
 * @author 		$Author: bfarber $
 * @copyright	(c) 2001 - 2009 Invision Power Services, Inc.
 * @license		http://www.invisionpower.com/community/board/license.html
 * @package		IP.Content
 * @version		$Rev: 210 $
 *
 */

$_SEOTEMPLATES	= array(
						'page' => array(
										'app'			=> 'ccs',
										'allowRedirect'	=> 1,
										'out'			=> array( '#app=ccs(?:&amp;|&)module=pages(?:&amp;|&)section=pages(?:&amp;|&)(?:folder=(.*?)(?:&amp;|&))(?:id|page)=(.+?)(&|$)#i', 'page/$1/#{__title__}' ),
										'in'			=> array( 
																	'regex'		=> "#/page(/.*?)?/([^/]+?)(\/|\?|$)#i",
																	'matches'	=> array( 
																							array( 'app'		, 'ccs' ),
																							array( 'module'		, 'pages' ),
																							array( 'section'	, 'pages' ),
																							array( 'folder'		, str_replace( '/page', '', '$1' ) ),
																							array( 'page'		, '$2' ),
																						)
																)	
									),
					);


//-----------------------------------------
// You must capture everything after the "marker"
//-----------------------------------------

$_PATHFIX		= "#.*?page/(.+?)#";