Plugin Directory

Changeset 745041


Ignore:
Timestamp:
07/23/2013 03:58:38 PM (13 years ago)
Author:
paaggeli
Message:

paypal email fix

Location:
content-for-money/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content-for-money/trunk/contentformoney.php

    r736661 r745041  
    55Author: Panagiotis Angelidis (paaggeli)
    66Author URI: http://panoswebsites.com
    7 Version: 1.1.2
     7Version: 1.1.3
    88License: GPL version 2 or later
    99*/
     
    142142       $atts['paypal_url']='https://www.paypal.com/';
    143143       $atts['sandbox_url']='https://www.sandbox.paypal.com/';
    144        $atts['email']=$tmpOption['test']?$tmpOption['sandbox_email']:$tmpOption['paypal_email'];
    145        $atts['url']=$tmpOption['test']?$atts['sandbox_url']:$atts['paypal_url'];
     144       
     145       //$atts['email']=$tmpOption['test']?$tmpOption['sandbox_email']:$tmpOption['paypal_email'];
     146       if ($tmpOption['test'] == 'true'){
     147            $atts['email'] = $tmpOption['sandbox_email'];
     148       } else {
     149            $atts['email'] = $tmpOption['paypal_email'];
     150       }
     151       //$atts['url']=$tmpOption['test']?$atts['sandbox_url']:$atts['paypal_url'];
     152        if ($tmpOption['test'] == 'true'){
     153            $atts['url'] = $atts['sandbox_url'];
     154       } else {
     155            $atts['url'] = $atts['paypal_url'];
     156       }
    146157   
    147158        if( null != $content && (current_user_can('read') || ($_GET['id']+600)>time())){
     
    168179        $button='<div>'.$tmpOption['message'].'</div>
    169180                    </br>
    170                     <form action="'.$a['url'].'/cgi-bin/webscr" method="post">
     181                    <form action="'.$a['url'].'cgi-bin/webscr" method="post">
    171182                    <input type="hidden" name="cmd" value="_xclick">
    172183                    <input type="hidden" name="business" value="'.$a['email'].'">
  • content-for-money/trunk/readme.txt

    r736661 r745041  
    7878
    7979== Changelog ==
     80= 1.1.3 =
     81-Fix paypal e-mail
     82
    8083= 1.1.2 =
    8184-Added Shortcode Parameter 'display_comments'
Note: See TracChangeset for help on using the changeset viewer.