Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito - PHP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
37
Issues
37
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito - PHP
Commits
5e8ef58b
Commit
5e8ef58b
authored
Feb 14, 2015
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated invisimail to 7.x-1.2
parent
5ac4f2b0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
342 additions
and
281 deletions
+342
-281
sites/all/modules/invisimail/LICENSE.txt
sites/all/modules/invisimail/LICENSE.txt
+333
-268
sites/all/modules/invisimail/invisimail.api.php
sites/all/modules/invisimail/invisimail.api.php
+0
-1
sites/all/modules/invisimail/invisimail.info
sites/all/modules/invisimail/invisimail.info
+3
-4
sites/all/modules/invisimail/invisimail.module
sites/all/modules/invisimail/invisimail.module
+6
-8
No files found.
sites/all/modules/invisimail/LICENSE.txt
View file @
5e8ef58b
This diff is collapsed.
Click to expand it.
sites/all/modules/invisimail/invisimail.api.php
View file @
5e8ef58b
<?php
// $Id: invisimail.api.php,v 1.1.2.1 2010/11/18 22:36:56 crell Exp $
/**
* Defines encoders available to invisimail to get turned into formatters.
...
...
sites/all/modules/invisimail/invisimail.info
View file @
5e8ef58b
; $Id: invisimail.info,v 1.1.4.1.2.2 2010/11/18 21:01:13 crell Exp $
name = Invisimail
description = Attempts to thwart spam-bots by encoding email addresses.
dependencies[] = filter
core = 7.x
files[] = invisimail.module
; Information added by
drupal.org packaging script on 2011-01-06
version = "7.x-1.
1
"
; Information added by
Drupal.org packaging script on 2015-02-12
version = "7.x-1.
2
"
core = "7.x"
project = "invisimail"
datestamp = "1
294290657
"
datestamp = "1
423771385
"
sites/all/modules/invisimail/invisimail.module
View file @
5e8ef58b
<?php
// $Id: invisimail.module,v 1.3.4.17.2.19 2011/01/06 05:08:42 crell Exp $
define
(
'INVISIMAIL_MAILTO_ASCII'
,
'mailto:'
);
/**
* @file
* This module provides a filter that will search content for email addresses
...
...
@@ -266,7 +264,7 @@ function invisimail_encode_string($string, $encoder_id, array $settings = array(
watchdog
(
'invisimail'
,
'preg_replace_callback failed on first pass with preg_last_error() of !code with pattern %pattern on text: !text'
,
array
(
'!code'
=>
$error_code
,
'%pattern'
=>
check_plain
(
$pattern
_diff_link_text
),
'%pattern'
=>
check_plain
(
$pattern
s
[
'same_link'
]
),
'!text'
=>
check_plain
(
$phrase
),
),
WATCHDOG_ERROR
,
...
...
@@ -277,7 +275,7 @@ function invisimail_encode_string($string, $encoder_id, array $settings = array(
watchdog
(
'invisimail'
,
'preg_replace_callback failed on second pass with preg_last_error() of !code with pattern %pattern on text: !text'
,
array
(
'!code'
=>
$error_code
,
'%pattern'
=>
check_plain
(
$pattern
_same_link_text
),
'%pattern'
=>
check_plain
(
$pattern
s
[
'diff_link'
]
),
'!text'
=>
check_plain
(
$phrase
),
),
WATCHDOG_ERROR
,
...
...
@@ -446,12 +444,12 @@ function invisimail_field_formatter_settings_summary($field, $instance, $view_mo
$summary
=
''
;
if
(
$display
[
'
typ
e'
]
==
'invisimail'
)
{
if
(
$display
[
'
modul
e'
]
==
'invisimail'
)
{
$encoder
=
invisimail_get_encoder
(
$settings
[
'encoder'
]);
$summary
=
t
(
'Email addresses will be encoded using the %encoder encoder.'
,
array
(
'%encoder'
=>
$encoder
[
'label'
]));
}
return
t
(
'Hello world'
)
;
return
$summary
;
}
// ---------- Implementations of the core engine ---------- //
...
...
@@ -502,7 +500,7 @@ function invisimail_encoder_html_entities_settings($form, &$form_state, $setting
function
invisimail_encoder_html_entities_encode
(
$string
,
$settings
=
array
(),
$is_link
=
FALSE
)
{
$encode
=
invisimail_encode_html
(
$string
);
if
(
$settings
[
'link'
]
&&
!
$is_link
)
{
if
(
isset
(
$settings
[
'link'
])
&&
$settings
[
'link'
]
&&
!
$is_link
)
{
$encode
=
'<a href="'
.
INVISIMAIL_MAILTO_ASCII
.
"
$encode
\"
>
$encode
</a>"
;
}
...
...
@@ -551,7 +549,7 @@ function invisimail_encoder_js_entities_encode($string, $settings = array(), $is
return
$encode
;
}
if
(
$settings
[
'link'
])
{
if
(
isset
(
$settings
[
'link'
])
&&
$settings
[
'link'
])
{
$mailto
=
INVISIMAIL_MAILTO_ASCII
;
$encode
=
"<a href=
\"
{
$mailto
}{
$encode
}
\"
>
{
$encode
}
</a>"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment