(Will need testing, writing from my poor memory lol.)
This will get the hostdata path from system settings: (Allows use on Windows)
Change line 111 hooksCtrl.php:
global $zdbh;
To:
global $zdbh, $controller;
Change line 119 hooksCtrl.php:
$hd_path = "/var/sentora/hostdata"; // Path to hostdata
To:
$hd_path = ctrl_options::GetOption('hosted_dir'); // Path to hostdata
(Will need testing, writing from my poor memory lol.) This will get the hostdata path from system settings: (Allows use on Windows) Change line 111 hooksCtrl.php:
To:
Change line 119 hooksCtrl.php:
To: