Changeset 20599


Ignore:
Timestamp:
Feb 7, 2013, 6:43:44 AM (11 years ago)
Author:
rvelices
Message:

start the php session before loading plugins in a standard manner (related to bug 2835: )

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r20516 r20599  
    134134ImageStdParams::load_from_db();
    135135
     136session_start();
    136137load_plugins();
    137138
  • trunk/include/functions.inc.php

    r20543 r20599  
    16221622function get_device()
    16231623{
    1624   if (session_id() == '')
    1625   {
    1626     session_start();
    1627   }
    16281624  $device = pwg_get_session_var('device');
    16291625
     
    16621658  }
    16631659
    1664   if (session_id() == '')
    1665   {
    1666     session_start();
    1667   }
    1668 
    16691660  if (isset($_GET['mobile']))
    16701661  {
  • trunk/include/user.inc.php

    r20543 r20599  
    2727if (isset($_COOKIE[session_name()]))
    2828{
    29   if (session_id() == '')
    30   {
    31     session_start();
    32   }
    3329  if (isset($_GET['act']) and $_GET['act'] == 'logout')
    3430  { // logout
     
    4642{
    4743  auto_login();
    48 }
    49 
    50 if (session_id()=="")
    51 {
    52   session_start();
    5344}
    5445
Note: See TracChangeset for help on using the changeset viewer.