'; $o .= '

' . $tx['message']['plugin_standard1'] . '

' . $tx['message']['plugin_standard2'] . ' ' . $tx['filetype']['config'] . '


'; $o .= '
Filebrowser for CMSimple
'; $o .= '

Version 1.3 - released 2013-11-11

'; $o .= ''; return; } if (!($images || $downloads || $userfiles || $media)) { return true; } if (strstr(@$_GET['subdir'],'userfiles/images/')) { $f = 'images'; } if (strstr(@$_GET['subdir'],'userfiles/downloads/')) { $f = 'downloads'; } if ($userfiles && !strstr(@$_GET['subdir'],'userfiles/images/') && !strstr(@$_GET['subdir'],'userfiles/downloads/') && !strstr(@$_GET['subdir'],'userfiles/media/')) { $f = 'userfiles'; } if (strstr(@$_GET['subdir'],'userfiles/media/')) { $f = 'media'; } $browser = $_SESSION['fb_browser']; define('XHFB_PATH', $pth['folder']['plugins'] . 'filebrowser/'); $hjs .= ''; $subdir = isset($_GET['subdir']) ? str_replace(array('..', '.'), '', $_GET['subdir']) : ''; if (strpos($subdir, $browser->baseDirectories['userfiles']) !== 0) { $subdir = $browser->baseDirectories[$f]; } $browser->baseDirectory = $browser->baseDirectories['userfiles']; $browser->currentDirectory = rtrim($subdir, '/') . '/'; $browser->linkType = $f; $browser->setLinkParams('userfiles'); if (isset($_POST['deleteFile']) && isset($_POST['file'])) { $browser->deleteFile($_POST['file']); } if (isset($_POST['deleteFolder']) && isset($_POST['folder'])) { $browser->deleteFolder($_POST['folder']); } if (isset($_POST['upload'])) { $browser->uploadFile(); } if (isset($_POST['createFolder'])) { $browser->createFolder(); } if (isset($_POST['renameFile'])) { $browser->renameFile(); } $browser->readDirectory(); $o .= $browser->render('cmsbrowser'); $f = 'filebrowser'; $images = $downloads = $userfiles = $media = false; /* * EOF filebrowser/admin.php */ ?>