1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Bugtracker #3928 - show [file] bbcode in custom pages

This commit is contained in:
e107steved 2007-05-01 20:27:55 +00:00
parent 6b01af3dbe
commit 36b775b8f7

View File

@ -1,8 +1,8 @@
global $pref, $fromadmin, $imode;
global $pref, $fromadmin;
if (array_key_exists('forum_attach', $pref) && $pref['forum_attach'] && FILE_UPLOADS || ADMIN || $fromadmin)
if ((e_PAGE == 'page.php') || (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");
$image = (file_exists(THEME."images/file.png") ? THEME."images/file.png" : e_IMAGE."generic/".IMODE."/file.png");
list($fname, $uc) = explode("^", $parm."^");
if(isset($uc))
{