Revision 1824
Added by Dietmar almost 12 years ago
index.php | ||
---|---|---|
39 | 39 |
$template->set_block('page', 'main_block', 'main'); |
40 | 40 |
|
41 | 41 |
// Include the WB functions file |
42 |
require_once(WB_PATH.'/framework/functions.php');
|
|
42 |
if(!function_exists('directory_list')) { require(WB_PATH.'/framework/functions.php'); }
|
|
43 | 43 |
|
44 | 44 |
// Target location |
45 | 45 |
$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']); |
... | ... | |
50 | 50 |
$rootlink = 'index.php?dir='; |
51 | 51 |
|
52 | 52 |
// Get home folder not to show |
53 |
$home_folders = get_home_folders();
|
|
53 |
$home_folders = (defined('HOME_FOLDERS') && HOME_FOLDERS) ? get_home_folders() : array();
|
|
54 | 54 |
|
55 | 55 |
// Insert values |
56 | 56 |
$template->set_block('main_block', 'dir_list_block', 'dir_list'); |
57 | 57 |
$dirs = directory_list(WB_PATH.MEDIA_DIRECTORY); |
58 |
$currentHome = $admin->get_home_folder(); |
|
59 |
|
|
58 |
$currentHome = (defined('HOME_FOLDERS') && HOME_FOLDERS) ? $admin->get_home_folder() : ''; |
|
60 | 59 |
if ($currentHome!=''){ |
61 | 60 |
$dirs = directory_list(WB_PATH.MEDIA_DIRECTORY.$currentHome); |
62 | 61 |
} |
Also available in: Unified diff
! update media in look to the changes in user management