Changeset 1993424
- Timestamp:
- 12/13/2018 08:40:02 AM (7 years ago)
- Location:
- replain
- Files:
-
- 26 added
- 2 edited
-
tags/1.7 (added)
-
tags/1.7/assets (added)
-
tags/1.7/assets/banner-1544x500.jpg (added)
-
tags/1.7/assets/banner-772x250.jpg (added)
-
tags/1.7/assets/css (added)
-
tags/1.7/assets/css/replain-wp-toolbar-link.css (added)
-
tags/1.7/assets/icon-128x128.png (added)
-
tags/1.7/assets/icon-256x256.png (added)
-
tags/1.7/assets/img (added)
-
tags/1.7/assets/img/replain-logo-white.svg (added)
-
tags/1.7/lang (added)
-
tags/1.7/lang/replain-ar.mo (added)
-
tags/1.7/lang/replain-ar.po (added)
-
tags/1.7/lang/replain-pl_PL.mo (added)
-
tags/1.7/lang/replain-pl_PL.po (added)
-
tags/1.7/lang/replain-pt_BR.mo (added)
-
tags/1.7/lang/replain-pt_BR.po (added)
-
tags/1.7/lang/replain-ru_RU.mo (added)
-
tags/1.7/lang/replain-ru_RU.po (added)
-
tags/1.7/readme.txt (added)
-
tags/1.7/replain.php (added)
-
tags/1.7/screenshot-1.png (added)
-
tags/1.7/screenshot-2.png (added)
-
tags/1.7/screenshot-3.png (added)
-
tags/1.7/screenshot-4.png (added)
-
tags/1.7/screenshot-5.png (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/replain.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
replain/trunk/readme.txt
r1957493 r1993424 1 === Replain ===1 === Replain === 2 2 Tags: live chat, support, telegram chat 3 3 Requires at least: 4.6 4 4 Tested up to: 4.9.4 5 5 Requires PHP: 5.2.4 6 Stable tag: 1. 66 Stable tag: 1.7 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 63 63 = 1.6 = 64 64 * Polish language added. 65 66 = 1.7 = 67 * Added support for new code format. -
replain/trunk/replain.php
r1957493 r1993424 5 5 Plugin URI: http://wordpress.org/plugins/replain/ 6 6 Description: The simplest live chat in the world. The first live chat in your messenger. Messages from the site come directly to your Telegram. Re:plain For those who need customers, not data. 7 Version: 1. 67 Version: 1.7 8 8 Author: Re:plain 9 9 Author URI: http://replain.cc … … 130 130 131 131 if ( isset( $_POST[$code_name] ) ) { 132 preg_match( '/REPLAIN_\s*=\s*\W(.*?)\W;/', stripslashes( $_POST[$code_name] ), $matches );132 preg_match( '/REPLAIN_\s*=\s*\W(.*?)\W;/', stripslashes( $_POST[$code_name] ), $matches ); 133 133 134 134 if ( !empty( $matches ) && isset( $matches[1] ) ) { 135 135 $token = sanitize_text_field( $matches[1] ); 136 136 } else { 137 $token = ''; 137 preg_match( '/id\s*:\s*\W(.*?)\W{2}/', stripslashes( $_POST[$code_name] ), $matches ); 138 139 if ( !empty( $matches ) && isset( $matches[1] ) ) { 140 $token = sanitize_text_field( $matches[1] ); 141 } else { 142 $token = ''; 143 } 138 144 } 139 145 … … 212 218 } 213 219 214 $jsCode = '<script type="text/javascript" charset="utf-8">var __REPLAIN_ = \''.$code.'\';(function(u){var s=document.createElement(\'script\');s.type=\'text/javascript\';s.async=true;s.src=u;var x=document.getElementsByTagName(\'script\')[0];x.parentNode.insertBefore(s,x);})(\'https://widget.replain.cc/dist/client.js\');</script>';220 $jsCode = '<script>window.replainSettings = { id: \''.$code.'\'};(function(u){var s=document.createElement(\'script\');s.type=\'text/javascript\';s.async=true;s.src=u;var x=document.getElementsByTagName(\'script\')[0];x.parentNode.insertBefore(s,x);})(\'https://widget.replain.cc/dist/client.js\');</script>'; 215 221 $jsCode = stripslashes( $jsCode ); 216 222 return $jsCode;
Note: See TracChangeset
for help on using the changeset viewer.