Changeset 401904
- Timestamp:
- 06/28/2011 12:56:09 AM (15 years ago)
- File:
-
- 1 edited
-
ipv6detector/trunk/ipv6detector.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipv6detector/trunk/ipv6detector.php
r401902 r401904 5 5 Plugin URI: http://patux.cl/ipv6detector 6 6 Description: Just a simple plugin to detect if a visitor is using ipv6 or not. 7 Version: 1. 27 Version: 1.1 8 8 Author: Patux 9 9 Author URI: http://patux.cl … … 18 18 add_option("hits_6", 0); 19 19 add_option("hits_4", 0); 20 add_option('whois_url','http://log.patux.cl/whois.php?obj='); 20 add_option("whois_url","http://log.patux.cl/whois.php?obj="); 21 add_option("ipv6detector_v4_msg","Still using IPv4?"); 22 add_option("ipv6detector_v6_msg","Cool! you have got IPv6."); 21 23 } 22 24 … … 62 64 update_option('ipv6detector_v4_msg', $_POST['v4_msg']); 63 65 } 64 $ url= get_option('ipv6detector_v4_msg');65 echo "Message to display when user have IPv4 <input type='text' name='v4_msg' value=' Still using IPv4?'/><br />\n";66 $v4_msg = get_option('ipv6detector_v4_msg'); 67 echo "Message to display when user have IPv4 <input type='text' name='v4_msg' value='".$v4_msg."'/><br />\n"; 66 68 67 69 // ipv6 message … … 69 71 update_option('ipv6detector_v6_msg', $_POST['v6_msg']); 70 72 } 71 $ url= get_option('ipv6detector_v6_msg');72 echo "Message to display when user have IPv6 <input type='text' name='v6_msg' value=' Cool! you have got Ipv6'/><br />\n";73 $v6_msg = get_option('ipv6detector_v6_msg'); 74 echo "Message to display when user have IPv6 <input type='text' name='v6_msg' value='".$v6_msg."'/><br />\n"; 73 75 74 76 … … 77 79 update_option('hits_6', 0); 78 80 update_option('hits_4', 0); 81 delete_option('whois_url', 0); 82 delete_option('ipv6detector_v6_msg', 0); 83 delete_option('ipv6detector_v4_msg', 0); 79 84 } 80 85 echo "Reset hit count and config <input type='checkbox' name='rhit' value='1'/><br />\n";
Note: See TracChangeset
for help on using the changeset viewer.