| @@ -2,13 +2,13 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Taskbuilder |
| 4 | 4 | * Plugin URI: https://wordpress.org/plugins/taskbuilder/ |
| 5 | 5 | * Description: Wordpress Project & Task Management plugin. Easy to keep track of projects & tasks! |
| 6 | - * Version: 1.0.3 | |
| 6 | + * Version: 3.0.8 | |
| 7 | 7 | * Author: Taskbuilder Team |
| 8 | 8 | * Author URI: https://taskbuilder.net/ |
| 9 | 9 | * Requires at least: 4.4 |
| 10 | - * Tested up to: 5.9.1 | |
| 10 | + * Tested up to: 6.7.1 | |
| 11 | 11 | * Text Domain: taskbuilder |
| 12 | 12 | * Domain Path: /lang |
| 13 | 13 | */ |
| 14 | 14 | |
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | |
| 19 | 19 | if ( ! class_exists( 'WP_Taskbuilder' ) ) : |
| 20 | 20 | |
| 21 | 21 | final class WP_Taskbuilder { |
| 22 | - public $version = '1.0.3'; | |
| 22 | + public $version = '3.0.8'; | |
| 23 | 23 | public function __construct() { |
| 24 | 24 | // define global constants |
| 25 | 25 | $this->define_constants(); |
| 26 | 26 | // Include required files and classes |
| @@ -51,8 +51,9 @@ | ||
| 51 | 51 | include( WPPM_ABSPATH.'includes/wppm_cron.php' ); |
| 52 | 52 | include_once( WPPM_ABSPATH . 'includes/wppm_actions.php' ); |
| 53 | 53 | if ($this->is_request('admin')) { |
| 54 | 54 | include_once( WPPM_ABSPATH . 'includes/class-wppm-admin.php' ); |
| 55 | + include_once( WPPM_ABSPATH . 'includes/class-wppm-profile-update.php' ); | |
| 55 | 56 | } |
| 56 | 57 | if ($this->is_request('frontend')) { |
| 57 | 58 | include_once( WPPM_ABSPATH . 'includes/class-wppm-frontend.php' ); |
| 58 | 59 | } |
| @@ -59,9 +60,9 @@ | ||
| 59 | 60 | if( !class_exists( 'EDD_SL_Plugin_Updater' ) ) { |
| 60 | 61 | include_once( WPPM_ABSPATH . 'includes/EDD_SL_Plugin_Updater.php' ); |
| 61 | 62 | } |
| 62 | 63 | |
| 63 | - } | |
| 64 | + } | |
| 64 | 65 | |
| 65 | 66 | public function define($name, $value) { |
| 66 | 67 | if (!defined($name)) { |
| 67 | 68 | define($name, $value); |
| @@ -85,8 +86,18 @@ | ||
| 85 | 86 | $task_id = intval(sanitize_text_field($_REQUEST['tid'])); |
| 86 | 87 | $task_auth_code = $wppmfunction->get_task_fields($task_id,'task_auth_code'); |
| 87 | 88 | $task_auth_code = sanitize_text_field($task_auth_code); |
| 88 | 89 | if($task_auth_code == $auth_code){ |
| 90 | + $this->wppm_file_download($attach_id); | |
| 91 | + } | |
| 92 | + } | |
| 93 | + if( isset($_REQUEST['wppm_attachment']) && isset($_REQUEST['pid']) && isset($_REQUEST['pac'])){ | |
| 94 | + $attach_id = intval(sanitize_text_field($_REQUEST['wppm_attachment'])); | |
| 95 | + $auth_code = (sanitize_text_field($_REQUEST['pac'])); | |
| 96 | + $proj_id = intval(sanitize_text_field($_REQUEST['pid'])); | |
| 97 | + $proj_auth_code = $wppmfunction->get_project_meta($proj_id,'project_auth_code',true); | |
| 98 | + $proj_auth_code = sanitize_text_field($proj_auth_code); | |
| 99 | + if($proj_auth_code == $auth_code){ | |
| 89 | 100 | $this->wppm_file_download($attach_id); |
| 90 | 101 | } |
| 91 | 102 | } |
| 92 | 103 | } |