Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

overquota()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 5664 to 5680

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 28th November 2020 22:05 Europe/London time based on the source file dated 27th November 2020 14:50 Europe/London time.