| '; } else { $city=str_replace(' | ', ' | ', $city); }
if ($langfs == '*' && strpos($fname, '-en.csv') !== false) {
$urlifsuffix='?placegeo=' . urlencode(str_replace('"','',$cols[9 - 0]));
$urlifsuffixmore='?placegeo=' . urlencode(str_replace('"','',$cols[9 - 0]));
if ($cname == '' || 5 == 5) {
$cname=str_replace('"','',$cols[4]);
$cst=$cols[6];
$ctz=$cols[11];
$ctwo=$cols[3];
}
} else if ($langfs != '*' && ($urlifsuffix == '' || trim($altfile) != '')) {
if (trim($altfile) != '') {
$altfgc="\n" . shell_exec('fgrep "' . $garr[$jj] . '," ' . $altfile) . "\n";
$altfile='';
$altlistis="\n" . $altfgc . "\n";
if (strpos($altlistis, "\n" . $garr[$jj] . ",") !== false) {
$altlis=explode("\n" . $garr[$jj] . ",", $altlistis);
$altcols=explode(',',$altlis[1]);
$urlifsuffix='?geoplace=' . urlencode(str_replace('"','',$cols[9 - 0])) . '&placegeo=' . urlencode(str_replace('"','',$altcols[9 - 0]));
$urlifsuffixmore='?geoplace=' . urlencode(str_replace('"','',$cols[9 - 0])) . '&placegeo=' . urlencode(str_replace('"','',$altcols[9 - 0]) . ',_' . str_replace('"','',$altcols[6]));
//$cname=str_replace('"','',$altcols[4]);
//$cst=$altcols[6];
//$ctz=$altcols[11];
$ctwo=$altcols[3];
} else {
$urlifsuffix='?placegeo=' . urlencode(str_replace('"','',$cols[9 - 0]));
}
} else {
$urlifsuffix='?placegeo=' . urlencode(str_replace('"','',$cols[9 - 0]));
}
}
$city.=' ' . str_replace('"','',$cols[9 - 0]) . ' | ';
}
if ($cols[3] != '') {
if ($ccode == '') { $ccode='| '; } else { $ccode=str_replace(' | ', ' | ', $ccode); }
$ccode.=' ' . str_replace('"','',$cols[3]) . ' | ';
if ($ctwo == '' && ($langfs != '*' || $thislang != 'en')) { $ctwo=$cols[3]; }
}
if ($cols[6] != '') {
if ($state == '') { $state='| '; } else { $state=str_replace(' | ', ' | ', $state); }
$state.=' ' . str_replace('"','',$cols[6]) . ' | ';
if ($cst == '' && ($langfs != '*' || $thislang != 'en')) { $cst=$cols[6]; }
if ($urlifsuffixmore != '' && $thislang == 'en') {
$urlifsuffixmore.=',_' . urlencode(str_replace('"','',$cols[6]));
}
}
if ($cols[4] != '') {
if ($country == '') { $country='| '; } else { $country=str_replace(' | ', ' | ', $country); }
$country.=' ' . str_replace('"','',$cols[4]) . ' | ';
if ($cname == '' && ($langfs != '*' || $thislang != 'en')) { $cname=str_replace('"','',$cols[4]); }
if ($urlifsuffix != '' && 1 == 5) {
$urlifsuffix.='' . urlencode(', ' . str_replace('"','',$cols[4]));
}
}
if ($cols[11] != '') {
if ($tzplace == '') { $tzplace='| '; } else { $tzplace=str_replace(' | ', ' | ', $tzplace); }
if ($ctz == '' && ($langfs != '*' || $thislang != 'en')) { $ctz=$cols[11]; }
$tzplace.=' ' . str_replace('"','',$cols[11]) . ' | ';
}
if ($cols[2] != '') {
if ($continent == '') { $continent='| '; }
$continent.=' ' . str_replace('"','',$cols[2]) . ' | ';
}
}
}
}
$results="
" . ($city == '' ? 'Company: ' . $city . $hostn : 'City: ' . substr($city,0,(-1 + strlen($city))) . ' class=toright id=tdcity title=""> | ');
$results.=" " . ($state == '' ? $state : 'State: ' . substr($state,0,(-1 + strlen($state))) . ' class=toright id=tdstate> | ');
$results.=" " . ($country == '' ? $country : 'Country: ' . substr($country,0,(-1 + strlen($country))) . ' class=toright id=tdcountry> | ');
$results.=" " . ($ccode == '' ? $ccode : 'Country Code: ' . substr($ccode,0,(-1 + strlen($ccode))) . ' class=toright id=tdccode> | ');
$results.=" " . ($continent == '' ? $continent : 'Continent: ' . substr($continent,0,(-1 + strlen($continent))) . ' class=toright id=tdcontinent> | ');
$results.=" " . ($tzplace == '' ? $tzplace : 'Timezone: ' . substr($tzplace,0,(-1 + strlen($tzplace))) . ' class=toright id=tdtzplace> |