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

upload_share_active()

Description

Check if an external upload link is being used

Parameters

This function accepts no parameters.

Return

mixed false|int ID of upload collection, or false if not active

Location

include/collections_functions.php lines 5680 to 5693

Definition

 
function upload_share_active()
    {
    global 
$upload_share_active;
    if(isset(
$upload_share_active))
        {
        return 
$upload_share_active;
        }
    elseif(isset(
$_COOKIE["upload_share_active"]) && getval("k","") != "")
        {
        
$upload_share_active = (int)$_COOKIE["upload_share_active"];
        return 
$upload_share_active;
        }
    return 
false;
    }

This article was last updated 14th May 2021 23:05 Europe/London time based on the source file dated 10th May 2021 09:15 Europe/London time.