Changeset 895872
- Timestamp:
- 04/17/2014 08:20:29 AM (12 years ago)
- Location:
- autochmod
- Files:
-
- 1 deleted
- 2 edited
- 12 copied
-
tags/0.5.2 (copied) (copied from autochmod/trunk)
-
tags/0.5.2/autochmod.php (copied) (copied from autochmod/trunk/autochmod.php) (4 diffs)
-
tags/0.5.2/graphic (copied) (copied from autochmod/trunk/graphic)
-
tags/0.5.2/graphic/admin.css (deleted)
-
tags/0.5.2/graphic/configpage.css (copied) (copied from autochmod/trunk/graphic/configpage.css)
-
tags/0.5.2/jstree (copied) (copied from autochmod/trunk/jstree)
-
tags/0.5.2/languages (copied) (copied from autochmod/trunk/languages)
-
tags/0.5.2/languages/autochmod-it_IT.mo (copied) (copied from autochmod/trunk/languages/autochmod-it_IT.mo)
-
tags/0.5.2/languages/autochmod-it_IT.po (copied) (copied from autochmod/trunk/languages/autochmod-it_IT.po)
-
tags/0.5.2/languages/autochmod.pot (copied) (copied from autochmod/trunk/languages/autochmod.pot)
-
tags/0.5.2/readme.txt (copied) (copied from autochmod/trunk/readme.txt) (3 diffs)
-
tags/0.5.2/scripts.js (copied) (copied from autochmod/trunk/scripts.js)
-
tags/0.5.2/test (copied) (copied from autochmod/trunk/test)
-
trunk/autochmod.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
autochmod/tags/0.5.2/autochmod.php
r881593 r895872 5 5 Description: Protect folders and files from unhautorized changes managing filesystem permissions. 6 6 Author: Franco Traversaro 7 Version: 0.5. 17 Version: 0.5.2 8 8 Author URI: mailto:franco.traversaro@e2net.it 9 9 Text Domain: autochmod … … 23 23 'd' => array( 'u' => 5, 'g' => 5, 'a' => 5 ), 24 24 'f' => array( 'u' => 4, 'g' => 4, 'a' => 4 ) ) ); 25 private $msgs = array();26 25 27 26 private function __construct() { … … 229 228 $this->keep_writable = $save; 230 229 231 $save = $this->perms;232 230 if ( isset( $_POST[ 'perms' ] ) and is_array( $_POST[ 'perms' ] ) ) 233 231 foreach ( $_POST[ 'perms' ] as $mode => $kind_data ) 234 232 foreach ( $kind_data as $kind => $perm_data ) 235 233 foreach ( $perm_data as $target => $permission ) 236 if ( isset( $this->perms[ $mode ][ $kind ][ $target ] ) and ( $permission = absint( $permission )) <= 7 ) 237 $this->perms[ $mode ][ $kind ][ $target ] = $permission; 234 $this->maybe_set_perm( $mode, $kind, $target, $permission ); 238 235 239 236 $this->update_option( 'autochmod_perms', $this->perms ); … … 248 245 249 246 load_plugin_textdomain( 'autochmod', false, 'autochmod/languages' ); 247 } 248 249 private function maybe_set_perm( $mode, $kind, $target, $permission ) { 250 if ( $mode != '+' and $mode != '-' ) 251 return false; 252 if ( $kind != 'd' and $kind != 'f' ) 253 return false; 254 if ( $target != 'u' and $target != 'g' and $target != 'a' ) 255 return false; 256 if ( ( $permission = absint( $permission )) > 7 ) 257 return false; 258 $this->perms[ $mode ][ $kind ][ $target ] = $permission; 250 259 } 251 260 -
autochmod/tags/0.5.2/readme.txt
r881593 r895872 4 4 Tags: security, filesystem, permissions, chmod, folders, files 5 5 Requires at least: 3.1.0 6 Tested up to: 3. 8.17 Stable tag: 0.5. 16 Tested up to: 3.9 7 Stable tag: 0.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 1. The config page when protection is active. 40 2. The config page when protection isn't active. Note the countdown on the admin button (refresh only when page loads).40 2. The config page when protection isn't active. Note the countdown on the admin button. 41 41 3. The alert on plugin installation page when protection is active. The same alert is shown also on edit plugin page and installation and edit theme pages. 42 42 4. The Help tab. Less text in the page, more comfort for the user. … … 48 48 49 49 **0.5.1** Fixed the behaviour of the admin bar button on multisite installation: the option are now saved on site_meta 50 51 **0.5.2** Fixed a bug who didn't permit saving permission options on some network installations 50 52 51 53 = 0.4 = -
autochmod/trunk/autochmod.php
r881593 r895872 5 5 Description: Protect folders and files from unhautorized changes managing filesystem permissions. 6 6 Author: Franco Traversaro 7 Version: 0.5. 17 Version: 0.5.2 8 8 Author URI: mailto:franco.traversaro@e2net.it 9 9 Text Domain: autochmod … … 23 23 'd' => array( 'u' => 5, 'g' => 5, 'a' => 5 ), 24 24 'f' => array( 'u' => 4, 'g' => 4, 'a' => 4 ) ) ); 25 private $msgs = array();26 25 27 26 private function __construct() { … … 229 228 $this->keep_writable = $save; 230 229 231 $save = $this->perms;232 230 if ( isset( $_POST[ 'perms' ] ) and is_array( $_POST[ 'perms' ] ) ) 233 231 foreach ( $_POST[ 'perms' ] as $mode => $kind_data ) 234 232 foreach ( $kind_data as $kind => $perm_data ) 235 233 foreach ( $perm_data as $target => $permission ) 236 if ( isset( $this->perms[ $mode ][ $kind ][ $target ] ) and ( $permission = absint( $permission )) <= 7 ) 237 $this->perms[ $mode ][ $kind ][ $target ] = $permission; 234 $this->maybe_set_perm( $mode, $kind, $target, $permission ); 238 235 239 236 $this->update_option( 'autochmod_perms', $this->perms ); … … 248 245 249 246 load_plugin_textdomain( 'autochmod', false, 'autochmod/languages' ); 247 } 248 249 private function maybe_set_perm( $mode, $kind, $target, $permission ) { 250 if ( $mode != '+' and $mode != '-' ) 251 return false; 252 if ( $kind != 'd' and $kind != 'f' ) 253 return false; 254 if ( $target != 'u' and $target != 'g' and $target != 'a' ) 255 return false; 256 if ( ( $permission = absint( $permission )) > 7 ) 257 return false; 258 $this->perms[ $mode ][ $kind ][ $target ] = $permission; 250 259 } 251 260 -
autochmod/trunk/readme.txt
r881593 r895872 4 4 Tags: security, filesystem, permissions, chmod, folders, files 5 5 Requires at least: 3.1.0 6 Tested up to: 3. 8.17 Stable tag: 0.5. 16 Tested up to: 3.9 7 Stable tag: 0.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 1. The config page when protection is active. 40 2. The config page when protection isn't active. Note the countdown on the admin button (refresh only when page loads).40 2. The config page when protection isn't active. Note the countdown on the admin button. 41 41 3. The alert on plugin installation page when protection is active. The same alert is shown also on edit plugin page and installation and edit theme pages. 42 42 4. The Help tab. Less text in the page, more comfort for the user. … … 48 48 49 49 **0.5.1** Fixed the behaviour of the admin bar button on multisite installation: the option are now saved on site_meta 50 51 **0.5.2** Fixed a bug who didn't permit saving permission options on some network installations 50 52 51 53 = 0.4 =
Note: See TracChangeset
for help on using the changeset viewer.