Skip to content

Commit

Permalink
dynamic logging option
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Sep 17, 2024
1 parent b6cbe4d commit 69b6b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pluginable.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HCPP {

public $hcpp_filters = [];
public $hcpp_filter_count = 0;
public $logging = file_exists( '/usr/local/hestia/data/hcpp/logging' );
public $logging = false;
public $folder_ports = '/usr/local/hestia/data/hcpp/ports';
public $start_port = 50000;
public $installers = [];
Expand Down Expand Up @@ -314,6 +314,7 @@ public function register_uninstall_script( $file ) {
* Our object contructor
*/
public function __construct() {
$this->logging = file_exists( '/usr/local/hestia/data/hcpp/logging' );
$this->add_action( 'priv_check_user_password', [ $this, 'run_install_scripts' ] );
$this->add_action( 'priv_check_user_password', [ $this, 'run_uninstall_scripts' ] );
}
Expand Down

0 comments on commit 69b6b91

Please sign in to comment.