Skip to content
Permalink
Browse files

added log date and type to remove-log notification email; updates #240

  • Loading branch information...
following5 committed May 25, 2015
1 parent 1df52c4 commit 6fd3c3ddf65c26216e28a4595d7a3160d0ff93d1
Showing with 10 additions and 3 deletions.
  1. +2 −0 htdocs/lang/de/ocstyle/email/removed_log.email
  2. +8 −3 htdocs/removelog.php
@@ -3,6 +3,8 @@ Hallo %log_owner%,
%cache_owner% hat deinen Logeintrag für den Cache "%cache_name%" gelöscht
(http://opencaching.de/%cache_wp%).

%log_date%: %log_type%

%log_text%

%comment%
@@ -51,13 +51,16 @@
`log_types`.`icon_small` AS `icon_small`,
`user`.`username` as `log_username`,
`caches`.`wp_oc`,
`cache_status`.`allow_user_view`
FROM `log_types`, `cache_logs`, `caches`, `user`, `cache_status`
`cache_status`.`allow_user_view`,
IFNULL(`sys_trans_text`.`text`,`log_types`.`en`) AS `logtype_name`
FROM `cache_logs`, `caches`, `user`, `cache_status`, `log_types`
LEFT JOIN `sys_trans_text` ON `sys_trans_text`.`trans_id`=`log_types`.`trans_id` AND `sys_trans_text`.`lang`='&2'
WHERE `cache_logs`.`id`='&1'
AND `cache_logs`.`user_id`=`user`.`user_id`
AND `caches`.`cache_id`=`cache_logs`.`cache_id`
AND `caches`.`status`=`cache_status`.`id`
AND `log_types`.`id`=`cache_logs`.`type`", $log_id);
AND `log_types`.`id`=`cache_logs`.`type`
", $log_id, $opt['template']['locale']);
//log exists?
if (mysql_num_rows($log_rs) == 1)
@@ -131,6 +134,8 @@
$email_content = mb_ereg_replace('%cache_owner%', $cache_owner_record['username'], $email_content);
$email_content = mb_ereg_replace('%cache_name%', $log_record['cache_name'], $email_content);
$email_content = mb_ereg_replace('%cache_wp%', $log_record['wp_oc'], $email_content);
$email_content = mb_ereg_replace('%log_date%', date($opt['locale'][$locale]['format']['phpdate'], strtotime($log_record['log_date'])), $email_content);
$email_content = mb_ereg_replace('%log_type%', $log_record['logtype_name'], $email_content);
$email_content = mb_ereg_replace('%log_text%', $logtext, $email_content);
$email_content = mb_ereg_replace('%comment%', $message, $email_content);

0 comments on commit 6fd3c3d

Please sign in to comment.
You can’t perform that action at this time.