Your IP : 216.73.216.165
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
//include 'config.php';
echo 'test';
/*
try {
$subdomain = getSubdomain();
// Enhanced area loading with fallbacks
$area = getAreaWithHierarchicalUrl($subdomain);
if (!$area) {
$area = getAreaBySlugSimple($subdomain);
if ($area) {
$area['hierarchical_url'] = createHierarchicalUrl($area['slug'], $area['parents'] ?? []);
$area['direct_url'] = createurl($area['slug']);
}
}
// Validate area data
if (!$area || empty($area['name'])) {
show404();
exit;
}
$currenturl = $area['hierarchical_url'] ?? createurl($subdomain);
$contentfile = contentincludefile();
// Load XML data safely
if (!file_exists("arealist.xml")) {
throw new Exception("Area data file not found");
}
$xml = loadCityList("arealist.xml");
$areas = parseAreas($xml);
if ($area) {
$children = getChildrenBySlug($areas, $area['slug']);
$parent = getParentBySlug($areas, $area['slug']);
// Add to area data for templates
$area['children_data'] = $children;
$area['parent_data'] = $parent;
}
// Include content and template
if (file_exists($contentfile)) {
include($contentfile);
} else {
// Log missing content but continue
error_log("Content file missing: " . $contentfile);
}
include 'template.php';
} catch (Exception $e) {
ob_clean();
error_log("Index Error: " . $e->getMessage());
show404();
}
*/