Skip to content

Commit 012b6ce

Browse files
committed
wip
1 parent 307e2c1 commit 012b6ce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

webdav.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,19 @@ public function __construct() {
2626
$hcpp->add_action( 'priv_delete_user', [ $this, 'priv_delete_user' ] );
2727
$hcpp->add_action( 'post_add_user', [ $this, 'post_add_user' ] );
2828
$hcpp->add_action( 'hcpp_rebooted', [ $this, 'hcpp_rebooted' ] );
29+
$hcpp->add_action( 'hcpp_plugin_disabled', [ $this, 'hcpp_plugin_disabled' ] );
30+
$hcpp->add_action( 'hcpp_plugin_enabled', [ $this, 'hcpp_plugin_enabled' ] );
2931
}
3032

33+
// Stop services on plugin disabled.
34+
public function hcpp_plugin_disabled() {
35+
$this->stop();
36+
}
37+
38+
// Start services on plugin enabled.
39+
public function hcpp_plugin_enabled() {
40+
$this->start();
41+
}
3142

3243
// Intercept the certificate generation and copy over ssl certs for the webdav domain.
3344
public function cg_pws_generate_website_cert( $cmd ) {

0 commit comments

Comments
 (0)