Last change
on this file since 30771 was
27569,
checked in by plg, 11 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 | /* |
---|
3 | Plugin Name: Protect Notification |
---|
4 | Version: 2.3.a |
---|
5 | Description: Replace the webmaster email address by a fake address in notification emails |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid= |
---|
7 | Author: plg |
---|
8 | Author URI: http://piwigo.wordpress.com |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) |
---|
12 | { |
---|
13 | die('Hacking attempt!'); |
---|
14 | } |
---|
15 | |
---|
16 | add_event_handler('get_webmaster_mail_address', 'protect_switch_webmaster_email'); |
---|
17 | function protect_switch_webmaster_email($email) |
---|
18 | { |
---|
19 | return 'no-reply@'.$_SERVER['HTTP_HOST']; |
---|
20 | } |
---|
21 | |
---|
22 | add_event_handler('loc_end_page_tail', 'protect_remove_contact_link_footer'); |
---|
23 | function 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.