Changeset 1103349
- Timestamp:
- 03/02/2015 03:04:30 PM (11 years ago)
- Location:
- activehelper-livehelp
- Files:
-
- 6 edited
-
assets/screenshot-6.png (modified) (previous)
-
trunk/activehelper-livehelp.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/server/services/login.php (modified) (4 diffs)
-
trunk/server/services/visitors.php (modified) (4 diffs)
-
trunk/sources/livehelp_lib-install.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
activehelper-livehelp/trunk/activehelper-livehelp.php
r1003856 r1103349 7 7 Plugin URI: http://www.activehelper.com 8 8 Description: Provide superior service by real time chat with your website visitors and interact them through your website. Create a more efficient connection with your website visitors, increase your sales and customer satisfaction. 9 Version: 3. 8.09 Version: 3.9.0 10 10 Author: ActiveHelper Inc 11 11 Author URI: http://www.activehelper.com … … 807 807 ' . __('Version : ', 'activehelper_livehelp') . ' 808 808 </td><td class="b"> 809 ' . __('3. 8.0', 'activehelper_livehelp') . '809 ' . __('3.9.0', 'activehelper_livehelp') . ' 810 810 </td></tr></tbody></table> 811 811 <table><tbody><tr><td class="first t"> -
activehelper-livehelp/trunk/readme.txt
r1003856 r1103349 3 3 Tags: wordpress livechat, live chat, live help, live support, customer service, wordpress plugin, livechat plugin, visitor tracking, visitor chat, floating 4 4 Requires at least: 3.2 5 Tested up to: 4. 06 Stable tag: 3. 8.05 Tested up to: 4.1.1 6 Stable tag: 3.9.0 7 7 8 8 Powerful Live Chat Plugin for WordPress. … … 318 318 * Other small improvements and bug fixes. 319 319 320 = 3.9.0 = 321 * Support Domain visitors grouping. 322 * Support Country visitors grouping. 323 * Support Visitors IP/Hostname filtering. 324 * Core Update. 325 * Core Security update. 326 * Other small improvements and bug fixes. 327 328 320 329 Upgrade: 321 330 Before to make any upgrade of the ActiveHelper LiveHelp Server is necessary to follow a couple steps in order to avoid loss the working configuration: … … 507 516 * Core Security update. 508 517 * Other small improvements and bug fixes. 518 519 = 3.9.0 = 520 * Support Domain visitors grouping. 521 * Support Country visitors grouping. 522 * Support Visitors IP/Hostname filtering. 523 * Core Update. 524 * Core Security update. 525 * Other small improvements and bug fixes. -
activehelper-livehelp/trunk/server/services/login.php
r1003856 r1103349 19 19 $_REQUEST['USERNAME'] = ''; 20 20 } else $_REQUEST['USERNAME'] = htmlspecialchars( (string) $_REQUEST['USERNAME'], ENT_QUOTES ); 21 21 22 if (!isset($_REQUEST['PASSWORD'])) 22 23 { 23 24 $_REQUEST['PASSWORD'] = ''; 24 25 } else $_REQUEST['PASSWORD'] = htmlspecialchars( (string) $_REQUEST['PASSWORD'], ENT_QUOTES ); 26 25 27 if (!isset($_REQUEST['ACCOUNT'])) 26 28 { 27 29 $_REQUEST['ACCOUNT'] = ''; 28 30 } else $_REQUEST['ACCOUNT'] = htmlspecialchars( (string) $_REQUEST['ACCOUNT'], ENT_QUOTES ); 31 29 32 if (!isset($_REQUEST['SERVER'])) 30 33 { 31 34 $_REQUEST['SERVER'] = ''; 32 35 } else $_REQUEST['SERVER'] = htmlspecialchars( (string) $_REQUEST['SERVER'], ENT_QUOTES ); 36 33 37 if (!isset($_REQUEST['LANGUAGE'])) 34 38 { … … 36 40 } else $_REQUEST['LANGUAGE'] = htmlspecialchars( (string) $_REQUEST['LANGUAGE'], ENT_QUOTES ); 37 41 42 // New parameters 43 44 if (!isset($_REQUEST['DEVICE'])) 45 { 46 $_REQUEST['DEVICE'] = ''; 47 } else $_REQUEST['DEVICE'] = htmlspecialchars( (string) $_REQUEST['DEVICE'], ENT_QUOTES ); 48 49 if (!isset($_REQUEST['DEVICE_ID'])) 50 { 51 $_REQUEST['DEVICE_ID'] = ''; 52 } else $_REQUEST['DEVICE_ID'] = htmlspecialchars( (string) $_REQUEST['DEVICE_ID'], ENT_QUOTES ); 53 54 38 55 $login_timeout = 20; 39 40 56 $language = $_REQUEST['LANGUAGE']; 41 57 define('LANGUAGE_TYPE', $language); … … 86 102 $current_account = $_REQUEST['ACCOUNT']; 87 103 $operator_schedule = $row['schedule']; 104 $operator_device = $_REQUEST['DEVICE']; 105 $operator_device_id = $_REQUEST['DEVICE_ID']; 106 88 107 89 108 //Verifica el schedule … … 170 189 171 190 // Update operator session to database 172 $query = "UPDATE " . $table_prefix . "users SET `datetime` = NOW(), `refresh` = NOW(), `status` = '0' WHERE `id` = '$operator_login_id'";191 $query = "UPDATE " . $table_prefix . "users SET `datetime` = NOW(), `refresh` = NOW(), `status` = '0' , `device` = '$operator_device' , `device_id` = '$operator_device_id' WHERE `id` = '$operator_login_id'"; 173 192 174 193 $SQL->miscquery($query); -
activehelper-livehelp/trunk/server/services/visitors.php
r1003856 r1103349 181 181 case "standard": 182 182 { 183 $query = "SELECT r.id As rid, s.id As sid, s.active, s.username, r.ipaddress, r.url, r.title, r.number_pages, ".183 $query = "SELECT r.id As rid, s.id As sid, s.active, s.username, r.ipaddress, r.url, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(r.url, '://', -1),'/',1),'www.', -1) as domain, r.title , r.number_pages, ". 184 184 "(UNIX_TIMESTAMP(r.refresh) - UNIX_TIMESTAMP(r.datetime)) AS `sitetime`, (UNIX_TIMESTAMP(r.refresh) - ". 185 "UNIX_TIMESTAMP(r.request)) AS `pagetime` FROM " . $table_prefix . "requests AS r LEFT JOIN ".185 "UNIX_TIMESTAMP(r.request)) AS `pagetime` , r.country FROM " . $table_prefix . "requests AS r LEFT JOIN ". 186 186 "(select id, request, active, username, department, rating from ".$table_prefix."sessions order by id desc) AS s on r.id = s.request WHERE DATE_FORMAT(r.datetime, '%Y-%m-%d') = '$date' AND `status` = '0' AND". 187 187 " `active` in (-1, -3) and id_domain in (" . $domains_set . ") " . ($visitorId == "" ? "": "And r.id=" . … … 224 224 case "standard": 225 225 { 226 $query = "SELECT r.id As rid, s.id As sid, s.active, s.username, r.ipaddress, r.url ,r.title, r.number_pages, ".226 $query = "SELECT r.id As rid, s.id As sid, s.active, s.username, r.ipaddress, r.url , SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(r.url, '://', -1),'/',1),'www.', -1) as domain , r.title, r.number_pages, ". 227 227 "(UNIX_TIMESTAMP(r.refresh) - UNIX_TIMESTAMP(r.datetime)) AS `sitetime`, (UNIX_TIMESTAMP(r.refresh) - UNIX_TIMESTAMP". 228 "(r.request)) AS `pagetime` FROM " . $table_prefix . "requests AS r LEFT JOIN " .$table_prefix."sessions AS s on r.id = s.request".228 "(r.request)) AS `pagetime` , r.country FROM " . $table_prefix . "requests AS r LEFT JOIN " .$table_prefix."sessions AS s on r.id = s.request". 229 229 " WHERE r.refresh > SUBTIME(NOW(), '45') AND r.status = '0' and ". 230 230 "r.id_domain in (".$domains_set . ") " . ($visitorId == "" ? "": "And r.id=" . $visitorId) . … … 281 281 $current_request_resolution = $row['resolution']; 282 282 $current_request_current_page = $row['url']; 283 $current_request_current_domain = $row['domain']; 283 284 $current_request_current_page_title = $row['title']; 284 285 $current_request_referrer = $row['referrer']; 285 286 286 287 287 288 288 if($current_request_referrer == 'Direct Visit / Bookmark'){ … … 460 460 <TimeOnSite><?php echo($current_request_sitetime);?></TimeOnSite> 461 461 <TimeOnPage><?php echo($current_request_pagetime);?></TimeOnPage> 462 <Country><?php echo($current_request_country);?></Country> 463 <CurrentDomain><?php echo(xmlinvalidchars($current_request_current_domain));?></CurrentDomain> 462 464 <?php 463 465 } -
activehelper-livehelp/trunk/sources/livehelp_lib-install.php
r1003856 r1103349 2 2 /** 3 3 * @package ActiveHelper Live Help 4 * @Version 3. 7.04 * @Version 3.9.0 5 5 */ 6 6 … … 469 469 `initial_time` time DEFAULT NULL, 470 470 `final_time` time DEFAULT NULL, 471 `device` varchar(20) DEFAULT NULL, 472 `device_id` varchar(60) DEFAULT NULL, 471 473 PRIMARY KEY (`id`), 472 474 UNIQUE KEY `uk_users_username` (`username`) … … 946 948 if ($database_version == "3.7.0") { 947 949 $database_version = "3.8.0"; 948 } 950 } 951 952 if ($database_version == "3.8.0") { 953 954 $table_name = $wpdb->prefix . "livehelp_users"; 955 956 $sql = "CREATE TABLE $table_name ( 957 id bigint(20) NOT NULL auto_increment, 958 username varchar(50) NOT NULL default '', 959 password varchar(100) NOT NULL default '', 960 firstname varchar(50) NOT NULL default '', 961 lastname varchar(50) NOT NULL default '', 962 email varchar(50) NOT NULL default '', 963 department varchar(100) NOT NULL default '', 964 datetime datetime NOT NULL default '0000-00-00 00:00:00', 965 refresh datetime NOT NULL default '0000-00-00 00:00:00', 966 disabled int(1) NOT NULL default '0', 967 privilege int(1) NOT NULL default '0', 968 photo varchar(10) DEFAULT NULL, 969 status bigint(20) NOT NULL default '0', 970 answers int(1) NOT NULL default '1', 971 schedule int(1) DEFAULT '0', 972 initial_time time DEFAULT NULL, 973 final_time time DEFAULT NULL, 974 device varchar(20) DEFAULT NULL, 975 device_id varchar(60) DEFAULT NULL, 976 PRIMARY KEY (id), 977 UNIQUE KEY uk_users_username (username) 978 );"; 979 980 dbDelta( $sql ); 981 $database_version = "3.9.0"; 982 983 } 984 949 985 950 986 }
Note: See TracChangeset
for help on using the changeset viewer.