Changeset 410637
- Timestamp:
- 07/16/2011 12:53:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wordpress-amazon-associate/trunk/wordpress_amazon_associate.php
r410533 r410637 45 45 spl_autoload_register(array('WPAA', 'autoload')); 46 46 $wpaa = new WPAA(); 47 48 // deactivation49 register_deactivation_hook( __FILE__, 'wpaa_deactivate');50 51 /**52 * send site uninstall information53 */54 function wpaa_deactivate() {55 if( function_exists('curl_init') ) {56 $handle = curl_init('http://mdbitz.com/installs.php?app=WPAA&uninstall=true&site=' . site_url() );57 if (false !== $handle) {58 curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);59 curl_setopt($handle, CURLOPT_NOBODY, true);60 $response = curl_exec($handle);61 curl_close($handle);62 }63 }64 }
Note: See TracChangeset
for help on using the changeset viewer.