Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

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 6241 to 6254

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 23rd July 2024 21:35 Europe/London time based on the source file dated 23rd July 2024 11:20 Europe/London time.