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

parse_dashtile_link()

Parameters

ColumnTypeDefaultDescription
$link

Location

include/dash_functions.php lines 1445 to 1474

Definition

 
function parse_dashtile_link($link)
    {
    global 
$userref$upload_then_edit;
    
$link str_replace("[userref]"$userref$link);

    
//For upload tiles respect the upload then edit preference
    
if((strpos($link'uploader=') !== false) && $upload_then_edit)
        {
        global 
$baseurl;

        
$query parse_url($linkPHP_URL_QUERY);
        if(
$query === false || is_null($query))
            {
            
$query "";
            }

        
/**
        * @var path is the real ResourceSpace path (regardless if RS is installed under web root or in a subfolder)
        * Example:
        * For http://localhost/trunk/pages/edit.php?ref=-[userref]&uploader=batch the real path is pages/edit.php as 
        * RS handles this via its baseurl when generating absolute paths.
        */
        
$path str_replace("{$baseurl}/"""$link);
        
$path str_replace("?{$query}"""$path);

        
$link str_replace($path"pages/upload_batch.php"$link);
        }

    return 
$link;
    }

This article was last updated 12th December 2024 09:35 Europe/London time based on the source file dated 11th December 2024 22:35 Europe/London time.