1
0

+ * Add possibility to spartacus to upload files via FTP. This can

+      bypass Safe_mode restrictions on your server to make Spartacus
+      work for you. (VladaAjgl)
This commit is contained in:
Garvin Hicking
2007-12-11 10:07:55 +00:00
parent 5ff0aaadb4
commit 01a8faf864
8 changed files with 339 additions and 186 deletions

View File

@ -501,7 +501,7 @@ switch ($serendipity['GET']['adminAction']) {
serendipity_plugin_api::hook_event('backend_directory_create', $nd);
/* TODO: check if directory already exist */
if (@mkdir($serendipity['serendipityPath'] . $serendipity['uploadPath'] . $new_dir)) {
if (is_dir($nd) || @mkdir($nd)) {
printf(DIRECTORY_CREATED, $serendipity['POST']['name']);
@umask(0000);
@chmod($serendipity['serendipityPath'] . $serendipity['uploadPath'] . $new_dir, 0777);