Plugin Directory

Changeset 1186165


Ignore:
Timestamp:
06/23/2015 12:58:51 PM (11 years ago)
Author:
CoCeCa
Message:

Created New Version 1.3 and fixed some issues..

Location:
coceca
Files:
18 added
4 edited

Legend:

Unmodified
Added
Removed
  • coceca/trunk/coceca.php

    r1183981 r1186165  
    44    Description: CTA plugin is an innovative solution designed to help you grow your WordPress blog. It creates an opportunity for you to promote your WordPress Websites & Blogs and engage your site visitors, in more ways than one.
    55    Author: CoCeCa
    6     Version: 1.2
     6    Version: 1.3
    77    Plugin URI: http://coceca.com/
    88    Author URI: http://coceca.com/help/
     
    1313
    1414    defined( 'ABSPATH' ) or die( 'Plugin file cannot be accessed directly.' );
    15     define( 'COCECA_PLUGIN_VERSION', '1.2' );
     15    define( 'COCECA_PLUGIN_VERSION', '1.3' );
    1616    define( 'PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    1717    define( 'COCECA_PLUGIN_NAME', trim( dirname( PLUGIN_BASENAME ), '/' ) );
  • coceca/trunk/includes/coceca_plugin-class.php

    r1183981 r1186165  
    217217        function coceca_upgradeMembership(){
    218218            global $wpdb;
     219
    219220            if(!check_admin_referer( 'gopro-CoCeCa_'.absint($_GET['plugin_id']), 'com_nonce' ) ) {
    220221                wp_die('You have taken too long. Please go back and retry.', '', array( 'response' => 403 ) );
     
    222223
    223224            $is_paypal = false;
    224 
     225            $admin_redirect_uri = $_POST['admin_redirect_uri'];
    225226            $response = '';
    226227            $coupon_code = $paypal_payment = $coupon_data= '';
     
    248249
    249250            $encrpted_string = syonencryptor('encrypt',getHost().':'.absint($_GET['plugin_id']));
    250             $redirect_url = EXT_SITE_URL.'wpapi/purchase_plugins/?check_host='.getHost().'&plugin_id='.absint($_GET['plugin_id']).'&pass_code='.$encrpted_string.'&coupon_data='.$coupon_data_sr.'&paypal_payment='.$paypal_payment.'&redirect_url='.admin_url();
     251            $redirect_url = EXT_SITE_URL.'wpapi/purchase_plugins/?check_host='.getHost().'&plugin_id='.absint($_GET['plugin_id']).'&pass_code='.$encrpted_string.'&coupon_data='.$coupon_data_sr.'&paypal_payment='.$paypal_payment.'&redirect_url='.$admin_redirect_uri;
    251252
    252253            if(!empty($coupon_data)){
  • coceca/trunk/includes/templates/email_popup.php

    r1167526 r1186165  
    1818</style>
    1919
    20 
     20<?php
     21$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
     22$admin_redirect_uri =  $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
     23?>
    2124<div id="confirm_popup" style="display: none; width: 350px;">
    2225    <form name="confirm_payment" id="confirm_payment" action="" method="post">
     
    3033            <input type="text" placeholder="Enter coupon code here.." style="display: none;" name="check_coupon_code" id="check_coupon_code" value="">
    3134            <input type="hidden" style="display: none;" name="paypal_url" id="paypal_url" value="paypal_payment">
     35            <input type="hidden" id="admin_redirect_uri" name="admin_redirect_uri" value="<?php echo $admin_redirect_uri; ?>">
    3236        </div>
    3337        <div class="input-row">
  • coceca/trunk/readme.txt

    r1183981 r1186165  
    9090== Changelog ==
    9191
     92= 1.3 =
     93* Modified some issues
     94* Fixed some issues
     95
    9296= 1.2 =
    9397* Fixed some bugs
Note: See TracChangeset for help on using the changeset viewer.