Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

generate_share_key()

Description

Generates an external share key based on provided string

Parameters

ColumnTypeDefaultDescription
$string string

Return

string Generated key

Location

include/collections_functions.php lines 6565 to 6568

Definition

 
function generate_share_key($string)
    {
    return 
substr(md5($string "," time() . rand()), 010);
    }

This article was last updated 22nd May 2024 16:35 Europe/London time based on the source file dated 16th May 2024 18:10 Europe/London time.