Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Leed-market
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Adrien Dorsaz
Leed-market
Commits
fa5bca3f
Commit
fa5bca3f
authored
Mar 11, 2014
by
Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create openanon.plugin.disabled.php
parent
4b949f51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
openanon/openanon.plugin.disabled.php
openanon/openanon.plugin.disabled.php
+21
-0
No files found.
openanon/openanon.plugin.disabled.php
0 → 100644
View file @
fa5bca3f
<?php
/*
@name Open Anon
@author Olivier <http://j.cybride.net/olb>
@link http://j.cybride.net/olb
@licence CC by nc sa http://creativecommons.org/licenses/by-nc-sa/2.0/fr/
@version 1.0.0
@description Used to open a link in anonymous way
@note Usage of JS Lib NoReferef (https://github.com/knu/noreferrer)
*/
function
openanon_plugin_button
(
&
$event
){
$requete
=
'SELECT link FROM '
.
MYSQL_PREFIX
.
'event WHERE id = '
.
$event
->
getId
();
$query
=
mysql_query
(
$requete
);
$result
=
mysql_fetch_row
(
$query
);
$link
=
$result
[
0
];
echo
'<a title="'
.
_t
(
'P_OPENANON_TITLE'
)
.
'" target="_blank" href="'
.
$link
.
'" rel="noreferrer">'
.
_t
(
'P_OPENANON_LINKNAME'
)
.
'</a>'
;
}
Plugin
::
addHook
(
"event_post_top_options"
,
"openanon_plugin_button"
);
Plugin
::
addJs
(
"/js/jquery.noreferrer.js"
);
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