mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
feature 2783: ability to disable ip address in the session id
git-svn-id: http://piwigo.org/svn/trunk@18850 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
a715d83cad
commit
200f22e82b
2 files changed
+11
No files matched your search
@@ -94,6 +94,13 @@ function pwg_session_close()
|
||||
|
||||
function get_remote_addr_session_hash()
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (!$conf['session_use_ip_address'])
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
if (strpos($_SERVER['REMOTE_ADDR'],':')===false)
|
||||
{//ipv4
|
||||
return vsprintf(
|
||||
|
||||
Reference in new issue
Block a user