Example #1
0
                    } else {
                        $sort = 'login';
                    }
                    if (isset($_GET['limit']) && eF_checkParameter($_GET['limit'], 'int')) {
                        isset($_GET['offset']) && eF_checkParameter($_GET['offset'], 'int') ? $offset = $_GET['offset'] : ($offset = 0);
                    }
                    isset($_GET['filter']) ? $filter = $_GET['filter'] : ($filter = false);
                    isset($_GET['other']) ? $other = $_GET['other'] : ($other = '');
                    /*        		    		
                            		if (mb_strpos(realpath($_GET['other']), realpath($basedir) ) !== false) {
                            			isset($_GET['other'])  ? $other  = $_GET['other']  : $other  = '';
                            		} else {
                            			throw new EfrontFileException(_YOUCANNOTACCESSTHEREQUESTEDRESOURCE, EfrontFileException::UNAUTHORIZED_ACTION);
                            		}
                    */
                    $ajaxOptions = array('sort' => $sort, 'order' => $order, 'limit' => $limit, 'offset' => $offset, 'filter' => $filter);
                    //$extraFileTools = array(array('image' => 'images/16x16/arrow_right.png', 'title' => _INSERTEDITOR, 'action' => 'insert_editor'));
                    $filesystemCode = $filesystem->toHTML($url, $other, $ajaxOptions, $options, $extraFileTools, $extraDirectoryTools, $extraHeaderOptions, $filesystemIterator, false, $extraColumns);
                    $smarty->assign("T_DISPLAYCODE", $filesystemCode);
                    $smarty->display('display_code.tpl');
                    exit;
                } catch (Exception $e) {
                    handleAjaxExceptions($e);
                }
            }
            $smarty->assign("T_FILE_MANAGER", $filesystem->toHTML($url, false, false, $options, $extraFileTools, $extraDirectoryTools, $extraHeaderOptions, $filesystemIterator, false, $extraColumns));
        }
    }
} catch (Exception $e) {
    handleNormalFlowExceptions($e);
}