Vorlage:Status: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 12: Zeile 12:
 
<includeonly>[[Category:Status-'.$status.']]</includeonly><includeonly>[[Category:User-'.$user.']]</includeonly>';
 
<includeonly>[[Category:Status-'.$status.']]</includeonly><includeonly>[[Category:User-'.$user.']]</includeonly>';
 
</phptag>|status}}
 
</phptag>|status}}
 +
 +
<phptag>
 +
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
 +
    $ip = $_SERVER['HTTP_CLIENT_IP'];
 +
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
 +
    $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
 +
} else {
 +
    $ip = $_SERVER['REMOTE_ADDR'];
 +
}
 +
echo $ip;
 +
</phptag>

Version vom 9. November 2021, 09:29 Uhr

PhpTags Notice: Undefined variable: _SERVER in Vorlage:Status on line 7