// Actually this is a problematic check because it fails on the quick installer (fonts not extracted) and we're testing for server ttf support, not if this file exists / can be processed
/*
if (@imagettfbbox(26.0, 0.0, get_file_base() . '/data/fonts/NotoSans-Regular.ttf', 'test') === false) {
$_zone_default_page=$GLOBALS['SITE_DB']->query_select('zones',['zone_name','zone_default_page','zone_title'],[]/*Load multiple so we can cache for performance ['zone_name' => $zone_name]*/,'ORDER BY zone_title',50/*reasonable limit; zone_title is sequential for default zones*/);
$test_url=get_base_url().'/data/empty.php';// Should normally exist, simple static URL call
}elseif($installing){
$test_url=get_base_url().'/install.php';// But this definitely must exist if running the installer
}else{
$test_url=static_evaluate_tempcode(build_url(['page'=>''],'',[],false,false,true));// But this definitely must exist
$test_url=static_evaluate_tempcode(build_url(['page'=>''],'',[],false,false,true));// This absolutely must exist otherwise
}
$test=cms_http_request($test_url,['byte_limit'=>1,'trigger_error'=>false,'no_redirect'=>true]);// Should return a 200 blank, not an HTTP error or a redirect; actual data would be a software error