Changeset 3715 for trunk/install.php


Ignore:
Timestamp:
Aug 1, 2009, 2:39:46 PM (15 years ago)
Author:
patdenice
Message:

merge r3714 from branch 2.0 to trunk
bug 895 : At the end of install, webmaster is automatically connected with two buttons: "Home" and "Admin"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r3382 r3715  
    419419    array_push($errors, $error_copy);
    420420  }
     421  else
     422  {
     423    session_set_save_handler('pwg_session_open',
     424      'pwg_session_close',
     425      'pwg_session_read',
     426      'pwg_session_write',
     427      'pwg_session_destroy',
     428      'pwg_session_gc'
     429    );
     430    if ( function_exists('ini_set') )
     431    {
     432      ini_set('session.use_cookies', $conf['session_use_cookies']);
     433      ini_set('session.use_only_cookies', $conf['session_use_only_cookies']);
     434      ini_set('session.use_trans_sid', intval($conf['session_use_trans_sid']));
     435      ini_set('session.cookie_httponly', 1);
     436    }
     437    session_name($conf['session_name']);
     438    session_set_cookie_params(0, cookie_path());
     439    $user = build_user(1, true);
     440    log_user($user['id'], false);
     441  }
    421442
    422443  $template->assign(
Note: See TracChangeset for help on using the changeset viewer.