HEX
Server: Apache
System: Linux p3plzcpnl489526.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: vmasmheia229 (9244908)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/vmasmheia229/domains/davidgkeith.com/html/config/app/templates/element_imagepicker.tpl.php
<input type="hidden" class="item item_imagepicker" id="<?php echo @$content['id']; ?>" name="<?php echo @$content['id']; ?>" value="<?php echo get_value(@$content['id']); ?>">
<input type="hidden" class="item item_imagepicker_selected" id="<?php echo @$content['id']; ?>_selected" name="<?php echo @$content['id']; ?>_selected" value="<?php echo get_value(@$content['id']."_selected"); ?>">
<ul class="imagepicker">
<?php
$folder=dir("../".$content['directory']);
$selected = get_value(@$content['id']);
$x=1;
while($file=$folder->read())
{
    if (substr_count($file, @$content['filetype']) > 0)
    {
        if ($file == $selected){$class_selected = " active"; } else { $class_selected = "";}
        echo '<li><a id="'.@$content['id'].'_item_'.$x.'" href="javascript:selectImage(\''. @$content['id'] . '\' , \'' . $file . '\', '.$x.');" data-filename="' . $file . '" class="item_imagepicker item_imagepicker_selectable'.$class_selected.'"><img src="../' . @$content['directory'] . "/" . $file . '"></a></li>';
        $x++;
    }
}
$folder->close();
?>
</ul>