Revision 1457
Added by Dietmar over 13 years ago
rename.php | ||
---|---|---|
32 | 32 |
|
33 | 33 |
// Check to see if it contains .. |
34 | 34 |
if (!check_media_path($directory)) { |
35 |
$admin->print_error($MESSAGE['MEDIA']['DIR_DOT_DOT_SLASH'], WB_URL, false);
|
|
35 |
$admin->print_error($MESSAGE['MEDIA']['DIR_DOT_DOT_SLASH'], "browse.php?dir=$directory", false);
|
|
36 | 36 |
} |
37 | 37 |
|
38 | 38 |
// Get the temp id |
... | ... | |
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
$template->set_var(array( |
108 |
'THEME_URL' => THEME_URL,
|
|
109 |
'FILENAME' => $rename_file,
|
|
110 |
'DIR' => $directory,
|
|
111 |
'FILE_ID' => $admin->getIDKEY($file_id),
|
|
112 |
'TYPE' => $type,
|
|
113 |
'EXTENSION' => $extension,
|
|
114 |
'FTAN' => $admin->getFTAN()
|
|
115 |
)
|
|
116 |
);
|
|
108 |
'THEME_URL' => THEME_URL, |
|
109 |
'FILENAME' => $rename_file, |
|
110 |
'DIR' => $directory, |
|
111 |
'FILE_ID' => $admin->getIDKEY($file_id), |
|
112 |
'TYPE' => $type, |
|
113 |
'EXTENSION' => $extension, |
|
114 |
'FTAN' => $admin->getFTAN() |
|
115 |
) |
|
116 |
); |
|
117 | 117 |
|
118 | 118 |
|
119 | 119 |
// Insert language text and messages |
120 | 120 |
$template->set_var(array( |
121 |
'TEXT_TO' => $TEXT['TO'],
|
|
122 |
'TEXT_RENAME' => $TEXT['RENAME'],
|
|
123 |
'TEXT_CANCEL' => $TEXT['CANCEL'],
|
|
124 |
'TEXT_UP' => $TEXT['UP'],
|
|
125 |
'TEXT_OVERWRITE_EXISTING' => $TEXT['OVERWRITE_EXISTING']
|
|
126 |
)
|
|
127 |
);
|
|
121 |
'TEXT_TO' => $TEXT['TO'], |
|
122 |
'TEXT_RENAME' => $TEXT['RENAME'], |
|
123 |
'TEXT_CANCEL' => $TEXT['CANCEL'], |
|
124 |
'TEXT_UP' => $TEXT['UP'], |
|
125 |
'TEXT_OVERWRITE_EXISTING' => $TEXT['OVERWRITE_EXISTING'] |
|
126 |
) |
|
127 |
); |
|
128 | 128 |
|
129 | 129 |
// Parse template object |
130 | 130 |
$template->parse('main', 'main_block', false); |
131 | 131 |
$template->pparse('output', 'page'); |
132 |
|
|
133 |
?> |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests