Changeset 1191630
- Timestamp:
- 07/03/2015 07:53:24 AM (11 years ago)
- Location:
- coceca
- Files:
-
- 18 added
- 5 edited
-
tags/1.5 (added)
-
tags/1.5/coceca.php (added)
-
tags/1.5/includes (added)
-
tags/1.5/includes/coceca_plugin-class.php (added)
-
tags/1.5/includes/functions.php (added)
-
tags/1.5/includes/plugin-dependencies.php (added)
-
tags/1.5/includes/templates (added)
-
tags/1.5/includes/templates/email_popup.php (added)
-
tags/1.5/includes/templates/get_started.php (added)
-
tags/1.5/includes/templates/list_extensions.php (added)
-
tags/1.5/readme.txt (added)
-
tags/1.5/screenshot-1.jpg (added)
-
tags/1.5/screenshot-2.jpg (added)
-
tags/1.5/screenshot-3.jpg (added)
-
tags/1.5/screenshot-4.jpg (added)
-
tags/1.5/screenshot-5.jpg (added)
-
tags/1.5/screenshot-6.jpg (added)
-
tags/1.5/screenshot-7.jpg (added)
-
trunk/coceca.php (modified) (2 diffs)
-
trunk/includes/coceca_plugin-class.php (modified) (4 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/includes/templates/list_extensions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
coceca/trunk/coceca.php
r1188106 r1191630 4 4 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. 5 5 Author: CoCeCa 6 Version: 1. 46 Version: 1.5 7 7 Plugin URI: http://coceca.com/ 8 8 Author URI: http://coceca.com/help/ … … 13 13 14 14 defined( 'ABSPATH' ) or die( 'Plugin file cannot be accessed directly.' ); 15 define( 'COCECA_PLUGIN_VERSION', '1. 4' );15 define( 'COCECA_PLUGIN_VERSION', '1.5' ); 16 16 define( 'PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 17 17 define( 'COCECA_PLUGIN_NAME', trim( dirname( PLUGIN_BASENAME ), '/' ) ); -
coceca/trunk/includes/coceca_plugin-class.php
r1186165 r1191630 122 122 } 123 123 124 public function activate(){124 public static function activate(){ 125 125 /***Insert Update Activate and Download***/ 126 126 if ( ! function_exists( 'get_plugins' ) ) { … … 136 136 } 137 137 138 public function deactivate(){138 public static function deactivate(){ 139 139 /***Update Activate and Download***/ 140 140 if ( ! function_exists( 'get_plugins' ) ) { … … 225 225 $admin_redirect_uri = $_POST['admin_redirect_uri']; 226 226 $response = ''; 227 $coupon_code = $paypal_payment = $coupon_data= '';227 $coupon_code = $paypal_payment = $coupon_data= $coupon_data_sr = ''; 228 228 $coupon_code = $_POST['coupon_code']; 229 229 if(isset($coupon_code) && $coupon_code!=''){ … … 521 521 $plugin['name'] = $_GET['plugin_name']; 522 522 $plugin['slug'] = $_GET['plugin']; 523 $plugin['source'] = $_GET['plugin_source'];523 $plugin['source'] = isset($_GET['plugin_source']) ? $_GET['plugin_source'] : ''; 524 524 525 525 $plugin_data = get_plugins( '/' . $plugin['slug'] ); // Retrieve all plugins. -
coceca/trunk/includes/functions.php
r1183981 r1191630 186 186 function get_client_ip() { 187 187 $ipaddress = ''; 188 if ( $_SERVER['HTTP_CLIENT_IP'])188 if (isset($_SERVER['HTTP_CLIENT_IP'])) 189 189 $ipaddress = $_SERVER['HTTP_CLIENT_IP']; 190 else if( $_SERVER['HTTP_X_FORWARDED_FOR'])190 else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) 191 191 $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; 192 else if( $_SERVER['HTTP_X_FORWARDED'])192 else if(isset($_SERVER['HTTP_X_FORWARDED'])) 193 193 $ipaddress = $_SERVER['HTTP_X_FORWARDED']; 194 else if( $_SERVER['HTTP_FORWARDED_FOR'])194 else if(isset($_SERVER['HTTP_FORWARDED_FOR'])) 195 195 $ipaddress = $_SERVER['HTTP_FORWARDED_FOR']; 196 else if( $_SERVER['HTTP_FORWARDED'])196 else if(isset($_SERVER['HTTP_FORWARDED'])) 197 197 $ipaddress = $_SERVER['HTTP_FORWARDED']; 198 else if( $_SERVER['REMOTE_ADDR'])198 else if(isset($_SERVER['REMOTE_ADDR'])) 199 199 $ipaddress = $_SERVER['REMOTE_ADDR']; 200 200 else -
coceca/trunk/includes/templates/list_extensions.php
r1181115 r1191630 39 39 40 40 $plugin_activate_url = plugin_activate($this->menu,$plugin_slug,$plugins['plugin_title'],$plugins['plugin_source'],$plugins['activate_path']); 41 // echo $plugin_activate_url; 41 42 } 42 43 43 if( $plugins['id'] == 1){44 $plugin_page_url = admin_url( 'admin.php?page=cta_manage');44 if(!empty($plugins['plugin_page_url'])){ 45 $plugin_page_url = admin_url($plugins['plugin_page_url']); 45 46 }else{ 46 47 $plugin_page_url = admin_url('plugins.php'); -
coceca/trunk/readme.txt
r1188106 r1191630 90 90 == Changelog == 91 91 92 = 1.5 = 93 * Resolved issue of duplicate functions 94 * Resolved warnings at time of activation 92 95 93 96 = 1.4 =
Note: See TracChangeset
for help on using the changeset viewer.