Changeset 1158097
- Timestamp:
- 05/11/2015 05:15:36 PM (11 years ago)
- Location:
- wp-mobile-detector
- Files:
-
- 4 edited
-
tags/3.1/admin/upgrade.php (modified) (3 diffs)
-
tags/3.1/functions.php (modified) (2 diffs)
-
trunk/admin/upgrade.php (modified) (3 diffs)
-
trunk/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-mobile-detector/tags/3.1/admin/upgrade.php
r1156534 r1158097 9 9 'licence_key' => $_POST['licence_key'], 10 10 'product_id' => 'WP Mobile Detector', 11 'instance' => $websitez_options['general']['password'],12 11 'software_version' => WEBSITEZ_PLUGIN_VERSION, 13 12 'platform' => '' 14 13 ); 14 $data['instance'] = websitez_gen_uuid(); 15 15 $args = array( 16 16 'timeout' => 15, … … 23 23 if(array_key_exists('body', $response) && strlen($response['body']) > 0){ 24 24 $result = json_decode($response['body'], true); 25 if($result['activated'] === true){ 25 if($result['activated'] == true){ 26 $websitez_options['general']['password'] = $data['instance']; 27 websitez_set_options($websitez_options); 26 28 wp_schedule_event( time(), 'monthly', 'websitez_do_filter' ); 27 29 update_option(WEBSITEZ_LICENSE_KEY_NAME, $data['licence_key']); … … 29 31 $message = 'You have successfully upgraded the plugin!'; 30 32 }else{ 31 $message .= " ".$response['body'] ;33 $message .= " ".$response['body']." | ".json_encode($data); 32 34 } 33 35 }else{ -
wp-mobile-detector/tags/3.1/functions.php
r1156549 r1158097 579 579 "posts_per_page"=>"10", 580 580 "display_to_tablet"=>"no", 581 "password" => websitez_gen_uuid(),582 581 "record_stats" => "true" 583 582 ), … … 613 612 if(!$websitez_options){ 614 613 websitez_set_options($websitez_options_default); 615 }else{616 if(strlen($websitez_options['general']['password']) == 0){617 $websitez_options['general']['password'] = websitez_gen_uuid();618 websitez_set_options($websitez_options);619 }620 614 } 621 615 -
wp-mobile-detector/trunk/admin/upgrade.php
r1156534 r1158097 9 9 'licence_key' => $_POST['licence_key'], 10 10 'product_id' => 'WP Mobile Detector', 11 'instance' => $websitez_options['general']['password'],12 11 'software_version' => WEBSITEZ_PLUGIN_VERSION, 13 12 'platform' => '' 14 13 ); 14 $data['instance'] = websitez_gen_uuid(); 15 15 $args = array( 16 16 'timeout' => 15, … … 23 23 if(array_key_exists('body', $response) && strlen($response['body']) > 0){ 24 24 $result = json_decode($response['body'], true); 25 if($result['activated'] === true){ 25 if($result['activated'] == true){ 26 $websitez_options['general']['password'] = $data['instance']; 27 websitez_set_options($websitez_options); 26 28 wp_schedule_event( time(), 'monthly', 'websitez_do_filter' ); 27 29 update_option(WEBSITEZ_LICENSE_KEY_NAME, $data['licence_key']); … … 29 31 $message = 'You have successfully upgraded the plugin!'; 30 32 }else{ 31 $message .= " ".$response['body'] ;33 $message .= " ".$response['body']." | ".json_encode($data); 32 34 } 33 35 }else{ -
wp-mobile-detector/trunk/functions.php
r1156549 r1158097 579 579 "posts_per_page"=>"10", 580 580 "display_to_tablet"=>"no", 581 "password" => websitez_gen_uuid(),582 581 "record_stats" => "true" 583 582 ), … … 613 612 if(!$websitez_options){ 614 613 websitez_set_options($websitez_options_default); 615 }else{616 if(strlen($websitez_options['general']['password']) == 0){617 $websitez_options['general']['password'] = websitez_gen_uuid();618 websitez_set_options($websitez_options);619 }620 614 } 621 615
Note: See TracChangeset
for help on using the changeset viewer.