Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

existing_tile()

Parameters

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

Location

include/dash_functions.php lines 259 to 271

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 12th July 2020 03:35 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.