Plugin Directory

Changeset 1974791


Ignore:
Timestamp:
11/15/2018 10:51:17 AM (7 years ago)
Author:
darklrd
Message:

Always open App dashboard over SSL

Location:
iflychat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • iflychat/trunk/iflychat.php

    r1974773 r1974791  
    22/**
    33 * @package iflychat
    4  * @version 4.4
     4 * @version 4.5
    55 */
    66/*
     
    99Description: One on one chat, Multiple chatrooms, Embedded chatrooms
    1010Author: iFlyChat Team
    11 Version: 4.4
     11Version: 4.5
    1212Author URI: https://iflychat.com/
    1313*/
     
    6060}
    6161
    62 define('IFLYCHAT_PLUGIN_VERSION', 'WP-4.4');
     62define('IFLYCHAT_PLUGIN_VERSION', 'WP-4.5');
    6363if (!defined('IFLYCHAT_DEBUG')) {
    6464  define('IFLYCHAT_DEBUG',          false);
     
    511511        <?php
    512512        if ($active_tab == 'plugin_settings') {
    513           $result = _iflychat_get_auth();
     513            // $result = null;
     514            // if(!iflychat_chatcamp_check()) {
     515            $result = _iflychat_get_auth();
     516           
     517           
    514518          if(gettype($result) == 'array'){
    515519
     
    649653    <?php
    650654  } else {
    651     $iflychat_host = DRUPALCHAT_EXTERNAL_A_HOST;
    652     $host = explode("/", $iflychat_host);
    653     $host_name = $host[2];
    654     if (isset($_SESSION['token']) && !empty($_SESSION['token'])) {
    655       $token = $_SESSION['token'];
    656     } else {
    657       $token = _iflychat_get_auth()->key;
    658     }
    659     $dashboardUrl = "//cdn.iflychat.com/apps/dashboard/#/settings/app?sessid=" . $token . "&hostName=" . $host_name . "&hostPort=" . DRUPALCHAT_EXTERNAL_A_PORT;
     655    $dashboardUrl = "https://dashboard.chatcamp.io";
     656    if(!iflychat_chatcamp_check()) {
     657        $iflychat_host = DRUPALCHAT_EXTERNAL_A_HOST;
     658        $host = explode("/", $iflychat_host);
     659        $host_name = $host[2];
     660        if (isset($_SESSION['token']) && !empty($_SESSION['token'])) {
     661        $token = $_SESSION['token'];
     662        } else {
     663        $token = _iflychat_get_auth()->key;
     664        }   
     665        $dashboardUrl = "https://cdn.iflychat.com/apps/dashboard/#/settings/app?sessid=" . $token . "&hostName=" . $host_name . "&hostPort=" . DRUPALCHAT_EXTERNAL_A_PORT;
     666    }
    660667    ?>
    661668    <br/>
     
    737744function iflychat_validate_fields(){
    738745    $app_id = iflychat_get_option('iflychat_app_id');
    739     if(strlen($app_id) == 36 && $app_id[14] == '4'){
     746    if(iflychat_chatcamp_check() || (strlen($app_id) == 36 && $app_id[14] == '4')){
    740747        return true;
    741748        //$errors->add( 'iflychat_app_id_error', __( '<strong>ERROR</strong>: Invalid APP ID.' ) );
     
    11971204    // return true;
    11981205    if(!empty(iflychat_get_option('iflychat_app_id'))) {
    1199         if(strpos(iflychat_get_option('iflychat_app_id'), '-') === false && strlen(iflychat_get_option('iflychat_app_id')) > 10) {
     1206        if(strpos(iflychat_get_option('iflychat_app_id'), '-') === false && strlen(iflychat_get_option('iflychat_app_id')) == 19) {
    12001207            return true;
    12011208        }
  • iflychat/trunk/readme.txt

    r1974773 r1974791  
    44Requires at least: 3.0
    55Tested up to: 4.9
    6 Stable tag: 4.4
     6Stable tag: 4.5
    77Tags: buddypress, chat, chat room, community, embed chat, friends, group chat, html5 chat, one to one chat, live chat, popup chat, mobile chat, multisite, wordpress chat, wp chat, ultimate member
    88License: GPLv2 or later
     
    138138== Changelog ==
    139139
     140= 4.5 =
     141
     14215/11/2018: Always open App dashboard over SSL.
     143
    140144= 4.4 =
    141145
     
    425429== Upgrade Notice ==
    426430
     431= 4.5 =
     432After updating, go to iFlyChat Settings page and click on Update button.
     433
    427434= 4.4 =
    428435After updating, go to iFlyChat Settings page and click on Update button.
     
    449456After updating, go to iFlyChat Settings page and click on Update button.
    450457
    451 = 4.2.1 =
    452 After updating, go to iFlyChat Settings page and click on Update button.
    453 
     458
Note: See TracChangeset for help on using the changeset viewer.