source: trunk/plugins/MootoolsFileManager/mootools-filemanager/Demos/manager.php @ 1239

Last change on this file since 1239 was 1239, checked in by gogo, 10 years ago

Add new plugin MootoolsFileManager?
ticket:1502

File size: 397 bytes
Line 
1<?php
2
3include('../Backend/FileManager.php');
4
5// Please add your own authentication here
6function UploadIsAuthenticated($get){
7        if(!empty($get['session'])) return true;
8       
9        return false;
10}
11
12$browser = new FileManager(array(
13        'directory' => 'Files/',
14        'assetBasePath' => '../Assets',
15        'upload' => false,
16        'destroy' => false,
17));
18
19$browser->fireEvent(!empty($_GET['event']) ? $_GET['event'] : null);
Note: See TracBrowser for help on using the repository browser.