include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'system.inc'; if(isset($iListing) && intval($iListing)) { $result = mysql_query("SELECT * FROM schools WHERE ID = '$iListing' LIMIT 1"); if($item = mysql_fetch_assoc($result)) { header('HTTP/1.0 301 Moved Permanently'); header("Location: " . PATH_CLIENT_MAIN . '/dir/' . $item[URL] . ".html"); exit; } header("Location: " . PATH_CLIENT_MAIN); } if(isset($strUrl) && strlen($strUrl) > 0) { ob_start(); $result = mysql_query("SELECT * FROM schools WHERE URL = '$strUrl' LIMIT 1"); if(!(mysql_num_rows($result) > 0)) header("Location: " . PATH_CLIENT_MAIN); if($item = mysql_fetch_assoc($result)) { $strTitle = "$item[Title] - $item[Region], $item[State] - " . $cfgCompany; $strArticleHeader = "$item[Title] - $item[Region], $item[State]"; echo "
";
echo "$item[Title]
";
if(strlen($item[Venue]))
echo "$item[Venue]
";
echo "$item[Region], $item[State]
";
if(strlen($item[Martialart]))
echo "
Martial Art: $item[Martialart]";
if(strlen($item[Style]))
echo "
Style: $item[Style]";
if(strlen($item[Name]))
echo "
Contact Name: $item[Name]";
if(strlen($item[Telephone]))
echo "
Telephone: $item[Telephone]";
if(strlen($item[Website]))
echo "
Website: $item[Website]";
if(strlen($item[email]))
echo "
E-mail: $item[email]";
echo "
$item[Description]
"; } $strArticleContent = ob_get_clean(); } else header("Location: " . PATH_CLIENT_MAIN); ?> include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'header.inc'; ?> include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'footer.inc'; ?>