overquota()

Description

Calculate if the quota set by $disksize in the configuration has been exceeded.

Parameters

This function accepts no parameters.

Return

array|bool True if the system is over quota

Location

include/resource_functions.php lines 5863 to 5876

Definition

 
function overquota()
{
    global 
$disksize;
    if (isset(
$disksize)) {
        
$avail $disksize 1000 1000 1000;
        
$used get_total_disk_usage();

        
$free $avail $used;
        if (
$free <= 0) {
            return 
true;
        }
    }
    return 
false;
}

This article was last updated 6th July 2025 14:05 Europe/London time based on the source file dated 4th July 2025 10:35 Europe/London time.