Revision 8
Added by stefan about 20 years ago
| browse.php | ||
|---|---|---|
| 27 | 27 |
require('../../config.php');
|
| 28 | 28 |
require_once(WB_PATH.'/framework/class.admin.php'); |
| 29 | 29 |
$admin = new admin('Media', 'media', false);
|
| 30 |
|
|
| 31 |
// Include the WB functions file |
|
| 32 |
require_once(WB_PATH.'/framework/functions.php'); |
|
| 33 | 30 |
|
| 31 |
// Include the WB functions file |
|
| 32 |
require_once(WB_PATH.'/framework/functions.php'); |
|
| 33 |
|
|
| 34 | 34 |
// Setup template object |
| 35 | 35 |
$template = new Template(ADMIN_PATH.'/media'); |
| 36 | 36 |
$template->set_file('page', 'browse.html');
|
| ... | ... | |
| 70 | 70 |
'DISPLAY_UP_ARROW' => $display_up_arrow |
| 71 | 71 |
) |
| 72 | 72 |
); |
| 73 |
|
|
| 74 |
// Get home folder not to show |
|
| 75 |
$home_folders = get_home_folders(); |
|
| 76 |
|
|
| 73 |
|
|
| 74 |
// Get home folder not to show
|
|
| 75 |
$home_folders = get_home_folders();
|
|
| 76 |
|
|
| 77 | 77 |
// Generate list |
| 78 | 78 |
$template->set_block('main_block', 'list_block', 'list');
|
| 79 | 79 |
if($handle = opendir(WB_PATH.MEDIA_DIRECTORY.'/'.$directory)) {
|
| 80 | 80 |
// Loop through the files and dirs an add to list |
| 81 | 81 |
while(false !== ($file = readdir($handle))) {
|
| 82 |
if(substr($file, 0, 1) != '.' AND $file != 'CVS' AND $file != 'index.php') {
|
|
| 83 |
if(is_dir(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$file)) {
|
|
| 82 |
if(substr($file, 0, 1) != '.' AND $file != '.svn' AND $file != 'index.php') {
|
|
| 83 |
if(is_dir(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$file)) {
|
|
| 84 | 84 |
if(!isset($home_folders[$directory.'/'.$file])) {
|
| 85 |
$DIR[] = $file; |
|
| 85 |
$DIR[] = $file;
|
|
| 86 | 86 |
} |
| 87 | 87 |
} else {
|
| 88 | 88 |
$FILE[] = $file; |
| ... | ... | |
| 171 | 171 |
$template->parse('main', 'main_block', false);
|
| 172 | 172 |
$template->pparse('output', 'page');
|
| 173 | 173 |
|
| 174 |
?> |
|
| 174 |
?> |
|
Also available in: Unified diff
All occurrences of "CVS" in the code are replace by ".svn"