PHP Settings - Version 1.0.5

Version Description

  • (FIX) Fixed the "you do not have sufficient privileges" error
Download this release

Release Info

Developer Askupa Software
Plugin Icon 128x128 PHP Settings
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

assets/js/process-button.js CHANGED
@@ -1,7 +1,7 @@
1
  /**
2
  * @package PHP Settings
3
- * @date 2016-04-24
4
- * @version 1.0.4
5
  * @author Askupa Software <contact@askupasoftware.com>
6
  * @link http://products.askupasoftware.com/php-settings
7
  * @copyright 2016 Askupa Software
1
  /**
2
  * @package PHP Settings
3
+ * @date 2016-05-12
4
+ * @version 1.0.5
5
  * @author Askupa Software <contact@askupasoftware.com>
6
  * @link http://products.askupasoftware.com/php-settings
7
  * @copyright 2016 Askupa Software
assets/js/script.js CHANGED
@@ -1,7 +1,7 @@
1
  /**
2
  * @package PHP Settings
3
- * @date 2016-04-24
4
- * @version 1.0.4
5
  * @author Askupa Software <contact@askupasoftware.com>
6
  * @link http://products.askupasoftware.com/php-settings
7
  * @copyright 2016 Askupa Software
1
  /**
2
  * @package PHP Settings
3
+ * @date 2016-05-12
4
+ * @version 1.0.5
5
  * @author Askupa Software <contact@askupasoftware.com>
6
  * @link http://products.askupasoftware.com/php-settings
7
  * @copyright 2016 Askupa Software
bootstrap.php CHANGED
@@ -13,7 +13,7 @@
13
  * Plugin Name: PHP Settings
14
  * Plugin URI: http://products.askupasoftware.com/php-settings
15
  * Description: This plugin provides a simple user interface with a code editor to edit your local php.ini settings.
16
- * Version: 1.0.4
17
  * Author: Askupa Software
18
  * Author URI: http://www.askupasoftware.com
19
  * Text Domain: php-settings
@@ -22,7 +22,7 @@
22
 
23
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
24
 
25
- define( 'PHP_SETTINGS_VERSION', '1.0.4' );
26
  define( 'PHP_SETTINGS_JS_URL', plugins_url( '/assets/js/', __FILE__ ) );
27
  define( 'PHP_SETTINGS_CSS_URL', plugins_url( '/assets/css/', __FILE__ ) );
28
  define( 'PHP_SETTINGS_IMG_URL', plugins_url( '/assets/img/', __FILE__ ) );
13
  * Plugin Name: PHP Settings
14
  * Plugin URI: http://products.askupasoftware.com/php-settings
15
  * Description: This plugin provides a simple user interface with a code editor to edit your local php.ini settings.
16
+ * Version: 1.0.5
17
  * Author: Askupa Software
18
  * Author URI: http://www.askupasoftware.com
19
  * Text Domain: php-settings
22
 
23
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
24
 
25
+ define( 'PHP_SETTINGS_VERSION', '1.0.5' );
26
  define( 'PHP_SETTINGS_JS_URL', plugins_url( '/assets/js/', __FILE__ ) );
27
  define( 'PHP_SETTINGS_CSS_URL', plugins_url( '/assets/css/', __FILE__ ) );
28
  define( 'PHP_SETTINGS_IMG_URL', plugins_url( '/assets/img/', __FILE__ ) );
includes/EnvironmentValidator.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
  * @package PHP Settings
4
- * @date 2016-04-24
5
- * @version 1.0.4
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
1
  <?php
2
  /**
3
  * @package PHP Settings
4
+ * @date 2016-05-12
5
+ * @version 1.0.5
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
includes/INIFile.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
  * @package PHP Settings
4
- * @date 2016-04-24
5
- * @version 1.0.4
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
1
  <?php
2
  /**
3
  * @package PHP Settings
4
+ * @date 2016-05-12
5
+ * @version 1.0.5
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
includes/PHPInfo.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
  * @package PHP Settings
4
- * @date 2016-04-24
5
- * @version 1.0.4
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
1
  <?php
2
  /**
3
  * @package PHP Settings
4
+ * @date 2016-05-12
5
+ * @version 1.0.5
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
includes/PHPSettings.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
  * @package PHP Settings
4
- * @date 2016-04-24
5
- * @version 1.0.4
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
@@ -43,7 +43,7 @@ class PHPSettings
43
  check_ajax_referer( 'ajax_validation', 'nonce' );
44
  $content = filter_input( INPUT_POST, 'ini_settings' );
45
  try {
46
- if( !current_user_can( 'manage-options' ) ) throw new Exception('You do not have sufficient privileges to create/save files');
47
  INIFile::set_content( $content );
48
  wp_send_json_success();
49
  } catch (Exception $ex) {
@@ -56,7 +56,7 @@ class PHPSettings
56
  {
57
  check_ajax_referer( 'ajax_validation', 'nonce' );
58
  try {
59
- if( !current_user_can( 'manage-options' ) ) throw new Exception('You do not have sufficient privileges to delete files');
60
  INIFile::remove_files();
61
  wp_send_json_success();
62
  } catch (Exception $ex) {
1
  <?php
2
  /**
3
  * @package PHP Settings
4
+ * @date 2016-05-12
5
+ * @version 1.0.5
6
  * @author Askupa Software <contact@askupasoftware.com>
7
  * @link http://products.askupasoftware.com/php-settings
8
  * @copyright 2016 Askupa Software
43
  check_ajax_referer( 'ajax_validation', 'nonce' );
44
  $content = filter_input( INPUT_POST, 'ini_settings' );
45
  try {
46
+ if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrative privileges to create/save files');
47
  INIFile::set_content( $content );
48
  wp_send_json_success();
49
  } catch (Exception $ex) {
56
  {
57
  check_ajax_referer( 'ajax_validation', 'nonce' );
58
  try {
59
+ if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrative privileges to delete files');
60
  INIFile::remove_files();
61
  wp_send_json_success();
62
  } catch (Exception $ex) {
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === PHP Settings ===
2
- Contributors: Askupa Software
3
  Tags: admin, php settings, user.ini, ini rules, php.ini, php5.ini, post max size, post_max_size, upload limit, upload max filesize, upload_max_filesize, max_execution_time, max execution time
4
  Requires at least: 3.0
5
- Tested up to: 4.5.0
6
- Stable tag: 1.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -71,6 +71,9 @@ This can happen for multiple reasons.
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 1.0.4 =
75
  * (NEW) Added checkboxes to allow bulk copy of directives to editor
76
  * (NEW) Added a search box to search for PHP directives (based on the great list.js script)
1
  === PHP Settings ===
2
+ Contributors: Askupa Software, ykadosh
3
  Tags: admin, php settings, user.ini, ini rules, php.ini, php5.ini, post max size, post_max_size, upload limit, upload max filesize, upload_max_filesize, max_execution_time, max execution time
4
  Requires at least: 3.0
5
+ Tested up to: 4.7
6
+ Stable tag: 1.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
71
 
72
  == Changelog ==
73
 
74
+ = 1.0.5 =
75
+ * (FIX) Fixed the "you do not have sufficient privileges" error
76
+
77
  = 1.0.4 =
78
  * (NEW) Added checkboxes to allow bulk copy of directives to editor
79
  * (NEW) Added a search box to search for PHP directives (based on the great list.js script)