diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-02-09 16:44:48 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2019-02-09 16:44:48 +0100 |
commit | b49a04f796b9ad8533c53fee541132a4c2214909 (patch) | |
tree | e7948198422b8edbc3ae080a591963afefba3c35 /index.php | |
parent | 905f8675a728841b03b300d2c7dc909a1c4f7f03 (diff) | |
download | Shaarli-b49a04f796b9ad8533c53fee541132a4c2214909.tar.gz Shaarli-b49a04f796b9ad8533c53fee541132a4c2214909.tar.zst Shaarli-b49a04f796b9ad8533c53fee541132a4c2214909.zip |
Rewrite IP ban management
This adds a dedicated manager class to handle all ban interactions, which is instantiated and handled by LoginManager.
IPs are now stored in the same format as the datastore, through FileUtils.
Fixes #1032 #587
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -125,7 +125,7 @@ if (isset($_COOKIE['shaarli']) && !SessionManager::checkId($_COOKIE['shaarli'])) | |||
125 | 125 | ||
126 | $conf = new ConfigManager(); | 126 | $conf = new ConfigManager(); |
127 | $sessionManager = new SessionManager($_SESSION, $conf); | 127 | $sessionManager = new SessionManager($_SESSION, $conf); |
128 | $loginManager = new LoginManager($GLOBALS, $conf, $sessionManager); | 128 | $loginManager = new LoginManager($conf, $sessionManager); |
129 | $loginManager->generateStaySignedInToken($_SERVER['REMOTE_ADDR']); | 129 | $loginManager->generateStaySignedInToken($_SERVER['REMOTE_ADDR']); |
130 | $clientIpId = client_ip_id($_SERVER); | 130 | $clientIpId = client_ip_id($_SERVER); |
131 | 131 | ||