Collections functions
General functions
Render functions
Theme permission 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 6248 to 6261

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 29th May 2022 05:35 Europe/London time based on the source file dated 26th May 2022 11:20 Europe/London time.