Changeset 3397037
- Timestamp:
- 11/17/2025 09:54:42 AM (5 months ago)
- Location:
- lenochat
- Files:
-
- 5 edited
- 7 copied
-
tags/1.0.3 (copied) (copied from lenochat/trunk)
-
tags/1.0.3/LICENSE (copied) (copied from lenochat/trunk/LICENSE)
-
tags/1.0.3/admin (copied) (copied from lenochat/trunk/admin)
-
tags/1.0.3/admin/class-lenochat-submenu.php (copied) (copied from lenochat/trunk/admin/class-lenochat-submenu.php)
-
tags/1.0.3/admin/views/lenochat-login.php (modified) (2 diffs)
-
tags/1.0.3/data-env.php (copied) (copied from lenochat/trunk/data-env.php) (1 diff)
-
tags/1.0.3/lenochat.php (copied) (copied from lenochat/trunk/lenochat.php) (3 diffs)
-
tags/1.0.3/readme.txt (copied) (copied from lenochat/trunk/readme.txt) (3 diffs)
-
trunk/admin/views/lenochat-login.php (modified) (2 diffs)
-
trunk/data-env.php (modified) (1 diff)
-
trunk/lenochat.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lenochat/tags/1.0.3/admin/views/lenochat-login.php
r3295761 r3397037 79 79 if (isset($arr["success"]) && $arr["success"]) { 80 80 update_option("lenochat_license", $arr["data"][0]["license"]); 81 if (isset($arr["data"][0]["company_id"])) { 82 update_option("lenochat_company_id", $arr["data"][0]["company_id"]); 83 } 81 84 $encodedToken = json_encode($arr["data"]); 82 85 $license = get_option("lenochat_license"); … … 108 111 update_option("lenochat_status", $widgetStatus); 109 112 $status = $widgetStatus; 113 114 // If widget is being activated (status = "1"), call activation endpoint 115 if ($widgetStatus == "1") { 116 try { 117 $env = lenochat_load_env_func(); 118 $activate_url = isset($env["LENOCHAT_ACTIVATE_WORDPRESS_INTEGRATION"]) ? $env["LENOCHAT_ACTIVATE_WORDPRESS_INTEGRATION"] : null; 119 120 if ($activate_url) { 121 $license = get_option("lenochat_license"); 122 $company_id = get_option("lenochat_company_id"); 123 124 if (!empty($license) && !empty($company_id)) { 125 $request_body = [ 126 "license" => intval($license), 127 "platform" => 20, 128 "companyId" => intval($company_id) 129 ]; 130 131 $response = wp_remote_post($activate_url, [ 132 "body" => json_encode($request_body), 133 "headers" => ["Content-Type" => "application/json"], 134 "timeout" => 30, 135 ]); 136 137 if (is_wp_error($response)) { 138 // Log error but don't block the toggle 139 error_log("LenoChat activation error: " . $response->get_error_message()); 140 } 141 } 142 } 143 } catch (Exception $e) { 144 // Log error but don't block the toggle 145 error_log("LenoChat activation exception: " . $e->getMessage()); 146 } 147 } 148 110 149 $lenochat_needs_redirect = true; 111 150 } -
lenochat/tags/1.0.3/data-env.php
r3395661 r3397037 3 3 return [ 4 4 "LENOCHAT_JS_URL" => "https://my-cdn.lenochat.com/lenochat.js", 5 "AUTH_URL" => "https:// 8twcxgmmjb.execute-api.us-east-1.amazonaws.com/prod/v1/public/auth",5 "AUTH_URL" => "https://my-sls.lenochat.com/prod/v1/public/auth", 6 6 "LENOCHAT_URL" => "https://www.lenochat.com/", 7 7 "LENOCHAT_APP_URL" => "https://my.lenochat.com/", 8 8 "LENOCHAT_LOGO_URL" => "https://my-cdn.lenochat.com/assets/lenochat/lenochatbanner.svg", 9 9 "LENOCHAT_MENU_ICON_URL" => "https://my-cdn.lenochat.com/assets/lenochat/lenochaticon-blue.png", 10 "LENOCHAT_ACTIVATE_WORDPRESS_INTEGRATION" => "https://my-api.lenochat.com/request/public/platform/activate", 10 11 ]; -
lenochat/tags/1.0.3/lenochat.php
r3395661 r3397037 4 4 * 5 5 * @link http://www.lenochat.com 6 * @since 1.0. 26 * @since 1.0.3 7 7 * @package LenoChat 8 8 * … … 11 11 * Plugin URI: http://www.lenochat.com 12 12 * Description: Real-Time Conversations Made Simple! Enjoy engaging with your website visitors in real-time using LenoChat. Max out Customer Experience & Skyrocket Your Business Growth Deliver better support, faster responses, and stronger connections. 13 * Version: 1.0. 213 * Version: 1.0.3 14 14 * Author: LenoChat 15 15 * Author URI: https://www.lenochat.com … … 24 24 25 25 // Define constants for the plugin 26 define("LENOCHAT_VERSION", "1.0. 2");26 define("LENOCHAT_VERSION", "1.0.3"); 27 27 define("LENOCHAT_PLUGIN_DIR", plugin_dir_path(__FILE__)); 28 28 define("LENOCHAT_PLUGIN_URL", plugin_dir_url(__FILE__)); -
lenochat/tags/1.0.3/readme.txt
r3395661 r3397037 5 5 Requires PHP: 7.2 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 Donate link: https://www.lenochat.com 9 9 License: GPL-2.0+ … … 113 113 114 114 == Changelog == 115 = 1.0.3 = 116 * Added WordPress integration activation endpoint call when widget visibility is enabled 117 115 118 = 1.0.2 = 116 119 * Added custom menu icon with styling … … 124 127 125 128 == Upgrade Notice == 129 = 1.0.3 = 130 Added automatic WordPress integration activation when widget is enabled. Fixed API request validation issues. 131 126 132 = 1.0.2 = 127 133 Added custom menu icon and moved LenoChat to top-level admin menu. -
lenochat/trunk/admin/views/lenochat-login.php
r3295761 r3397037 79 79 if (isset($arr["success"]) && $arr["success"]) { 80 80 update_option("lenochat_license", $arr["data"][0]["license"]); 81 if (isset($arr["data"][0]["company_id"])) { 82 update_option("lenochat_company_id", $arr["data"][0]["company_id"]); 83 } 81 84 $encodedToken = json_encode($arr["data"]); 82 85 $license = get_option("lenochat_license"); … … 108 111 update_option("lenochat_status", $widgetStatus); 109 112 $status = $widgetStatus; 113 114 // If widget is being activated (status = "1"), call activation endpoint 115 if ($widgetStatus == "1") { 116 try { 117 $env = lenochat_load_env_func(); 118 $activate_url = isset($env["LENOCHAT_ACTIVATE_WORDPRESS_INTEGRATION"]) ? $env["LENOCHAT_ACTIVATE_WORDPRESS_INTEGRATION"] : null; 119 120 if ($activate_url) { 121 $license = get_option("lenochat_license"); 122 $company_id = get_option("lenochat_company_id"); 123 124 if (!empty($license) && !empty($company_id)) { 125 $request_body = [ 126 "license" => intval($license), 127 "platform" => 20, 128 "companyId" => intval($company_id) 129 ]; 130 131 $response = wp_remote_post($activate_url, [ 132 "body" => json_encode($request_body), 133 "headers" => ["Content-Type" => "application/json"], 134 "timeout" => 30, 135 ]); 136 137 if (is_wp_error($response)) { 138 // Log error but don't block the toggle 139 error_log("LenoChat activation error: " . $response->get_error_message()); 140 } 141 } 142 } 143 } catch (Exception $e) { 144 // Log error but don't block the toggle 145 error_log("LenoChat activation exception: " . $e->getMessage()); 146 } 147 } 148 110 149 $lenochat_needs_redirect = true; 111 150 } -
lenochat/trunk/data-env.php
r3395661 r3397037 3 3 return [ 4 4 "LENOCHAT_JS_URL" => "https://my-cdn.lenochat.com/lenochat.js", 5 "AUTH_URL" => "https:// 8twcxgmmjb.execute-api.us-east-1.amazonaws.com/prod/v1/public/auth",5 "AUTH_URL" => "https://my-sls.lenochat.com/prod/v1/public/auth", 6 6 "LENOCHAT_URL" => "https://www.lenochat.com/", 7 7 "LENOCHAT_APP_URL" => "https://my.lenochat.com/", 8 8 "LENOCHAT_LOGO_URL" => "https://my-cdn.lenochat.com/assets/lenochat/lenochatbanner.svg", 9 9 "LENOCHAT_MENU_ICON_URL" => "https://my-cdn.lenochat.com/assets/lenochat/lenochaticon-blue.png", 10 "LENOCHAT_ACTIVATE_WORDPRESS_INTEGRATION" => "https://my-api.lenochat.com/request/public/platform/activate", 10 11 ]; -
lenochat/trunk/lenochat.php
r3395661 r3397037 4 4 * 5 5 * @link http://www.lenochat.com 6 * @since 1.0. 26 * @since 1.0.3 7 7 * @package LenoChat 8 8 * … … 11 11 * Plugin URI: http://www.lenochat.com 12 12 * Description: Real-Time Conversations Made Simple! Enjoy engaging with your website visitors in real-time using LenoChat. Max out Customer Experience & Skyrocket Your Business Growth Deliver better support, faster responses, and stronger connections. 13 * Version: 1.0. 213 * Version: 1.0.3 14 14 * Author: LenoChat 15 15 * Author URI: https://www.lenochat.com … … 24 24 25 25 // Define constants for the plugin 26 define("LENOCHAT_VERSION", "1.0. 2");26 define("LENOCHAT_VERSION", "1.0.3"); 27 27 define("LENOCHAT_PLUGIN_DIR", plugin_dir_path(__FILE__)); 28 28 define("LENOCHAT_PLUGIN_URL", plugin_dir_url(__FILE__)); -
lenochat/trunk/readme.txt
r3395661 r3397037 5 5 Requires PHP: 7.2 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 Donate link: https://www.lenochat.com 9 9 License: GPL-2.0+ … … 113 113 114 114 == Changelog == 115 = 1.0.3 = 116 * Added WordPress integration activation endpoint call when widget visibility is enabled 117 115 118 = 1.0.2 = 116 119 * Added custom menu icon with styling … … 124 127 125 128 == Upgrade Notice == 129 = 1.0.3 = 130 Added automatic WordPress integration activation when widget is enabled. Fixed API request validation issues. 131 126 132 = 1.0.2 = 127 133 Added custom menu icon and moved LenoChat to top-level admin menu.
Note: See TracChangeset
for help on using the changeset viewer.