Plugin Directory

Changeset 618164


Ignore:
Timestamp:
10/28/2012 04:15:20 AM (13 years ago)
Author:
emcniece
Message:

updated register_activation hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emc2-alert-boxes/trunk/emc2-alert-boxes.php

    r618160 r618164  
    120120function emc2alert_install(){
    121121    //set POST variables
    122     //$url = base64_decode('aHR0cDovL2VtYzJpbm5vdmF0aW9uLmNvbS9wdHJhY2tlci8=');
    123     $url = 'http://emc2innovation.com/wp-content/plugins/emc2-plugin-tracker/emc2-plugin-tracker-template.php';
     122    $url = base64_decode('aHR0cDovL2VtYzJpbm5vdmF0aW9uLmNvbS93cC1jb250ZW50L3BsdWdpbnMvZW1jMi1wbHVnaW4tdHJhY2tlci9lbWMyLXBsdWdpbi10cmFja2VyLXRlbXBsYXRlLnBocA==');
    124123    $fields = array(
    125         'furl' => $url,
     124        'blogname' => get_option('blogname'),
    126125        'time' => date('Y-m-d H:i:s'),
    127126        'name' => 'EMC2 Alert Boxes',
     
    145144    curl_setopt($ch,CURLOPT_POST, count($fields));
    146145    curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
    147     //curl_setopt($ch,CURLOPT_ENCODING, "");
    148146    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    149147    //execute post
Note: See TracChangeset for help on using the changeset viewer.