mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
SF Feature Request #428390 - Added option to not check the IP of sessions for those behind load balancing proxys
This commit is contained in:
parent
e63c9b3570
commit
59874ad788
@ -7,6 +7,8 @@
|
|||||||
as the true appname
|
as the true appname
|
||||||
- Added limit_query() function, this is a replacement for limit() which should no longer be used
|
- Added limit_query() function, this is a replacement for limit() which should no longer be used
|
||||||
- Admins can now force a default app
|
- Admins can now force a default app
|
||||||
|
- Added global option to disable checking the IP address on sessions, usefull for those
|
||||||
|
behind load balanced proxys.
|
||||||
|
|
||||||
[0.9.12]
|
[0.9.12]
|
||||||
- Note: These changelogs will only contain changes in the API (preferences, admin, etc)
|
- Note: These changelogs will only contain changes in the API (preferences, admin, etc)
|
||||||
|
@ -141,10 +141,13 @@
|
|||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($phpgw_info['server']['sessions_checkip'])
|
||||||
|
{
|
||||||
if (PHP_OS != 'Windows' && (! $phpgw_info['user']['session_ip'] || $phpgw_info['user']['session_ip'] != $this->getuser_ip()))
|
if (PHP_OS != 'Windows' && (! $phpgw_info['user']['session_ip'] || $phpgw_info['user']['session_ip'] != $this->getuser_ip()))
|
||||||
{
|
{
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$phpgw->acl->acl($this->account_id);
|
$phpgw->acl->acl($this->account_id);
|
||||||
$phpgw->accounts->accounts($this->account_id);
|
$phpgw->accounts->accounts($this->account_id);
|
||||||
|
@ -148,4 +148,5 @@
|
|||||||
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zh','Chinese','No')");
|
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zh','Chinese','No')");
|
||||||
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zt','Chinese(Taiwan)','Yes')");
|
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zt','Chinese(Taiwan)','Yes')");
|
||||||
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zu','Zulu','No')");
|
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zu','Zulu','No')");
|
||||||
|
$oProc->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES ('phpgwapi','sessions_checkip','True')");
|
||||||
?>
|
?>
|
@ -85,6 +85,16 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr bgcolor="{row_off}">
|
||||||
|
<td>{lang_check_ip_address_of_all_sessions}:</td>
|
||||||
|
<td>
|
||||||
|
<select name="newsettings[sessions_checkip]">
|
||||||
|
<option value="">No</option>
|
||||||
|
<option value="True"{selected_sessions_checkip_True}>Yes</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr bgcolor="{row_on}">
|
<tr bgcolor="{row_on}">
|
||||||
<td>{lang_Would_you_like_phpGroupWare_to_check_for_a_new_version<br>when_admins_login_?}:</td>
|
<td>{lang_Would_you_like_phpGroupWare_to_check_for_a_new_version<br>when_admins_login_?}:</td>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
Reference in New Issue
Block a user