I don't know if into upgade version of cpanel the "rc quota usage" works...
if not, my solution works.
The only problem is on /etc/userdomains file chmod.
I have notice that cpanel reset chmod 660 on /etc/userdomains every day! So i can't read this file by php....
The solution is set a root cron jon that copy this file into another...
I have cerate the follow script file named /etc/rcscript
su -l root -c "chmod 666 /etc/userdomains"
su -l root -c "cp /etc/userdomains /etc/rcscript"
su -l root -c "chmod 666 /etc/rcdomains"
su -l root -c "chmod 660 /etc/userdomains"
then I add to etc/crontab the following line:
30 0 * * * root /etc/rcscript
last, remember to change into program/steps/mail/func.ini
replace:
$file = file("/etc/userdomains"); //this file must have 664 permissions
with:
$file = file("/etc/rcdomains");
that's all...
so, every night at 00:30 the system start /etc/rcscript as root that copy /etc/userdomains into /etc/rcdomains
ciao
Fabio