Changeset 1974791
- Timestamp:
- 11/15/2018 10:51:17 AM (7 years ago)
- Location:
- iflychat/trunk
- Files:
-
- 2 edited
-
iflychat.php (modified) (7 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iflychat/trunk/iflychat.php
r1974773 r1974791 2 2 /** 3 3 * @package iflychat 4 * @version 4. 44 * @version 4.5 5 5 */ 6 6 /* … … 9 9 Description: One on one chat, Multiple chatrooms, Embedded chatrooms 10 10 Author: iFlyChat Team 11 Version: 4. 411 Version: 4.5 12 12 Author URI: https://iflychat.com/ 13 13 */ … … 60 60 } 61 61 62 define('IFLYCHAT_PLUGIN_VERSION', 'WP-4. 4');62 define('IFLYCHAT_PLUGIN_VERSION', 'WP-4.5'); 63 63 if (!defined('IFLYCHAT_DEBUG')) { 64 64 define('IFLYCHAT_DEBUG', false); … … 511 511 <?php 512 512 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 514 518 if(gettype($result) == 'array'){ 515 519 … … 649 653 <?php 650 654 } 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 } 660 667 ?> 661 668 <br/> … … 737 744 function iflychat_validate_fields(){ 738 745 $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')){ 740 747 return true; 741 748 //$errors->add( 'iflychat_app_id_error', __( '<strong>ERROR</strong>: Invalid APP ID.' ) ); … … 1197 1204 // return true; 1198 1205 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) { 1200 1207 return true; 1201 1208 } -
iflychat/trunk/readme.txt
r1974773 r1974791 4 4 Requires at least: 3.0 5 5 Tested up to: 4.9 6 Stable tag: 4. 46 Stable tag: 4.5 7 7 Tags: 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 8 8 License: GPLv2 or later … … 138 138 == Changelog == 139 139 140 = 4.5 = 141 142 15/11/2018: Always open App dashboard over SSL. 143 140 144 = 4.4 = 141 145 … … 425 429 == Upgrade Notice == 426 430 431 = 4.5 = 432 After updating, go to iFlyChat Settings page and click on Update button. 433 427 434 = 4.4 = 428 435 After updating, go to iFlyChat Settings page and click on Update button. … … 449 456 After updating, go to iFlyChat Settings page and click on Update button. 450 457 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.