mirror of
https://github.com/e107inc/e107.git
synced 2025-10-19 08:46:20 +02:00
16 lines
569 B
BlitzBasic
16 lines
569 B
BlitzBasic
global $pref, $fromadmin, $imode;
|
|
|
|
if (array_key_exists('forum_attach', $pref) && $pref['forum_attach'] && FILE_UPLOADS || ADMIN || $fromadmin)
|
|
{
|
|
$image = (file_exists(THEME."images/file.png") ? THEME."images/file.png" : e_IMAGE."packs/".$imode."/generic/file.png");
|
|
list($fname, $uc) = explode("^", $parm."^");
|
|
if(isset($uc))
|
|
{
|
|
if(!check_class($uc))
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
return "<a href='".$tp -> toAttribute($fname)."'><img src='".$image."' alt='' style='border:0; vertical-align:middle' /></a> <a href='".$tp -> toAttribute($fname)."'>".$code_text."</a>";
|
|
}
|