summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorHakan Sandell <sandell.hakan@gmail.com>2010-11-13 15:29:49 +0100
committerHakan Sandell <sandell.hakan@gmail.com>2010-11-13 15:29:49 +0100
commit14928129ac979d50664cff367377db5364f8e663 (patch)
treec244ebec8400361b7f084503f3ae40b2142647d5 /inc/common.php
parentbcb79ff3b3b63c74a93cdf4762fa0cd1bb28d17a (diff)
parentebb29737d32bc331541f78a1a47f33ba33919938 (diff)
downloadrpg-14928129ac979d50664cff367377db5364f8e663.tar.gz
rpg-14928129ac979d50664cff367377db5364f8e663.tar.bz2
Merge branch 'master' of git://github.com/splitbrain/dokuwiki
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php22
1 files changed, 16 insertions, 6 deletions
diff --git a/inc/common.php b/inc/common.php
index 3e760419f..18f782788 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1134,12 +1134,7 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){
$subject = '['.utf8_substr($conf['title'], 0, 20).'...] '.$subject;
}
- $from = $conf['mailfrom'];
- $from = str_replace('@USER@',$_SERVER['REMOTE_USER'],$from);
- $from = str_replace('@NAME@',$INFO['userinfo']['name'],$from);
- $from = str_replace('@MAIL@',$INFO['userinfo']['mail'],$from);
-
- mail_send($to,$subject,$text,$from,'',$bcc);
+ mail_send($to,$subject,$text,$conf['mailfrom'],'',$bcc);
}
/**
@@ -1271,6 +1266,21 @@ function dformat($dt=null,$format=''){
}
/**
+ * Formats a timestamp as ISO 8601 date
+ *
+ * @author <ungu at terong dot com>
+ * @link http://www.php.net/manual/en/function.date.php#54072
+ */
+function date_iso8601($int_date) {
+ //$int_date: current date in UNIX timestamp
+ $date_mod = date('Y-m-d\TH:i:s', $int_date);
+ $pre_timezone = date('O', $int_date);
+ $time_zone = substr($pre_timezone, 0, 3).":".substr($pre_timezone, 3, 2);
+ $date_mod .= $time_zone;
+ return $date_mod;
+}
+
+/**
* return an obfuscated email address in line with $conf['mailguard'] setting
*
* @author Harry Fuecks <hfuecks@gmail.com>