1
0
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:
CaMer0n
2012-07-11 04:46:09 +00:00
parent 9d9c48594c
commit f67cfc40d9
8 changed files with 74 additions and 38 deletions

View File

@@ -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."^");