diff --git a/.htaccess b/.htaccess
index 6a0c5ef1..ba0fda88 100644
--- a/.htaccess
+++ b/.htaccess
@@ -30,9 +30,12 @@ DefaultType image/jpeg
ExpiresActive On
- ExpiresDefault "access plus 1 month"
- ExpiresByType text/html "now"
- ExpiresByType text/plain "now"
+
+ Header set Cache-Control "public, max-age=2629743"
+ ExpiresDefault "access plus 1 month"
+
+ #ExpiresByType text/html "now"
+ #ExpiresByType text/plain "now"
diff --git a/contrib/admin/theme.php b/contrib/admin/theme.php
index edd9877d..038b9be7 100644
--- a/contrib/admin/theme.php
+++ b/contrib/admin/theme.php
@@ -32,12 +32,36 @@ class AdminPageTheme extends Themelet {
";
$page->add_block(new Block("Misc Admin Tools", $html));
-
+
+ /* First check
+ Requires you to click the checkbox to enable the delete by query form */
+ $dbqcheck = "
+ if(document.getElementById("dbqcheck").checked == false){
+ document.getElementById("dbqtags").disabled = true;
+ document.getElementById("dbqsubmit").disabled = true;
+ }else{
+ document.getElementById("dbqtags").disabled = false;
+ document.getElementById("dbqsubmit").disabled = false;
+ }";
+
+ /* Second check
+ Requires you to confirm the deletion by clicking ok. */
$html = "
- ".make_form(make_link("admin_utils"))."
+ "
+
+ .make_form(make_link("admin_utils"),"post",false,false,"return checkform()")."
+
-
-
+
+
";
$page->add_block(new Block("Delete by Query", $html));
diff --git a/contrib/handle_flash/main.php b/contrib/handle_flash/main.php
index f63f988d..8ee32fc0 100644
--- a/contrib/handle_flash/main.php
+++ b/contrib/handle_flash/main.php
@@ -7,7 +7,6 @@
class FlashFileHandler extends DataHandlerExtension {
protected function create_thumb($hash) {
- // FIXME: scale image, as not all boards use 192x192
copy("ext/handle_flash/thumb.jpg", warehouse_path("thumbs", $hash));
}
diff --git a/contrib/handle_mp3/main.php b/contrib/handle_mp3/main.php
index ba02b3c5..76187638 100644
--- a/contrib/handle_mp3/main.php
+++ b/contrib/handle_mp3/main.php
@@ -7,7 +7,6 @@
class MP3FileHandler extends DataHandlerExtension {
protected function create_thumb($hash) {
- // FIXME: scale image, as not all boards use 192x192
copy("ext/handle_mp3/thumb.jpg", warehouse_path("thumbs", $hash));
}
diff --git a/contrib/handle_svg/main.php b/contrib/handle_svg/main.php
index e9e94c25..f028e178 100644
--- a/contrib/handle_svg/main.php
+++ b/contrib/handle_svg/main.php
@@ -40,7 +40,6 @@ class SVGFileHandler implements Extension {
// exec("convert images/{$ha}/{$hash}[0] -geometry {$w}x{$h} -quality {$q} jpg:thumbs/{$ha}/{$hash}");
// }
// else {
- // FIXME: scale image, as not all boards use 192x192
copy("ext/handle_svg/thumb.jpg", warehouse_path("thumbs", $hash));
// }
}
diff --git a/contrib/home/theme.php b/contrib/home/theme.php
index 5d6bff31..21364625 100644
--- a/contrib/home/theme.php
+++ b/contrib/home/theme.php
@@ -7,6 +7,7 @@ class HomeTheme extends Themelet {
$sitename
+