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

overquota()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 6152 to 6168

Definition

 
function overquota()
    {
    
# Return true if the system is over quota
    
global $disksize;
    if (isset(
$disksize))
        {
        
# Disk quota functionality. Calculate the usage by the $storagedir folder only rather than the whole disk.
        # Unix only due to reliance on 'du' command

        
$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 19th March 2024 09:35 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.