Changeset 1824383
- Timestamp:
- 02/19/2018 08:52:30 AM (8 years ago)
- Location:
- voting-platform-feelbacks/trunk
- Files:
-
- 4 edited
-
lib/url.php (modified) (3 diffs)
-
lib/vc-api.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
vicomi-feelbacks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
voting-platform-feelbacks/trunk/lib/url.php
r1803409 r1824383 4 4 5 5 function _vcf_get_query_string($pdata) { 6 $p datastring= '';7 6 $postdata_str = ''; 7 8 8 if($pdata) { 9 9 foreach($pdata as $key=>$value) { … … 75 75 76 76 $data = curl_exec($c); 77 list($headers, $response['data']) = explode("\r\n\r\n", $data, 2); 77 78 $dataExplode = explode("\r\n\r\n", $data, 2); 79 80 if (version_compare(PHP_VERSION, '7.0.0') >= 0) { 81 /*echo 'I am at least PHP version 7.0.0, my version: ' . PHP_VERSION . "\n";*/ 82 /* check number of elements in $dataExplode array */ 83 if(count($dataExplode) >= 2){ 84 list($headers, $response['data']) = $dataExplode; 85 }elseif(count($dataExplode) == 1){ 86 list($headers) = $dataExplode; 87 $response['data'] = ''; 88 } 89 }else{ 90 list($headers, $response['data']) = $dataExplode; 91 } 92 78 93 79 94 $response['headers'] = _vcf_get_response_headers($headers, $response); … … 82 97 83 98 function _vcf_get_response_headers($headers, &$response) { 99 84 100 $headers = explode("\r\n", $headers); 85 list($unused, $response['code'], $unused) = explode(' ', $headers[0], 3); 101 $headersExplode = explode(' ', $headers[0], 3); 102 103 if (version_compare(PHP_VERSION, '7.0.0') >= 0) { 104 if(count($headersExplode) >= 3){ 105 list($unused, $response['code'], $unused) = $headersExplode; 106 }elseif(count($headersExplode) == 2){ 107 list($unused, $response['code']) = $headersExplode; 108 }elseif(count($headersExplode) == 1){ 109 list($unused) = $headersExplode; 110 $response['code'] = ''; 111 } 112 }else{ 113 list($unused, $response['code'], $unused) = $headersExplode; 114 } 115 86 116 $headers = array_slice($headers, 1); 87 117 -
voting-platform-feelbacks/trunk/lib/vc-api.php
r1811647 r1824383 28 28 var $api_version = '1.1'; 29 29 30 function VicomiAPI() {30 function __construct() { 31 31 $this->last_error = null; 32 32 $this->api_url = 'http://dashboard.vicomi.com/'; -
voting-platform-feelbacks/trunk/readme.txt
r1811647 r1824383 5 5 License URI: http://www.gnu.org/licenses/gpl-2.0.html 6 6 Requires at least: 2.8 or higher 7 Tested up to: 4.9. 17 Tested up to: 4.9.4 8 8 Stable tag: 2.05 9 9 … … 166 166 == Changelog == 167 167 168 = 2.05 = 169 * Now supports php 7 170 168 171 = 2.04 = 169 172 * Updating to faster servers … … 191 194 == Upgrade Notice == 192 195 196 = 2.05 = 197 * Now supports php 7 198 193 199 = 2.04 = 194 200 * Updating to faster servers -
voting-platform-feelbacks/trunk/vicomi-feelbacks.php
r1811647 r1824383 5 5 Description: Feelbacks is a new voting engagement widget that allows users to express their feelings about your content 6 6 Author: Vicomi <support@vicomi.com> 7 Version: 2.0 47 Version: 2.05 8 8 Author URI: http://vicomi.com/ 9 9 */ 10 10 11 11 require_once(dirname(__FILE__) . '/lib/vc-api.php'); 12 define('VICOMI_FEELBACKS_V', '2.0 4');12 define('VICOMI_FEELBACKS_V', '2.05'); 13 13 include_once(dirname(__FILE__) . '/settings-page.php'); 14 14
Note: See TracChangeset
for help on using the changeset viewer.