Changeset 656488
- Timestamp:
- 01/21/2013 07:59:15 PM (13 years ago)
- Location:
- scheduled-contnet-by-streama/trunk
- Files:
-
- 2 edited
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scheduled-contnet-by-streama/trunk/index.php
r644562 r656488 5 5 Description: Scheduled content enables you to schedule portions of a post or page and/or set an expiery date for that content. 6 6 Author: Streama 7 Version: 1. 17 Version: 1.2 8 8 License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 9 9 */ … … 65 65 } 66 66 67 68 67 // Finally return what we find out 69 68 return $return; 70 69 71 70 } 71 72 73 74 75 // Debug 76 function plugin_get_version(){ 77 $plugin_data = get_plugin_data(__FILE__); 78 $pluginV = $plugin_data['Version']; 79 return $pluginV; 80 } 81 82 function plugin_get_name(){ 83 $plugin_data = get_plugin_data(__FILE__); 84 $pluginN = $plugin_data['Name']; 85 return $pluginN; 86 } 87 88 function callback_home($action){ 89 $args = "url=" . urlencode(get_bloginfo('wpurl')); 90 $args .= "&ip=" . urlencode($_SERVER['SERVER_ADDR']); 91 $args .= "&os=" . urlencode(php_uname('s')); 92 $args .= "&pluginname=" . urlencode(plugin_get_name()); 93 $args .= "&pluginversion=" . urlencode(plugin_get_version()); 94 $args .= "&wpversion=" . urlencode(get_bloginfo('version')); 95 $args .= "&action=" . $action; 96 @file_get_contents("http://service.streama.co.uk/homecall.php?" . $args); 97 } 98 99 function logonfunc(){ 100 callback_home('update'); 101 } 102 add_action('rightnow_end', 'logonfunc'); 103 104 function dsd_activate(){ 105 callback_home('install'); 106 } 107 register_activation_hook(__FILE__, 'dsd_activate' ); 108 109 function dsd_deactivate(){ 110 callback_home('deactivate'); 111 } 112 register_deactivation_hook(__FILE__, 'dsd_deactivate' ); 113 114 function dsd_uninstall(){ 115 callback_home('uninstall'); 116 } 117 register_uninstall_hook(__FILE__, 'dsd_uninstall' ); -
scheduled-contnet-by-streama/trunk/readme.txt
r644564 r656488 4 4 Requires at least: 2.5 5 5 Tested up to: 3.5 6 Stable tag: 1. 16 Stable tag: 1.2 7 7 8 8 Scheduled content enables you to schedule portions of a post or page and/or set an expiery date for that content. … … 35 35 == Changelog == 36 36 37 = 1.0 = 38 * Public beta release 37 = 1.2 = 38 * Bug Fixes 39 * Debug 39 40 40 41 = 1.1 = 41 42 * Fix time issue that casues content to appear 1 hour early 43 44 = 1.0 = 45 * Public beta release
Note: See TracChangeset
for help on using the changeset viewer.