neater
git-svn-id: file:///home/shish/svn/shimmie2/trunk@993 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
a72fb78ee0
commit
24a775678c
@ -224,12 +224,7 @@ function get_memory_limit() {
|
|||||||
function get_session_ip() {
|
function get_session_ip() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$mask = $config->get_string("session_hash_mask");
|
$mask = $config->get_string("session_hash_mask", "255.255.0.0");
|
||||||
if(!$mask) {
|
|
||||||
$config->set_string("session_hash_mask", "255.255.0.0");
|
|
||||||
$mask = "255.255.0.0";
|
|
||||||
}
|
|
||||||
|
|
||||||
$addr = $_SERVER['REMOTE_ADDR'];
|
$addr = $_SERVER['REMOTE_ADDR'];
|
||||||
$addr = inet_ntop(inet_pton($addr) & inet_pton($mask));
|
$addr = inet_ntop(inet_pton($addr) & inet_pton($mask));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user