* @author Christian Weiske * @author Eric Dane * @license GPL http://www.gnu.org/licenses/gpl.html * @link http://sourceforge.net/projects/semanticscuttle */ /** * Remote User helper methods. * * @category Bookmarking * @package SemanticScuttle * @author Christian Weiske * @license GPL http://www.gnu.org/licenses/gpl.html * @link http://sourceforge.net/projects/semanticscuttle */ class SemanticScuttle_Model_RemoteUser { /** * Returns the remote user's IP. * * @return string IP address. NULL if not found. */ public static function getIp() { $ip = null; if (getenv('REMOTE_ADDR')) { $ip = getenv('REMOTE_ADDR'); } else if (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } else if (getenv('HTTP_X_FORWARDED_FOR')) { $ip = getenv('HTTP_X_FORWARDED_FOR'); } return $ip; } } ?>refslogtreecommitdiff
path: root/2a2/be5
AgeCommit message (Expand)Author
2024-07-12updateArquivo Archive
2024-07-05updateArquivo Archive
2023-09-19updateArquivo Archive
2018-07-26updateArquivo Archive
2018-06-09updateArquivo Archive
2018-06-09updateArquivo Publico de Memoria Coletiva