apintocr / sentora_mail-quota-count

Counts Email Quota towards Web Quota, making it easier to manage Email accounts.
1 stars 2 forks source link

Get hostdata folder using ctrl_options #1

Closed TGates71 closed 9 years ago

TGates71 commented 9 years ago

(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
apintocr commented 9 years ago

Good memory :) Right Paths :+1: Done, thank you @TGates71