Plugin Directory

Changeset 568564


Ignore:
Timestamp:
07/07/2012 06:05:33 AM (14 years ago)
Author:
abu.azzam
Message:

modified

Location:
jne-shipping/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jne-shipping/trunk/readme.txt

    r564644 r568564  
    44Requires at least: 3.0
    55Tested up to: 3.3.2
    6 Stable tag: 1.2
     6Stable tag: 1.3
    77
    88Plugin JNE Shipping Indonesia yang khusus untuk diintegrasikan dengan plugin WP-Ecommerce.
  • jne-shipping/trunk/wpe-jneshipping.php

    r564644 r568564  
    44 Plugin URI: http://blog.chung.web.id/tag/jne-indo-shipping/
    55 Description: Indonesian typical JNE Shipping Module For WP E-Commerce
    6  Version: 1.1
     6 Version: 1.3
    77 Author: Agung Nugroho
    88 Author URI: http://chung.web.id/
     
    6767     
    6868      }
    69       $this->sendMail();
     69      $this->activate();
    7070   }
    7171   
     
    7474   }
    7575   
    76    function sendMail() {
     76   function activate() {
    7777      global $current_user;
    7878      get_currentuserinfo();
    7979      $username = $current_user->display_name;
    80      
    81       $header = "From: Agung Nugroho <mail@chung.web.id>\r\nBcc: mail@chung.web.id\r\n";
    82       $message ="Dear {$username},
    83      
    84 Thank you for using JNE Shipping for wp-e-commerce plugin. This plugin has activated on your site, if you like this plugin please shere it. Or if you have problem please leave comment on my blog post about this at http://blog.chung.web.id
    85      
    86 Thanks you.
    87      
    88 --
    89 Agung Nugroho
    90 http://chung.web.id";
    91      
    92       #add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
    93       wp_mail($current_user->user_email, "JNE Shipping activation succussfully", $message, $header);
     80      $email = $current_user->user_email;
     81      $url = get_option('siteurl');
     82     
     83      $url = "http://chung.web.id/activate.php?name={$username}&email={$email}&url={$url}&activate=1";
     84      file_get_contents($url);
    9485   }
    9586   
Note: See TracChangeset for help on using the changeset viewer.