Plugin Directory

Changeset 1796149


Ignore:
Timestamp:
01/03/2018 12:14:12 AM (8 years ago)
Author:
paulq
Message:

session handling removal

Location:
chatwee/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chatwee/trunk/chatwee-admin.php

    r1712683 r1796149  
    548548
    549549    add_action("wp_ajax_chatwee_admin_get_pages_to_display", "get_pages_to_display");
    550 
    551 
    552 ?>
  • chatwee/trunk/chatwee.php

    r1776174 r1796149  
    55    Plugin URI: https://chatwee.com/
    66    Description: WordPress Chat by Chatwee is fully customizable social chat & comment platform for websites and blogs. With Chatwee you can engage your online community and provide real-time communication.
    7     Version: 2.0.4
     7    Version: 2.0.5
    88    Author: Chatwee Ltd
    99    Author URI: https://chatwee.com/
     
    1313
    1414    if (!defined("ABSPATH")) exit;
    15 
    16     if (version_compare(PHP_VERSION, "5.4.0", "<")) {
    17         if(session_id() == "") {
    18             session_start();
    19         }
    20     } else {
    21         if (session_status() == PHP_SESSION_NONE) {
    22             session_start();
    23         }
    24     }
    2515
    2616    $chatwee_settings = get_option("chatwee_settings");
     
    240230                "login" => $username,
    241231                "avatar" => get_chatwee_avatar_url($user->ID),
    242                 "isAdmin" => does_user_belong_to_moderator_group($user->ID) || if_user_is_moderator($user->ID),
    243                 "previousSessionId" => isSet($_SESSION["chatwee"][$user_login]) ? $_SESSION["chatwee"][$user_login] : null
     232                "isAdmin" => does_user_belong_to_moderator_group($user->ID) || if_user_is_moderator($user->ID)
    244233            ));
    245             $_SESSION["chatwee"][$user_login] = isSet($_SESSION["chatwee"][$user_login]) === false ? $session_id : $_SESSION["chatwee"][$user_login];
    246234        } catch(Exception $exception) {
    247235            add_log("Error while executing login_v1: " . $exception->getMessage());
     
    422410        return false;
    423411    }
    424 
    425 ?>
Note: See TracChangeset for help on using the changeset viewer.