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

existing_tile()

Parameters

ColumnTypeDefaultDescription
$title
$all_users
$url
$link
$reload_interval
$resource_count
$text ""

Location

include/dash_functions.php lines 283 to 295

Definition

 
function existing_tile($title,$all_users,$url,$link,$reload_interval,$resource_count,$text="")
    {
    
$sql "SELECT ref FROM dash_tile WHERE url='".$url."' AND link='".$link."' AND title='".escape_check($title)."' AND reload_interval_secs=".$reload_interval." AND all_users=".$all_users." AND resource_count=".$resource_count." AND txt='".escape_check($text)."'";
    
$existing sql_query($sql);
    if(isset(
$existing[0]["ref"]))
        {
        return 
true;
        }
    else
        {
        return 
false;
        }
    }

This article was last updated 30th November 2020 13:35 Europe/London time based on the source file dated 3rd November 2020 16:55 Europe/London time.