Changeset 3714 for branches


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

bug 895 : At the end of install, webmaster is automatically connected with two buttons: "Home" and "Admin"

Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/template/goto/install.tpl

    r3381 r3714  
    150150<p>
    151151  <br />
    152   <input type="button" name="identification" value="{'Identification'|@translate}" onClick="window.open('identification.php');"/>
     152  <input type="button" name="home" value="{'home'|@translate}" onClick="window.location='index.php';"/>
     153  <input type="button" name="admin" value="{'admin'|@translate}" onClick="window.location='admin.php';"/>
    153154</p>
    154155
     
    160161
    161162<p>
     163  <br />
    162164  <input type="button" name="subscribe" value="{'Subscribe %s'|@translate|@sprintf:$F_ADMIN_EMAIL}" onClick="window.open('{$SUBSCRIBE_BASE_URL}{$F_ADMIN_EMAIL}');"/>
    163165</p>
  • branches/2.0/install.php

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