From: garvinhicking Date: Tue, 6 Dec 2005 10:53:24 +0000 (+0000) Subject: * Media uploader remembers last used upload directory (garvinhicking) * Add... X-Git-Tag: 0.9.1~14 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=41feb41ef8043e2dd4b52a6d9e7ae05f62c12587;p=s9y.git * Media uploader remembers last used upload directory (garvinhicking) * Add "Precedence: Bulk" headers to sent mails (garvinhicking) --- diff --git a/docs/NEWS b/docs/NEWS index 004e0aa..2c6da8b 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 0.9.2 () ------------------------------------------------------------------------ + * Media uploader remembers last used upload directory (garvinhicking) + + * Add "Precedence: Bulk" headers to sent mails (garvinhicking) + * Fix bug #1371893: Category write permissions are not properly evaluated when writing into a category that a user has no access to. Thanks to cydvicious! (garvinhicking) diff --git a/include/admin/images.inc.php b/include/admin/images.inc.php index a32badb..77fcbbf 100644 --- a/include/admin/images.inc.php +++ b/include/admin/images.inc.php @@ -381,6 +381,7 @@ switch ($serendipity['GET']['adminAction']) { return; } + serendipity_restoreVar($serendipity['COOKIE']['addmedia_directory'], $serendipity['GET']['only_path']); ?> @@ -493,6 +494,8 @@ switch ($serendipity['GET']['adminAction']) { iNode = document.getElementById('upload_form'); iNode.parentNode.insertBefore(fields, iNode); + + document.getElementById(targetdir.id).selectedIndex = document.getElementById('target_directory_' + (fieldcount - 1)).selectedIndex; } var inputStorage = new Array(); @@ -514,6 +517,12 @@ switch ($serendipity['GET']['adminAction']) { } } + function rememberOptions() { + td = document.getElementById('target_directory_2'); + td_val = td.options[td.selectedIndex].value; + SetCookie("addmedia_directory", td_val); + } + function debugField(id) { alert(id + ': ' + document.getElementById(id).value); } @@ -546,7 +555,7 @@ switch ($serendipity['GET']['adminAction']) { } -
+
@@ -554,7 +563,7 @@ switch ($serendipity['GET']['adminAction']) { $imgsel_val) { echo ' ' . "\n"; } diff --git a/include/functions.inc.php b/include/functions.inc.php index 654ee55..e739a4e 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -296,6 +296,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL $headers[] = 'X-Engine: PHP/'. phpversion(); $headers[] = 'Message-ID: <'. md5(microtime() . uniqid(time())) .'@'. $_SERVER['HTTP_HOST'] .'>'; $headers[] = 'MIME-Version: 1.0'; + $headers[] = 'Precedence: bulk'; $headers[] = 'Content-Type: text/plain; charset="' . LANG_CHARSET .'"'; return mail($to, $subject, $message, implode("\n", $headers));