';
}
else {
echo '';
}
}
else if (!empty($_GET['tpf'])) {
echo '';
}
else {
/* 2025-07-03 기존
$prefix_link = getLocale() != getDefaultLocale() ? '/'.getLocale() : '';
echo ''.$meta_tags.'';
/main 없애는 작업
*/
if (isset($_GET['locale'])) {
$prefix_link =$_GET['locale'];
if($prefix_link==getDefaultLocale()) $prefix_link = "/";
echo ''.$meta_tags.'';
exit;
}
$arrPageInfo = getPageInfo();
$arrPageInfo['directory'][0] = '_main';
$arrPageInfo['file'] = 'page';
$arrPageInfo['exec_path'] = _DOCUMENT_ROOT_DIR.'/_main/page.php';
$arrPageInfo['template_path'] = _DOCUMENT_ROOT_DIR.'/html/_main/page.html';
if (is_readable($arrPageInfo['exec_path'])) { // 실행파일(.php) 존재할때
include $arrPageInfo['exec_path'];
} else {
if (is_readable($arrPageInfo['template_path'])) { // TEMPLATE파일(.html)만 존재할때
include "html.php";
}
else {
print "Not Found File";
exit;
}
}
$_GET["url"] = getLocale()."/main";
$page_class = "ThisPage";
$page = new $page_class();
$page->initPage($arrPageInfo);
$page->execute();
}
?>