Revision 1468
Added by Dietmar over 13 years ago
create.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Print admin header |
|
20 |
require('../../config.php'); |
|
21 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
22 |
// suppress to print the header, so no new FTAN will be set |
|
23 |
$admin = new admin('Media', 'media_create', false); |
|
24 |
|
|
19 | 25 |
// Get dir name and target location |
20 | 26 |
$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']); |
21 | 27 |
$name = (isset(${$requestMethod}['name'])) ? ${$requestMethod}['name'] : ''; |
... | ... | |
63 | 69 |
// Create relative path of the new dir name |
64 | 70 |
$directory = WB_PATH.$target.'/'.$name; |
65 | 71 |
|
66 |
/* |
|
72 |
/* */
|
|
67 | 73 |
// Check to see if the folder already exists |
68 |
if(file_exists($relative)) {
|
|
74 |
if(file_exists($directory)) {
|
|
69 | 75 |
$admin->print_error($MESSAGE['MEDIA']['DIR_EXISTS']); |
70 | 76 |
} |
71 |
*/ |
|
72 | 77 |
|
78 |
|
|
73 | 79 |
if ( sizeof(createFolderProtectFile( $directory )) ) |
74 | 80 |
{ |
75 | 81 |
$admin->print_error($MESSAGE['MEDIA']['DIR_NOT_MADE']); |
Also available in: Unified diff
update jquery-min to version 1.6.2
update jquery-ui-min to version 1.8.14
fix index error in media upload (Tks to DBS)
add missing nopreview.jpg
update media browser not to show forbidden files
remove unused jquery archiv folder