1<?php
2    if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../../').'/');
3    if (!defined('DOKU_PLUGIN')) {
4      define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
5    }
6    define('DOKU_FILELISTMANAGER',1);
7    require_once(DOKU_INC.'inc/init.php');
8    require_once(DOKU_INC.'inc/lang/en/lang.php');
9    require_once(DOKU_INC.'inc/lang/'.$conf['lang'].'/lang.php');
10    require_once(DOKU_INC.'inc/media.php');
11    require_once(DOKU_INC.'inc/common.php');
12    require_once(DOKU_INC.'inc/search.php');
13    require_once(DOKU_INC.'inc/template.php');
14    require_once(DOKU_INC.'inc/auth.php');
15    require_once('../functions.php');
16    session_write_close();  //close session
17
18
19    // get namespace to display (either direct or from deletion order)
20    $NS = $_REQUEST['ns'];
21    $NS = cleanID($NS);
22
23    getPluginName();
24
25    // check auth
26    $AUTH = auth_quickaclcheck("$NS:*");
27
28    // create the given namespace (just for beautification)
29    if($AUTH >= AUTH_UPLOAD) { io_createNamespace("$NS:xxx", 'media'); }
30
31
32    // finished - start output
33    header('Content-Type: text/html; charset=utf-8');
34    include('../filemanager.php');
35