mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Imrovements for Softaculous App Installer
This commit is contained in:
parent
7d956abd59
commit
85f6d3a08f
4 changed files with 47 additions and 5 deletions
|
@ -29,13 +29,12 @@ if(isset($_SERVER['HTTP_FORWARDED'])){
|
|||
$user_combined_ip .= '|'. $_SERVER['HTTP_FORWARDED'];
|
||||
}
|
||||
|
||||
|
||||
if(!isset($_SESSION['user_combined_ip'])){
|
||||
$_SESSION['user_combined_ip'] = $user_combined_ip;
|
||||
}
|
||||
|
||||
// Checking user to use session from the same IP he has been logged in
|
||||
if($_SESSION['user_combined_ip'] != $user_combined_ip){
|
||||
if($_SESSION['user_combined_ip'] != $user_combined_ip && $_SERVER['REMOTE_ADDR'] != '127.0.0.1'){
|
||||
session_destroy();
|
||||
session_start();
|
||||
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue