source: extensions/protect_notification/main.inc.php @ 27569

Last change on this file since 27569 was 27569, checked in by plg, 7 years ago

new plugin to replace the webmaster email address by a fake address in notification emails

File size: 704 bytes
Line 
1<?php
2/*
3Plugin Name: Protect Notification
4Version: 2.3.a
5Description: Replace the webmaster email address by a fake address in notification emails
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=
7Author: plg
8Author URI: http://piwigo.wordpress.com
9*/
10
11if (!defined('PHPWG_ROOT_PATH'))
12{
13  die('Hacking attempt!');
14}
15
16add_event_handler('get_webmaster_mail_address', 'protect_switch_webmaster_email');
17function protect_switch_webmaster_email($email)
18{
19  return 'no-reply@'.$_SERVER['HTTP_HOST'];
20}
21
22add_event_handler('loc_end_page_tail', 'protect_remove_contact_link_footer');
23function protect_remove_contact_link_footer()
24{
25  global $template;
26 
27  $template->assign('CONTACT_MAIL', null);
28}
29?>
Note: See TracBrowser for help on using the repository browser.