output geo information

This commit is contained in:
Uwe Steinmann 2026-02-09 16:20:49 +01:00
parent 34e612bd29
commit acd9dbbeda

View File

@ -82,6 +82,18 @@ class SeedDMS_View_Info extends SeedDMS_Theme_Style {
echo "<tr><td>".getMLText('browser_info_os')."</td><td>".$result->os->toString()."</td></tr>\n";
echo "</tbody>\n</table>\n";
$result = \Seeddms\Seeddms\Utilities::geoip('194.230.161.18');
$this->contentHeading(getMLText("geo_info"));
echo "<table class=\"table table-condensed table-sm\">\n";
// echo "<thead>\n<tr>\n";
// echo "<th>".getMLText("name")."</th><th></th>\n";
// echo "</tr>\n</thead>\n";
echo "<tbody>\n";
foreach (['ip', 'isp', 'org', 'city', 'country_code', 'timezone_name'] as $i) {
echo "<tr><td>".getMLText('geo_info_'.$i)."</td><td>".$result[$i]."</td></tr>\n";
}
echo "</tbody>\n</table>\n";
if($user->isAdmin()) {
$this->contentHeading(getMLText("extension_info"));
echo "<table class=\"table table-condensed table-sm\">\n";