mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-20 17:48:33 +00:00
use real ip addr from REMOTE_ADDR
This commit is contained in:
parent
2bed458a33
commit
aa79261205
|
|
@ -82,17 +82,16 @@ 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";
|
||||
$result = \Seeddms\Seeddms\Utilities::geoip($_SERVER['REMOTE_ADDR']);
|
||||
if ($result) {
|
||||
$this->contentHeading(getMLText("geo_info"));
|
||||
echo "<table class=\"table table-condensed table-sm\">\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";
|
||||
}
|
||||
echo "</tbody>\n</table>\n";
|
||||
|
||||
if($user->isAdmin()) {
|
||||
$this->contentHeading(getMLText("extension_info"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user