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)
return;
}
+ serendipity_restoreVar($serendipity['COOKIE']['addmedia_directory'], $serendipity['GET']['only_path']);
?>
<?php echo ADD_MEDIA_BLAHBLAH; ?>
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();
}
}
+ 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);
}
}
</script>
- <form action="?" method="POST" id="uploadform" enctype="multipart/form-data">
+ <form action="?" method="POST" id="uploadform" enctype="multipart/form-data" onsubmit="rememberOptions()">
<div>
<?php echo serendipity_setFormToken(); ?>
<input type="hidden" name="serendipity[action]" value="admin" />
<input type="hidden" name="serendipity[adminAction]" value="add" />
<?php
if (isset($image_selector_addvars) && is_array($image_selector_addvars)) {
- // These variables may come frmo serendipity_admin_image_selector.php to show embedded upload form
+ // These variables may come from serendipity_admin_image_selector.php to show embedded upload form
foreach($image_selector_addvars AS $imgsel_key => $imgsel_val) {
echo ' <input type="hidden" name="serendipity[' . htmlspecialchars($imgsel_key) . ']" value="' . htmlspecialchars($imgsel_val) . '" />' . "\n";
}
$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));