Cpanel::Fileman::getdiskinfo

This article documents the usage of the Cpanel::Fileman::getdiskinfo function in relation to the cPanel interface. This tag can be used inside cPanel pages.


SYNOPSIS

Cpanel::Fileman::getdiskinfo


DESCRIPTION

This funciton outputs the amount of disk space remaining for uploads on an account.


VARIABLES

INPUT

NONE

OUTPUT

file_upload_remain
Space remaining for uploads (in Bytes, file_upload_must_leave_bytes less than spaceremain).

file_upload_must_leave_bytes
Space that must be left after uploading (in Bytes,to prevent disk quota issues).

file_upload_max_bytes
Maximum file size for upload (in Bytes).

spaceused (integer)
Space used by user (in Bytes).

spacelimit (integer)
User's disk space usage limit (in Bytes).

spaceremain (integer)
Space left towards the user's disk space usage limit (in Bytes).


NOTES

_humansize
Adding _humansize to any output variable will output it in MB.


EXAMPLES

<?cp Fileman::getdiskinfo(%,file_upload_remain_humansize) ?>


COPYRIGHT

Copyright 2007 cPanel Inc.