diff options
author | patdenice <patdenice@piwigo.org> | 2009-08-01 12:37:43 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-08-01 12:37:43 +0000 |
commit | 8caad629e66a80a6b4884640989cc17d5d44e4ea (patch) | |
tree | 8c2ef0a80f2e08f50011153bf94de0cd5a6c7873 /install.php | |
parent | f609411ba0ffa916174d8a96c18b0f1d980a40e9 (diff) |
bug 895 : At the end of install, webmaster is automatically connected with two buttons: "Home" and "Admin"
git-svn-id: http://piwigo.org/svn/branches/2.0@3714 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | install.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/install.php b/install.php index 67691c019..86cb17dea 100644 --- a/install.php +++ b/install.php @@ -421,6 +421,27 @@ else { array_push($errors, $error_copy); } + else + { + session_set_save_handler('pwg_session_open', + 'pwg_session_close', + 'pwg_session_read', + 'pwg_session_write', + 'pwg_session_destroy', + 'pwg_session_gc' + ); + if ( function_exists('ini_set') ) + { + ini_set('session.use_cookies', $conf['session_use_cookies']); + ini_set('session.use_only_cookies', $conf['session_use_only_cookies']); + ini_set('session.use_trans_sid', intval($conf['session_use_trans_sid'])); + ini_set('session.cookie_httponly', 1); + } + session_name($conf['session_name']); + session_set_cookie_params(0, cookie_path()); + $user = build_user(1, true); + log_user($user['id'], false); + } $template->assign( 'SUBSCRIBE_BASE_URL', |