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 6107 to 6123

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 March 2024 17:05 Europe/London time based on the source file dated 28th March 2024 11:35 Europe/London time.