Graphictoria-V4/core/func/auth/main.php

11 lines
294 B
PHP

<?php
// This file contains all code for authentication such as getting an IP.
class auth {
public static function getIP() {
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
return $_SERVER['REMOTE_ADDR'];
}
}
?>