Changeset 2249006
- Timestamp:
- 02/23/2020 05:53:52 PM (6 years ago)
- Location:
- html5-chat/trunk
- Files:
-
- 2 edited
-
index.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
html5-chat/trunk/index.php
r2157523 r2249006 4 4 Plugin URI: https://html5-chat.com/ 5 5 Description: Plugin to integrate HTML5 chat to you WP blog, including avatar and username auto login. 6 Version: 1.0 46 Version: 1.02 7 7 Author: Proxymis 8 8 Author URI: contact@proxymis.com … … 15 15 private static $registerAccountUrl = 'https://html5-chat.com/ajax.php'; 16 16 private static $noticeName = 'html5chat-notice'; 17 18 17 private static $domain; 19 18 private $countShortcode = 0; … … 51 50 $wp_login_url = wp_login_url(); 52 51 53 $params = array ('a'=>'createAccountWP', 'username'=>$username, 'email' => $email, 'isAdmin' => $isAdmin, 'url'=>$domain, 54 'wp_register_url'=>$wp_register_url, 'wp_login_url'=>$wp_login_url); 52 $params = array ( 53 'a' =>'createAccountWP', 54 'username' =>$username, 55 'email' =>$email, 56 'isAdmin' =>$isAdmin, 57 'url' =>$domain, 58 'wp_register_url' =>$wp_register_url, 59 'wp_login_url' =>$wp_login_url); 55 60 $query = http_build_query ($params); 56 61 $contextData = array ( … … 70 75 $jsonString = get_transient( self::$noticeName); 71 76 $json = json_decode($jsonString); 72 echo "<div id='message' class='updated notice is-dismissible'>{$json->message}</div>"; 77 if ($json && $json->message) { 78 echo "<div id='message' class='updated notice is-dismissible'>{$json->message}</div>"; 79 } 73 80 delete_transient( self::$noticeName ); 74 81 } … … 80 87 function setEvents() { 81 88 add_action('admin_init', array($this, 'adminInit')); 82 83 89 add_action('admin_menu', array($this, 'setMenu')); 84 90 add_shortcode('HTML5CHAT', array($this, 'doShortcode')); 85 86 91 add_filter('the_content', 'do_shortcode'); 87 add_filter( "mce_external_plugins", array($this, 'enqueuePluginScripts'));88 add_filter( "mce_buttons", array($this, 'registerButtonEditor'));92 add_filter('mce_external_plugins', array($this, 'enqueuePluginScripts')); 93 add_filter('mce_buttons', array($this, 'registerButtonEditor')); 89 94 } 90 95 … … 139 144 } 140 145 $src.="&width=$width&height=$height&isAdmin=$isAdmin&email=$email&cache=$cache&role=$role"; 141 return $src; 146 $password = $currentUser->user_login; 147 $hash = crypt($src, $password); 148 return $src."&h=$hash"; 142 149 } 143 150 … … 208 215 function setMenu() { 209 216 $parent = array( 210 'page_title' => 'HTML5 chat setting',211 'menu_title' => 'HTML5-CHAT',212 'capability' => 'manage_options',213 'menu_slug' => 'html5-chat',214 'function' => array($this, 'getPageAdmin'),215 'icon_url' => $this->getIconMenu()217 'page_title' => 'HTML5 chat setting', 218 'menu_title' => 'HTML5-CHAT', 219 'capability' => 'manage_options', 220 'menu_slug' => 'html5-chat', 221 'function' => array($this, 'getPageAdmin'), 222 'icon_url' => $this->getIconMenu() 216 223 ); 217 224 218 225 $adminPanelTitle = 'Configure chat'; 219 226 $this->adminPanel = array( 220 'parent_slug' => $parent['menu_slug'],221 'page_title' => $adminPanelTitle,222 'menu_title' => $adminPanelTitle,223 'capability' => $parent['capability'],224 'menu_slug' => $parent['menu_slug'],225 'function' => array($this, 'getPageAdmin')227 'parent_slug' => $parent['menu_slug'], 228 'page_title' => $adminPanelTitle, 229 'menu_title' => $adminPanelTitle, 230 'capability' => $parent['capability'], 231 'menu_slug' => $parent['menu_slug'], 232 'function' => array($this, 'getPageAdmin') 226 233 ); 227 234 228 235 $codeTitle = 'Insert chat'; 229 236 $this->code = array( 230 'parent_slug' => $parent['menu_slug'],231 'page_title' => $codeTitle,232 'menu_title' => $codeTitle,233 'capability' => $parent['capability'],234 'menu_slug' => $parent['menu_slug'].'code',235 'function' => array($this, 'getPageShortcode')237 'parent_slug' => $parent['menu_slug'], 238 'page_title' => $codeTitle, 239 'menu_title' => $codeTitle, 240 'capability' => $parent['capability'], 241 'menu_slug' => $parent['menu_slug'].'code', 242 'function' => array($this, 'getPageShortcode') 236 243 ); 237 244 -
html5-chat/trunk/readme.txt
r2157523 r2249006 1 1 === HTML5 chat === 2 2 Contributors: yarekc 3 Tags: chat, tchat, webcam 3 Tags: chat, tchat, webcam, videochat, visiochat 4 4 Requires at least: 4.5 5 Tested up to: 5. 2.26 Stable tag: 1.0 45 Tested up to: 5.3.2 6 Stable tag: 1.06 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 10 Html5 chat is a WP plugin to quickly add webrtc video chat to your blog. No server requirements. Setup with 1 click.11 9 10 Html5 chat is a WP plugin to quickly add video chat to your blog. 11 12 12 == Description == 13 14 Html5 chat plugin is quick plugin to help you to embed html-chat.com webrtc video chat into your wordpress blog.15 Activate the plugin in 1 click: you will automatically create a free account and receive the admin password to your email.16 Then, just insert [HTML5CHAT width=100% height=640px] shortcode into your page (or post) and you have a webrtc multi user audio and video chat inside your blog.17 Perfect for dating, social, radio websites...18 [You can test html5 chat here](https://html5-chat.com/chat)19 13 20 Works with buddyPress 21 * guest or registered users 22 * import roles from WP (administrator = admin, author = moderator, dj = contributor, subscriber = user) 23 * video/audio chat made with webrtc, no flash 24 * many modes such as chat by tab, by window, panels 25 * many private modes: private, semi private, whispear, exclusive private, call1to1 26 * many other customized roles features 27 * chat moderations : admin, moderator, djs 28 * emojis, gifs, avatars, youtube and file uploading 29 * full css customizations and many predefined modes 30 * responsive: works on any tablets and phone with webrtc 31 * full history search 32 * javascript callabcks and REST API 14 Html5 chat plugin is quick plugin to help you to embed html-chat.com video chat into your wordpress blog. 15 Activate the plugin: you will automatically receive the password to your email. 16 Just insert the short code into your page or your post and you have an audio and video chat into your blog. 17 33 18 34 19 == Installation == 35 20 36 21 * activate the plugin 37 22 * insert the [HTML5CHAT width=100% height=640px] short code into your page or post … … 61 46 62 47 Feel free to contact us at contact@proxymis.com for further help 63 64 == Changelog ==65 66 = 1.04 =67 * Full screen bug fix68 69 = 1.03 =70 * Better BuddyPress integration71 * automatic roles: administrator = admin, author = moderator, dj = contributor
Note: See TracChangeset
for help on using the changeset viewer.