mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Media-Manager Bbcode inserts for [img] and [file]
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
//<?
|
||||
$class = e107::getBB()->getClass('file');
|
||||
|
||||
|
||||
global $pref, $fromadmin;
|
||||
|
||||
|
||||
$class = e107::getBB()->getClass('file');
|
||||
|
||||
if(is_numeric($parm)) // Media-Manager file.
|
||||
{
|
||||
return "<a class='".$class."' href='".e_BASE."request.php?file={$parm}'>".$code_text."</a>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ((e_PAGE == 'page.php') || (array_key_exists('forum_attach', $pref) && $pref['forum_attach'] && FILE_UPLOADS || ADMIN || $fromadmin))
|
||||
{
|
||||
list($fname, $uc) = explode("^", $parm."^");
|
||||
|
Reference in New Issue
Block a user