Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

set_user_collection()

Parameters

ColumnTypeDefaultDescription
$user
$collection

Location

include/collections_functions.php lines 444 to 452

Definition

 
function set_user_collection($user,$collection)
    {
    global 
$usercollection,$username,$anonymous_login,$anonymous_user_session_collection;
    if(!(isset(
$anonymous_login) && $username==$anonymous_login) || !$anonymous_user_session_collection)
        {        
        
sql_query("update user set current_collection='" escape_check($collection) . "' where ref='" escape_check($user) . "'");
        }
    
$usercollection=$collection;
    }

This article was last updated 5th July 2020 04:35 Europe/London time based on the source file dated 3rd July 2020 14:33 Europe/London time.