From 04e65823d70d448400d3be7f0b3244ea8658834d Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 10 Aug 2010 05:58:22 -0700 Subject: [PATCH] more post branch bug fixes --- .htaccess | 2 +- mod/dfrn_notify.php | 2 +- mod/message.php | 6 +-- mod/photo.php | 3 ++ view/acl_selectors.php | 4 +- view/head.tpl | 2 +- view/msg-header.tpl | 97 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 108 insertions(+), 8 deletions(-) create mode 100644 view/msg-header.tpl diff --git a/.htaccess b/.htaccess index cb5cba8c..eb30198b 100644 --- a/.htaccess +++ b/.htaccess @@ -4,7 +4,7 @@ AddType application/x-java-archive .jar RewriteEngine on - + # Rewrite current-style URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index a631434f..7b73344d 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -87,7 +87,7 @@ function dfrn_notify_post(&$a) { '$fn' => $r[0]['name'], '$title' => $msg['title'], '$body' => strip_tags(bbcode($msg['body'])) - ); + )); $res = mail($r[0]['email'], t("New mail received at ") . $a->config['sitename'], $email_tpl,t("From: Administrator@") . $_SERVER[SERVER_NAME] ); diff --git a/mod/message.php b/mod/message.php index 3aac2ec2..549ce434 100644 --- a/mod/message.php +++ b/mod/message.php @@ -54,7 +54,7 @@ function message_post(&$a) { dbesc($subject), dbesc($body), 0, - 0, + 1, 0, dbesc($uri), dbesc($replyto), @@ -144,7 +144,7 @@ function message_content(&$a) { if(($a->argc > 1) && ($a->argv[1] == 'new')) { - $tpl = file_get_contents('view/jot-header.tpl'); + $tpl = file_get_contents('view/msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); @@ -248,7 +248,7 @@ function message_content(&$a) { require_once("include/bbcode.php"); - $tpl = file_get_contents('view/jot-header.tpl'); + $tpl = file_get_contents('view/msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); diff --git a/mod/photo.php b/mod/photo.php index 6e4d981d..6174b10a 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -112,6 +112,9 @@ function photo_init(&$a) { } header("Content-type: image/jpeg"); + header('Expires: ' . datetime_convert('UTC','UTC', 'now + 30 minutes', 'D, d M Y H:i:s' . ' GMT')); + header('Expires: ' . datetime_convert('UTC','UTC', 'now + 30 minutes', 'D, d M Y H:i:s' . ' GMT')); + header("Cache-Control: max-age=3600, must-revalidate"); echo $data; killme(); return; //NOTREACHED diff --git a/view/acl_selectors.php b/view/acl_selectors.php index 71c24472..c0d3ddcd 100644 --- a/view/acl_selectors.php +++ b/view/acl_selectors.php @@ -46,7 +46,7 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p $o .= "