aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-02-04 11:02:38 +0000
committermistic100 <mistic@piwigo.org>2014-02-04 11:02:38 +0000
commit922de9a63d4d503b275813cce6b9d3682d1b2a25 (patch)
treede98199db67020ff8b725703582789de2e84242a /include/functions_user.inc.php
parentf286327ad680a5321d7fa77314f0b44f4823eb31 (diff)
remove PHP < 5.2 code
git-svn-id: http://piwigo.org/svn/trunk@27158 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php23
1 files changed, 6 insertions, 17 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 896c175f0..5bd06c3be 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -939,23 +939,12 @@ function log_user($user_id, $remember_me)
if ($key!==false)
{
$cookie = $user_id.'-'.$now.'-'.$key;
- if (version_compare(PHP_VERSION, '5.2', '>=') )
- {
- setcookie($conf['remember_me_name'],
- $cookie,
- time()+$conf['remember_me_length'],
- cookie_path(),ini_get('session.cookie_domain'),ini_get('session.cookie_secure'),
- ini_get('session.cookie_httponly')
- );
- }
- else
- {
- setcookie($conf['remember_me_name'],
- $cookie,
- time()+$conf['remember_me_length'],
- cookie_path(),ini_get('session.cookie_domain'),ini_get('session.cookie_secure')
- );
- }
+ setcookie($conf['remember_me_name'],
+ $cookie,
+ time()+$conf['remember_me_length'],
+ cookie_path(),ini_get('session.cookie_domain'),ini_get('session.cookie_secure'),
+ ini_get('session.cookie_httponly')
+ );
}
}
else