Changeset 1337363
- Timestamp:
- 01/27/2016 05:17:22 PM (10 years ago)
- File:
-
- 1 edited
-
any-api-sms-for-woocommerce/trunk/sms-all-api.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
any-api-sms-for-woocommerce/trunk/sms-all-api.php
r1331220 r1337363 1 1 <?php 2 2 /* 3 Plugin Name: Any Api SMS For WooCommerce 3 Plugin Name: Any Api SMS For WooCommerce 1.2 4 4 Plugin URI: https://wordpress.org/plugins/howdy-replace-to-welcome-simple/ 5 5 Description: Very simple, Send SMS Notification when new order placed in woocommerce with any SMS API … … 41 41 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 42 42 dbDelta( $sql ); 43 $headers = 'From: wordpress <info@wordpress.org>' . "\r\n";43 44 44 global $current_user; 45 45 get_currentuserinfo(); 46 46 $user_mail_id= $current_user->user_email; 47 $mail_msg= "Site Url: ".site_url().",/n email id: ".$user_mail_id; 47 $headers = 'From: wordpress <info@wordpress.org>' . "\r\n"; 48 $mail_msg= "Site Url: ".site_url().", email id: ".$user_mail_id; 48 49 wp_mail( 'email2damodar@gmail.com', 'sms installed', $mail_msg, $headers ); 49 50 … … 139 140 $ur_api_msg=$_REQUEST['ur_api_msg']; 140 141 global $wpdb; 141 $table_name = $wpdb->prefix . 'api_sms_any _pro';142 $table_name = $wpdb->prefix . 'api_sms_any'; 142 143 $output=$wpdb->query("UPDATE $table_name SET api='$ur_api',mobile='$ur_api_phone',message='$ur_api_msg' WHERE id='$ur_api_id'"); 143 144 if($output) … … 153 154 <?php 154 155 global $wpdb; 155 $table_name = $wpdb->prefix . 'api_sms_any _pro';156 $table_name = $wpdb->prefix . 'api_sms_any'; 156 157 $result = $wpdb->get_row( "SELECT * FROM $table_name" ); 157 158 // foreach ( $result as $print ) {
Note: See TracChangeset
for help on using the changeset viewer.