Changeset 847590
- Timestamp:
- 01/29/2014 10:51:42 AM (12 years ago)
- Location:
- autochmod
- Files:
-
- 1 deleted
- 2 edited
- 12 copied
-
tags/0.5 (copied) (copied from autochmod/trunk)
-
tags/0.5/autochmod.php (copied) (copied from autochmod/trunk/autochmod.php) (3 diffs)
-
tags/0.5/graphic (copied) (copied from autochmod/trunk/graphic)
-
tags/0.5/graphic/admin.css (deleted)
-
tags/0.5/graphic/configpage.css (copied) (copied from autochmod/trunk/graphic/configpage.css)
-
tags/0.5/jstree (copied) (copied from autochmod/trunk/jstree)
-
tags/0.5/languages (copied) (copied from autochmod/trunk/languages)
-
tags/0.5/languages/autochmod-it_IT.mo (copied) (copied from autochmod/trunk/languages/autochmod-it_IT.mo)
-
tags/0.5/languages/autochmod-it_IT.po (copied) (copied from autochmod/trunk/languages/autochmod-it_IT.po)
-
tags/0.5/languages/autochmod.pot (copied) (copied from autochmod/trunk/languages/autochmod.pot)
-
tags/0.5/readme.txt (copied) (copied from autochmod/trunk/readme.txt) (4 diffs)
-
tags/0.5/scripts.js (copied) (copied from autochmod/trunk/scripts.js)
-
tags/0.5/test (copied) (copied from autochmod/trunk/test)
-
trunk/autochmod.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
autochmod/tags/0.5/autochmod.php
r840396 r847590 5 5 Description: Protect folders and files from unhautorized changes managing filesystem permissions. 6 6 Author: Franco Traversaro 7 Version: 0. 4.27 Version: 0.5 8 8 Author URI: mailto:franco.traversaro@e2net.it 9 9 Text Domain: autochmod … … 35 35 add_action( 'init', array( $this, 'init' ) ); 36 36 add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) ); 37 add_action( 'update_option_auto_updater.lock', array( $this, 'update_option_auto_updater_lock' ) ); 38 add_action( 'delete_option_auto_updater.lock', array( $this, 'delete_option_auto_updater_lock' ) ); 37 39 if ( is_admin() ) 38 40 add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 10000 ); … … 49 51 } 50 52 } 53 } 54 55 public function update_option_auto_updater_lock( $old_value, $value ) { 56 $this->metti_permessi( ABSPATH ); 57 $when = time() + HOUR_IN_SECONDS; 58 wp_schedule_single_event( $when, 'rimuovi_permessi_scrittura' ); 59 update_option( 'autochmod_safe_again_at', $when ); 60 update_option( 'autochmod_protection_active', false ); 61 } 62 63 public function delete_option_auto_updater_lock( $option ) { 64 $this->togli_permessi( ABSPATH ); 65 wp_unschedule_event( get_option('autochmod_safe_again_at'), 'rimuovi_permessi_scrittura' ); 66 delete_option( 'autochmod_safe_again_at' ); 67 update_option( 'autochmod_protection_active', true ); 51 68 } 52 69 -
autochmod/tags/0.5/readme.txt
r841832 r847590 4 4 Tags: security, filesystem, permissions, chmod, folders, files 5 5 Requires at least: 3.1.0 6 Tested up to: 3.8 7 Stable tag: 0. 4.26 Tested up to: 3.8.1 7 Stable tag: 0.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 18 18 19 19 Pay attention: the suggested configuration is, obviously, only a suggestion: depending on various system configuration the detection could be suboptimal or erroneous. 20 21 **New in 0.5:** automatic updates should work regularly; the protection will disabled and re-enabled, hopefully without pain. But this feature is still experimental and I can't debug it untill next minor release of WP. 20 22 21 23 == Installation == … … 41 43 42 44 == Changelog == 45 46 = 0.5 = 47 * Let the automatic updates happen! 43 48 44 49 = 0.4 = … … 79 84 **0.4.1:** Minor bug fixes 80 85 **0.4.2:** Minor bug fixes 86 87 = 0.5 = 88 Experimental feature: disable protection at the start of an automatic WP upgrade and re-enable at upgrade finished (or after 60 minutes if anything goes wrong). I haven't been able to really test it, so cross your fingers and hope for the best! But the worst it could happen is that the protection remains disactivated, or that WP dosn't get upgraded at all. Please inform me if anything goes wrong! -
autochmod/trunk/autochmod.php
r840396 r847590 5 5 Description: Protect folders and files from unhautorized changes managing filesystem permissions. 6 6 Author: Franco Traversaro 7 Version: 0. 4.27 Version: 0.5 8 8 Author URI: mailto:franco.traversaro@e2net.it 9 9 Text Domain: autochmod … … 35 35 add_action( 'init', array( $this, 'init' ) ); 36 36 add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) ); 37 add_action( 'update_option_auto_updater.lock', array( $this, 'update_option_auto_updater_lock' ) ); 38 add_action( 'delete_option_auto_updater.lock', array( $this, 'delete_option_auto_updater_lock' ) ); 37 39 if ( is_admin() ) 38 40 add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 10000 ); … … 49 51 } 50 52 } 53 } 54 55 public function update_option_auto_updater_lock( $old_value, $value ) { 56 $this->metti_permessi( ABSPATH ); 57 $when = time() + HOUR_IN_SECONDS; 58 wp_schedule_single_event( $when, 'rimuovi_permessi_scrittura' ); 59 update_option( 'autochmod_safe_again_at', $when ); 60 update_option( 'autochmod_protection_active', false ); 61 } 62 63 public function delete_option_auto_updater_lock( $option ) { 64 $this->togli_permessi( ABSPATH ); 65 wp_unschedule_event( get_option('autochmod_safe_again_at'), 'rimuovi_permessi_scrittura' ); 66 delete_option( 'autochmod_safe_again_at' ); 67 update_option( 'autochmod_protection_active', true ); 51 68 } 52 69 -
autochmod/trunk/readme.txt
r841832 r847590 4 4 Tags: security, filesystem, permissions, chmod, folders, files 5 5 Requires at least: 3.1.0 6 Tested up to: 3.8 7 Stable tag: 0. 4.26 Tested up to: 3.8.1 7 Stable tag: 0.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 18 18 19 19 Pay attention: the suggested configuration is, obviously, only a suggestion: depending on various system configuration the detection could be suboptimal or erroneous. 20 21 **New in 0.5:** automatic updates should work regularly; the protection will disabled and re-enabled, hopefully without pain. But this feature is still experimental and I can't debug it untill next minor release of WP. 20 22 21 23 == Installation == … … 41 43 42 44 == Changelog == 45 46 = 0.5 = 47 * Let the automatic updates happen! 43 48 44 49 = 0.4 = … … 79 84 **0.4.1:** Minor bug fixes 80 85 **0.4.2:** Minor bug fixes 86 87 = 0.5 = 88 Experimental feature: disable protection at the start of an automatic WP upgrade and re-enable at upgrade finished (or after 60 minutes if anything goes wrong). I haven't been able to really test it, so cross your fingers and hope for the best! But the worst it could happen is that the protection remains disactivated, or that WP dosn't get upgraded at all. Please inform me if anything goes wrong!
Note: See TracChangeset
for help on using the changeset viewer.