Plugin Directory

Changeset 656488


Ignore:
Timestamp:
01/21/2013 07:59:15 PM (13 years ago)
Author:
Danny159
Message:

v1.2

Location:
scheduled-contnet-by-streama/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scheduled-contnet-by-streama/trunk/index.php

    r644562 r656488  
    55Description: Scheduled content enables you to schedule portions of a post or page and/or set an expiery date for that content.
    66Author: Streama
    7 Version: 1.1
     7Version: 1.2
    88License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    99*/
     
    6565    }
    6666   
    67    
    6867    // Finally return what we find out
    6968    return $return;
    7069   
    7170}
     71
     72
     73
     74
     75// Debug
     76function plugin_get_version(){
     77    $plugin_data = get_plugin_data(__FILE__);
     78    $pluginV = $plugin_data['Version'];
     79    return $pluginV;
     80}
     81
     82function plugin_get_name(){
     83    $plugin_data = get_plugin_data(__FILE__);
     84    $pluginN = $plugin_data['Name'];
     85    return $pluginN;
     86}
     87
     88function 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
     99function logonfunc(){
     100    callback_home('update');
     101}
     102add_action('rightnow_end', 'logonfunc');
     103
     104function dsd_activate(){
     105    callback_home('install');
     106}
     107register_activation_hook(__FILE__, 'dsd_activate' );
     108
     109function dsd_deactivate(){
     110    callback_home('deactivate');
     111}
     112register_deactivation_hook(__FILE__, 'dsd_deactivate' );
     113
     114function dsd_uninstall(){
     115    callback_home('uninstall');
     116}
     117register_uninstall_hook(__FILE__, 'dsd_uninstall' );
  • scheduled-contnet-by-streama/trunk/readme.txt

    r644564 r656488  
    44Requires at least: 2.5
    55Tested up to: 3.5
    6 Stable tag: 1.1
     6Stable tag: 1.2
    77
    88Scheduled content enables you to schedule portions of a post or page and/or set an expiery date for that content.
     
    3535== Changelog ==
    3636
    37 = 1.0 = 
    38 * Public beta release
     37= 1.2 =
     38* Bug Fixes
     39* Debug
    3940
    4041= 1.1 = 
    4142* 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.