Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 5818 to 5831

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 15th February 2025 20:35 Europe/London time based on the source file dated 14th February 2025 12:25 Europe/London time.