Changeset 1155606
- Timestamp:
- 05/07/2015 07:33:52 PM (11 years ago)
- Location:
- wp-mobile-detector
- Files:
-
- 4 edited
-
tags/3.0/functions.php (modified) (2 diffs)
-
tags/3.0/readme.txt (modified) (1 diff)
-
trunk/functions.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-mobile-detector/tags/3.0/functions.php
r1155575 r1155606 662 662 663 663 /* 664 Check to make sure authorization token is set. 665 */ 666 function websitez_authorization(){ 667 $token = get_option(WEBSITEZ_PLUGIN_AUTHORIZATION); 668 if(!$token){ 669 $response = unserialize(websitez_remote_request("http://stats.websitez.com/get_token.php","host=".$_SERVER['HTTP_HOST']."&email=".get_option('admin_email')."&source=wp-mobile-detector")); 670 if($response && $response['status'] == "1" && strlen($response['token']) > 0){ 671 update_option(WEBSITEZ_PLUGIN_AUTHORIZATION,$response['token']); 672 } 673 } 674 } 675 676 /* 664 677 Start the buffer to filter the raw contents of a page 665 678 */ … … 910 923 add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p>To finish installing the <strong>WP Mobile Detector</strong>, we need your help. Please <a href=\"admin.php?page=websitez_themes&ftp=true\">click here</a>.</p></div>';" ) ); 911 924 endif; 925 websitez_authorization(); 912 926 } 913 927 -
wp-mobile-detector/tags/3.0/readme.txt
r1155575 r1155606 1 1 === WP Mobile Detector === 2 Tags: mobile, pda, wireless, cellphone, phone, iphone, touch, webkit, android, blackberry, ipod, mobile phone, ipad, mobile website, BuddyPress2 Tags: mobile, pda, wireless, cellphone, phone, iphone, touch, webkit, android, blackberry, ipod, mobile phone, smartphone, mobile theme, ipad, mobile website, BuddyPress 3 3 Contributors: websitezcom 4 4 Minimum version: 2.7 -
wp-mobile-detector/trunk/functions.php
r1155575 r1155606 662 662 663 663 /* 664 Check to make sure authorization token is set. 665 */ 666 function websitez_authorization(){ 667 $token = get_option(WEBSITEZ_PLUGIN_AUTHORIZATION); 668 if(!$token){ 669 $response = unserialize(websitez_remote_request("http://stats.websitez.com/get_token.php","host=".$_SERVER['HTTP_HOST']."&email=".get_option('admin_email')."&source=wp-mobile-detector")); 670 if($response && $response['status'] == "1" && strlen($response['token']) > 0){ 671 update_option(WEBSITEZ_PLUGIN_AUTHORIZATION,$response['token']); 672 } 673 } 674 } 675 676 /* 664 677 Start the buffer to filter the raw contents of a page 665 678 */ … … 910 923 add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p>To finish installing the <strong>WP Mobile Detector</strong>, we need your help. Please <a href=\"admin.php?page=websitez_themes&ftp=true\">click here</a>.</p></div>';" ) ); 911 924 endif; 925 websitez_authorization(); 912 926 } 913 927 -
wp-mobile-detector/trunk/readme.txt
r1155575 r1155606 1 1 === WP Mobile Detector === 2 Tags: mobile, pda, wireless, cellphone, phone, iphone, touch, webkit, android, blackberry, ipod, mobile phone, ipad, mobile website, BuddyPress2 Tags: mobile, pda, wireless, cellphone, phone, iphone, touch, webkit, android, blackberry, ipod, mobile phone, smartphone, mobile theme, ipad, mobile website, BuddyPress 3 3 Contributors: websitezcom 4 4 Minimum version: 2.7
Note: See TracChangeset
for help on using the changeset viewer.