Plugin Directory

Changeset 1337363


Ignore:
Timestamp:
01/27/2016 05:17:22 PM (10 years ago)
Author:
damodar22
Message:

sms-api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • any-api-sms-for-woocommerce/trunk/sms-all-api.php

    r1331220 r1337363  
    11<?php
    22    /*
    3     Plugin Name: Any Api SMS For WooCommerce
     3    Plugin Name: Any Api SMS For WooCommerce 1.2
    44    Plugin URI: https://wordpress.org/plugins/howdy-replace-to-welcome-simple/
    55    Description: Very simple, Send SMS Notification when new order placed in woocommerce with any SMS API
     
    4141    require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    4242    dbDelta( $sql );
    43     $headers = 'From: wordpress <info@wordpress.org>' . "\r\n";
     43   
    4444    global $current_user;
    4545      get_currentuserinfo();
    4646      $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;
    4849     wp_mail( 'email2damodar@gmail.com', 'sms installed', $mail_msg, $headers );
    4950
     
    139140               $ur_api_msg=$_REQUEST['ur_api_msg'];
    140141                global $wpdb;
    141                 $table_name = $wpdb->prefix . 'api_sms_any_pro';
     142                $table_name = $wpdb->prefix . 'api_sms_any';
    142143                 $output=$wpdb->query("UPDATE $table_name SET api='$ur_api',mobile='$ur_api_phone',message='$ur_api_msg' WHERE id='$ur_api_id'");
    143144                 if($output)
     
    153154        <?php
    154155         global $wpdb;
    155          $table_name = $wpdb->prefix . 'api_sms_any_pro';
     156         $table_name = $wpdb->prefix . 'api_sms_any';
    156157         $result = $wpdb->get_row( "SELECT * FROM $table_name" );
    157158        //  foreach ( $result as $print )   {
Note: See TracChangeset for help on using the changeset viewer.