<?php

	// this declares a path
	$LIB = "./lib/";

	// this includes functions and DB connector
	include_once $LIB."library.php";

/*
http://mariage.dns-systems.net/index.php
http://www.weddingvenues.com/
*/


# http://mariage.dns-systems.net/salle-de-mariage_XXXX_RRR.html

//$values[0] will then equal /
//$values[1] will then equal salle-de-mariage_XXXX_RRR.html

$values = explode("/", $_SERVER['REQUEST_URI']);

$full_page_name = $values[1];  # $values[0] = "" 
$values = explode("_", $full_page_name);

$region = $values[1];
$page =  $values[2];

print "Trouve: Region = [ $region ], page = [ $page ] <br>\n";

print get_header();

print get_top_section();

?>
<div id="widthfix3">
	<div id="headerdotty"></div>
	<!-- left menu -->
	<table border="0" cellspacing="0" width="100%" cellpadding="0" height="450" valign="top" align="left">
	<tr>
		<td valign="top" width="130" bgcolor="#FFFFFF" align="left"><?php	print get_left_menu();	?></td>
		<td valign="top" bgcolor="FFFFFF" width="3">
			<table width="3" border="0" cellspacing="0" cellpadding="0" height="100%">
			<tr>
				<td background="/mediastore/img/dot.gif" height="100%" width="10">&nbsp;</td>
			</tr>
			</table>
		</td>
		<!-- left menu end -->
		<!-- center content -->
		<!-- ******* 1st column *******  -->
		<td valign="top"  bgcolor="#FFFFFF" align="left">
			<?php print get_homepage_center_content(); ?>
		</td>
	</tr>
	<!-- center content end -->
	<!-- Close main content area -->
	<tr><td colspan=6><div id="dottylinelistingx"></div></td></tr>
	</table>
</div>
<!-- Close main content area -->

<?php

print get_footer();

?>
