Volltext: "Pillenwarnung"
/* 0.1 - initial release 0.2 - new option: rewrite mail addresses with [at] and [dot] 0.3 - userdefined placeholders for [at] and [dot] 0.4 - new option: links can be open in new window (default: off) 0.5 - support for SqlTablePrefix */ class NP_AutoLink extends NucleusPlugin { function getName() { return 'AutoLink'; } function getAuthor() { return 'Kai Greve'; } function getURL() { return 'http://kgblog.de/'; } function getVersion() { return '0.5'; } function getDescription() { return 'Automatically creates links for internet and mail addresses'; } function install() { $this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes'); $this->createOption('NewWindow','Open links in a new window?','yesno','no'); $this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes'); $this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes'); $this->createOption('at','Placeholder for @','text','[at]'); $this->createOption('dot','Placeholder for .','text','[dot]'); } function getEventList() { return array('PreItem', 'PreComment'); } function Treatment($_text) { global $CONF, $blog; if ($this->getOption('NewWindow') == 'yes') { $nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\""; } if ($this->getOption('InternetAddress') == 'yes') { $_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text); $_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text); } $at = $this->getOption('at'); $dot = $this->getOption('dot'); if ($this->getOption('MailAddress') == 'yes') { if ($this->getOption('RewriteMailAddress') == 'no') { $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text); } else { $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text); } } if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){ $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text); } return $_text; } function event_PreItem($_data) { $_data[item]->body = $this->Treatment($_data[item]->body); $_data[item]->more = $this->Treatment($_data[item]->more); } function event_PreComment($_data) { $_data['comment']['body'] = $this->Treatment($_data['comment']['body']); } function supportsFeature ($what) { switch ($what) { case 'SqlTablePrefix': return 1; default: return 0; } } } ?>26 September
Pillenwarnung
Wie es aussieht, kommen doch in letzter Zeit von den rastlosen Zeitzeugen des Eve&Rave Netzwerkes vermehrt Pillenarnungen hereingeflattert (Warnungen vor Pillen mit skurrilen und teils gefδhrlichen Inhaltsstoffen). Ich halte es fόr eine gute Idee, solche Warnungen einfach mal ins Blog zu pasten. Entsprechend gibt es in diesem Blog nun also auch eine Rubrik "Pillenwarnug".Hier nun also die aktuelle von heute:
Pillen mit Meta-Chlorphenylpiperazin und Buflomedil im Umlauf!
http://www.eve-rave.net/abfahrer/drugchecking.sp?text=300&page=0
Druckerfreundliche Version (Format: PDF, Grφίe: 171 KB, 5 Seiten)
http://www.eve-rave.net/abfahrer/download/eve-rave/dc130.pdf
Derzeit sind Ecstasy-Falsifikate mit Meta-Chlorphenylpiperazin (m-CPP) im Umlauf. Es handelt sich dabei um rφtlich orange Pillen mit dem Logo »Kreuz«, um weiίe, farbig gesprenkelte Pillen mit dem Logo »Yin-Yang« und um weiί-grόnliche, farbig gesprenkelte Pillen mit dem Logo »Yin-Yang«. Die Rόckseiten der Pillen sind jeweils mit einer Bruchrille versehen. Nach dem Konsum von Pillen mit dem Wirkstoff m-CPP kommt es oft zu heftigen und unangenehmen Nebenwirkungen, wobei meistens nur sehr wenig eines erwόnschten psychotrop wirkenden Effekts zu spόren ist.
Des weiteren sind diverse Pillen mit dem Wirkstoff Buflomedil (verschreibungspflichtiges Medikament) aufgetaucht. Es handelt sich dabei um hellblaue Pillen mit dem Logo »Schleife«, um blaue Pillen mit dem Logo »Mitsubishi«, um braune, dunkelbraun gesprenkelte Pillen mit dem Logo »Herz« und um weiίe Pillen mit dem Logo »G« (Spiegelbild). Die Rόckseiten dieser Pillen haben keine Bruchrille.
Mit internetten Grόίen, Hans Cousto
[Druckversion direkt zum Drucker senden]
Geschrieben von harko um 17:47:19 Uhr - Kategorie: Entheogene , Subkultur , Pillenwarnung
Karma: -53 [+/-]
Trackback
Derzeit keine Trackbacks vorhanden.
Mit dieser TrackBack url kann der Beitrag verlinkt werden (right-click, copy link target).
Wenn Ihr Blog keine Trackbacks anbietet, kann Ihr Trackback manuell durch dieses Formular eingebaut werden .
Comments
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Kevinror schrieb:
Nicely put. Thanks a lot!
how to write a introduction paragraph for an essay <a href="https://englishessayhelp.com/">homework help cpm</a> dissertation writers
how to write a introduction paragraph for an essay <a href="https://englishessayhelp.com/">homework help cpm</a> dissertation writers
Erstellt am 09/03/22 um 17:12:12
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RandyBip schrieb:
Tips certainly used.. how to write an admission essay for graduate school <a href=https://essaypromaster.com/#>help dissertation</a> dissertation definition
Erstellt am 09/04/22 um 02:10:15
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvenlyday schrieb:
Fantastic posts, Thanks a lot! <a href=https://theessayswriters.com/#>write my papers</a> high school vs college essay
Erstellt am 09/06/22 um 07:11:49
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
AbrahamDauct schrieb:
Thanks, Plenty of stuff!
cheap law essay writing service <a href=https://essaypromaster.com/#>my homework</a> paper writing service
cheap law essay writing service <a href=https://essaypromaster.com/#>my homework</a> paper writing service
Erstellt am 09/06/22 um 15:42:06
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Great information. Thanks a lot!
how to write a narrative essay introduction <a href=https://orangepornhub.com>how to write a basic essay</a> best cv writing service london
how to write a narrative essay introduction <a href=https://orangepornhub.com>how to write a basic essay</a> best cv writing service london
Erstellt am 09/10/22 um 22:56:55
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Thank you! Plenty of data.
i need help writing an argumentative essay <a href="https://essayssolution.com">write my essay</a> essay writing service recommendation
i need help writing an argumentative essay <a href="https://essayssolution.com">write my essay</a> essay writing service recommendation
Erstellt am 09/10/22 um 23:25:53
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
You've made the point.
english essay helper <a href=https://flowleadsua.com>essay writing scholarships</a> technical writing services
english essay helper <a href=https://flowleadsua.com>essay writing scholarships</a> technical writing services
Erstellt am 09/11/22 um 09:53:21
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Thanks! Ample tips!
help with essay <a href=https://essayssolution.com>essay rewriter</a> custom written dissertation
help with essay <a href=https://essayssolution.com>essay rewriter</a> custom written dissertation
Erstellt am 09/11/22 um 12:06:01
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
You expressed this really well!
easy college essay prompts <a href="https://freshappshere.com">how to write an argument essay</a> australian essay writing service
easy college essay prompts <a href="https://freshappshere.com">how to write an argument essay</a> australian essay writing service
Erstellt am 09/11/22 um 12:27:36
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Nicely put. Appreciate it!
best websites for essays <a href=https://essaypromaster.com>which is the best essay writing service</a> me as a writer essay
best websites for essays <a href=https://essaypromaster.com>which is the best essay writing service</a> me as a writer essay
Erstellt am 09/11/22 um 22:19:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
You've made the point!
essay writing services singapore <a href=https://orangepornhub.com>https://orangepornhub.com/</a> professional cv and resume writing services
essay writing services singapore <a href=https://orangepornhub.com>https://orangepornhub.com/</a> professional cv and resume writing services
Erstellt am 09/12/22 um 00:32:11
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Really a good deal of terrific advice!
best article writing service <a href="https://homeworkcourseworkh...">essays writers</a> writers help
best article writing service <a href="https://homeworkcourseworkh...">essays writers</a> writers help
Erstellt am 09/12/22 um 00:55:57
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Great data. With thanks.
college essay about yourself <a href=https://essaypromaster.com>best custom essays</a> writing website
college essay about yourself <a href=https://essaypromaster.com>best custom essays</a> writing website
Erstellt am 09/12/22 um 10:29:00
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Whoa tons of beneficial data.
essay writing scholarships <a href=https://essaywriting4you.com>argumentative essay</a> custom writing discount code
essay writing scholarships <a href=https://essaywriting4you.com>argumentative essay</a> custom writing discount code
Erstellt am 09/12/22 um 12:38:52
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alvinmug schrieb:
Nicely put. Appreciate it.
why am i in college essay <a href="https://freshapps.space">bad college application essays</a> which essay writing service is the best
why am i in college essay <a href="https://freshapps.space">bad college application essays</a> which essay writing service is the best
Erstellt am 09/12/22 um 13:03:43
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JosephPot schrieb:
Nicely spoken really! !
<a href="https://essaywritingservice...">https://essaywritingserviceahrefs.com/</a> best custom essay sites
<a href="https://essaywritingservice...">https://essaywritingserviceahrefs.com/</a> best custom essay sites
Erstellt am 02/21/23 um 00:51:47
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Charlesreeft schrieb:
You actually said that superbly.
best website to buy essay <a href="https://quality-essays.com/">order essay cheap</a> buy english essays online
best website to buy essay <a href="https://quality-essays.com/">order essay cheap</a> buy english essays online
Erstellt am 02/26/23 um 01:31:45
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Robertnox schrieb:
You actually reported that fantastically.
research proposal for phd application <a href="https://dissertationwriting...">online dissertation help veroffentlichen</a> help with writing dissertation
research proposal for phd application <a href="https://dissertationwriting...">online dissertation help veroffentlichen</a> help with writing dissertation
Erstellt am 02/26/23 um 19:01:49
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Shawnlok schrieb:
Cheers! Great stuff.
essay help online chat <a href="https://englishessayhelp.com/">help me essay</a> essay homework help
essay help online chat <a href="https://englishessayhelp.com/">help me essay</a> essay homework help
Erstellt am 02/27/23 um 17:05:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
AndrewDox schrieb:
Amazing all kinds of wonderful information!
aleks i cant do my homework <a href="https://homeworkcourseworkh...">do my homework 123 reviews</a> pay someone to do my homework high school
aleks i cant do my homework <a href="https://homeworkcourseworkh...">do my homework 123 reviews</a> pay someone to do my homework high school
Erstellt am 02/28/23 um 13:33:30
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
StevenCiz schrieb:
Cheers. An abundance of advice.
research paper writing service free <a href="https://service-essay.com/">essay writing service that does half of paper</a> pay to have a paper written
research paper writing service free <a href="https://service-essay.com/">essay writing service that does half of paper</a> pay to have a paper written
Erstellt am 03/01/23 um 07:08:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JerryGlori schrieb:
You actually expressed this perfectly.
buy term papers essays <a href="https://ouressays.com/">proposal essay</a> academic research proposal
buy term papers essays <a href="https://ouressays.com/">proposal essay</a> academic research proposal
Erstellt am 03/01/23 um 20:45:20
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Timothyvilky schrieb:
Cheers! Plenty of data!
paper write <a href="https://essaypromaster.com/">write my sociology paper</a> write my paper for money
paper write <a href="https://essaypromaster.com/">write my sociology paper</a> write my paper for money
Erstellt am 03/02/23 um 10:45:35
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
HectorMen schrieb:
Nicely put. Thank you!
vow writing service <a href="https://topswritingservices...">legit essay writing service</a> essay writing prompts
vow writing service <a href="https://topswritingservices...">legit essay writing service</a> essay writing prompts
Erstellt am 03/03/23 um 01:01:54
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JosephNeusa schrieb:
Thanks a lot, Lots of facts.
thesis service <a href="https://writingthesistops.com/">thesis in an essay</a> construct a thesis statement
thesis service <a href="https://writingthesistops.com/">thesis in an essay</a> construct a thesis statement
Erstellt am 03/03/23 um 12:19:48
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
HectorMen schrieb:
You have made your point!
write my essay for cheap <a href="https://essayssolution.com/">essay writier</a> write my essay online
write my essay for cheap <a href="https://essayssolution.com/">essay writier</a> write my essay online
Erstellt am 03/04/23 um 00:26:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
HectorMen schrieb:
Many thanks. An abundance of tips!
writing argumentative essay <a href="https://theessayswriters.com/">write articles for me</a> can i pay someone to write my essay for me
writing argumentative essay <a href="https://theessayswriters.com/">write articles for me</a> can i pay someone to write my essay for me
Erstellt am 03/04/23 um 11:59:29
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Patrickpal schrieb:
Amazing quite a lot of amazing material.
<a href="https://bestpaperwritingser...">buy a literature review paper</a> buying papers for college <a href="https://bestonlinepaperwrit...">custom paper</a> paying someone to write your paper
<a href="https://bestpaperwritingser...">buy a literature review paper</a> buying papers for college <a href="https://bestonlinepaperwrit...">custom paper</a> paying someone to write your paper
Erstellt am 03/05/23 um 18:41:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
canadian online pharmacy schrieb:
<a href="https://alglobalpharma.com/">best online pharmacies reviews</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>canadianpharmacynoprescription.net</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>canadianpharmacynoprescription.net</a>
Erstellt am 04/26/23 um 22:40:13
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
canada drugs online review schrieb:
<a href="https://alglobalpharma.com/">best canadian pharcharmy online</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>cheap drugs canada</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>cheap drugs canada</a>
Erstellt am 04/29/23 um 18:46:10
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
online discount pharmacy schrieb:
<a href="https://alglobalpharma.com/">most trusted online pharmacy</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>canada medicine</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>canada medicine</a>
Erstellt am 05/01/23 um 15:40:19
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JosdephNeask schrieb:
Aviator Π‘ΠΏΡΠ°ΠΉΠ±
<a href=https://sites.google.com/vi...>aviator spribe</a>
aviator
<a href=https://sites.google.com/vi...>Aviator Spribe Π΄ΠΆΠ΅ΠΊΠΏΠΎΡ</a>
<a href=https://sites.google.com/vi...>aviator spribe</a>
aviator
<a href=https://sites.google.com/vi...>Aviator Spribe Π΄ΠΆΠ΅ΠΊΠΏΠΎΡ</a>
Erstellt am 05/01/23 um 18:22:52
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
online prescription drugs schrieb:
<a href="https://alglobalpharma.com/">canadian pharcharmy online</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>mexican pharmacies online</a>
https://alglobalpharma.com/
<a href=https://alglobalpharma.com/>mexican pharmacies online</a>
Erstellt am 05/01/23 um 22:23:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
canadian pharmacies that ship to us schrieb:
<a href="https://canadianpharmaciest...">canada drug pharmacy</a>
https://canadianpharmaciest...
<a href=https://canadianpharmaciest...>online pharmacy without a prescription</a>
https://canadianpharmaciest...
<a href=https://canadianpharmaciest...>online pharmacy without a prescription</a>
Erstellt am 05/04/23 um 04:52:57
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
canada online pharmacy schrieb:
<a href="https://canadiandailymeds.com/">no prescription pharmacies</a>
https://canadiandailymeds.com/
<a href=https://canadiandailymeds.com/>most reliable canadian pharmacies</a>
https://canadiandailymeds.com/
<a href=https://canadiandailymeds.com/>most reliable canadian pharmacies</a>
Erstellt am 05/04/23 um 06:55:51
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
overseas online pharmacy schrieb:
<a href="https://canadianpharmsl.com/">online pharmacy canada</a>
https://canadianpharmsl.com/
<a href=https://canadianpharmsl.com/>canada drugs online</a>
https://canadianpharmsl.com/
<a href=https://canadianpharmsl.com/>canada drugs online</a>
Erstellt am 05/05/23 um 08:33:47
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Briianknish schrieb:
ΠΠ»ΠΈΠ½ΠΈΠΊΠ° Π³Π»Π°Π·Π½ΡΡ
Π±ΠΎΠ»Π΅Π·Π½Π΅ΠΉ. <a href="http://glaznaya-clinika-77.ru/">http://glaznaya-clinika-77.ru/</a>. Π₯ΠΈΡΡΡΠ³ΠΈΡ Π³Π»Π°Π·Π°.
Erstellt am 05/15/23 um 19:22:59
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Edwardmoida schrieb:
Aviator Spribe Π΄ΠΆΠ΅ΠΊΠΏΠΎΡ
<a href=https://sites.google.com/vi...>1Win Aviator ΠΈΠ³ΡΠ° Π² 1ΠΠΈΠ½ ΠΠ²ΠΈΠ°ΡΠΎΡ Π½Π° Π΄Π΅Π½ΡΠ³ΠΈ ΠΎΠ½Π»Π°ΠΉΠ½</a>
aviator
<a href=https://sites.google.com/vi...>ΠΠ°Π·ΠΈΠ½ΠΎ ΠΠ²ΠΈΠ°ΡΠΎΡ ΠΎΡΠΈΡΠΈΠ°Π»ΡΠ½ΡΠΉ ΡΠ°ΠΉΡ</a>
aviator spribe ΠΈΠ³ΡΠ°ΡΡ
<a href=https://sites.google.com/vi...>1Win Aviator ΠΈΠ³ΡΠ° Π² 1ΠΠΈΠ½ ΠΠ²ΠΈΠ°ΡΠΎΡ Π½Π° Π΄Π΅Π½ΡΠ³ΠΈ ΠΎΠ½Π»Π°ΠΉΠ½</a>
aviator
<a href=https://sites.google.com/vi...>ΠΠ°Π·ΠΈΠ½ΠΎ ΠΠ²ΠΈΠ°ΡΠΎΡ ΠΎΡΠΈΡΠΈΠ°Π»ΡΠ½ΡΠΉ ΡΠ°ΠΉΡ</a>
aviator spribe ΠΈΠ³ΡΠ°ΡΡ
Erstellt am 05/17/23 um 17:46:12
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
canada pharmacy online no prescription schrieb:
<a href="https://canadianpharmaceuti...">canadian rx</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>top rated canadian pharmacies online</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>top rated canadian pharmacies online</a>
Erstellt am 07/04/23 um 07:06:38
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
rx online no prior prescription schrieb:
<a href="https://canadianpharmaciesh...">overseas online pharmacies</a>
https://canadianpharmaciesh...
<a href=https://canadianpharmaciesh...>trust pharmacy</a>
https://canadianpharmaciesh...
<a href=https://canadianpharmaciesh...>trust pharmacy</a>
Erstellt am 07/08/23 um 22:41:23
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
reliable canadian pharmacy schrieb:
<a href="https://canadianpharmaceuti...">canadian medicine</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>pharmacy review</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>pharmacy review</a>
Erstellt am 07/11/23 um 04:01:15
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
international pharmacies schrieb:
<a href="https://canadianpharmaciest...">online pharmacy</a>
https://canadianpharmaciest...
<a href=https://canadianpharmaciest...>canada rx pharmacy</a>
https://canadianpharmaciest...
<a href=https://canadianpharmaciest...>canada rx pharmacy</a>
Erstellt am 07/13/23 um 01:11:15
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
HscubertGlume schrieb:
Erstellt am 08/19/23 um 10:48:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stevesnusera schrieb:
digifinex
<a href="https://btc-pulse.com/lunc-...">lunc crypto price prediction</a>
https://btc-pulse.com/meta-...
<a href="https://btc-pulse.com/lunc-...">lunc crypto price prediction</a>
https://btc-pulse.com/meta-...
Erstellt am 08/20/23 um 09:07:40
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RNS-MO-mom schrieb:
, , .
<a href=https://rns-50.ru/> </a> , , , . .
<a href=https://rns-50.ru/> </a> , , , . .
Erstellt am 08/31/23 um 18:09:15
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RNS-MO-bib schrieb:
, , .
<a href=https://rns-50.ru/> </a> , , , . .
<a href=https://rns-50.ru/> </a> , , , . .
Erstellt am 08/31/23 um 18:10:06
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JasonMon schrieb:
Aviator Spribe <a href=https://sites.google.com/vi...>ΠΠ½Π»Π°ΠΉΠ½ ΠΊΠ°Π·ΠΈΠ½ΠΎ Pin-Up</a> - ΠΈΠ³ΡΠ° Π² ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ΅, ΠΊΠΎΡΠΎΡΠ°Ρ ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΠΈΠ³ΡΠΎΠΊΠ°ΠΌ ΠΏΡΠΎΠ²Π΅ΡΠΈΡΡ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΡ ΡΠ΄Π°ΡΡ ΠΈ Π²ΡΠΈΠ³ΡΠ°ΡΡ Π΄Π΅Π½ΡΠ³ΠΈ. ΠΠ½Π° ΡΠΎΠ·Π΄Π°Π½Π° ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠ΅ΠΉ Spribe, ΡΠ°ΠΌΠ° Π·Π°Π½ΠΈΠΌΠ°Π΅ΡΡΡ Π½Π° ΡΠΎΠ·Π΄Π°Π½ΠΈΠΈ ΡΠ°Π·Π»ΠΈΡΠ½ΡΡ
Π²ΠΈΠ΄Π΅ΠΎ-ΡΠ»ΠΎΡΠΎΠ² ΡΠ°ΠΊ ΠΎΠ½Π»Π°ΠΉΠ½-ΠΈΠ³Ρ.
Π£ΡΠ°ΡΡΠ½ΠΈΠΊΠΈ Π΅ΡΠ»ΠΈ Π·Π°ΠΏΡΡΠΊΠ°ΡΡ ΠΈΠ³ΡΡ Π² Aviator Spribe <a href=https://sites.google.com/vi...>ΠΠ³ΡΠΎΠ²ΠΎΠΉ Π°Π²ΡΠΎΠΌΠ°Ρ Aviator (Spribe)</a> Π½Π° Π»ΡΠ±ΠΎΠΌ ΡΡΡΡΠΎΠΉΡΡΠ²Π΅, Π²ΠΊΠ»ΡΡΠ°Ρ ΠΊΠΎΠΌΠΏΡΡΡΠ΅ΡΡ, ΠΏΠ»Π°Π½ΡΠ΅ΡΡ ΠΈ ΠΌΠΎΠ±ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅Π»Π΅ΡΠΎΠ½Ρ. ΠΠ³ΡΠ° ΠΎΡΡΡΠ΅ΡΡΠ²Π»ΡΠ΅ΡΡΡ Π½Π° ΡΠΊΡΠ°Π½Π΅, Π½Π΅Π΄Π°Π»Π΅ΠΊΠΎ Π΅ΡΡΡ ΠΏΠΎΠ»Π΅ Ρ Π±Π΅Π³ΡΡΠΈΠΌ ΠΏΠΎ Π½ΠΈΠΌ ΡΠ°ΠΌΠΎΠ»Π΅ΡΠΎΠΌ. ΠΠ³ΡΠΎΠΊΠΈ ΡΡΠ°Π²ΡΡ Π΄Π΅Π½ΡΠ³ΠΈ Π½Π° Π²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ ΠΈΠ½ΡΠ΅ΡΠ²Π°Π», ΠΈ Π΅ΡΠ»ΠΈ ΡΠ°ΠΌΠΎΠ»Π΅Ρ ΠΏΠ΅ΡΠ΅Π»Π΅ΡΠ°Π΅Ρ Π½ΡΠΆΠ½ΠΎΠ΅ ΡΠ°ΡΡΡΠΎΡΠ½ΠΈΠ΅, ΠΊΠΎΡΠΎΡΡΡ ΠΏΠΎΠ»ΡΡΠ°ΡΡ Π²ΡΠΈΠ³ΡΡΡ.
ΠΠ΄Π½ΠΎΠΉ ΠΈΠ· ΠΊΠ»ΡΡΠ΅Π²ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΠ΅ΠΉ ΠΈΠ³ΡΡ Aviator Spribe ΡΠ²Π»ΡΠ΅ΡΡΡ ΡΠΎ, ΡΡΠΎ Π½Π΅ΠΉ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅Ρ Π½Π° Π±Π°Π·Π΅ ΡΠ΅Ρ Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ blockchain. ΠΡΠΎ ΠΎΠ·Π½Π°ΡΠ°Π΅Ρ, ΡΡΠΎ ΡΠ΅ΠΏΠ΅ΡΡ ΡΡΠ°Π½Π·Π°ΠΊΡΠΈΠΈ ΠΈ Π΄Π°Π½Π½ΡΠ΅ Ρ ΡΠ°Π½ΡΡΡΡ Π² ΡΠ°ΡΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΠΎΠΉ Π±Π°Π·Π΅ Π΄Π°Π½Π½ΡΡ , Π½Π΅ ΠΎΠ±Π΅ΡΠΏΠ΅ΡΠΈΠ²Π°Π΅Ρ Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡ ΠΆΠ΅ ΠΏΡΠΎΠ·ΡΠ°ΡΠ½ΠΎΡΡΡ ΠΈΠ³ΡΡ.
ΠΡΠΎΠΌΠ΅ ΡΠΎΠ³ΠΎ, Aviator Spribe <a href=https://sites.google.com/vi...>Aviator Spribe Π±ΠΎΠ½ΡΡ</a> - ΠΈΠΌΠ΅Π΅Ρ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ ΡΡΠΎΠ²Π½Π΅ΠΉ ΠΎΠ±ΡΠ΅ΠΉ, ΡΡΠΎ Π΄Π΅Π»Π°Π΅Ρ Π»Π°ΠΉΠ½ΠΎΠ»Π° ΠΏΡΠΈΠ²Π»Π΅ΠΊΠ°ΡΠ΅Π»ΡΠ½ΠΎΠΉ Π΄Π»Ρ ΠΈΠ³ΡΠΎΠΊΠΎΠ² ΡΠ°Π·Π½ΠΎΠ³ΠΎ ΡΡΠΎΠ²Π½Ρ ΠΎΠΏΡΡΠ°. ΠΠ°ΡΠΈΠ½Π°ΡΡΠΈΠ΅ ΠΌΠΎΠ³ΡΡ Π²ΡΠ±ΡΠ°ΡΡ Π±ΠΎΠ»Π΅Π΅ ΠΏΡΠΎΡΡΠΎΠΉ ΡΡΠΎΠ²Π΅Π½Ρ ΠΈ ΠΏΠΎΡΡΠ΅ΠΏΠ΅Π½Π½ΠΎ ΠΏΠ΅ΡΠ΅Ρ ΠΎΠ΄ΠΈΡΡ Π½Π° Π±ΠΎΠ»Π΅Π΅ ΡΠ»ΠΎΠΆΠ½ΡΠΉ, ΠΊΠΎΠ³Π΄Π° Π±ΡΠ΄ΡΡ Π³ΠΎΡΠΎΠ² ΠΊ ΡΡΠΎΠΌΡ.
ΠΠ΅ΠΊΠΎΡΠΎΡΡΠ΅ ΠΈΠ³ΡΠΎΠΊΠΈ ΠΌΠΎΠ³ΡΡ ΡΡΠΈΡΠ°ΡΡΡΡ, ΡΡΠΎ Aviator Spribe <a href=https://sites.google.com/vi...>Π°Π²ΠΈΠ°ΡΠΎΡ ΠΊΠ°Π·ΠΈΠ½ΠΎ pin-up</a> ΠΏΠΎΡ ΠΎΠΆΠ° Π½Π° ΡΡΠ°Π΄ΠΈΡΠΈΠΎΠ½Π½ΡΠ΅ ΠΈΠ³ΡΠΎΠ²ΡΠ΅ Π°Π²ΡΠΎΠΌΠ°ΡΡ, ΠΎΠ΄Π½Π°ΠΊΠΎ ΠΎΠ½Π° ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π±ΠΎΠ»Π΅Π΅ ΡΠ²Π»Π΅ΠΊΠ°ΡΠ΅Π»ΡΠ½ΡΠΉ ΠΈ ΡΠ°Π·Π½ΠΎΠΎΠ±ΡΠ°Π·Π½ΡΠΉ Π³Π΅ΠΉΠΌΠΏΠ»Π΅ΠΉ. ΠΡΠΎΠΌΠ΅ ΡΠΎΠ³ΠΎ, ΠΈΠ³ΡΠ° ΠΈΠΌΠ΅Π΅Ρ ΠΎΡΠ»ΠΈΡΠ½ΡΡ Π³ΡΠ°ΡΠΈΠΊΡ ΠΈ Π·Π²ΡΠΊΠΎΠ²ΠΎΠ΅ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅, ΡΡΠΎ Π³ΠΎΠ²ΠΎΡΡ Π΅ΡΠ΅ Π±ΠΎΠ»ΡΡΠ΅ Π°ΡΠΌΠΎΡΡΠ΅ΡΡ.
ΠΠ΅ΠΊΠΎΡΠΎΡΡΠ΅ Π»ΡΠ΄ΠΈ ΠΌΠΎΠΆΠ΅Ρ ΡΠΎΠΌΠ½Π΅Π²Π°ΡΡΡΡ Π² Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΠΈ ΠΈΠ³ΡΡ Π½Π° ΠΊΠ²Π°ΡΠΏΠ»Π°ΡΡ, ΠΎΠ΄Π½Π°ΠΊΠΎ Π±Π»Π°Π³ΠΎΠ΄Π°ΡΡ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠΊΡ blockchain ΠΈ Π»ΠΈΡΠ΅Π½Π·ΠΈΠΈ Π½Π° ΠΈΠ³ΡΠΎΠ²ΡΡ Π΄Π΅ΡΡΠ΅Π»ΡΠ½ΠΎΡΡΡ Ρ Spribe, ΠΈΠ³ΡΠΎΠΊΠΈ ΠΌΠΎΠ³ΡΡ Π±ΡΡΡ ΡΠ±Π΅ΠΆΠ΄Π΅Π½ Π² ΡΠΎΠΌ, Π΄Π°ΠΆΠ΅ ΠΈΡ Π»ΠΈΡΠ½ΡΠ΅ Π΄Π°Π½Π½ΡΠ΅ ΠΈ ΡΠΈΠ½Π°Π½ΡΠΎΠ²ΡΠ΅ ΡΡΠ΅Π΄ΡΡΠ² Ρ ΡΠ°Π½ΡΡΡΡ ΠΏΠΎΠ΄ Π½Π°Π΄Π΅ΠΆΠ½ΠΎ Π·Π°ΡΠΈΡΠΎΠΉ.
Π ΠΌΠ½ΠΎΠ³ΠΎΠΌ, Aviator Spribe - ΡΡΠΎ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½Π°Ρ ΠΈ Π·Π°Ρ Π²Π°ΡΡΠ²Π°ΡΡΠ°Ρ ΠΈΠ³ΡΠ°, Π°Π·Π΅Π°Π½ΠΊΡ ΠΌΠΎΠΆΠ΅Ρ ΠΏΡΠΈΠ½Π΅ΡΡΠΈ ΠΈΠ³ΡΠΎΠΊΠ°ΠΌ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ ΡΠ΄ΠΎΠ²ΠΎΠ»ΡΡΡΠ²ΠΈΠ΅, Π½ΠΎ ΡΠΎΠ»ΡΠΊΠΎ ΡΠ΅Π°Π»ΡΠ½ΡΠ΅ Π΄Π΅Π½Π΅ΠΆΠ½ΡΠ΅ Π²ΡΠΈΠ³ΡΡΡΠΈ. ΠΠΎΠΌΠΏΠ°Π½ΠΈΡ Spribe <a href=https://sites.google.com/vi...> Aviator ΠΡΠΈΡΠΈΠ°Π»ΡΠ½ΡΠΉ ΡΠ°ΠΉΡ ΠΈΠ³ΡΡ</a> ΠΏΡΠΎΠ΄ΠΎΠ»ΠΆΠ°Ρ ΡΠ°Π·Π²ΠΈΠ²Π°ΡΡ ΠΈ ΡΠ»ΡΡΡΠ°ΡΡ ΡΡΡ ΠΈΠ³ΡΡ, ΡΡΠΎ Π΄Π΅Π»Π°Π΅Ρ Π±Π΅Π»ΠΊΠΈΡΡΡ Π΅ΡΠ΅ Π±ΠΎΠ»Π΅Π΅ ΡΠΎΠ½ΠΊΠΎΡΡΠΊΠΎΠΉ Π΄Π»Ρ ΠΈΠ³ΡΠΎΠΊΠΎΠ² ΠΌΠ΅Π½Π°Π΄ΠΆΠ΅ΡΡ Π²ΡΠ΅Π³ΠΎ ΠΎΠΊΡΡΠΆΠ°ΡΡΠ΅Π³ΠΎ ΠΌΠΈΡΠ°.
Π£ΡΠ°ΡΡΠ½ΠΈΠΊΠΈ Π΅ΡΠ»ΠΈ Π·Π°ΠΏΡΡΠΊΠ°ΡΡ ΠΈΠ³ΡΡ Π² Aviator Spribe <a href=https://sites.google.com/vi...>ΠΠ³ΡΠΎΠ²ΠΎΠΉ Π°Π²ΡΠΎΠΌΠ°Ρ Aviator (Spribe)</a> Π½Π° Π»ΡΠ±ΠΎΠΌ ΡΡΡΡΠΎΠΉΡΡΠ²Π΅, Π²ΠΊΠ»ΡΡΠ°Ρ ΠΊΠΎΠΌΠΏΡΡΡΠ΅ΡΡ, ΠΏΠ»Π°Π½ΡΠ΅ΡΡ ΠΈ ΠΌΠΎΠ±ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅Π»Π΅ΡΠΎΠ½Ρ. ΠΠ³ΡΠ° ΠΎΡΡΡΠ΅ΡΡΠ²Π»ΡΠ΅ΡΡΡ Π½Π° ΡΠΊΡΠ°Π½Π΅, Π½Π΅Π΄Π°Π»Π΅ΠΊΠΎ Π΅ΡΡΡ ΠΏΠΎΠ»Π΅ Ρ Π±Π΅Π³ΡΡΠΈΠΌ ΠΏΠΎ Π½ΠΈΠΌ ΡΠ°ΠΌΠΎΠ»Π΅ΡΠΎΠΌ. ΠΠ³ΡΠΎΠΊΠΈ ΡΡΠ°Π²ΡΡ Π΄Π΅Π½ΡΠ³ΠΈ Π½Π° Π²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ ΠΈΠ½ΡΠ΅ΡΠ²Π°Π», ΠΈ Π΅ΡΠ»ΠΈ ΡΠ°ΠΌΠΎΠ»Π΅Ρ ΠΏΠ΅ΡΠ΅Π»Π΅ΡΠ°Π΅Ρ Π½ΡΠΆΠ½ΠΎΠ΅ ΡΠ°ΡΡΡΠΎΡΠ½ΠΈΠ΅, ΠΊΠΎΡΠΎΡΡΡ ΠΏΠΎΠ»ΡΡΠ°ΡΡ Π²ΡΠΈΠ³ΡΡΡ.
ΠΠ΄Π½ΠΎΠΉ ΠΈΠ· ΠΊΠ»ΡΡΠ΅Π²ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΠ΅ΠΉ ΠΈΠ³ΡΡ Aviator Spribe ΡΠ²Π»ΡΠ΅ΡΡΡ ΡΠΎ, ΡΡΠΎ Π½Π΅ΠΉ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅Ρ Π½Π° Π±Π°Π·Π΅ ΡΠ΅Ρ Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ blockchain. ΠΡΠΎ ΠΎΠ·Π½Π°ΡΠ°Π΅Ρ, ΡΡΠΎ ΡΠ΅ΠΏΠ΅ΡΡ ΡΡΠ°Π½Π·Π°ΠΊΡΠΈΠΈ ΠΈ Π΄Π°Π½Π½ΡΠ΅ Ρ ΡΠ°Π½ΡΡΡΡ Π² ΡΠ°ΡΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΠΎΠΉ Π±Π°Π·Π΅ Π΄Π°Π½Π½ΡΡ , Π½Π΅ ΠΎΠ±Π΅ΡΠΏΠ΅ΡΠΈΠ²Π°Π΅Ρ Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡ ΠΆΠ΅ ΠΏΡΠΎΠ·ΡΠ°ΡΠ½ΠΎΡΡΡ ΠΈΠ³ΡΡ.
ΠΡΠΎΠΌΠ΅ ΡΠΎΠ³ΠΎ, Aviator Spribe <a href=https://sites.google.com/vi...>Aviator Spribe Π±ΠΎΠ½ΡΡ</a> - ΠΈΠΌΠ΅Π΅Ρ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ ΡΡΠΎΠ²Π½Π΅ΠΉ ΠΎΠ±ΡΠ΅ΠΉ, ΡΡΠΎ Π΄Π΅Π»Π°Π΅Ρ Π»Π°ΠΉΠ½ΠΎΠ»Π° ΠΏΡΠΈΠ²Π»Π΅ΠΊΠ°ΡΠ΅Π»ΡΠ½ΠΎΠΉ Π΄Π»Ρ ΠΈΠ³ΡΠΎΠΊΠΎΠ² ΡΠ°Π·Π½ΠΎΠ³ΠΎ ΡΡΠΎΠ²Π½Ρ ΠΎΠΏΡΡΠ°. ΠΠ°ΡΠΈΠ½Π°ΡΡΠΈΠ΅ ΠΌΠΎΠ³ΡΡ Π²ΡΠ±ΡΠ°ΡΡ Π±ΠΎΠ»Π΅Π΅ ΠΏΡΠΎΡΡΠΎΠΉ ΡΡΠΎΠ²Π΅Π½Ρ ΠΈ ΠΏΠΎΡΡΠ΅ΠΏΠ΅Π½Π½ΠΎ ΠΏΠ΅ΡΠ΅Ρ ΠΎΠ΄ΠΈΡΡ Π½Π° Π±ΠΎΠ»Π΅Π΅ ΡΠ»ΠΎΠΆΠ½ΡΠΉ, ΠΊΠΎΠ³Π΄Π° Π±ΡΠ΄ΡΡ Π³ΠΎΡΠΎΠ² ΠΊ ΡΡΠΎΠΌΡ.
ΠΠ΅ΠΊΠΎΡΠΎΡΡΠ΅ ΠΈΠ³ΡΠΎΠΊΠΈ ΠΌΠΎΠ³ΡΡ ΡΡΠΈΡΠ°ΡΡΡΡ, ΡΡΠΎ Aviator Spribe <a href=https://sites.google.com/vi...>Π°Π²ΠΈΠ°ΡΠΎΡ ΠΊΠ°Π·ΠΈΠ½ΠΎ pin-up</a> ΠΏΠΎΡ ΠΎΠΆΠ° Π½Π° ΡΡΠ°Π΄ΠΈΡΠΈΠΎΠ½Π½ΡΠ΅ ΠΈΠ³ΡΠΎΠ²ΡΠ΅ Π°Π²ΡΠΎΠΌΠ°ΡΡ, ΠΎΠ΄Π½Π°ΠΊΠΎ ΠΎΠ½Π° ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π±ΠΎΠ»Π΅Π΅ ΡΠ²Π»Π΅ΠΊΠ°ΡΠ΅Π»ΡΠ½ΡΠΉ ΠΈ ΡΠ°Π·Π½ΠΎΠΎΠ±ΡΠ°Π·Π½ΡΠΉ Π³Π΅ΠΉΠΌΠΏΠ»Π΅ΠΉ. ΠΡΠΎΠΌΠ΅ ΡΠΎΠ³ΠΎ, ΠΈΠ³ΡΠ° ΠΈΠΌΠ΅Π΅Ρ ΠΎΡΠ»ΠΈΡΠ½ΡΡ Π³ΡΠ°ΡΠΈΠΊΡ ΠΈ Π·Π²ΡΠΊΠΎΠ²ΠΎΠ΅ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅, ΡΡΠΎ Π³ΠΎΠ²ΠΎΡΡ Π΅ΡΠ΅ Π±ΠΎΠ»ΡΡΠ΅ Π°ΡΠΌΠΎΡΡΠ΅ΡΡ.
ΠΠ΅ΠΊΠΎΡΠΎΡΡΠ΅ Π»ΡΠ΄ΠΈ ΠΌΠΎΠΆΠ΅Ρ ΡΠΎΠΌΠ½Π΅Π²Π°ΡΡΡΡ Π² Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΠΈ ΠΈΠ³ΡΡ Π½Π° ΠΊΠ²Π°ΡΠΏΠ»Π°ΡΡ, ΠΎΠ΄Π½Π°ΠΊΠΎ Π±Π»Π°Π³ΠΎΠ΄Π°ΡΡ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠΊΡ blockchain ΠΈ Π»ΠΈΡΠ΅Π½Π·ΠΈΠΈ Π½Π° ΠΈΠ³ΡΠΎΠ²ΡΡ Π΄Π΅ΡΡΠ΅Π»ΡΠ½ΠΎΡΡΡ Ρ Spribe, ΠΈΠ³ΡΠΎΠΊΠΈ ΠΌΠΎΠ³ΡΡ Π±ΡΡΡ ΡΠ±Π΅ΠΆΠ΄Π΅Π½ Π² ΡΠΎΠΌ, Π΄Π°ΠΆΠ΅ ΠΈΡ Π»ΠΈΡΠ½ΡΠ΅ Π΄Π°Π½Π½ΡΠ΅ ΠΈ ΡΠΈΠ½Π°Π½ΡΠΎΠ²ΡΠ΅ ΡΡΠ΅Π΄ΡΡΠ² Ρ ΡΠ°Π½ΡΡΡΡ ΠΏΠΎΠ΄ Π½Π°Π΄Π΅ΠΆΠ½ΠΎ Π·Π°ΡΠΈΡΠΎΠΉ.
Π ΠΌΠ½ΠΎΠ³ΠΎΠΌ, Aviator Spribe - ΡΡΠΎ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½Π°Ρ ΠΈ Π·Π°Ρ Π²Π°ΡΡΠ²Π°ΡΡΠ°Ρ ΠΈΠ³ΡΠ°, Π°Π·Π΅Π°Π½ΠΊΡ ΠΌΠΎΠΆΠ΅Ρ ΠΏΡΠΈΠ½Π΅ΡΡΠΈ ΠΈΠ³ΡΠΎΠΊΠ°ΠΌ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ ΡΠ΄ΠΎΠ²ΠΎΠ»ΡΡΡΠ²ΠΈΠ΅, Π½ΠΎ ΡΠΎΠ»ΡΠΊΠΎ ΡΠ΅Π°Π»ΡΠ½ΡΠ΅ Π΄Π΅Π½Π΅ΠΆΠ½ΡΠ΅ Π²ΡΠΈΠ³ΡΡΡΠΈ. ΠΠΎΠΌΠΏΠ°Π½ΠΈΡ Spribe <a href=https://sites.google.com/vi...> Aviator ΠΡΠΈΡΠΈΠ°Π»ΡΠ½ΡΠΉ ΡΠ°ΠΉΡ ΠΈΠ³ΡΡ</a> ΠΏΡΠΎΠ΄ΠΎΠ»ΠΆΠ°Ρ ΡΠ°Π·Π²ΠΈΠ²Π°ΡΡ ΠΈ ΡΠ»ΡΡΡΠ°ΡΡ ΡΡΡ ΠΈΠ³ΡΡ, ΡΡΠΎ Π΄Π΅Π»Π°Π΅Ρ Π±Π΅Π»ΠΊΠΈΡΡΡ Π΅ΡΠ΅ Π±ΠΎΠ»Π΅Π΅ ΡΠΎΠ½ΠΊΠΎΡΡΠΊΠΎΠΉ Π΄Π»Ρ ΠΈΠ³ΡΠΎΠΊΠΎΠ² ΠΌΠ΅Π½Π°Π΄ΠΆΠ΅ΡΡ Π²ΡΠ΅Π³ΠΎ ΠΎΠΊΡΡΠΆΠ°ΡΡΠ΅Π³ΠΎ ΠΌΠΈΡΠ°.
Erstellt am 09/04/23 um 10:18:46
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
most reliable canadian pharmacies schrieb:
<a href="https://canadianpharmacyeas...">prescription drugs online without</a>
https://canadianpharmacyeas...
<a href=https://canadianpharmacyeas...>top rated canadian online pharmacy</a>
https://canadianpharmacyeas...
<a href=https://canadianpharmacyeas...>top rated canadian online pharmacy</a>
Erstellt am 09/08/23 um 03:50:47
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Πeithchefe schrieb:
rdbx stock price
<a href=https://blockchainreporter....>what sets blockchain solutions apart from conventional record-keeping solutions</a>
<a href=https://blockchainreporter....>what sets blockchain solutions apart from conventional record-keeping solutions</a>
Erstellt am 09/10/23 um 10:56:10
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
scholding schrieb:
- , . , , .
<a href=https://bystrovozvodimye-zd...> </a> , . , .
<a href=https://bystrovozvodimye-zd...> </a> , . , .
Erstellt am 09/12/23 um 13:56:17
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
scholding schrieb:
- , . , , .
<a href=https://bystrovozvodimye-zd...> </a> , . , .
<a href=https://bystrovozvodimye-zd...> </a> , . , .
Erstellt am 09/12/23 um 13:57:19
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
mexican drugstore online schrieb:
<a href="https://canadianpharmanet.com/">reputable canadian online pharmacies</a>
https://canadianpharmanet.com/
<a href=https://canadianpharmanet.com/>trusted canadian pharmacy</a>
https://canadianpharmanet.com/
<a href=https://canadianpharmanet.com/>trusted canadian pharmacy</a>
Erstellt am 09/13/23 um 02:41:35
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
cotrader coin schrieb:
<a href="https://btc-pulse.com/lunc-...">lunc crypto price prediction</a>
<a href="https://btc-pulse.com/xyo-p...">xyo coin price prediction</a>
<a href="https://btc-pulse.com/digif...">digifinex</a>
<a href="https://btc-pulse.com/arbit...">bridge arbitrum</a>
<a href="https://btc-pulse.com/xyo-p...">xyo coin price prediction</a>
<a href="https://btc-pulse.com/rdbx-...">rdbx stock price</a>
<a href="https://btc-pulse.com/under...">shiba inu coin burn rate</a>
<a href="https://btc-pulse.com/big-e...">big eyes coin price prediction</a>
<a href="https://btc-pulse.com/ontar...">ontario teachers pension plan ftx</a>
<a href="https://btc-pulse.com/rivia...">riviam stock</a>
<a href="https://btc-pulse.com/snoop...">method man snoop dogg</a>
<a href="https://btc-pulse.com/webul...">webull</a>
<a href="https://btc-pulse.com/meta-...">Meta Stock Price Prediction</a>
<a href="https://btc-pulse.com/dogel...">Dogelon Mars Price Prediction 2030</a>
<a href="https://btc-pulse.com/rivia...">Rivian Stock Price Prediction 2030</a>
<a href="https://btc-pulse.com/">pulse x coin</a>
<a href="https://btc-pulse.com/">Btc pulse</a>
<a href="https://btc-pulse.com/">pulse x crypto price prediction</a>
<a href="https://btc-pulse.com/">pulse x coin price</a>
<a href="https://btc-pulse.com/amazo...">Amazon Stock Price Prediction 2025</a>
<a href="https://btc-pulse.com/xyo-p...">xyo coin price prediction</a>
<a href="https://btc-pulse.com/digif...">digifinex</a>
<a href="https://btc-pulse.com/arbit...">bridge arbitrum</a>
<a href="https://btc-pulse.com/xyo-p...">xyo coin price prediction</a>
<a href="https://btc-pulse.com/rdbx-...">rdbx stock price</a>
<a href="https://btc-pulse.com/under...">shiba inu coin burn rate</a>
<a href="https://btc-pulse.com/big-e...">big eyes coin price prediction</a>
<a href="https://btc-pulse.com/ontar...">ontario teachers pension plan ftx</a>
<a href="https://btc-pulse.com/rivia...">riviam stock</a>
<a href="https://btc-pulse.com/snoop...">method man snoop dogg</a>
<a href="https://btc-pulse.com/webul...">webull</a>
<a href="https://btc-pulse.com/meta-...">Meta Stock Price Prediction</a>
<a href="https://btc-pulse.com/dogel...">Dogelon Mars Price Prediction 2030</a>
<a href="https://btc-pulse.com/rivia...">Rivian Stock Price Prediction 2030</a>
<a href="https://btc-pulse.com/">pulse x coin</a>
<a href="https://btc-pulse.com/">Btc pulse</a>
<a href="https://btc-pulse.com/">pulse x crypto price prediction</a>
<a href="https://btc-pulse.com/">pulse x coin price</a>
<a href="https://btc-pulse.com/amazo...">Amazon Stock Price Prediction 2025</a>
Erstellt am 09/28/23 um 19:18:24
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RNS_llErommaf schrieb:
, , , , . , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>https://rns50.ru</a>
, , , . , , , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>https://rns50.ru</a>
, , , . , , , .
Erstellt am 10/02/23 um 08:10:01
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RNS_llharrifs schrieb:
, , , , . , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>rns50.ru</a>
, , , . , , , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>rns50.ru</a>
, , , . , , , .
Erstellt am 10/02/23 um 08:10:18
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Rns_Jem schrieb:
, , , , . , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>rns50.ru</a>
, , , . , , , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>rns50.ru</a>
, , , . , , , .
Erstellt am 10/02/23 um 16:36:32
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Rns_har schrieb:
, , , , . , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.rns50.ru</a>
, , , . , , , .
<a href=https://xn--73-6kchjy.xn--p...> </a>?
. . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.rns50.ru</a>
, , , . , , , .
Erstellt am 10/02/23 um 16:36:55
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stevesnusera schrieb:
isoporno
isoporno <a href="https://isoporno.com/">XVideos XXX</a> Adult Porn XXX
https://www.google.cz/url?q...
isoporno <a href="https://isoporno.com/">XVideos XXX</a> Adult Porn XXX
https://www.google.cz/url?q...
Erstellt am 10/02/23 um 23:11:01
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_m schrieb:
: !
, - , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , - . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - -. , , , - . , !
, - , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , - . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - -. , , , - . , !
Erstellt am 10/05/23 um 09:07:58
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_S schrieb:
: !
, - , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://scholding.ru</a>
, - - . , , , . , !
, - , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://scholding.ru</a>
, - - . , , , . , !
Erstellt am 10/05/23 um 09:08:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stevenusera schrieb:
isoporno
Adult Porn XXX <a href="https://isoporno.com/">Sex Videos</a> Porno
http://www.google.com.fj/ur...https://isoporno.com/
Adult Porn XXX <a href="https://isoporno.com/">Sex Videos</a> Porno
http://www.google.com.fj/ur...https://isoporno.com/
Erstellt am 10/05/23 um 23:41:24
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_m schrieb:
: !
, - , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , - . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - . , , , . , !
, - , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , - . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - . , , , . , !
Erstellt am 10/09/23 um 21:18:43
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_m schrieb:
: !
, - , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>https://www.scholding.ru</a>
, - . , , , . , !
, - , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>https://www.scholding.ru</a>
, - . , , , . , !
Erstellt am 10/09/23 um 21:19:20
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_m schrieb:
: !
, - , . , , - .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - . , , , . , !
, - , . , , - .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - . , , , . , !
Erstellt am 10/10/23 um 07:53:14
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_m schrieb:
- : !
, - , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - . , , , . , !
, - , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>http://www.scholding.ru</a>
, - . , , , . , !
Erstellt am 10/10/23 um 07:54:37
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_m schrieb:
: - !
, - , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>https://www.scholding.ru</a>
, - . , , , . , !
, - , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>https://www.scholding.ru</a>
, - . , , , . , !
Erstellt am 10/11/23 um 18:53:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Fast_Build_S schrieb:
: !
, - , , . , , - .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>https://www.scholding.ru</a>
, - -. , , , . , - !
, - , , . , , - .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://xn--73-6kchjy.xn--p...>https://www.scholding.ru</a>
, - -. , , , . , - !
Erstellt am 10/11/23 um 18:54:55
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Plisse_lat schrieb:
ΠΠ°ΡΠΈ ΡΠ΅Ρ
ΠΈ ΠΏΡΠ΅Π΄Π»Π°Π³Π°ΡΡ Π²Π°ΠΌ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΡΠ°ΠΌΡΠ΅ ΡΠΈΡΠΊΠΎΠ²Π°Π½Π½ΡΠ΅ ΠΈ Ρ
ΡΠ΄ΠΎΠΆΠ΅ΡΡΠ²Π΅Π½Π½ΡΠ΅ ΠΈΠ΄Π΅ΠΈ Π² Π΄ΠΎΠΌΠ΅Π½Π΅ Π²Π½ΡΡΡΠ΅Π½Π½Π΅Π³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°. ΠΡ Π·Π°Π½ΠΈΠΌΠ°Π΅ΠΌΡΡ Π½Π° ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ΄ΡΡΠ²Π΅ Π³Π°ΡΠ΄ΠΈΠ½Ρ ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΡ
ΠΏΠΎΠ΄ ΠΏΠΎ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΠΎΠΌΡ Π·Π°ΠΊΠ°Π·Ρ, ΠΊΠΎΡΠΎΡΡΠ΅ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠΈΠ²Π°ΡΡ Π²Π°ΡΠ΅ΠΌΡ Π΄ΠΎΠΌΡ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΡΠΉ Π»ΠΎΡΠΊ, Π½ΠΎ ΠΈ Π²ΡΠ΄Π΅Π»ΡΡΡ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΠΏΠ»ΠΈΡΡΠ΅ Π½Π° ΠΎΠΊΠ½Π°</a> β ΡΡΠΎ ΡΠΎΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ ΠΈΠ·ΡΡΠΊΠ° ΠΈ ΠΏΡΠ°ΠΊΡΠΈΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ ΡΠΎΡΠ΅ΡΠ°ΡΡ ΡΡΡ, ΡΠΈΠ»ΡΡΡΡΡΡ ΡΠΈΡΠ½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°ΡΡ Π²Π°ΡΡ ΠΈΠ½ΡΠΈΠΌΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π», ΡΠ²Π΅Ρ ΠΈ ΡΠΊΡΠ°ΡΠ΅Π½ΠΈΠ΅, ΠΈ ΠΌΡ Ρ Ρ ΡΠ°Π΄ΠΎΡΡΡΡ ΡΠΎΠ·Π΄Π°Π΄ΠΈΠΌ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ ΠΏΠ°Π½Π½ΠΎ, ΠΊΠΎΡΠΎΡΡΠ΅ ΡΠΎΡΠ½ΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ Π²Π°ΡΠ΅Π³ΠΎ Π΄Π΅ΠΊΠΎΡΠΈΡΠΎΠ²Π°Π½ΠΈΡ.
ΠΠ΅ ΡΠ΄Π΅ΡΠΆΠΈΠ²Π°ΠΉΡΠ΅ΡΡ ΡΡΠ°Π½Π΄Π°ΡΡΠ½ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠ°ΡΡ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ ΠΊΠΎΠΌΠ±ΠΈΠ½ΠΈΡΠΎΠ²Π°ΡΡΡΡ Ρ Π²Π°ΡΠΈΠΌ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠΌ ΠΏΡΠ΅Π΄ΠΏΠΎΡΡΠ΅Π½ΠΈΠ΅ΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΡΠ΅ΠΉ ΠΊΠΎΠΌΠ°Π½Π΄Π΅, ΠΈ Π²Π°Ρ ΡΠ΅Π·ΠΈΠ΄Π΅Π½ΡΠΈΡ ΡΡΠ°Π½Π΅Ρ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²ΠΎΠΌ, Π³Π΄Π΅ Π»ΡΠ±ΠΎΠΉ Π΄Π΅ΡΠ°Π»Ρ ΠΏΡΠΎΡΠ²Π»ΡΠ΅Ρ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>http://www.sun-interio1.ru</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΡΡΡΠ΅ΡΡ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΆΠΈΠ»ΠΈΡΠ΅ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡΡ Π² ΡΠ°ΠΉ ΠΎΠ±ΡΠ°Π·Π° ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ ΡΠ΅Π°Π»ΠΈΠ·ΠΎΠ²Π°ΡΡ Π² ΠΆΠΈΠ·Π½Ρ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠ΅ Π³ΡΠ΅Π·Ρ ΠΎ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΠΎΠΌ Π΄Π΅ΠΊΠΎΡΠ΅.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ Π»ΠΈΡΠ½ΡΡ ΠΏΠΎΠ²Π΅ΡΡΠ²ΠΎΠ²Π°Π½ΠΈΠ΅ Π΄ΠΈΠ·Π°ΠΉΠ½Π° Ρ Π½Π°ΠΌΠΈ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ Π°Π»ΡΡΠ΅ΡΠ½Π°ΡΠΈΠ² Ρ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠΌΠΈ ΡΡΠΎΡΠ°ΠΌΠΈ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΠΎΠΌΡ Π·Π°ΠΊΠ°Π·Ρ!
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΠΏΠ»ΠΈΡΡΠ΅ Π½Π° ΠΎΠΊΠ½Π°</a> β ΡΡΠΎ ΡΠΎΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ ΠΈΠ·ΡΡΠΊΠ° ΠΈ ΠΏΡΠ°ΠΊΡΠΈΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ ΡΠΎΡΠ΅ΡΠ°ΡΡ ΡΡΡ, ΡΠΈΠ»ΡΡΡΡΡΡ ΡΠΈΡΠ½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°ΡΡ Π²Π°ΡΡ ΠΈΠ½ΡΠΈΠΌΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π», ΡΠ²Π΅Ρ ΠΈ ΡΠΊΡΠ°ΡΠ΅Π½ΠΈΠ΅, ΠΈ ΠΌΡ Ρ Ρ ΡΠ°Π΄ΠΎΡΡΡΡ ΡΠΎΠ·Π΄Π°Π΄ΠΈΠΌ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ ΠΏΠ°Π½Π½ΠΎ, ΠΊΠΎΡΠΎΡΡΠ΅ ΡΠΎΡΠ½ΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ Π²Π°ΡΠ΅Π³ΠΎ Π΄Π΅ΠΊΠΎΡΠΈΡΠΎΠ²Π°Π½ΠΈΡ.
ΠΠ΅ ΡΠ΄Π΅ΡΠΆΠΈΠ²Π°ΠΉΡΠ΅ΡΡ ΡΡΠ°Π½Π΄Π°ΡΡΠ½ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠ°ΡΡ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ ΠΊΠΎΠΌΠ±ΠΈΠ½ΠΈΡΠΎΠ²Π°ΡΡΡΡ Ρ Π²Π°ΡΠΈΠΌ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠΌ ΠΏΡΠ΅Π΄ΠΏΠΎΡΡΠ΅Π½ΠΈΠ΅ΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΡΠ΅ΠΉ ΠΊΠΎΠΌΠ°Π½Π΄Π΅, ΠΈ Π²Π°Ρ ΡΠ΅Π·ΠΈΠ΄Π΅Π½ΡΠΈΡ ΡΡΠ°Π½Π΅Ρ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²ΠΎΠΌ, Π³Π΄Π΅ Π»ΡΠ±ΠΎΠΉ Π΄Π΅ΡΠ°Π»Ρ ΠΏΡΠΎΡΠ²Π»ΡΠ΅Ρ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>http://www.sun-interio1.ru</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΡΡΡΠ΅ΡΡ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΆΠΈΠ»ΠΈΡΠ΅ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡΡ Π² ΡΠ°ΠΉ ΠΎΠ±ΡΠ°Π·Π° ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ ΡΠ΅Π°Π»ΠΈΠ·ΠΎΠ²Π°ΡΡ Π² ΠΆΠΈΠ·Π½Ρ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠ΅ Π³ΡΠ΅Π·Ρ ΠΎ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΠΎΠΌ Π΄Π΅ΠΊΠΎΡΠ΅.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ Π»ΠΈΡΠ½ΡΡ ΠΏΠΎΠ²Π΅ΡΡΠ²ΠΎΠ²Π°Π½ΠΈΠ΅ Π΄ΠΈΠ·Π°ΠΉΠ½Π° Ρ Π½Π°ΠΌΠΈ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ Π°Π»ΡΡΠ΅ΡΠ½Π°ΡΠΈΠ² Ρ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠΌΠΈ ΡΡΠΎΡΠ°ΠΌΠΈ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΠΎΠΌΡ Π·Π°ΠΊΠ°Π·Ρ!
Erstellt am 10/25/23 um 06:58:04
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Plisse_bib schrieb:
ΠΠ°ΡΠΈ ΠΌΠ°ΡΡΠ΅ΡΡΠΊΠΈΠ΅ ΠΏΡΠ΅Π΄Π»Π°Π³Π°ΡΡ Π²Π°ΠΌ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΡΠ°ΠΌΡΠ΅ ΡΠΌΠ΅Π»ΡΠ΅ ΠΈ ΡΠ²ΠΎΡΡΠ΅ΡΠΊΠΈΠ΅ ΠΈΠ΄Π΅ΠΈ Π² ΡΠ΅Π³ΠΌΠ΅Π½ΡΠ΅ Π²Π½ΡΡΡΠ΅Π½Π½Π΅Π³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°. ΠΡ Π·Π°Π½ΠΈΠΌΠ°Π΅ΠΌΡΡ Π½Π° ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ΄ΡΡΠ²Π΅ Π³Π°ΡΠ΄ΠΈΠ½Ρ ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΡ
ΠΏΠΎΠ΄ ΠΏΠΎ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΠΎΠΌΡ Π·Π°ΠΊΠ°Π·Ρ, ΠΊΠΎΡΠΎΡΡΠ΅ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠΈΠ²Π°ΡΡ Π²Π°ΡΠ΅ΠΌΡ ΠΎΠ±ΠΈΡΠ΅Π»ΠΈ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΡΠΉ Π»ΠΎΡΠΊ, Π½ΠΎ ΠΈ ΠΏΠΎΠ΄ΡΠ²Π΅ΡΠΈΠ²Π°ΡΡ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΡΡΠΎΡΡ ΠΏΠ»ΠΈΡΡΠ΅ Π² ΠΌΠΎΡΠΊΠ²Π΅</a> β ΡΡΠΎ ΡΠΈΠΌΡΠΎΠ½ΠΈΡ ΡΠΈΠΊΠ° ΠΈ ΡΡΠ½ΠΊΡΠΈΠΎΠ½Π°Π»ΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ ΡΠΎΠ·Π΄Π°ΡΡ ΡΡΡ, ΠΎΡΠΈΡΠ°ΡΡ ΠΎΡΠ²Π΅ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΡΠΎΡ ΡΠ°Π½ΡΡΡ Π²Π°ΡΡ ΠΊΠΎΠ½ΡΠΈΠ΄Π΅Π½ΡΠΈΠ°Π»ΡΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΡΠΊΠ°Π½Ρ, ΡΠΎΠ½ ΠΈ ΠΎΡΠ΄Π΅Π»ΠΊΠ°, ΠΈ ΠΌΡ Ρ Ρ ΡΠ΄ΠΎΠ²ΠΎΠ»ΡΡΡΠ²ΠΈΠ΅ΠΌ ΡΠΎΠ·Π΄Π°Π΄ΠΈΠΌ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΡΠΎΡΠ½ΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ Π²Π°ΡΠ΅Π³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°.
ΠΠ΅ ΠΎΠ³ΡΠ°Π½ΠΈΡΠΈΠ²Π°ΠΉΡΠ΅ΡΡ ΡΠΈΠΏΠΎΠ²ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ Π±ΡΠ΄Π΅ΡΠ΅ ΡΠΏΠΎΡΠΎΠ±Π½Ρ ΡΠΎΠ·Π΄Π°ΡΡ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ ΡΠΎΡΠ΅ΡΠ°ΡΡΡΡ Ρ Π²Π°ΡΠΈΠΌ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΡΠΌ Π²ΠΊΡΡΠΎΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΡΠ΅ΠΉ ΡΠΈΡΠΌΠ΅, ΠΈ Π²Π°Ρ ΡΡΠ΅ΠΌΠ½ΠΎΠ΅ ΠΆΠΈΠ»ΡΠ΅ ΡΡΠ°Π½Π΅Ρ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²ΠΎΠΌ, Π³Π΄Π΅ ΠΊΠ°ΠΆΠ΄ΡΠΉ Π΄Π΅ΡΠ°Π»Ρ ΠΏΡΠΎΡΠ²Π»ΡΠ΅Ρ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>ΠΏΠΎΡΡΠ°Π»Π΅ sun-interio1.ru</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΡΡΠΎΡΡ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΆΠΈΠ»ΠΈΡΠ΅ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡΡ Π² ΡΠ°ΠΉ ΡΡΠΈΠ»Ρ ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π»ΠΈΡΠ½ΡΠ΅ Π³ΡΠ΅Π·Ρ ΠΎ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΠΎΠΌ Π²Π½ΡΡΡΠ΅Π½Π½Π΅ΠΌ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠΈ.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΡ ΠΈΡΡΠΎΡΠΈΡ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠ° Ρ Π½Π°ΠΌΠΈ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ Π°Π»ΡΡΠ΅ΡΠ½Π°ΡΠΈΠ² Ρ Π³Π°ΡΠ΄ΠΈΠ½Π°ΠΌΠΈ ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ Π²Π°ΡΠ΅ΠΌΡ Π·Π°ΠΊΠ°Π·Ρ!
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΡΡΠΎΡΡ ΠΏΠ»ΠΈΡΡΠ΅ Π² ΠΌΠΎΡΠΊΠ²Π΅</a> β ΡΡΠΎ ΡΠΈΠΌΡΠΎΠ½ΠΈΡ ΡΠΈΠΊΠ° ΠΈ ΡΡΠ½ΠΊΡΠΈΠΎΠ½Π°Π»ΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ ΡΠΎΠ·Π΄Π°ΡΡ ΡΡΡ, ΠΎΡΠΈΡΠ°ΡΡ ΠΎΡΠ²Π΅ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΡΠΎΡ ΡΠ°Π½ΡΡΡ Π²Π°ΡΡ ΠΊΠΎΠ½ΡΠΈΠ΄Π΅Π½ΡΠΈΠ°Π»ΡΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΡΠΊΠ°Π½Ρ, ΡΠΎΠ½ ΠΈ ΠΎΡΠ΄Π΅Π»ΠΊΠ°, ΠΈ ΠΌΡ Ρ Ρ ΡΠ΄ΠΎΠ²ΠΎΠ»ΡΡΡΠ²ΠΈΠ΅ΠΌ ΡΠΎΠ·Π΄Π°Π΄ΠΈΠΌ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΡΠΎΡΠ½ΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ Π²Π°ΡΠ΅Π³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°.
ΠΠ΅ ΠΎΠ³ΡΠ°Π½ΠΈΡΠΈΠ²Π°ΠΉΡΠ΅ΡΡ ΡΠΈΠΏΠΎΠ²ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ Π±ΡΠ΄Π΅ΡΠ΅ ΡΠΏΠΎΡΠΎΠ±Π½Ρ ΡΠΎΠ·Π΄Π°ΡΡ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ ΡΠΎΡΠ΅ΡΠ°ΡΡΡΡ Ρ Π²Π°ΡΠΈΠΌ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΡΠΌ Π²ΠΊΡΡΠΎΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΡΠ΅ΠΉ ΡΠΈΡΠΌΠ΅, ΠΈ Π²Π°Ρ ΡΡΠ΅ΠΌΠ½ΠΎΠ΅ ΠΆΠΈΠ»ΡΠ΅ ΡΡΠ°Π½Π΅Ρ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²ΠΎΠΌ, Π³Π΄Π΅ ΠΊΠ°ΠΆΠ΄ΡΠΉ Π΄Π΅ΡΠ°Π»Ρ ΠΏΡΠΎΡΠ²Π»ΡΠ΅Ρ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>ΠΏΠΎΡΡΠ°Π»Π΅ sun-interio1.ru</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΡΡΠΎΡΡ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΆΠΈΠ»ΠΈΡΠ΅ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡΡ Π² ΡΠ°ΠΉ ΡΡΠΈΠ»Ρ ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π»ΠΈΡΠ½ΡΠ΅ Π³ΡΠ΅Π·Ρ ΠΎ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΠΎΠΌ Π²Π½ΡΡΡΠ΅Π½Π½Π΅ΠΌ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠΈ.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΡ ΠΈΡΡΠΎΡΠΈΡ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠ° Ρ Π½Π°ΠΌΠΈ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ Π°Π»ΡΡΠ΅ΡΠ½Π°ΡΠΈΠ² Ρ Π³Π°ΡΠ΄ΠΈΠ½Π°ΠΌΠΈ ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ Π²Π°ΡΠ΅ΠΌΡ Π·Π°ΠΊΠ°Π·Ρ!
Erstellt am 10/25/23 um 06:58:16
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Shtory_lat schrieb:
ΠΠ°ΡΠΈ ΠΌΠ°ΡΡΠ΅ΡΡΠΊΠΈΠ΅ ΠΏΡΠ΅Π΄Π»Π°Π³Π°ΡΡ Π²Π°ΠΌ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΡΠ°ΠΌΡΠ΅ Π΄Π΅ΡΠ·ΠΊΠΈΠ΅ ΠΈ ΡΠ²ΠΎΡΡΠ΅ΡΠΊΠΈΠ΅ ΠΈΠ΄Π΅ΠΈ Π² ΡΠ΅ΠΊΡΠΎΡΠ΅ Π΄ΠΎΠΌΠ°ΡΠ½Π΅Π³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°. ΠΡ ΡΠΏΠ΅ΡΠΈΠ°Π»ΠΈΠ·ΠΈΡΡΠ΅ΠΌΡΡ Π½Π° ΡΠΎΠ·Π΄Π°Π½ΠΈΠΈ ΠΏΠΎΡΡΡΠ΅Ρ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΠΎΠΌΡ Π·Π°ΠΊΠ°Π·Ρ, ΠΊΠΎΡΠΎΡΡΠ΅ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ Π΄Π΅Π»Π°ΡΡ Π²Π°ΡΠ΅ΠΌΡ ΠΆΠΈΠ»ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΡΠΉ ΡΡΠΈΠ»Ρ, Π½ΠΎ ΠΈ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠΈΠ²Π°ΡΡ Π²Π°ΡΡ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΠΎΡΡΡ.
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΡΡΠΎΡΡ ΠΏΠ»ΠΈΡΡΠ΅</a> β ΡΡΠΎ ΡΠΎΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ ΠΈΠ·ΡΡΠ΅ΡΡΠ²Π° ΠΈ ΡΡΠ½ΠΊΡΠΈΠΎΠ½Π°Π»ΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ Π΄Π΅Π»Π°ΡΡ ΠΊΠΎΠΌΡΠΎΡΡ, ΠΎΡΠΈΡΠ°ΡΡ ΡΠ²Π΅Ρ ΠΈ ΡΠΎΡ ΡΠ°Π½ΡΡΡ Π²Π°ΡΡ ΠΊΠΎΠ½ΡΠΈΠ΄Π΅Π½ΡΠΈΠ°Π»ΡΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΡΡΠ±ΡΡΡΠ°Ρ, ΡΠΎΠ½ ΠΈ ΡΠΊΡΠ°ΡΠ΅Π½ΠΈΠ΅, ΠΈ ΠΌΡ Ρ Ρ ΡΠ°Π΄ΠΎΡΡΡΡ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠ°Π΅ΠΌ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΊΠ°ΠΊ ΡΠ°Π· ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ Ρ Π°ΡΠ°ΠΊΡΠ΅Ρ Π²Π°ΡΠ΅Π³ΠΎ Π΄Π΅ΠΊΠΎΡΠ°.
ΠΠ΅ ΠΎΠ³ΡΠ°Π½ΠΈΡΠΈΠ²Π°ΠΉΡΠ΅ΡΡ ΡΡΠ°Π½Π΄Π°ΡΡΠ½ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΡΠΎΡΠΌΠΈΡΠΎΠ²Π°ΡΡ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ ΡΡΠΎΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΠΎΠ²Π°ΡΡ Ρ Π²Π°ΡΠΈΠΌ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΡΠΌ Π²ΠΊΡΡΠΎΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΡΠ΅ΠΉ ΠΊΠΎΠΌΠ°Π½Π΄Π΅, ΠΈ Π²Π°Ρ Π΄ΠΎΠΌ ΡΡΠ°Π½Π΅Ρ ΡΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ΠΌ, Π³Π΄Π΅ Π²ΡΡΠΊΠΈΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ Π³ΠΎΠ²ΠΎΡΠΈΡ ΠΎ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>https://www.sun-interio1.ru</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΎΠ±ΠΈΡΠ΅Π»Ρ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡΡ Π² ΠΏΠ°ΡΠΊ ΡΡΠΈΠ»Ρ ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠ΅ ΡΠ°Π½ΡΠ°Π·ΠΈΠΈ ΠΎ ΡΠΎΠ²Π΅ΡΡΠ΅Π½Π½ΠΎΠΌ Π²Π½ΡΡΡΠ΅Π½Π½Π΅ΠΌ Π΄ΠΈΠ·Π°ΠΉΠ½Π΅.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ Π²Π°ΡΡ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΡ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΡΡ ΠΏΠΎΠ²Π΅ΡΡΠ²ΠΎΠ²Π°Π½ΠΈΠ΅ Π΄ΠΈΠ·Π°ΠΉΠ½Π° Ρ Π½Π°ΡΠ΅ΠΉ Π±ΡΠΈΠ³Π°Π΄ΠΎΠΉ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ ΠΏΠΎΡΠ΅Π½ΡΠΈΠ°Π»ΠΎΠ² Ρ Π³Π°ΡΠ΄ΠΈΠ½Π°ΠΌΠΈ ΠΏΠ»ΠΈΡΡΠ΅ ΠΏΠΎΠ΄ ΠΏΠΎ Π·Π°ΠΊΠ°Π·Ρ!
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΡΡΠΎΡΡ ΠΏΠ»ΠΈΡΡΠ΅</a> β ΡΡΠΎ ΡΠΎΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ ΠΈΠ·ΡΡΠ΅ΡΡΠ²Π° ΠΈ ΡΡΠ½ΠΊΡΠΈΠΎΠ½Π°Π»ΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ Π΄Π΅Π»Π°ΡΡ ΠΊΠΎΠΌΡΠΎΡΡ, ΠΎΡΠΈΡΠ°ΡΡ ΡΠ²Π΅Ρ ΠΈ ΡΠΎΡ ΡΠ°Π½ΡΡΡ Π²Π°ΡΡ ΠΊΠΎΠ½ΡΠΈΠ΄Π΅Π½ΡΠΈΠ°Π»ΡΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΡΡΠ±ΡΡΡΠ°Ρ, ΡΠΎΠ½ ΠΈ ΡΠΊΡΠ°ΡΠ΅Π½ΠΈΠ΅, ΠΈ ΠΌΡ Ρ Ρ ΡΠ°Π΄ΠΎΡΡΡΡ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠ°Π΅ΠΌ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΊΠ°ΠΊ ΡΠ°Π· ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ Ρ Π°ΡΠ°ΠΊΡΠ΅Ρ Π²Π°ΡΠ΅Π³ΠΎ Π΄Π΅ΠΊΠΎΡΠ°.
ΠΠ΅ ΠΎΠ³ΡΠ°Π½ΠΈΡΠΈΠ²Π°ΠΉΡΠ΅ΡΡ ΡΡΠ°Π½Π΄Π°ΡΡΠ½ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΡΠΎΡΠΌΠΈΡΠΎΠ²Π°ΡΡ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ ΡΡΠΎΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΠΎΠ²Π°ΡΡ Ρ Π²Π°ΡΠΈΠΌ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΡΠΌ Π²ΠΊΡΡΠΎΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΡΠ΅ΠΉ ΠΊΠΎΠΌΠ°Π½Π΄Π΅, ΠΈ Π²Π°Ρ Π΄ΠΎΠΌ ΡΡΠ°Π½Π΅Ρ ΡΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ΠΌ, Π³Π΄Π΅ Π²ΡΡΠΊΠΈΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ Π³ΠΎΠ²ΠΎΡΠΈΡ ΠΎ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>https://www.sun-interio1.ru</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΎΠ±ΠΈΡΠ΅Π»Ρ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡΡ Π² ΠΏΠ°ΡΠΊ ΡΡΠΈΠ»Ρ ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠ΅ ΡΠ°Π½ΡΠ°Π·ΠΈΠΈ ΠΎ ΡΠΎΠ²Π΅ΡΡΠ΅Π½Π½ΠΎΠΌ Π²Π½ΡΡΡΠ΅Π½Π½Π΅ΠΌ Π΄ΠΈΠ·Π°ΠΉΠ½Π΅.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ Π²Π°ΡΡ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΡ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΡΡ ΠΏΠΎΠ²Π΅ΡΡΠ²ΠΎΠ²Π°Π½ΠΈΠ΅ Π΄ΠΈΠ·Π°ΠΉΠ½Π° Ρ Π½Π°ΡΠ΅ΠΉ Π±ΡΠΈΠ³Π°Π΄ΠΎΠΉ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ ΠΏΠΎΡΠ΅Π½ΡΠΈΠ°Π»ΠΎΠ² Ρ Π³Π°ΡΠ΄ΠΈΠ½Π°ΠΌΠΈ ΠΏΠ»ΠΈΡΡΠ΅ ΠΏΠΎΠ΄ ΠΏΠΎ Π·Π°ΠΊΠ°Π·Ρ!
Erstellt am 10/26/23 um 00:44:24
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Shtory_bib schrieb:
ΠΠ°ΡΠΈ ΡΠ΅Ρ
ΠΈ ΠΏΡΠ΅Π΄Π»Π°Π³Π°ΡΡ Π²Π°ΠΌ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΠΏΠ΅ΡΠ²ΠΎΡΡΠ΅ΠΏΠ΅Π½Π½ΡΠ΅ ΡΠΈΡΠΊΠΎΠ²Π°Π½Π½ΡΠ΅ ΠΈ ΠΎΡΠΈΠ³ΠΈΠ½Π°Π»ΡΠ½ΡΠ΅ ΠΈΠ΄Π΅ΠΈ Π² ΠΎΠ±Π»Π°ΡΡΠΈ Π΄ΠΎΠΌΠ°ΡΠ½Π΅Π³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°. ΠΡ ΡΠΎΠΊΡΡΠΈΡΡΠ΅ΠΌΡΡ Π½Π° ΠΈΠ·Π³ΠΎΡΠΎΠ²Π»Π΅Π½ΠΈΠΈ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΡ
ΡΡΠΎΡ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ Π·Π°ΠΊΠ°Π·Ρ, ΠΊΠΎΡΠΎΡΡΠ΅ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠΈΠ²Π°ΡΡ Π²Π°ΡΠ΅ΠΌΡ ΡΡΠ΅ΠΌΠ½ΠΎΠΌΡ ΠΆΠΈΠ»ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΡΠΉ Π»ΠΎΡΠΊ, Π½ΠΎ ΠΈ Π°ΠΊΡΠ΅Π½ΡΠΈΡΡΡΡ Π²Π°ΡΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΡ.
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠ΅ ΠΆΠ°Π»ΡΠ·ΠΈ</a> β ΡΡΠΎ ΡΠΎΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ ΡΠΎΡΠΊΠΎΡΠΈ ΠΈ ΡΡΠ½ΠΊΡΠΈΠΎΠ½Π°Π»ΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ ΡΠΎΡΠΌΠΈΡΡΡΡ ΡΡΡ, ΡΠΈΠ»ΡΡΡΡΡΡ ΡΠ²Π΅Ρ ΠΈ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°ΡΡ Π²Π°ΡΡ ΠΈΠ½ΡΠΈΠΌΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π», ΠΎΡΡΠ΅Π½ΠΎΠΊ ΠΈ Π΄Π΅ΠΊΠΎΡ, ΠΈ ΠΌΡ Ρ Ρ ΡΠ°Π΄ΠΎΡΡΡΡ ΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅ΠΌ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΈΠΌΠ΅Π½Π½ΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ Ρ Π°ΡΠ°ΠΊΡΠ΅Ρ Π²Π°ΡΠ΅Π³ΠΎ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠ°.
ΠΠ΅ ΡΡΠ΅ΡΠ½ΡΠΉΡΠ΅ΡΡ ΡΠ°Π±Π»ΠΎΠ½Π½ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ Π±ΡΠ΄Π΅ΡΠ΅ Π² ΡΠΎΡΡΠΎΡΠ½ΠΈΠΈ ΡΠΎΠ·Π΄Π°ΡΡ ΡΡΠΎΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ Π³Π°ΡΠΌΠΎΠ½ΠΈΡΠΎΠ²Π°ΡΡ Ρ Π²Π°ΡΠΈΠΌ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΡΠΌ Π²ΠΊΡΡΠΎΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΠΌ, ΠΈ Π²Π°Ρ Π΄Π²ΠΎΡΠ΅Ρ ΡΡΠ°Π½Π΅Ρ ΡΠ΅ΡΡΠΈΡΠΎΡΠΈΠ΅ΠΉ, Π³Π΄Π΅ Π²ΡΡΠΊΠΈΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ ΠΏΡΠΎΡΠ²Π»ΡΠ΅Ρ Π²Π°ΡΡ Π»ΠΈΡΠ½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>ΠΏΠΎΡΡΠ°Π»Π΅</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠ΅ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΆΠΈΠ»ΠΈΡΠ΅ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡΡ Π² ΠΎΠ°Π·ΠΈΡ ΡΡΠΈΠ»Ρ ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠ΅ ΠΌΠ΅ΡΡΡ ΠΎ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΠΎΠΌ Π²Π½ΡΡΡΠ΅Π½Π½Π΅ΠΌ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠΈ.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ Π»ΠΈΡΠ½ΡΡ ΡΠ°ΡΡΠΊΠ°Π· Π΄ΠΈΠ·Π°ΠΉΠ½Π° Ρ Π½Π°ΠΌΠΈ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ ΠΏΠΎΡΠ΅Π½ΡΠΈΠ°Π»ΠΎΠ² Ρ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠΌΠΈ ΡΡΠΎΡΠ°ΠΌΠΈ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ Π·Π°ΠΊΠ°Π·Ρ!
ΠΠ°ΡΠΈ <a href=https://tulpan-pmr.ru>ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠ΅ ΠΆΠ°Π»ΡΠ·ΠΈ</a> β ΡΡΠΎ ΡΠΎΠ΅Π΄ΠΈΠ½Π΅Π½ΠΈΠ΅ ΡΠΎΡΠΊΠΎΡΠΈ ΠΈ ΡΡΠ½ΠΊΡΠΈΠΎΠ½Π°Π»ΡΠ½ΠΎΡΡΠΈ. ΠΠ½ΠΈ ΡΠΎΡΠΌΠΈΡΡΡΡ ΡΡΡ, ΡΠΈΠ»ΡΡΡΡΡΡ ΡΠ²Π΅Ρ ΠΈ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°ΡΡ Π²Π°ΡΡ ΠΈΠ½ΡΠΈΠΌΠ½ΠΎΡΡΡ. ΠΡΠ±Π΅ΡΠΈΡΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π», ΠΎΡΡΠ΅Π½ΠΎΠΊ ΠΈ Π΄Π΅ΠΊΠΎΡ, ΠΈ ΠΌΡ Ρ Ρ ΡΠ°Π΄ΠΎΡΡΡΡ ΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅ΠΌ Π·Π°Π½Π°Π²Π΅ΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΈΠΌΠ΅Π½Π½ΠΎ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡ Ρ Π°ΡΠ°ΠΊΡΠ΅Ρ Π²Π°ΡΠ΅Π³ΠΎ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠ°.
ΠΠ΅ ΡΡΠ΅ΡΠ½ΡΠΉΡΠ΅ΡΡ ΡΠ°Π±Π»ΠΎΠ½Π½ΡΠΌΠΈ ΡΠ΅ΡΠ΅Π½ΠΈΡΠΌΠΈ. ΠΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ, Π²Ρ Π±ΡΠ΄Π΅ΡΠ΅ Π² ΡΠΎΡΡΠΎΡΠ½ΠΈΠΈ ΡΠΎΠ·Π΄Π°ΡΡ ΡΡΠΎΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ Π±ΡΠ΄ΡΡ Π³Π°ΡΠΌΠΎΠ½ΠΈΡΠΎΠ²Π°ΡΡ Ρ Π²Π°ΡΠΈΠΌ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΡΠΌ Π²ΠΊΡΡΠΎΠΌ. ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ Π½Π°ΠΌ, ΠΈ Π²Π°Ρ Π΄Π²ΠΎΡΠ΅Ρ ΡΡΠ°Π½Π΅Ρ ΡΠ΅ΡΡΠΈΡΠΎΡΠΈΠ΅ΠΉ, Π³Π΄Π΅ Π²ΡΡΠΊΠΈΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ ΠΏΡΠΎΡΠ²Π»ΡΠ΅Ρ Π²Π°ΡΡ Π»ΠΈΡΠ½ΠΎΡΡΡ.
ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ Π½Π° <a href=https://tulpan-pmr.ru>ΠΏΠΎΡΡΠ°Π»Π΅</a>.
ΠΠ°ΠΊΠ°ΠΆΠΈΡΠ΅ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠ΅ Π·Π°Π½Π°Π²Π΅ΡΠΈ ΠΏΠ»ΠΈΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠ΅ Ρ Π½Π°Ρ, ΠΈ Π²Π°Ρ ΠΆΠΈΠ»ΠΈΡΠ΅ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡΡ Π² ΠΎΠ°Π·ΠΈΡ ΡΡΠΈΠ»Ρ ΠΈ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΠ±ΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΊ Π½Π°ΠΌ, ΠΈ ΠΌΡ ΡΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ Π²Π°ΠΌ Π²ΠΎΠΏΠ»ΠΎΡΠΈΡΡ Π² ΠΆΠΈΠ·Π½Ρ Π²Π°ΡΠΈ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΡΠ΅ ΠΌΠ΅ΡΡΡ ΠΎ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΠΎΠΌ Π²Π½ΡΡΡΠ΅Π½Π½Π΅ΠΌ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠΈ.
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ Π»ΠΈΡΠ½ΡΡ ΡΠ°ΡΡΠΊΠ°Π· Π΄ΠΈΠ·Π°ΠΉΠ½Π° Ρ Π½Π°ΠΌΠΈ. ΠΡΠΊΡΠΎΠΉΡΠ΅ ΠΌΠΈΡ ΠΏΠΎΡΠ΅Π½ΡΠΈΠ°Π»ΠΎΠ² Ρ ΡΠ΅ΠΊΡΡΠΈΠ»ΡΠ½ΡΠΌΠΈ ΡΡΠΎΡΠ°ΠΌΠΈ ΡΠΎ ΡΠΊΠ»Π°Π΄ΠΊΠ°ΠΌΠΈ ΠΏΠΎΠ΄ ΠΏΠΎ Π·Π°ΠΊΠ°Π·Ρ!
Erstellt am 10/26/23 um 00:44:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
BVZ_Moskva_m schrieb:
: !
, , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://bystrovozvodimye-zd...>https://www.scholding.ru/</a>
, - -. , , , - . , !
, , . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://bystrovozvodimye-zd...>https://www.scholding.ru/</a>
, - -. , , , - . , !
Erstellt am 10/29/23 um 04:27:23
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
BVZ_Moskva_S schrieb:
: !
, , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://bystrovozvodimye-zd...>https://scholding.ru</a>
, - - . , , , . , !
, , - . , , .
<a href=https://bystrovozvodimye-zd...> </a>
1. : - , . , .
2. : , , . .
<a href=https://bystrovozvodimye-zd...>https://scholding.ru</a>
, - - . , , , . , !
Erstellt am 10/30/23 um 08:43:52
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
wow gold schrieb:
Dear immortals, I need some <a href=http://www.wowtot.com/>wow gold</a> inspiration to create.
Erstellt am 11/07/23 um 02:02:45
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stephenbes schrieb:
Enjoyed the photos, i really like the among %image_title%, perfect.
<a href=https://vernemholod.ru/>ΠΠ°ΠΌΠ° ΠΠ°Π·ΠΈΠ½ΠΎ</a>
<a href=https://vernemholod.ru/>ΠΠ°ΠΌΠ° ΠΠ°Π·ΠΈΠ½ΠΎ</a>
Erstellt am 11/16/23 um 21:54:54
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Uteplenie_sr schrieb:
!
, ! , .
-?
: . , .
: . <a href=https://stroystandart-kirov...> </a> 1350 ./.. !
: ! , .
!
<a href=https://stroystandart-kirov...>http://www.n-dom.ru
</a>
. - -!
, ! , .
-?
: . , .
: . <a href=https://stroystandart-kirov...> </a> 1350 ./.. !
: ! , .
!
<a href=https://stroystandart-kirov...>http://www.n-dom.ru
</a>
. - -!
Erstellt am 12/09/23 um 10:48:51
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Uteplenie_En schrieb:
!
, ! , .
?
: . , .
: . <a href=https://stroystandart-kirov...> </a> 1350 ./.. !
: ! , .
!
<a href=https://stroystandart-kirov...>https://www.n-dom.ru
</a>
. - -!
, ! , .
?
: . , .
: . <a href=https://stroystandart-kirov...> </a> 1350 ./.. !
: ! , .
!
<a href=https://stroystandart-kirov...>https://www.n-dom.ru
</a>
. - -!
Erstellt am 12/09/23 um 10:49:05
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Plisse_lat schrieb:
!
. , .
? , . , , , , , .
<a href=https://tulpan-pmr.ru> </a> !
? -, , . , , .
, . , , .
: <a href=https://tulpan-pmr.ru>http://www.tulpan-pmr.ru</a>
, !
. , .
? , . , , , , , .
<a href=https://tulpan-pmr.ru> </a> !
? -, , . , , .
, . , , .
: <a href=https://tulpan-pmr.ru>http://www.tulpan-pmr.ru</a>
, !
Erstellt am 02/13/24 um 11:49:07
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Plisse_bib schrieb:
!
. , .
? , . , , , , , .
<a href=https://tulpan-pmr.ru> </a> !
? -, , . , , .
, . , , .
: <a href=https://tulpan-pmr.ru>http://tulpan-pmr.ru</a>
, !
. , .
? , . , , , , , .
<a href=https://tulpan-pmr.ru> </a> !
? -, , . , , .
, . , , .
: <a href=https://tulpan-pmr.ru>http://tulpan-pmr.ru</a>
, !
Erstellt am 02/13/24 um 11:49:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
hub.docker.com schrieb:
Someone necessarily lend a hand to make critically
posts I would state. That is the first time I frequented your web page and to this point?
I amazed with the research you made to create this actual post incredible.
Wonderful job!
posts I would state. That is the first time I frequented your web page and to this point?
I amazed with the research you made to create this actual post incredible.
Wonderful job!
Erstellt am 02/19/24 um 18:01:17
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DennisBiz schrieb:
https://guide.in.ua/busines...
https://poltava.sq.com.ua/r...
https://www.0522.ua/list/28...
https://www.0512.com.ua/lis...
https://www.06274.com.ua/li...
https://www.0642.ua/list/34...
https://www.05366.com.ua/li...
https://www.0412.ua/list/36...
https://goloskarpat.info/ru...
https://www.0382.ua/list/34...
https://www.0552.ua/list/34...
https://poltava.sq.com.ua/r...
https://www.0522.ua/list/28...
https://www.0512.com.ua/lis...
https://www.06274.com.ua/li...
https://www.0642.ua/list/34...
https://www.05366.com.ua/li...
https://www.0412.ua/list/36...
https://goloskarpat.info/ru...
https://www.0382.ua/list/34...
https://www.0552.ua/list/34...
Erstellt am 02/20/24 um 18:39:05
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Janelle schrieb:
I am genuinely pleased to read this weblog posts which includes
lots of helpful facts, thanks for providing such statistics.
lots of helpful facts, thanks for providing such statistics.
Erstellt am 02/22/24 um 00:49:51
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
beaubyae668.mystrikingly.com schrieb:
Hi there to all, how is the whole thing, I think every one is getting
more from this web page, and your views are good designed
for new people.
more from this web page, and your views are good designed
for new people.
Erstellt am 02/22/24 um 03:25:16
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
https://www.protopage.com/marielqemo schrieb:
Heya i'm for the primary time here. I came across this board and I to find It really useful & it helped me
out much. I hope to provide something back and help others like you helped me.
out much. I hope to provide something back and help others like you helped me.
Erstellt am 02/22/24 um 04:21:43
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
sqworl.com schrieb:
I used to be suggested this website via my cousin. I am not positive
whether this submit is written by him as nobody else recognize such distinct about my trouble.
You are incredible! Thank you!
whether this submit is written by him as nobody else recognize such distinct about my trouble.
You are incredible! Thank you!
Erstellt am 02/22/24 um 08:04:52
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Eleanore schrieb:
Wow, awesome blog structure! How long have you ever been blogging for?
you make blogging glance easy. The entire glance of your site
is excellent, let alone the content!
you make blogging glance easy. The entire glance of your site
is excellent, let alone the content!
Erstellt am 02/29/24 um 23:05:24
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-prof_sr schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>http://www.ppu-prof.ru</a>
! , , . ? . .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>http://www.ppu-prof.ru</a>
! , , . ? . .
Erstellt am 03/13/24 um 18:57:21
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-prof_En schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 2! , .
, , . , .
<a href=https://ppu-prof.ru/>http://www.ppu-prof.ru</a>
! , , . ? -. .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 2! , .
, , . , .
<a href=https://ppu-prof.ru/>http://www.ppu-prof.ru</a>
! , , . ? -. .
Erstellt am 03/13/24 um 18:57:24
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Seo-Ul-bug schrieb:
, .
.
:
<a href=https://seo-prodvizhenie-ul...> </a>
.
.
- .
<a href=https://seo-prodvizhenie-ul...>https://seo-prodvizhenie-ulyanovsk1.ru/</a>
: , , , . , , .
. .
.
:
<a href=https://seo-prodvizhenie-ul...> </a>
.
.
- .
<a href=https://seo-prodvizhenie-ul...>https://seo-prodvizhenie-ulyanovsk1.ru/</a>
: , , , . , , .
. .
Erstellt am 03/16/24 um 17:16:57
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Seo-Ul-Tem schrieb:
SEO-, .
.
:
<a href=https://seo-prodvizhenie-ul...> seo</a>
.
.
- .
<a href=https://seo-prodvizhenie-ul...>https://seo-prodvizhenie-ulyanovsk1.ru/</a>
: , , , . , , .
. .
.
:
<a href=https://seo-prodvizhenie-ul...> seo</a>
.
.
- .
<a href=https://seo-prodvizhenie-ul...>https://seo-prodvizhenie-ulyanovsk1.ru/</a>
: , , , . , , .
. .
Erstellt am 03/16/24 um 17:17:04
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Jamesgap schrieb:
Π Π°ΡΡΠΎΡΡΠΈΠΌΠ΅Π½ΡΠ΅ Π½Π°ΡΠ΅Π³ΠΎ <a href=http://santehdom38.ru/>ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ-ΠΌΠ°Π³Π°Π·ΠΈΠ½Π° ΡΠ°Π½ΡΠ΅Ρ
Π½ΠΈΠΊΠΈ</a> ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½Π° ΡΠΎΠ»ΡΠΊΠΎ ΠΎΡΠΈΠ³ΠΈΠ½Π°Π»ΡΠ½Π°Ρ ΠΏΡΠΎΠ΄ΡΠΊΡΠΈΡ ΡΠ°ΠΊΠΈΡ
ΠΈΠ·Π²Π΅ΡΡΠ½ΡΡ
Π±ΡΠ΅Π½Π΄ΠΎΠ² ΠΊΠ°ΠΊ ΠΠΆΠΈΠ»Π΅ΠΊΡ, PRO AQUA, Valfex, LD, Π‘Π’Π ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΡ
Π΄ΡΡΠ³ΠΈΡ
Erstellt am 03/26/24 um 01:28:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Kennethjeato schrieb:
<h1>ΠΡΠΎΡΡΡΠ΅ ΠΈ ΡΡΡΠ΅ΠΊΡΠΈΠ²Π½ΡΠ΅ ΡΠΏΠΎΡΠΎΠ±Ρ ΡΠ·Π½Π°ΡΡ <a href=https://montazh-market.ru/k...>ΡΡΠ»ΠΎΠ²Π½ΡΠΉ Π½ΠΎΠΌΠ΅Ρ ΠΎΠ±ΡΠ΅ΠΊΡΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ ΠΎΡΠΈΠ΅Π½ΡΠΈΡΠΎΠ²Π°ΡΡΡΡ Π² Π³ΡΠ°Π΄ΠΎΡΡΡΠΎΠΈΡΠ΅Π»ΡΠ½ΡΡ
ΠΏΠ»Π°Π½Π°Ρ
</h1>
ΠΠ½ΠΎΠ³Π΄Π°, ΠΏΡΠΈ ΡΠ°ΡΡΠΌΠΎΡΡΠ΅Π½ΠΈΠΈ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΠΉ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈΠ»ΠΈ Π°ΡΠ΅Π½Π΄Π΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, ΠΌΡ ΠΌΠΎΠΆΠ΅ΠΌ ΡΡΠΎΠ»ΠΊΠ½ΡΡΡΡΡ Ρ Π·Π°Π³Π°Π΄ΠΎΡΠ½ΡΠΌΠΈ ΡΠΈΡΡΠΎ-Π±ΡΠΊΠ²Π΅Π½Π½ΡΠΌΠΈ ΠΎΠ±ΠΎΠ·Π½Π°ΡΠ΅Π½ΠΈΡΠΌΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΡΠ²Π»ΡΡΡΡΡ <a href=https://montazh-market.ru/k...>ΡΡΠ»ΠΎΠ²Π½ΡΠΌΠΈ Π½ΠΎΠΌΠ΅ΡΠ°ΠΌΠΈ ΠΎΠ±ΡΠ΅ΠΊΡΠΎΠ²</a>. ΠΡΠΈ ΠΊΠΎΠ΄Ρ ΠΌΠΎΠ³ΡΡ Π²ΡΠ³Π»ΡΠ΄Π΅ΡΡ Π½Π΅ΠΏΠΎΠ½ΡΡΠ½ΠΎ ΠΈ Π²ΡΠ·ΡΠ²Π°ΡΡ Π·Π°ΡΡΡΠ΄Π½Π΅Π½ΠΈΠ΅ ΡΠ΅ΠΌ, ΠΊΡΠΎ Π²ΠΏΠ΅ΡΠ²ΡΠ΅ ΡΡΠ°Π»ΠΊΠΈΠ²Π°Π΅ΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌ ΡΠΏΠΎΡΠΎΠ±ΠΎΠΌ ΠΈΠ΄Π΅Π½ΡΠΈΡΠΈΠΊΠ°ΡΠΈΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠΎ Π½Π΅ ΡΡΠΎΠΈΡ ΠΎΡΡΠ°ΠΈΠ²Π°ΡΡΡΡ! Π ΡΡΠΎΠΉ ΡΡΠ°ΡΡΠ΅ ΠΌΡ ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎ ΡΠΎΠΌ, ΠΊΠ°ΠΊ ΡΠ°ΡΡΠΈΡΡΠΎΠ²Π°ΡΡ ΡΡΠΈ ΠΊΠΎΠ΄Ρ ΠΈ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π² ΡΠΎΠΌ, ΠΊΠ°ΠΊΠ°Ρ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΡΠΊΡΡΡΠ° Π·Π° ΠΊΠ°ΠΆΠ΄ΡΠΌ ΡΠΈΠΌΠ²ΠΎΠ»ΠΎΠΌ. ΠΠ»Π°Π³ΠΎΠ΄Π°ΡΡ Π½Π°ΡΠΈΠΌ ΠΏΠΎΠ΄ΡΠΊΠ°Π·ΠΊΠ°ΠΌ ΠΈ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΡΠΌ Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ Π»Π΅Π³ΠΊΠΎ ΠΈ Π±Π΅Π· ΡΡΡΠ΄Π° ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΡΡ Π½ΠΎΠΌΠ΅Ρ ΠΎΠ±ΡΠ΅ΠΊΡΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΡ Π²Π°ΠΆΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ Π½Π΅ΠΌ.
ΠΠ»Ρ Π½Π°ΡΠ°Π»Π°, Π΄Π°Π²Π°ΠΉΡΠ΅ ΠΎΠ±ΡΠ°ΡΠΈΠΌ Π²Π½ΠΈΠΌΠ°Π½ΠΈΠ΅ Π½Π° Π²Π°ΠΆΠ½ΠΎΡΡΡ ΠΏΠΎΠ½ΠΈΠΌΠ°Π½ΠΈΡ ΡΠ΅Π»ΡΠ½ΠΎΠΉ ΡΠΈΡΡΠ΅ΠΌΡ ΠΊΠΎΠ΄ΠΈΡΠΎΠ²Π°Π½ΠΈΡ, ΠΊΠΎΡΠΎΡΠ°Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π΄Π»Ρ ΠΎΠ±ΠΎΠ·Π½Π°ΡΠ΅Π½ΠΈΡ ΠΎΠ±ΡΠ΅ΠΊΡΠΎΠ² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. Π ΠΎΡΠ½ΠΎΠ²Π΅ ΡΡΠΎΠΉ ΡΠΈΡΡΠ΅ΠΌΡ Π»Π΅ΠΆΠΈΡ ΡΠΎΡΠ΅ΡΠ°Π½ΠΈΠ΅ Π±ΡΠΊΠ² ΠΈ ΡΠΈΡΡ, ΠΊΠ°ΠΆΠ΄ΡΠΉ ΠΈΠ· ΠΊΠΎΡΠΎΡΡΡ Π½Π΅ΡΠ΅Ρ ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ Ρ Π°ΡΠ°ΠΊΡΠ΅ΡΠΈΡΡΠΈΠΊΠ°Ρ ΠΎΠ±ΡΠ΅ΠΊΡΠ° ΠΈΠ»ΠΈ ΠΎ Π΅Π³ΠΎ ΠΌΠ΅ΡΡΠΎΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ. ΠΠ΅ΠΊΠΎΡΠΎΡΡΠ΅ ΠΎΠ±ΠΎΠ·Π½Π°ΡΠ΅Π½ΠΈΡ ΠΌΠΎΠ³ΡΡ Π±ΡΡΡ ΡΡΠ°Π½Π΄Π°ΡΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½ΡΠΌΠΈ, Π² ΡΠΎ Π²ΡΠ΅ΠΌΡ ΠΊΠ°ΠΊ Π΄ΡΡΠ³ΠΈΠ΅ β ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΡΠΌΠΈ Π΄Π»Ρ ΡΠ°Π·Π½ΡΡ ΡΡΠ½ΠΊΠΎΠ² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
Π’Π°ΠΊΠΆΠ΅ ΡΠΎΠ²Π΅ΡΡΠ΅ΠΌ Π΄ΡΡΠ³ΠΈΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π΄Π°Π½Π½ΠΎΠΉ ΡΠ΅ΠΌΠ΅, ΡΠ°ΠΊΠΈΠ΅ ΠΊΠ°ΠΊΠΈΠ΅ <a href=https://montazh-market.ru/c...>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>
ΠΠ½ΠΎΠ³Π΄Π°, ΠΏΡΠΈ ΡΠ°ΡΡΠΌΠΎΡΡΠ΅Π½ΠΈΠΈ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΠΉ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈΠ»ΠΈ Π°ΡΠ΅Π½Π΄Π΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, ΠΌΡ ΠΌΠΎΠΆΠ΅ΠΌ ΡΡΠΎΠ»ΠΊΠ½ΡΡΡΡΡ Ρ Π·Π°Π³Π°Π΄ΠΎΡΠ½ΡΠΌΠΈ ΡΠΈΡΡΠΎ-Π±ΡΠΊΠ²Π΅Π½Π½ΡΠΌΠΈ ΠΎΠ±ΠΎΠ·Π½Π°ΡΠ΅Π½ΠΈΡΠΌΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΡΠ²Π»ΡΡΡΡΡ <a href=https://montazh-market.ru/k...>ΡΡΠ»ΠΎΠ²Π½ΡΠΌΠΈ Π½ΠΎΠΌΠ΅ΡΠ°ΠΌΠΈ ΠΎΠ±ΡΠ΅ΠΊΡΠΎΠ²</a>. ΠΡΠΈ ΠΊΠΎΠ΄Ρ ΠΌΠΎΠ³ΡΡ Π²ΡΠ³Π»ΡΠ΄Π΅ΡΡ Π½Π΅ΠΏΠΎΠ½ΡΡΠ½ΠΎ ΠΈ Π²ΡΠ·ΡΠ²Π°ΡΡ Π·Π°ΡΡΡΠ΄Π½Π΅Π½ΠΈΠ΅ ΡΠ΅ΠΌ, ΠΊΡΠΎ Π²ΠΏΠ΅ΡΠ²ΡΠ΅ ΡΡΠ°Π»ΠΊΠΈΠ²Π°Π΅ΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌ ΡΠΏΠΎΡΠΎΠ±ΠΎΠΌ ΠΈΠ΄Π΅Π½ΡΠΈΡΠΈΠΊΠ°ΡΠΈΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠΎ Π½Π΅ ΡΡΠΎΠΈΡ ΠΎΡΡΠ°ΠΈΠ²Π°ΡΡΡΡ! Π ΡΡΠΎΠΉ ΡΡΠ°ΡΡΠ΅ ΠΌΡ ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎ ΡΠΎΠΌ, ΠΊΠ°ΠΊ ΡΠ°ΡΡΠΈΡΡΠΎΠ²Π°ΡΡ ΡΡΠΈ ΠΊΠΎΠ΄Ρ ΠΈ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π² ΡΠΎΠΌ, ΠΊΠ°ΠΊΠ°Ρ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΡΠΊΡΡΡΠ° Π·Π° ΠΊΠ°ΠΆΠ΄ΡΠΌ ΡΠΈΠΌΠ²ΠΎΠ»ΠΎΠΌ. ΠΠ»Π°Π³ΠΎΠ΄Π°ΡΡ Π½Π°ΡΠΈΠΌ ΠΏΠΎΠ΄ΡΠΊΠ°Π·ΠΊΠ°ΠΌ ΠΈ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΡΠΌ Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ Π»Π΅Π³ΠΊΠΎ ΠΈ Π±Π΅Π· ΡΡΡΠ΄Π° ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΡΡ Π½ΠΎΠΌΠ΅Ρ ΠΎΠ±ΡΠ΅ΠΊΡΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΡ Π²Π°ΠΆΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ Π½Π΅ΠΌ.
ΠΠ»Ρ Π½Π°ΡΠ°Π»Π°, Π΄Π°Π²Π°ΠΉΡΠ΅ ΠΎΠ±ΡΠ°ΡΠΈΠΌ Π²Π½ΠΈΠΌΠ°Π½ΠΈΠ΅ Π½Π° Π²Π°ΠΆΠ½ΠΎΡΡΡ ΠΏΠΎΠ½ΠΈΠΌΠ°Π½ΠΈΡ ΡΠ΅Π»ΡΠ½ΠΎΠΉ ΡΠΈΡΡΠ΅ΠΌΡ ΠΊΠΎΠ΄ΠΈΡΠΎΠ²Π°Π½ΠΈΡ, ΠΊΠΎΡΠΎΡΠ°Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π΄Π»Ρ ΠΎΠ±ΠΎΠ·Π½Π°ΡΠ΅Π½ΠΈΡ ΠΎΠ±ΡΠ΅ΠΊΡΠΎΠ² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. Π ΠΎΡΠ½ΠΎΠ²Π΅ ΡΡΠΎΠΉ ΡΠΈΡΡΠ΅ΠΌΡ Π»Π΅ΠΆΠΈΡ ΡΠΎΡΠ΅ΡΠ°Π½ΠΈΠ΅ Π±ΡΠΊΠ² ΠΈ ΡΠΈΡΡ, ΠΊΠ°ΠΆΠ΄ΡΠΉ ΠΈΠ· ΠΊΠΎΡΠΎΡΡΡ Π½Π΅ΡΠ΅Ρ ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ Ρ Π°ΡΠ°ΠΊΡΠ΅ΡΠΈΡΡΠΈΠΊΠ°Ρ ΠΎΠ±ΡΠ΅ΠΊΡΠ° ΠΈΠ»ΠΈ ΠΎ Π΅Π³ΠΎ ΠΌΠ΅ΡΡΠΎΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ. ΠΠ΅ΠΊΠΎΡΠΎΡΡΠ΅ ΠΎΠ±ΠΎΠ·Π½Π°ΡΠ΅Π½ΠΈΡ ΠΌΠΎΠ³ΡΡ Π±ΡΡΡ ΡΡΠ°Π½Π΄Π°ΡΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½ΡΠΌΠΈ, Π² ΡΠΎ Π²ΡΠ΅ΠΌΡ ΠΊΠ°ΠΊ Π΄ΡΡΠ³ΠΈΠ΅ β ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΡΠΌΠΈ Π΄Π»Ρ ΡΠ°Π·Π½ΡΡ ΡΡΠ½ΠΊΠΎΠ² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
Π’Π°ΠΊΠΆΠ΅ ΡΠΎΠ²Π΅ΡΡΠ΅ΠΌ Π΄ΡΡΠ³ΠΈΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π΄Π°Π½Π½ΠΎΠΉ ΡΠ΅ΠΌΠ΅, ΡΠ°ΠΊΠΈΠ΅ ΠΊΠ°ΠΊΠΈΠ΅ <a href=https://montazh-market.ru/c...>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>
Erstellt am 03/26/24 um 03:43:37
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
BillyFoubs schrieb:
ΠΠ»Π΅ΠΊΡΡΠΎΠ½Π½Π°Ρ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ Π² Π ΠΎΡΡΠ΅Π΅ΡΡΡΠ΅ - Π‘Π΄Π΅Π»ΠΊΠΈ ΠΎΠ½Π»Π°ΠΉΠ½ - Π¦Π΅Π½ΡΡ "ΠΠ΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΠΈ ΠΏΡΠ°Π²ΠΎ"
ΠΠ»Π΅ΠΊΡΡΠΎΠ½Π½Π°Ρ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ Π² Π ΠΎΡΡΠ΅Π΅ΡΡΡΠ΅ <a href=https://nedvizhimost-info.ru/>ΡΠ΄Π΅Π»ΠΎΠΊ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ</a>. Π£ΡΠΊΠΎΡΠ΅Π½Π½ΡΠ΅ ΡΡΠΎΠΊΠΈ - 3-7 Π΄Π½Π΅ΠΉ. ΠΡΠΏΠΈΡΠΊΠΈ ΠΈΠ· ΠΠΠ Π.
ΠΠ»Π΅ΠΊΡΡΠΎΠ½Π½Π°Ρ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ Π² Π ΠΎΡΡΠ΅Π΅ΡΡΡΠ΅ <a href=https://nedvizhimost-info.ru/>ΡΠ΄Π΅Π»ΠΎΠΊ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ</a>. Π£ΡΠΊΠΎΡΠ΅Π½Π½ΡΠ΅ ΡΡΠΎΠΊΠΈ - 3-7 Π΄Π½Π΅ΠΉ. ΠΡΠΏΠΈΡΠΊΠΈ ΠΈΠ· ΠΠΠ Π.
Erstellt am 03/29/24 um 02:01:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ThomasMap schrieb:
Π£ΡΡΠ½ΡΠ΅ <a href=https://byuro-kvartir.ru/>ΠΠ²Π°ΡΡΠΈΡΡ ΠΏΠΎΡΡΡΠΎΡΠ½ΠΎ Π² Π‘ΠΈΠΌΡΠ΅ΡΠΎΠΏΠΎΠ»Π΅</a>
Erstellt am 03/29/24 um 03:43:04
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Rogerlep schrieb:
<h1>ΠΠ°ΠΊ Π²ΡΠ±ΡΠ°ΡΡ ΠΈ Π³Π΄Π΅ <a href=http://art-wall32.ru/>ΠΊΡΠΏΠΈΡΡ ΠΎΠ±ΠΎΠΈ ΠΏΠΎΠ΄ ΠΊΠΈΡΠΏΠΈΡ</a>, ΡΡΠΎΠ±Ρ ΡΠΎΠ·Π΄Π°ΡΡ ΡΡΠΈΠ»ΡΠ½ΡΠΉ ΠΈ ΡΡΡΠ½ΡΠΉ ΠΈΠ½ΡΠ΅ΡΡΠ΅Ρ? ΠΡΡΡΠΈΠ΅ ΡΠΎΠ²Π΅ΡΡ ΠΎΡ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΎΠ½Π°Π»ΠΎΠ²!</h1>
ΠΠΎΠ²ΡΠ΅ ΡΠ΅Π½Π΄Π΅Π½ΡΠΈΠΈ Π² Π΄ΠΈΠ·Π°ΠΉΠ½Π΅ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠΎΠ² Π½Π΅ΡΠΌΠΎΠ»ΠΈΠΌΠΎ ΠΏΡΠΈΠ½ΠΎΡΡΡ Π½ΠΎΠ²ΡΠ΅ ΠΈΠ΄Π΅ΠΈ ΠΈ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΠΏΡΠ΅Π΄Π»Π°Π³Π°Ρ Π½Π°ΠΌ Π±Π΅ΡΠΊΠΎΠ½Π΅ΡΠ½ΠΎΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ Π²Π°ΡΠΈΠ°Π½ΡΠΎΠ² Π΄Π»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΠΎΠ³ΠΎ ΠΈ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΠΎΠ³ΠΎ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²Π°. Π‘ΡΠ΅Π΄ΠΈ ΠΌΠ½ΠΎΠ³ΠΎΠΎΠ±ΡΠ°Π·ΠΈΡ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΠ΅ΠΉ Π²ΡΠ΄Π΅Π»ΡΡΡΡΡ ΠΎΠ±ΠΎΠΈ ΠΏΠΎΠ΄ ΠΊΠΈΡΠΏΠΈΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΎΠ±ΡΠ΅Π΄ΠΈΠ½ΡΡΡ Π² ΡΠ΅Π±Π΅ ΡΡΡΠ΅ΡΠΈΠΊΡ ΠΈ ΠΏΡΠ°ΠΊΡΠΈΡΠ½ΠΎΡΡΡ. ΠΡΠΎΡ ΡΡΠΈΠ»ΡΠ½ΡΠΉ ΠΈ ΡΠΎΠ²ΡΠ΅ΠΌΠ΅Π½Π½ΡΠΉ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π» ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΡΠΎΠ·Π΄Π°ΡΡ Π°ΡΠΌΠΎΡΡΠ΅ΡΡ Π²ΠΈΠ½ΡΠ°ΠΆΠ° ΠΈ ΠΈΡΡΠΎΡΠΈΡΠ΅ΡΠΊΠΎΠ³ΠΎ Π½Π°ΡΠ»Π΅Π΄ΠΈΡ, Π΄ΠΎΠ±Π°Π²Π»ΡΡ ΡΡΡΠ° ΠΈ Π²ΠΈΠ·ΡΠ°Π»ΡΠ½ΠΎΠ³ΠΎ ΡΠ°Π·Π½ΠΎΠΎΠ±ΡΠ°Π·ΠΈΡ Π² ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΠ΅.
ΠΠ±ΠΎΠΈ ΠΏΠΎΠ΄ ΠΊΠΈΡΠΏΠΈΡ ΠΎΠ±Π»Π°Π΄Π°ΡΡ ΠΎΡΠΎΠ±ΡΠΌ ΡΠ°ΡΠΌΠΎΠΌ ΠΈ ΡΠΏΠΎΡΠΎΠ±Π½Ρ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡ Π΄Π°ΠΆΠ΅ ΡΠ°ΠΌΡΠ΅ ΡΠΊΡΡΠ½ΡΠ΅ ΠΈ ΠΌΠ°Π»ΠΎΠΏΡΠΈΠ²Π»Π΅ΠΊΠ°ΡΠ΅Π»ΡΠ½ΡΠ΅ ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΡ. ΠΠ»Π°Π³ΠΎΠ΄Π°ΡΡ ΡΠ²ΠΎΠ΅ΠΉ Π½Π°ΡΡΡΠ°Π»ΡΠ½ΠΎΡΡΠΈ ΠΈ ΡΠ΅Π°Π»ΠΈΡΡΠΈΡΠ½ΠΎΡΡΠΈ, ΠΎΠ½ΠΈ ΠΏΠΎΠ·Π²ΠΎΠ»ΡΡΡ ΡΠΎΠ·Π΄Π°ΡΡ ΠΈΠ»Π»ΡΠ·ΠΈΡ Π½Π°ΡΡΠΎΡΡΠ΅ΠΉ ΠΊΠΈΡΠΏΠΈΡΠ½ΠΎΠΉ ΡΡΠ΅Π½Ρ, Π²Π½ΠΎΡΠΈΡΡ Π² ΠΈΠ½ΡΠ΅ΡΡΠ΅Ρ ΠΎΡΡΡΠ΅Π½ΠΈΠ΅ Π³Π°ΡΠΌΠΎΠ½ΠΈΠΈ ΠΈ ΡΡΠ°Π±ΠΈΠ»ΡΠ½ΠΎΡΡΠΈ. ΠΡΠ±ΠΎΡ ΡΠ°ΡΡΠ²Π΅ΡΠΎΠΊ ΠΈ ΡΠ°ΠΊΡΡΡ ΠΎΠ±ΠΎΠ΅Π² ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΠΈΡΠΊΡΡΠ½ΠΎ ΠΏΡΠΎΡΠ»Π΅Π΄ΠΈΡΡ ΠΏΡΠ΅ΠΎΠ±Π»Π°Π΄Π°Π½ΠΈΠ΅ ΡΠΎΠΉ ΠΈΠ»ΠΈ ΠΈΠ½ΠΎΠΉ ΡΠΏΠΎΡ ΠΈ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡΡ ΠΎΡΠΎΠ±ΡΡ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΠΎΡΡΡ ΠΈ ΠΈΠ½ΡΡΠΈΠ³Ρ Π²Π°ΡΠ΅ΠΉ ΠΎΠ±ΡΡΠ°Π½ΠΎΠ²ΠΊΠΈ.
ΠΠ°ΡΡΠΈΠΎΠ½ ΡΠΎΠ²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠ³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°, <a href=http://art-wall32.ru/>ΠΎΠ±ΠΎΠΈ ΠΏΠΎΠ΄ ΠΊΠΈΡΠΏΠΈΡ</a> ΠΏΡΠΈΠ²Π»Π΅ΠΊΠ°ΡΡ ΡΠ²ΠΎΠΈΠΌ ΠΎΡΠΈΠ³ΠΈΠ½Π°Π»ΡΠ½ΡΠΌ Π²ΠΈΠ΄ΠΎΠΌ, Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΠΎΠΉ Π·Π²ΡΠΊΠΎΠΈΠ·ΠΎΠ»ΡΡΠΈΠ΅ΠΉ ΠΈ ΡΠΊΠΎΠ»ΠΎΠ³ΠΈΡΠ΅ΡΠΊΠΎΠΉ Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡΡ. ΠΠ½ΠΈ ΠΌΠΎΠ³ΡΡ ΠΏΡΠΈΠΌΠ΅Π½ΡΡΡΡΡ Π² Π»ΡΠ±ΠΎΠΌ ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΠΈ, Π±ΡΠ΄Ρ ΡΠΎ Π³ΠΎΡΡΠΈΠ½Π°Ρ, ΡΠΏΠ°Π»ΡΠ½Ρ, ΠΊΡΡ Π½Ρ ΠΈΠ»ΠΈ ΠΎΡΠΈΡΠ½ΠΎΠ΅ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²ΠΎ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎΡΠ»ΠΈΡΠ½ΠΎ ΡΠΎΡΠ΅ΡΠ°ΡΡΡΡ Ρ Π΄ΡΡΠ³ΠΈΠΌΠΈ ΠΎΡΠ΄Π΅Π»ΠΎΡΠ½ΡΠΌΠΈ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°ΠΌΠΈ, ΡΠΎΠ·Π΄Π°Π²Π°Ρ ΡΡΡΠ΅ΠΊΡΠ½ΡΠΉ ΠΊΠΎΠ½ΡΡΠ°ΡΡ ΠΈ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠΈΠ²Π°Ρ Π²Π°ΡΡ Π²ΠΊΡΡΠΎΠ²ΡΡ ΠΏΡΠΈΠ²Π΅ΡΠΆΠ΅Π½Π½ΠΎΡΡΡ.
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ Π΄Π»Ρ Π²Π°Ρ ΡΠΊΠΈΠ΄ΠΊΡ 15% Π½Π° Π½Π°ΡΠΈ <a href=http://art-wall32.ru/>Π€ΠΎΡΠΎΠΎΠ±ΠΎΠΈ</a>
ΠΠΎΠ²ΡΠ΅ ΡΠ΅Π½Π΄Π΅Π½ΡΠΈΠΈ Π² Π΄ΠΈΠ·Π°ΠΉΠ½Π΅ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠΎΠ² Π½Π΅ΡΠΌΠΎΠ»ΠΈΠΌΠΎ ΠΏΡΠΈΠ½ΠΎΡΡΡ Π½ΠΎΠ²ΡΠ΅ ΠΈΠ΄Π΅ΠΈ ΠΈ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΠΏΡΠ΅Π΄Π»Π°Π³Π°Ρ Π½Π°ΠΌ Π±Π΅ΡΠΊΠΎΠ½Π΅ΡΠ½ΠΎΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ Π²Π°ΡΠΈΠ°Π½ΡΠΎΠ² Π΄Π»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΠΎΠ³ΠΎ ΠΈ Π½Π΅ΠΏΠΎΠ²ΡΠΎΡΠΈΠΌΠΎΠ³ΠΎ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²Π°. Π‘ΡΠ΅Π΄ΠΈ ΠΌΠ½ΠΎΠ³ΠΎΠΎΠ±ΡΠ°Π·ΠΈΡ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΠ΅ΠΉ Π²ΡΠ΄Π΅Π»ΡΡΡΡΡ ΠΎΠ±ΠΎΠΈ ΠΏΠΎΠ΄ ΠΊΠΈΡΠΏΠΈΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΎΠ±ΡΠ΅Π΄ΠΈΠ½ΡΡΡ Π² ΡΠ΅Π±Π΅ ΡΡΡΠ΅ΡΠΈΠΊΡ ΠΈ ΠΏΡΠ°ΠΊΡΠΈΡΠ½ΠΎΡΡΡ. ΠΡΠΎΡ ΡΡΠΈΠ»ΡΠ½ΡΠΉ ΠΈ ΡΠΎΠ²ΡΠ΅ΠΌΠ΅Π½Π½ΡΠΉ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π» ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΡΠΎΠ·Π΄Π°ΡΡ Π°ΡΠΌΠΎΡΡΠ΅ΡΡ Π²ΠΈΠ½ΡΠ°ΠΆΠ° ΠΈ ΠΈΡΡΠΎΡΠΈΡΠ΅ΡΠΊΠΎΠ³ΠΎ Π½Π°ΡΠ»Π΅Π΄ΠΈΡ, Π΄ΠΎΠ±Π°Π²Π»ΡΡ ΡΡΡΠ° ΠΈ Π²ΠΈΠ·ΡΠ°Π»ΡΠ½ΠΎΠ³ΠΎ ΡΠ°Π·Π½ΠΎΠΎΠ±ΡΠ°Π·ΠΈΡ Π² ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΠ΅.
ΠΠ±ΠΎΠΈ ΠΏΠΎΠ΄ ΠΊΠΈΡΠΏΠΈΡ ΠΎΠ±Π»Π°Π΄Π°ΡΡ ΠΎΡΠΎΠ±ΡΠΌ ΡΠ°ΡΠΌΠΎΠΌ ΠΈ ΡΠΏΠΎΡΠΎΠ±Π½Ρ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΈΡΡ Π΄Π°ΠΆΠ΅ ΡΠ°ΠΌΡΠ΅ ΡΠΊΡΡΠ½ΡΠ΅ ΠΈ ΠΌΠ°Π»ΠΎΠΏΡΠΈΠ²Π»Π΅ΠΊΠ°ΡΠ΅Π»ΡΠ½ΡΠ΅ ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΡ. ΠΠ»Π°Π³ΠΎΠ΄Π°ΡΡ ΡΠ²ΠΎΠ΅ΠΉ Π½Π°ΡΡΡΠ°Π»ΡΠ½ΠΎΡΡΠΈ ΠΈ ΡΠ΅Π°Π»ΠΈΡΡΠΈΡΠ½ΠΎΡΡΠΈ, ΠΎΠ½ΠΈ ΠΏΠΎΠ·Π²ΠΎΠ»ΡΡΡ ΡΠΎΠ·Π΄Π°ΡΡ ΠΈΠ»Π»ΡΠ·ΠΈΡ Π½Π°ΡΡΠΎΡΡΠ΅ΠΉ ΠΊΠΈΡΠΏΠΈΡΠ½ΠΎΠΉ ΡΡΠ΅Π½Ρ, Π²Π½ΠΎΡΠΈΡΡ Π² ΠΈΠ½ΡΠ΅ΡΡΠ΅Ρ ΠΎΡΡΡΠ΅Π½ΠΈΠ΅ Π³Π°ΡΠΌΠΎΠ½ΠΈΠΈ ΠΈ ΡΡΠ°Π±ΠΈΠ»ΡΠ½ΠΎΡΡΠΈ. ΠΡΠ±ΠΎΡ ΡΠ°ΡΡΠ²Π΅ΡΠΎΠΊ ΠΈ ΡΠ°ΠΊΡΡΡ ΠΎΠ±ΠΎΠ΅Π² ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΠΈΡΠΊΡΡΠ½ΠΎ ΠΏΡΠΎΡΠ»Π΅Π΄ΠΈΡΡ ΠΏΡΠ΅ΠΎΠ±Π»Π°Π΄Π°Π½ΠΈΠ΅ ΡΠΎΠΉ ΠΈΠ»ΠΈ ΠΈΠ½ΠΎΠΉ ΡΠΏΠΎΡ ΠΈ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠ½ΡΡΡ ΠΎΡΠΎΠ±ΡΡ ΠΈΠ½Π΄ΠΈΠ²ΠΈΠ΄ΡΠ°Π»ΡΠ½ΠΎΡΡΡ ΠΈ ΠΈΠ½ΡΡΠΈΠ³Ρ Π²Π°ΡΠ΅ΠΉ ΠΎΠ±ΡΡΠ°Π½ΠΎΠ²ΠΊΠΈ.
ΠΠ°ΡΡΠΈΠΎΠ½ ΡΠΎΠ²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠ³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π°, <a href=http://art-wall32.ru/>ΠΎΠ±ΠΎΠΈ ΠΏΠΎΠ΄ ΠΊΠΈΡΠΏΠΈΡ</a> ΠΏΡΠΈΠ²Π»Π΅ΠΊΠ°ΡΡ ΡΠ²ΠΎΠΈΠΌ ΠΎΡΠΈΠ³ΠΈΠ½Π°Π»ΡΠ½ΡΠΌ Π²ΠΈΠ΄ΠΎΠΌ, Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΠΎΠΉ Π·Π²ΡΠΊΠΎΠΈΠ·ΠΎΠ»ΡΡΠΈΠ΅ΠΉ ΠΈ ΡΠΊΠΎΠ»ΠΎΠ³ΠΈΡΠ΅ΡΠΊΠΎΠΉ Π±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡΡ. ΠΠ½ΠΈ ΠΌΠΎΠ³ΡΡ ΠΏΡΠΈΠΌΠ΅Π½ΡΡΡΡΡ Π² Π»ΡΠ±ΠΎΠΌ ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΠΈ, Π±ΡΠ΄Ρ ΡΠΎ Π³ΠΎΡΡΠΈΠ½Π°Ρ, ΡΠΏΠ°Π»ΡΠ½Ρ, ΠΊΡΡ Π½Ρ ΠΈΠ»ΠΈ ΠΎΡΠΈΡΠ½ΠΎΠ΅ ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²ΠΎ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎΡΠ»ΠΈΡΠ½ΠΎ ΡΠΎΡΠ΅ΡΠ°ΡΡΡΡ Ρ Π΄ΡΡΠ³ΠΈΠΌΠΈ ΠΎΡΠ΄Π΅Π»ΠΎΡΠ½ΡΠΌΠΈ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°ΠΌΠΈ, ΡΠΎΠ·Π΄Π°Π²Π°Ρ ΡΡΡΠ΅ΠΊΡΠ½ΡΠΉ ΠΊΠΎΠ½ΡΡΠ°ΡΡ ΠΈ ΠΏΠΎΠ΄ΡΠ΅ΡΠΊΠΈΠ²Π°Ρ Π²Π°ΡΡ Π²ΠΊΡΡΠΎΠ²ΡΡ ΠΏΡΠΈΠ²Π΅ΡΠΆΠ΅Π½Π½ΠΎΡΡΡ.
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ Π΄Π»Ρ Π²Π°Ρ ΡΠΊΠΈΠ΄ΠΊΡ 15% Π½Π° Π½Π°ΡΠΈ <a href=http://art-wall32.ru/>Π€ΠΎΡΠΎΠΎΠ±ΠΎΠΈ</a>
Erstellt am 04/01/24 um 15:03:45
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-pro_sr schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>https://ppu-prof.ru</a>
! , , . ? . .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>https://ppu-prof.ru</a>
! , , . ? . .
Erstellt am 04/03/24 um 02:22:10
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-pro_Dix schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>https://www.ppu-prof.ru</a>
! , , . ? -. .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>https://www.ppu-prof.ru</a>
! , , . ? -. .
Erstellt am 04/03/24 um 02:22:11
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Georgesog schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΠΆΠΈΡΡ Π² ΡΠΎΠ²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ <a href=http://xn---54-5cdljgbd1az7...>ΠΊΠ²Π°ΡΡΠΈΡΠ΅ Π² ΠΠΎΠ²ΠΎΡΠΈΠ±ΠΈΡΡΠΊΠ΅?</a>
ΠΠ°ΡΠ° ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ ΡΠΈΡΠΎΠΊΠΈΠΉ Π²ΡΠ±ΠΎΡ <a href=http://xn---54-5cdljgbd1az7...>ΠΊΠ²Π°ΡΡΠΈΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ°Ρ </a> ΡΠ°Π·Π»ΠΈΡΠ½ΡΡ ΠΆΠΈΠ»ΡΡ ΠΊΠΎΠΌΠΏΠ»Π΅ΠΊΡΠΎΠ², ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠ»Π½ΠΎΡΡΡΡ ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΡΡΡ ΡΠ°ΠΌΡΠΌ Π²ΡΡΠΎΠΊΠΈΠΌ ΡΡΠ°Π½Π΄Π°ΡΡΠ°ΠΌ ΠΊΠ°ΡΠ΅ΡΡΠ²Π°.
ΠΡ ΡΠ°ΠΊΠΆΠ΅ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π² ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠΈ <a href=http://xn---54-5cdljgbd1az7...>ΠΈΠΏΠΎΡΠ΅ΡΠ½ΠΎΠ³ΠΎ ΡΠ΅ΡΠ΅Π½ΠΈΡ</a>, ΡΡΠΎΠ±Ρ ΡΠ΄Π΅Π»Π°ΡΡ ΠΏΡΠΎΡΠ΅ΡΡ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½ΠΎ ΡΠ΄ΠΎΠ±Π½ΡΠΌ Π΄Π»Ρ Π²Π°Ρ.
ΠΠ°ΡΠ° Π»ΠΈΡΠ½Π°Ρ ΡΠΊΠΈΠ΄ΠΊΠ° - 15%
ΠΠ°ΡΠ° ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ ΡΠΈΡΠΎΠΊΠΈΠΉ Π²ΡΠ±ΠΎΡ <a href=http://xn---54-5cdljgbd1az7...>ΠΊΠ²Π°ΡΡΠΈΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ°Ρ </a> ΡΠ°Π·Π»ΠΈΡΠ½ΡΡ ΠΆΠΈΠ»ΡΡ ΠΊΠΎΠΌΠΏΠ»Π΅ΠΊΡΠΎΠ², ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠ»Π½ΠΎΡΡΡΡ ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΡΡΡ ΡΠ°ΠΌΡΠΌ Π²ΡΡΠΎΠΊΠΈΠΌ ΡΡΠ°Π½Π΄Π°ΡΡΠ°ΠΌ ΠΊΠ°ΡΠ΅ΡΡΠ²Π°.
ΠΡ ΡΠ°ΠΊΠΆΠ΅ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π² ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠΈ <a href=http://xn---54-5cdljgbd1az7...>ΠΈΠΏΠΎΡΠ΅ΡΠ½ΠΎΠ³ΠΎ ΡΠ΅ΡΠ΅Π½ΠΈΡ</a>, ΡΡΠΎΠ±Ρ ΡΠ΄Π΅Π»Π°ΡΡ ΠΏΡΠΎΡΠ΅ΡΡ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½ΠΎ ΡΠ΄ΠΎΠ±Π½ΡΠΌ Π΄Π»Ρ Π²Π°Ρ.
ΠΠ°ΡΠ° Π»ΠΈΡΠ½Π°Ρ ΡΠΊΠΈΠ΄ΠΊΠ° - 15%
Erstellt am 04/03/24 um 10:14:32
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Aaronrar schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ <a href=http://ga22.ru/>Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ°Ρ
</a>.
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=http://ga22.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° ΠΆΠΈΠ»ΡΡ</a> ΠΈ <a href=http://ga22.ru/>Π½Π°Π»ΠΎΠ³ΠΎΠ²ΡΠ΅ Π²ΡΡΠ΅ΡΡ</a>.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ ΠΎΡΠΎΠ·Π½Π°Π½Π½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈΠ»ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=http://ga22.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° ΠΆΠΈΠ»ΡΡ</a> ΠΈ <a href=http://ga22.ru/>Π½Π°Π»ΠΎΠ³ΠΎΠ²ΡΠ΅ Π²ΡΡΠ΅ΡΡ</a>.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ ΠΎΡΠΎΠ·Π½Π°Π½Π½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈΠ»ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
Erstellt am 04/03/24 um 15:28:49
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Gladyslut schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΡΠ·Π½Π°ΡΡ Π²ΡΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ <a href=https://03estate.ru/>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΡ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π½Π° ΠΊΠ²Π°ΡΡΠΈΡΡ</a>?
ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=https://03estate.ru/>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΠ€Π¦</a>, <a href=https://03estate.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ
ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=https://03estate.ru/>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΠ€Π¦</a>, <a href=https://03estate.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ
Erstellt am 04/04/24 um 12:41:23
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Williamgopay schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ Π²ΡΠ΅ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΡΠ΅ ΡΠ²Π΅Π΄Π΅Π½ΠΈΡ ΠΎ <a href=https://reliable73.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> - ΠΎΡ <a href=https://reliable73.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Ρ ΡΠ΅ΠΌΠΎΠ½ΡΠΎΠΌ</a> Π΄ΠΎ <a href=https://reliable73.ru/>Π±ΡΠΎΠ½ΠΈΡΠΎΠ²Π°Π½ΠΈΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΠ</a>.
ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΎΠ½Π°Π»Π°ΠΌ ΠΈ ΡΠ΄Π΅Π»Π°ΠΉΡΠ΅ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ Ρ Π½Π°ΠΌΠΈ!
ΠΠ°ΡΠ° ΠΏΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½Π°Ρ ΡΠΊΠΈΠ΄ΠΊΠ° Π½Π° ΠΊΠΎΠ½ΡΡΠ»ΡΡΠ°ΡΠΈΡ 15%
ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΎΠ½Π°Π»Π°ΠΌ ΠΈ ΡΠ΄Π΅Π»Π°ΠΉΡΠ΅ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ Ρ Π½Π°ΠΌΠΈ!
ΠΠ°ΡΠ° ΠΏΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½Π°Ρ ΡΠΊΠΈΠ΄ΠΊΠ° Π½Π° ΠΊΠΎΠ½ΡΡΠ»ΡΡΠ°ΡΠΈΡ 15%
Erstellt am 04/08/24 um 15:39:24
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
AnthonyCew schrieb:
Π₯ΠΎΡΠΈΡΠ΅, ΡΡΠΎΠ±Ρ <a href=http://tpk-mss.ru>ΠΊΠ²Π°ΡΡΠΈΡΠ° Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΡΡΠ°Π»Π° Π²Π°ΡΠΈΠΌ ΡΡΡΠ½ΡΠΌ Π΄ΠΎΠΌΠΎΠΌ?
ΠΡ Π·Π½Π°Π΅ΠΌ, ΠΊΠ°ΠΊ ΡΠ΄Π΅Π»Π°ΡΡ ΡΡΠΎ ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅Π½Π½ΠΎ ΠΈ Π±Π΅Π· Π»ΠΈΡΠ½ΠΈΡ Ρ Π»ΠΎΠΏΠΎΡ! ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ ΠΌΡ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ Ρ Π²Π°ΠΌΠΈ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ <a href=http://tpk-mss.ru>ΡΠ΅ΠΌΠΎΠ½ΡΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΏΠΎΠ΄ ΠΊΠ»ΡΡ</a>. Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ ΡΠΎΠ·Π΄Π°ΡΡ ΠΈΠ½ΡΠ΅ΡΡΠ΅Ρ ΡΠ²ΠΎΠ΅ΠΉ ΠΌΠ΅ΡΡΡ, ΡΠ΄Π΅Π»Π°Π² <a href=http://tpk-mss.ru>ΠΏΠ΅ΡΠ΅ΠΏΠ»Π°Π½ΠΈΡΠΎΠ²ΠΊΡ ΠΊΠ²Π°ΡΡΠΈΡΡ</a> Ρ ΠΌΠΈΠ½ΠΈΠΌΡΠΌΠΎΠΌ Π·Π°ΡΡΠ°Ρ ΠΈ ΠΌΠ°ΠΊΡΠΈΠΌΡΠΌΠΎΠΌ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΡΡΡΡ Π²Π°ΡΠ° Π½ΠΎΠ²Π°Ρ ΠΊΠ²Π°ΡΡΠΈΡΠ° ΠΎΡΡΠ°ΠΆΠ°Π΅Ρ Π²Π°Ρ Π²ΠΊΡΡ ΠΈ ΡΡΠΈΠ»Ρ!
ΠΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½Π°Ρ ΡΠΊΠΈΠ΄ΠΊΠ° Π΄Π»Ρ Π²Π°Ρ β 20%!
ΠΡ Π·Π½Π°Π΅ΠΌ, ΠΊΠ°ΠΊ ΡΠ΄Π΅Π»Π°ΡΡ ΡΡΠΎ ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅Π½Π½ΠΎ ΠΈ Π±Π΅Π· Π»ΠΈΡΠ½ΠΈΡ Ρ Π»ΠΎΠΏΠΎΡ! ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ ΠΌΡ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ Ρ Π²Π°ΠΌΠΈ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ <a href=http://tpk-mss.ru>ΡΠ΅ΠΌΠΎΠ½ΡΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΏΠΎΠ΄ ΠΊΠ»ΡΡ</a>. Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ ΡΠΎΠ·Π΄Π°ΡΡ ΠΈΠ½ΡΠ΅ΡΡΠ΅Ρ ΡΠ²ΠΎΠ΅ΠΉ ΠΌΠ΅ΡΡΡ, ΡΠ΄Π΅Π»Π°Π² <a href=http://tpk-mss.ru>ΠΏΠ΅ΡΠ΅ΠΏΠ»Π°Π½ΠΈΡΠΎΠ²ΠΊΡ ΠΊΠ²Π°ΡΡΠΈΡΡ</a> Ρ ΠΌΠΈΠ½ΠΈΠΌΡΠΌΠΎΠΌ Π·Π°ΡΡΠ°Ρ ΠΈ ΠΌΠ°ΠΊΡΠΈΠΌΡΠΌΠΎΠΌ ΠΊΠΎΠΌΡΠΎΡΡΠ°. ΠΡΡΡΡ Π²Π°ΡΠ° Π½ΠΎΠ²Π°Ρ ΠΊΠ²Π°ΡΡΠΈΡΠ° ΠΎΡΡΠ°ΠΆΠ°Π΅Ρ Π²Π°Ρ Π²ΠΊΡΡ ΠΈ ΡΡΠΈΠ»Ρ!
ΠΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½Π°Ρ ΡΠΊΠΈΠ΄ΠΊΠ° Π΄Π»Ρ Π²Π°Ρ β 20%!
Erstellt am 04/10/24 um 09:52:56
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Trevorallot schrieb:
Π₯ΠΎΡΠΈΡΠ΅ <a href=http://antech18.ru>ΠΊΡΠΏΠΈΡΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>, Π½ΠΎ Π½Π΅ Π·Π½Π°Π΅ΡΠ΅, Ρ ΡΠ΅Π³ΠΎ Π½Π°ΡΠ°ΡΡ?
ΠΡ ΠΏΠΎΠ΄Π³ΠΎΡΠΎΠ²ΠΈΠ»ΠΈ Π΄Π»Ρ Π²Π°Ρ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ ΠΏΠΎ <a href=http://antech18.ru>ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΆΠΈΠ»ΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a> ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠΌ Π΄ΡΡΠ³ΠΈΠΌ Π²Π°ΠΆΠ½ΡΠΌ ΠΌΠΎΠΌΠ΅Π½ΡΠ°ΠΌ.
Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎ ΠΏΠΎΠ΄Π³ΠΎΡΠΎΠ²ΠΈΡΡΡΡ ΠΊ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ <a href=http://antech18.ru>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ Π½Π° ΡΡΠ°Π΄ΠΈΠΈ ΠΊΠΎΡΠ»ΠΎΠ²Π°Π½Π°</a> ΠΈ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ Π½Π΅ΠΏΡΠΈΡΡΠ½ΡΡ ΡΡΡΠΏΡΠΈΠ·ΠΎΠ² Π² Π±ΡΠ΄ΡΡΠ΅ΠΌ. ΠΠ°ΡΠ° ΡΡΠ°ΡΡΡ ΠΏΠΎΠΌΠΎΠΆΠ΅Ρ Π²Π°ΠΌ ΡΠ΄Π΅Π»Π°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ ΠΈ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ Π²ΡΠ΅ΠΌΡ ΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
ΠΡ ΠΏΠΎΠ΄Π³ΠΎΡΠΎΠ²ΠΈΠ»ΠΈ Π΄Π»Ρ Π²Π°Ρ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ ΠΏΠΎ <a href=http://antech18.ru>ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΆΠΈΠ»ΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a> ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠΌ Π΄ΡΡΠ³ΠΈΠΌ Π²Π°ΠΆΠ½ΡΠΌ ΠΌΠΎΠΌΠ΅Π½ΡΠ°ΠΌ.
Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎ ΠΏΠΎΠ΄Π³ΠΎΡΠΎΠ²ΠΈΡΡΡΡ ΠΊ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ <a href=http://antech18.ru>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ Π½Π° ΡΡΠ°Π΄ΠΈΠΈ ΠΊΠΎΡΠ»ΠΎΠ²Π°Π½Π°</a> ΠΈ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ Π½Π΅ΠΏΡΠΈΡΡΠ½ΡΡ ΡΡΡΠΏΡΠΈΠ·ΠΎΠ² Π² Π±ΡΠ΄ΡΡΠ΅ΠΌ. ΠΠ°ΡΠ° ΡΡΠ°ΡΡΡ ΠΏΠΎΠΌΠΎΠΆΠ΅Ρ Π²Π°ΠΌ ΡΠ΄Π΅Π»Π°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ ΠΈ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ Π²ΡΠ΅ΠΌΡ ΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
Erstellt am 04/10/24 um 20:57:42
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Ernestatrow schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΠΏΠΎΡΡΠ°Π», Π³Π΄Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=http://gorodkrovli.ru>ΠΏΡΠΈΠ΅ΠΌΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=http://gorodkrovli.ru>ΠΏΡΠΎΠ²Π΅ΡΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΡ ΠΎ ΡΠΎΠΌ, ΠΊΠ°ΠΊ <a href=http://gorodkrovli.ru>ΠΊΡΠΏΠΈΡΡ Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΡ Π±Π΅Π· ΠΎΡΠ΄Π΅Π»ΠΊΠΈ</a>. ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΡΡΠ°ΡΡ ΡΠ²Π΅ΡΠ΅Π½Π½ΡΠΌ ΠΏΠΎΠΊΡΠΏΠ°ΡΠ΅Π»Π΅ΠΌ ΠΈ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ ΡΠ°Π·Π»ΠΈΡΠ½ΡΡ ΠΏΡΠΎΠ±Π»Π΅ΠΌ Π² Π±ΡΠ΄ΡΡΠ΅ΠΌ!
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΡ ΠΎ ΡΠΎΠΌ, ΠΊΠ°ΠΊ <a href=http://gorodkrovli.ru>ΠΊΡΠΏΠΈΡΡ Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΡ Π±Π΅Π· ΠΎΡΠ΄Π΅Π»ΠΊΠΈ</a>. ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΡΡΠ°ΡΡ ΡΠ²Π΅ΡΠ΅Π½Π½ΡΠΌ ΠΏΠΎΠΊΡΠΏΠ°ΡΠ΅Π»Π΅ΠΌ ΠΈ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ ΡΠ°Π·Π»ΠΈΡΠ½ΡΡ ΠΏΡΠΎΠ±Π»Π΅ΠΌ Π² Π±ΡΠ΄ΡΡΠ΅ΠΌ!
Erstellt am 04/11/24 um 09:10:58
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
GeorgeBooxy schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠ³ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=http://renta8.ru>ΠΎΡΠ΄Π΅Π»ΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ°Ρ
</a> ΠΈ <a href=http://renta8.ru>ΡΠ΅ΠΌΠΎΠ½Ρ Π½ΠΎΠ²ΠΎΠΉ ΠΊΠ²Π°ΡΡΠΈΡΡ</a>.
Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ Π²ΡΠ±ΡΠ°ΡΡ ΡΡΠΈΠ»Ρ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠ° ΠΏΡΠΈ <a href=http://renta8.ru>Π΅Π²ΡΠΎΡΠ΅ΠΌΠΎΠ½ΡΠ΅ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>!
ΠΡ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎΠΏΡΠΈΠΌΠ°Π»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ ΠΊΡΠ°ΡΠΈΠ²ΠΎΠ³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π° ΠΈ ΡΠ΅ΠΌΠΎΠ½ΡΠ°.
Π’Π°ΠΊΠΆΠ΅ ΠΌΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ Π²Π°ΠΌ ΠΏΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½ΡΡ ΡΠΊΠΈΠ΄ΠΊΡ Π½Π° ΠΊΠΎΠ½ΡΡΠ»ΡΡΠ°ΡΠΈΡ β 15%!
Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ Π²ΡΠ±ΡΠ°ΡΡ ΡΡΠΈΠ»Ρ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΡΠ° ΠΏΡΠΈ <a href=http://renta8.ru>Π΅Π²ΡΠΎΡΠ΅ΠΌΠΎΠ½ΡΠ΅ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>!
ΠΡ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎΠΏΡΠΈΠΌΠ°Π»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ ΠΊΡΠ°ΡΠΈΠ²ΠΎΠ³ΠΎ Π΄ΠΈΠ·Π°ΠΉΠ½Π° ΠΈ ΡΠ΅ΠΌΠΎΠ½ΡΠ°.
Π’Π°ΠΊΠΆΠ΅ ΠΌΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ Π²Π°ΠΌ ΠΏΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½ΡΡ ΡΠΊΠΈΠ΄ΠΊΡ Π½Π° ΠΊΠΎΠ½ΡΡΠ»ΡΡΠ°ΡΠΈΡ β 15%!
Erstellt am 04/11/24 um 21:16:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-pro_sr schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>https://ppu-prof.ru</a>
! , , . ? . .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>https://ppu-prof.ru</a>
! , , . ? . .
Erstellt am 05/04/24 um 21:09:17
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-pro_Dix schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 2! , .
, , . , .
<a href=https://ppu-prof.ru/>https://www.ppu-prof.ru</a>
! , , . ? -. .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 2! , .
, , . , .
<a href=https://ppu-prof.ru/>https://www.ppu-prof.ru</a>
! , , . ? -. .
Erstellt am 05/04/24 um 21:09:23
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ArthurToock schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://business-center.msk...>ΡΡΠΈΠ΄ΠΈΡΠ΅ΡΠΊΠΎΠ΅ ΡΠΎΠΏΡΠΎΠ²ΠΎΠΆΠ΄Π΅Π½ΠΈΠ΅ ΡΠ΄Π΅Π»ΠΊΠΈ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ</a> ΠΈΠ»ΠΈ <a href=https://business-center.msk...>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/06/24 um 19:10:07
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-pro_Dix schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ²! , .
, , . , .
<a href=https://ppu-prof.ru/>https://www.ppu-prof.ru/</a>
! , , . ? . .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ²! , .
, , . , .
<a href=https://ppu-prof.ru/>https://www.ppu-prof.ru/</a>
! , , . ? . .
Erstellt am 05/07/24 um 10:11:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
CoreyFroli schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ Π²Π°ΠΆΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ <a href=https://a1realtyspb.ru/>ΡΡΠΎΠΈΠΌΠΎΡΡΠΈ Π°ΡΠ΅Π½Π΄Ρ ΠΊΠ²Π°ΡΡΠΈΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://a1realtyspb.ru/>Π·Π°ΠΉΠΌΠ°Ρ
ΠΏΠΎΠ΄ Π·Π°Π»ΠΎΠ³ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΡΠΎΡ ΡΠ°Π½ΠΈΡΡ Π²Π°Ρ Π±ΡΠ΄ΠΆΠ΅Ρ!
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΡΠΎΡ ΡΠ°Π½ΠΈΡΡ Π²Π°Ρ Π±ΡΠ΄ΠΆΠ΅Ρ!
Erstellt am 05/07/24 um 19:15:35
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Jasonphoft schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΡΡΠ°ΡΡ ΡΡΠ°ΡΡΠ»ΠΈΠ²ΡΠΌ ΠΎΠ±Π»Π°Π΄Π°ΡΠ΅Π»Π΅ΠΌ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠΉ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, Π½ΠΎ Π½Π΅ Π·Π½Π°Π΅ΡΠ΅, Ρ ΡΠ΅Π³ΠΎ Π½Π°ΡΠ°ΡΡ?
ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://belaya-dacha-park.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈΠ»ΠΈ <a href=https://belaya-dacha-park.ru/>ΠΈΠΏΠΎΡΠ΅ΠΊΠ° ΠΏΠΎΠ΄ Π·Π°Π»ΠΎΠ³ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>
ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ Π½ΠΎΠ²ΠΎΠΌΡ ΠΆΠΈΠ»ΡΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://belaya-dacha-park.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈΠ»ΠΈ <a href=https://belaya-dacha-park.ru/>ΠΈΠΏΠΎΡΠ΅ΠΊΠ° ΠΏΠΎΠ΄ Π·Π°Π»ΠΎΠ³ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>
ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ Π½ΠΎΠ²ΠΎΠΌΡ ΠΆΠΈΠ»ΡΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
Erstellt am 05/08/24 um 17:51:10
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Josephbed schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΠΏΠΎΡΡΠ°Π» ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://zvezda-stolitsy.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈΠ»ΠΈ <a href=https://zvezda-stolitsy.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎ ΡΠΎΠ½ΠΊΠΎΡΡΡΡ <a href=https://zvezda-stolitsy.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ ΡΡΠΏΠ΅ΡΠ½ΠΎΠ³ΠΎ <a href=https://zvezda-stolitsy.ru/>ΡΠ΅ΠΌΠΎΠ½ΡΠ° Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
ΠΡΠ΄ΡΡΠ΅ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ Π½ΠΎΠ²ΠΎΡΡΠ΅ΠΉ ΠΈ ΡΠ°Π·Π±Π΅ΡΠΈΡΠ΅ΡΡ Π²ΠΎ Π²ΡΠ΅Ρ Π²ΠΎΠΏΡΠΎΡΠ°Ρ ΡΡΠ½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π²ΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ!
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://zvezda-stolitsy.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈΠ»ΠΈ <a href=https://zvezda-stolitsy.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎ ΡΠΎΠ½ΠΊΠΎΡΡΡΡ <a href=https://zvezda-stolitsy.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ ΡΡΠΏΠ΅ΡΠ½ΠΎΠ³ΠΎ <a href=https://zvezda-stolitsy.ru/>ΡΠ΅ΠΌΠΎΠ½ΡΠ° Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
ΠΡΠ΄ΡΡΠ΅ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ Π½ΠΎΠ²ΠΎΡΡΠ΅ΠΉ ΠΈ ΡΠ°Π·Π±Π΅ΡΠΈΡΠ΅ΡΡ Π²ΠΎ Π²ΡΠ΅Ρ Π²ΠΎΠΏΡΠΎΡΠ°Ρ ΡΡΠ½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π²ΠΌΠ΅ΡΡΠ΅ Ρ Π½Π°ΠΌΠΈ!
Erstellt am 05/13/24 um 15:38:07
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
WalterMed schrieb:
ΠΠ°Ρ ΡΠ°ΠΉΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://injstroy62.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://injstroy62.ru/>ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ ΠΏΡΠ°Π² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>.
Erstellt am 05/14/24 um 09:09:56
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
EdmondAveni schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΡΡΠ½ΠΊΠΎΠΌ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://dveripraktika.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈΠ»ΠΈ <a href=https://dveripraktika.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/14/24 um 20:13:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RobertSnics schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΡΡΠ°ΡΡ ΡΡΠ°ΡΡΠ»ΠΈΠ²ΡΠΌ ΠΎΠ±Π»Π°Π΄Π°ΡΠ΅Π»Π΅ΠΌ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠ³ΠΎ ΠΆΠΈΠ»ΡΡ, Π½ΠΎ Π½Π΅ Π·Π½Π°Π΅ΡΠ΅, Ρ ΡΠ΅Π³ΠΎ Π½Π°ΡΠ°ΡΡ?
ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://perspektiva-tmn.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° ΠΏΡΠΎΠ΄Π°ΠΆΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈΠ»ΠΈ <a href=https://perspektiva-tmn.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://perspektiva-tmn.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° ΠΏΡΠΎΠ΄Π°ΠΆΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈΠ»ΠΈ <a href=https://perspektiva-tmn.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
Erstellt am 05/15/24 um 12:40:37
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
TomasEduff schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ <a href=https://xn---9-nmci.xn--p1ai/>ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://xn---9-nmci.xn--p1ai/>ΡΠ΅ΠΌΠΎΠ½ΡΠ΅ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΡΠΎΡ ΡΠ°Π½ΠΈΡΡ Π²Π°Ρ Π±ΡΠ΄ΠΆΠ΅Ρ!
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΡΠΎΡ ΡΠ°Π½ΠΈΡΡ Π²Π°Ρ Π±ΡΠ΄ΠΆΠ΅Ρ!
Erstellt am 05/16/24 um 09:06:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Haroldpluro schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://tivitblock.ru/>ΡΠ΄Π΅Π»ΠΊΠ° Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ</a> ΠΈΠ»ΠΈ <a href=https://tivitblock.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠ΅ ΠΎΡΠΊΠ»Π°Π΄ΡΠ²Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ ΠΌΠ΅ΡΡΡ ΠΎ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠΌ ΠΆΠΈΠ»ΡΠ΅ Π½Π° ΠΏΠΎΡΠΎΠΌ. ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ Π½ΠΎΠ²ΠΎΠΌΡ Π΄ΠΎΠΌΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
ΠΠ΅ ΠΎΡΠΊΠ»Π°Π΄ΡΠ²Π°ΠΉΡΠ΅ ΡΠ²ΠΎΡ ΠΌΠ΅ΡΡΡ ΠΎ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠΌ ΠΆΠΈΠ»ΡΠ΅ Π½Π° ΠΏΠΎΡΠΎΠΌ. ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ Π½ΠΎΠ²ΠΎΠΌΡ Π΄ΠΎΠΌΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
Erstellt am 05/17/24 um 09:23:44
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Robertevalp schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ
ΡΠ΅Π½Π΄Π΅Π½ΡΠΈΠΉ Π½Π° ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=http://bortehsnab.ru/>ΠΆΠΈΠ»Π°Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=http://bortehsnab.ru/>ΠΏΡΠΎΠΏΠΈΡΠΊΠ° Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
Π£Π·Π½Π°Π²Π°ΠΉΡΠ΅ ΠΏΠ΅ΡΠ²ΡΠΌΠΈ ΠΎ ΡΠ°ΠΌΡΡ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΡΡ ΠΈ Π²Π°ΠΆΠ½ΡΡ ΡΠΎΠ²Π΅ΡΠ°Ρ ΠΎΡ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠ²!
Π£Π·Π½Π°Π²Π°ΠΉΡΠ΅ ΠΏΠ΅ΡΠ²ΡΠΌΠΈ ΠΎ ΡΠ°ΠΌΡΡ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΡΡ ΠΈ Π²Π°ΠΆΠ½ΡΡ ΡΠΎΠ²Π΅ΡΠ°Ρ ΠΎΡ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠ²!
Erstellt am 05/17/24 um 16:30:36
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DerrickDar schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠ³ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ»Π΅Π΄ΡΡΡΠΈΠ΅ ΡΠ΅ΠΌΡ: <a href=https://marss-rest.ru/>ΡΡΠ»ΡΠ³ΠΈ ΡΠΈΡΠ»ΡΠΎΡΠ°</a> ΠΈ <a href=https://marss-rest.ru/>Π½Π°Π»ΠΎΠ³ΠΎΠ²ΡΠ΅ Π»ΡΠ³ΠΎΡΡ</a>.
Erstellt am 05/20/24 um 08:25:25
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DavidSek schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΠΏΠΎΡΡΠ°Π», Π³Π΄Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://an-praktik.ru/>ΠΊΠ°Π΄Π°ΡΡΡΠΎΠ²Π°Ρ ΡΡΠΎΠΈΠΌΠΎΡΡΡ</a> ΠΈ <a href=https://an-praktik.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² ΠΈΠΏΠΎΡΠ΅ΠΊΡ</a>.
Erstellt am 05/20/24 um 17:14:14
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Gregoryhen schrieb:
ΠΡΠΈΠ³Π»Π°ΡΠ°Π΅ΠΌ Π½Π° Π½Π°Ρ Π½ΠΎΠ²ΡΠΉ ΡΠ°ΠΉΡ, Π³Π΄Π΅ Π²Ρ Π½Π°ΠΉΠ΄ΡΡΠ΅ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ Π½ΠΎΠ²ΠΎΡΡΠΈ ΠΎ ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://don-profil.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://don-profil.ru/>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ Π² ΠΠΎΡΠΊΠ²Π΅</a>.
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://don-profil.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://don-profil.ru/>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ Π² ΠΠΎΡΠΊΠ²Π΅</a>.
Erstellt am 05/21/24 um 08:48:16
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DavidVef schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π²ΠΎ Π²ΡΠ΅Ρ
Π½ΡΠ°Π½ΡΠ°Ρ
<a href=https://mvorota-home.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠ°Ρ ΠΆΠ΄ΡΡ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://mvorota-home.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>, ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄ΡΡΠ³ΠΈΠ΅!
ΠΠ°Ρ ΠΆΠ΄ΡΡ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://mvorota-home.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>, ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄ΡΡΠ³ΠΈΠ΅!
Erstellt am 05/21/24 um 17:32:51
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Georgeguigh schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ <a href=https://stastroi.ru/>Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² ΠΠ°Ρ
Π°ΡΠΊΠ°Π»Π΅</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://stastroi.ru/>ΡΡΠ±ΡΠΈΠ΄ΠΈΡΡ
Π½Π° ΠΆΠΈΠ»ΡΠ΅</a>.
Erstellt am 05/22/24 um 11:08:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
StevenNaite schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://guardian-chel.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π°ΠΏΠ°ΡΡΠ°ΠΌΠ΅Π½ΡΠΎΠ²</a> ΠΈΠ»ΠΈ <a href=https://guardian-chel.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/22/24 um 18:49:20
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Robertdrece schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΏΡΠΎΡΠΈΡΠ°ΡΡ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://interiorholl.ru/>Π½Π°Π»ΠΎΠ³ΠΈ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://interiorholl.ru/>ΠΈΠ½Π²Π΅ΡΡΠΈΡΠΈΠΈ Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>.
Erstellt am 05/23/24 um 08:43:30
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
CraigWes schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ΠΉ ΠΆΠΈΠ»ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://atlantfort.ru/>ΠΊΠ²Π°ΡΡΠΈΡΠ° ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a> ΠΈΠ»ΠΈ <a href=https://atlantfort.ru/>Π»ΠΈΠΊΠ²ΠΈΠ΄Π°ΡΠΈΠΎΠ½Π½Π°Ρ ΡΡΠΎΠΈΠΌΠΎΡΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/23/24 um 16:55:18
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Harrydouct schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½ΠΎΠ²ΡΠΉ ΡΠ΅ΡΡΡΡ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ!
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://dverito.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a> ΠΈ <a href=https://dverito.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΠΎΡΠΊΠ²Ρ</a>.
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://dverito.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a> ΠΈ <a href=https://dverito.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΠΎΡΠΊΠ²Ρ</a>.
Erstellt am 05/24/24 um 08:49:52
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RosendoKnidO schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½ΠΎΠ²ΡΠΉ ΠΏΠΎΡΡΠ°Π» ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ!
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://renner102.ru/>Π·Π°ΠΊΠΎΠ½ ΠΎ Π½Π°Π»ΠΎΠ³Π΅ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a> ΠΈ <a href=https://renner102.ru/>ΠΎΡΠ΅Π½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://renner102.ru/>Π·Π°ΠΊΠΎΠ½ ΠΎ Π½Π°Π»ΠΎΠ³Π΅ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a> ΠΈ <a href=https://renner102.ru/>ΠΎΡΠ΅Π½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/24/24 um 16:40:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Robertbiomb schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΠΎΠΊΡΠΏΠΊΠΎΠΉ ΠΆΠΈΠ»ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://topmarket71.ru/>Π·Π°Π»ΠΎΠ³ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://topmarket71.ru/>Π°ΡΠ΅Π½Π΄Π° ΠΊΠΎΠΌΠΌΠ΅ΡΡΠ΅ΡΠΊΠΎΠΉ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/27/24 um 11:29:58
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Matthewaburf schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://z-gazobeton.ru/>Π΄Π°ΡΠ΅Π½ΠΈΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://z-gazobeton.ru/>ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΠΎΠ²ΠΎΠΉ ΠΠΎΡΠΊΠ²Π΅</a>.
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://z-gazobeton.ru/>Π΄Π°ΡΠ΅Π½ΠΈΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://z-gazobeton.ru/>ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΠΎΠ²ΠΎΠΉ ΠΠΎΡΠΊΠ²Π΅</a>.
Erstellt am 05/27/24 um 17:27:14
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
HarveyZen schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½ΠΎΠ²ΡΠΉ ΡΠ°ΠΉΡ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ!
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://xn--5--flcao4a2a.xn...>ΡΠ΅Ρ Π½ΠΈΡΠ΅ΡΠΊΠΈΠΉ ΠΏΠ»Π°Π½ ΠΎΠ±ΡΠ΅ΠΊΡΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://xn--5--flcao4a2a.xn...>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ Π² ΠΠΎΡΠΊΠ²Π΅ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://xn--5--flcao4a2a.xn...>ΡΠ΅Ρ Π½ΠΈΡΠ΅ΡΠΊΠΈΠΉ ΠΏΠ»Π°Π½ ΠΎΠ±ΡΠ΅ΠΊΡΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://xn--5--flcao4a2a.xn...>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ Π² ΠΠΎΡΠΊΠ²Π΅ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
Erstellt am 05/28/24 um 09:47:30
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Scottamelf schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΠΏΠΎΡΡΠ°Π» ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ!
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://minibrus74.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° ΠΏΡΠΎΠ΄Π°ΠΆΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://minibrus74.ru/>Π±ΡΠΎΠΊΠ΅ΡΡΠΊΠΎΠ΅ Π°Π³Π΅Π½ΡΡΡΠ²ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://minibrus74.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° ΠΏΡΠΎΠ΄Π°ΠΆΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://minibrus74.ru/>Π±ΡΠΎΠΊΠ΅ΡΡΠΊΠΎΠ΅ Π°Π³Π΅Π½ΡΡΡΠ²ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/28/24 um 18:33:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
MorrisGrabe schrieb:
ΠΠ°Ρ ΡΠ°ΠΉΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://comfort-potok.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://comfort-potok.ru/>ΠΠΠ‘ Π² ΠΊΠ°Π΄Π°ΡΡΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ.
Erstellt am 05/29/24 um 10:07:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JamesAnaew schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½ΠΎΠ²ΡΠΉ ΡΠ΅ΡΡΡΡ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ!
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://zhukovka-chalet.ru/>ΠΊΠ°Π΄Π°ΡΡΡΠΎΠ²Π°Ρ ΡΡΠΎΠΈΠΌΠΎΡΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://zhukovka-chalet.ru/>ERV Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡΡΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://zhukovka-chalet.ru/>ΠΊΠ°Π΄Π°ΡΡΡΠΎΠ²Π°Ρ ΡΡΠΎΠΈΠΌΠΎΡΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=https://zhukovka-chalet.ru/>ERV Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 05/29/24 um 17:48:05
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
KennethNeush schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΡΠ°ΠΉΡ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ! ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ, ΡΠΎΠ²Π΅ΡΡ ΠΈ Π½ΠΎΠ²ΠΎΡΡΠΈ ΠΎ ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, ΠΏΡΠ°Π²ΠΎΠ²ΡΡ
Π°ΡΠΏΠ΅ΠΊΡΠ°Ρ
ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠΈ ΠΆΠΈΠ»ΡΡ, Π°ΡΠ΅Π½Π΄Π΅ ΠΊΠΎΠΌΠΌΠ΅ΡΡΠ΅ΡΠΊΠΈΡ
ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΠΉ, Π½Π°Π»ΠΎΠ³Π°Ρ
Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΠΈ ΠΌΠ½ΠΎΠ³ΠΎΠΌ Π΄ΡΡΠ³ΠΎΠΌ.
https://glavdecor-ekb.ru/
https://glavdecor-ekb.ru/
Erstellt am 05/30/24 um 12:06:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ppu-pro_sr schrieb:
, , .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>http://www.ppu-prof.ru</a>
! , , . ? -. .
, . , . , , , .
: <a href=https://ppu-prof.ru/> </a> 1250 ! , .
, , . , .
<a href=https://ppu-prof.ru/>http://www.ppu-prof.ru</a>
! , , . ? -. .
Erstellt am 05/30/24 um 14:38:00
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Jasonskili schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
ΡΠΎΠ²ΡΠ΅ΠΌΠ΅Π½Π½ΡΡ
ΡΠ΅Π½Π΄Π΅Π½ΡΠΈΠΉ Π½Π° ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ ΡΡΠΎΠΈΠΌΠΎΡΡΠΈ Π°ΡΠ΅Π½Π΄Ρ ΠΊΠ²Π°ΡΡΠΈΡ, ΡΠ΅Π½Π°Ρ
Π½Π° ΠΆΠΈΠ»ΡΠ΅, ΡΠ΅ΠΌΠΎΠ½ΡΠ΅ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ°Ρ
.
Π£Π·Π½Π°Π²Π°ΠΉΡΠ΅ ΠΏΠ΅ΡΠ²ΡΠΌΠΈ ΠΎ ΡΠ°ΠΌΡΡ Π²ΡΠ³ΠΎΠ΄Π½ΡΡ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΡΡ ΠΎΡ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠ², ΡΡΠΎΠ±Ρ ΡΠ΄Π΅Π»Π°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ ΠΈ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ ΡΠ²ΠΎΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
https://ucnedv.ru/
Π£Π·Π½Π°Π²Π°ΠΉΡΠ΅ ΠΏΠ΅ΡΠ²ΡΠΌΠΈ ΠΎ ΡΠ°ΠΌΡΡ Π²ΡΠ³ΠΎΠ΄Π½ΡΡ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΡΡ ΠΎΡ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠ², ΡΡΠΎΠ±Ρ ΡΠ΄Π΅Π»Π°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ ΠΈ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ ΡΠ²ΠΎΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
https://ucnedv.ru/
Erstellt am 05/30/24 um 17:28:30
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
CharlesAsync schrieb:
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΊΠ²Π°ΡΡΠΈΡ ΠΎΡ Π½Π°Π΄Π΅ΠΆΠ½ΠΎΠ³ΠΎ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°, ΡΠ°ΡΡΠ΅ΡΠ°Ρ
Π½Π°Π»ΠΎΠ³ΠΎΠ² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ, ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠΈ ΠΊΡΠ΅Π΄ΠΈΡΠΎΠ² ΠΏΠΎΠ΄ Π·Π°Π»ΠΎΠ³ ΠΈ Π½Π°Π»ΠΎΠ³ΠΎΠ²ΠΎΠΌ Π²ΡΡΠ΅ΡΠ΅ Π·Π° ΠΏΠΎΠΊΡΠΏΠΊΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π½Π° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅!
ΠΠΎΠ΄ΡΠΎΠ±Π½ΡΠ΅ ΠΈ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ²Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π²ΠΎ Π²ΡΠ΅Ρ Π²ΠΎΠΏΡΠΎΡΠ°Ρ ΡΡΠ½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ ΠΈ ΡΠ΄Π΅Π»Π°ΡΡ ΠΎΠ±ΠΎΡΠ½ΠΎΠ²Π°Π½Π½ΡΠΉ Π²ΡΠ±ΠΎΡ.
https://donskoy-alians.ru/
ΠΠΎΠ΄ΡΠΎΠ±Π½ΡΠ΅ ΠΈ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ²Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π²ΠΎ Π²ΡΠ΅Ρ Π²ΠΎΠΏΡΠΎΡΠ°Ρ ΡΡΠ½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ ΠΈ ΡΠ΄Π΅Π»Π°ΡΡ ΠΎΠ±ΠΎΡΠ½ΠΎΠ²Π°Π½Π½ΡΠΉ Π²ΡΠ±ΠΎΡ.
https://donskoy-alians.ru/
Erstellt am 05/31/24 um 11:51:12
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
HenryJet schrieb:
ΠΡΡ... Π₯ΠΎΡΠΈΡΠ΅ ΡΠ·Π½Π°ΡΡ ΠΎ ΡΠ°ΠΌΡΡ
Π²ΡΠ³ΠΎΠ΄Π½ΡΡ
Π½Π°ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΡΡ
ΠΈΠ½Π²Π΅ΡΡΠΈΡΠΎΠ²Π°Π½ΠΈΡ Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ, ΠΎΡΠ½ΠΎΠ²Π½ΡΡ
ΡΠΈΡΠΊΠ°Ρ
ΠΈ ΡΠΏΠΎΡΠΎΠ±Π°Ρ
ΠΈΡ
ΠΌΠΈΠ½ΠΈΠΌΠΈΠ·Π°ΡΠΈΠΈ? Π‘Π°ΠΉΡ https://aibismach.ru
Erstellt am 06/03/24 um 15:50:17
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Michaelvorry schrieb:
ΠΡΡ... ΠΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. ΠΡΠ΅Π½Π΄Π°, ΠΊΡΠΏΠ»Ρ/ΠΏΡΠΎΠ΄Π°ΠΆΠ°, Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΠΊΠ°ΠΊ Π±ΠΈΠ·Π½Π΅Ρ. Π§ΠΈΡΠ°ΡΡ http://sma-repair.ru
Erstellt am 06/04/24 um 10:37:58
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
NicoleCoora schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠ½ΡΠ΅ΡΠ΅ΡΡΡΡ ΡΠ΅ΠΌΡ Π°ΡΠ΅Π½Π΄Ρ ΠΈ ΠΊΡΠΏΠ»ΠΈ/ΠΏΡΠΎΠ΄Π°ΠΆΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. ΠΠΎΠΊΠ° Π½Π°ΡΠ»Π° https://alfapromnn.ru
Erstellt am 06/05/24 um 11:38:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
TimothyAdege schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΡΠ΅ΡΡΡΡ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΈ Π½ΠΎΠ²ΠΎΡΡΠΈ ΠΎ ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, ΠΏΡΠ°Π²ΠΎΠ²ΡΡ Π°ΡΠΏΠ΅ΠΊΡΠ°Ρ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΆΠΈΠ»ΡΡ, Π°ΡΠ΅Π½Π΄Π΅ ΠΆΠΈΠ»ΡΡ ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΠΉ, ΠΈΠ½Π²Π΅ΡΡΠΈΡΠΈΡΡ Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΠΈ ΠΌΠ½ΠΎΠ³ΠΎΠΌ Π΄ΡΡΠ³ΠΎΠΌ.
ΠΡ ΡΡΡΠ΅ΠΌΠΈΠΌΡΡ ΠΏΠΎΠ΄Π΅Π»ΠΈΡΡΡΡ Ρ Π²Π°ΠΌΠΈ Π²Π°ΠΆΠ½ΠΎΠΉ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ΅ΠΉ ΠΈ ΠΏΠΎΠΌΠΎΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΎΡΠΎΠ·Π½Π°Π½Π½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ Π² ΡΡΠ΅ΡΠ΅ <a href=http://afmtel.ru>ΠΏΡΠΎΠ΄Π°ΠΆΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>
http://afmtel.ru.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΈ Π½ΠΎΠ²ΠΎΡΡΠΈ ΠΎ ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, ΠΏΡΠ°Π²ΠΎΠ²ΡΡ Π°ΡΠΏΠ΅ΠΊΡΠ°Ρ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΆΠΈΠ»ΡΡ, Π°ΡΠ΅Π½Π΄Π΅ ΠΆΠΈΠ»ΡΡ ΠΏΠΎΠΌΠ΅ΡΠ΅Π½ΠΈΠΉ, ΠΈΠ½Π²Π΅ΡΡΠΈΡΠΈΡΡ Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΠΈ ΠΌΠ½ΠΎΠ³ΠΎΠΌ Π΄ΡΡΠ³ΠΎΠΌ.
ΠΡ ΡΡΡΠ΅ΠΌΠΈΠΌΡΡ ΠΏΠΎΠ΄Π΅Π»ΠΈΡΡΡΡ Ρ Π²Π°ΠΌΠΈ Π²Π°ΠΆΠ½ΠΎΠΉ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ΅ΠΉ ΠΈ ΠΏΠΎΠΌΠΎΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΎΡΠΎΠ·Π½Π°Π½Π½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ Π² ΡΡΠ΅ΡΠ΅ <a href=http://afmtel.ru>ΠΏΡΠΎΠ΄Π°ΠΆΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>
http://afmtel.ru.
Erstellt am 06/05/24 um 11:50:55
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
AnthonyBIG schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΡΠ΅ΡΡΡΡ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ!
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=http://stroymarkett.ru>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=http://stroymarkett.ru>ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=http://stroymarkett.ru>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΈ <a href=http://stroymarkett.ru>ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
Erstellt am 06/05/24 um 15:39:59
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Matthewkic schrieb:
ΠΡΠΊΡΠΎΠΉΡΠ΅ Π΄Π²Π΅ΡΠΈ Π² ΠΌΠΈΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Ρ Π½Π°ΡΠΈΠΌ ΡΠ΅ΡΡΡΡΠΎΠΌ!
ΠΠΎΠ»ΡΡΠ°ΠΉΡΠ΅ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎΡ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΎΠ½Π°Π»ΠΎΠ² Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΎ Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ, ΠΎΡΡΡΠ΅ΡΡΠ²Π»ΡΠΉΡΠ΅ ΡΡΠΏΠ΅ΡΠ½ΡΠ΅ ΡΠ΄Π΅Π»ΠΊΠΈ ΠΊΡΠΏΠ»ΠΈ-ΠΏΡΠΎΠ΄Π°ΠΆΠΈ ΠΊΠ²Π°ΡΡΠΈΡ, ΠΈ Π²ΡΠ΅Π³Π΄Π° ΠΎΡΡΠ°Π²Π°ΠΉΡΠ΅ΡΡ Π² ΠΊΡΡΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΡ Π½ΠΎΠ²ΠΎΡΡΠ΅ΠΉ ΡΡΠ½ΠΊΠ°.
http://ufficioporta.ru
ΠΠΎΠ»ΡΡΠ°ΠΉΡΠ΅ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎΡ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΎΠ½Π°Π»ΠΎΠ² Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΎ Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ, ΠΎΡΡΡΠ΅ΡΡΠ²Π»ΡΠΉΡΠ΅ ΡΡΠΏΠ΅ΡΠ½ΡΠ΅ ΡΠ΄Π΅Π»ΠΊΠΈ ΠΊΡΠΏΠ»ΠΈ-ΠΏΡΠΎΠ΄Π°ΠΆΠΈ ΠΊΠ²Π°ΡΡΠΈΡ, ΠΈ Π²ΡΠ΅Π³Π΄Π° ΠΎΡΡΠ°Π²Π°ΠΉΡΠ΅ΡΡ Π² ΠΊΡΡΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΡ Π½ΠΎΠ²ΠΎΡΡΠ΅ΠΉ ΡΡΠ½ΠΊΠ°.
http://ufficioporta.ru
Erstellt am 06/05/24 um 19:40:54
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
MelissaWat schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π₯ΠΎΡΡ Π±ΠΎΠ»ΡΡΠ΅ ΡΠ·Π½Π°ΡΡ ΠΏΡΠΎ ΡΠ΅ΠΌΡ Π°ΡΠ΅Π½Π΄Ρ ΠΈ ΠΊΡΠΏΠ»ΠΈ/ΠΏΡΠΎΠ΄Π°ΠΆΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://profmaster-vrn.ru
Erstellt am 06/06/24 um 09:27:19
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Richardviasy schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠΉ ΡΠ΅ΡΡΡΡ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ ΠΎ <a href=http://sc-pskov.ru>Π°ΡΠ΅Π½Π΄Π΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=http://sc-pskov.ru>ΠΎΠ±ΡΠ΅ΠΌΠ΅Π½Π΅Π½ΠΈΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎ ΡΠΎΠ½ΠΊΠΎΡΡΡΡ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΈ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ Π΄ΡΡΠ³ΠΈΠΌΠΈ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ ΠΎ <a href=http://sc-pskov.ru>Π°ΡΠ΅Π½Π΄Π΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=http://sc-pskov.ru>ΠΎΠ±ΡΠ΅ΠΌΠ΅Π½Π΅Π½ΠΈΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΎ ΡΠΎΠ½ΠΊΠΎΡΡΡΡ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΈ ΠΏΠΎΠ΄Π΅Π»ΠΈΠΌΡΡ Π΄ΡΡΠ³ΠΈΠΌΠΈ ΡΠ΅ΠΊΡΠ΅ΡΠ°ΠΌΠΈ.
Erstellt am 06/06/24 um 11:41:12
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
WilliamViown schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
Π²Π°ΠΆΠ½ΡΡ
ΡΠ΅ΠΌ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ?
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ Π½Π°ΠΉΡΠΈ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ ΠΊΠ²Π°ΡΡΠΈΡΠ°Ρ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°, Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ.
http://zoltor24sochi.ru
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ ΡΠΌΠΎΠΆΠ΅ΡΠ΅ Π½Π°ΠΉΡΠΈ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ ΠΊΠ²Π°ΡΡΠΈΡΠ°Ρ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°, Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ.
http://zoltor24sochi.ru
Erstellt am 06/06/24 um 15:38:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Christywig schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠ½ΡΠ΅ΡΠ΅ΡΡΡΡ ΡΠ΅ΠΌΡ Π°ΡΠ΅Π½Π΄Ρ ΠΈ ΠΊΡΠΏΠ»ΠΈ/ΠΏΡΠΎΠ΄Π°ΠΆΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. ΠΠΎΠΊΠ° Π½Π°ΡΠ»Π° https://iter21.ru
Erstellt am 06/07/24 um 10:17:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Jamesprill schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΡΠ°ΠΉΡ, Π³Π΄Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ Π±ΠΎΠ»ΡΡΠΎΠ΅ ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ΅ΠΌΡ ΠΏΡΠΈΠ΅ΠΌΠΊΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΈΠ»ΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π±Π΅Π· ΠΎΡΠ΄Π΅Π»ΠΊΠΈ. Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ Π·Π°ΡΠΈΡΠΈΡΡ ΡΠ΅Π±Ρ ΠΎΡ Π½Π΅Π½Π°Π΄ΡΠΆΠ½ΡΡ
Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠΎΠ², ΠΊΠ°ΠΊΠΈΠ΅ ΠΏΡΠΎΠ²Π΅ΡΠΊΠΈ ΠΎΡΡΡΠ΅ΡΡΠ²ΠΈΡΡ ΠΏΠ΅ΡΠ΅Π΄ ΠΏΠΎΠΊΡΠΏΠΊΠΎΠΉ ΠΆΠΈΠ»ΡΡ, ΠΈ ΠΎ ΠΌΠ½ΠΎΠ³ΠΎΠΌ Π΄ΡΡΠ³ΠΎΠΌ!
http://citadel-ca.ru
http://citadel-ca.ru
Erstellt am 06/07/24 um 15:39:13
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Richardrer schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ΅ΠΌΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ, ΠΎΡΠ΄Π΅Π»ΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Ρ Π½ΡΠ»Ρ, ΠΏΡΠΎΠ΄Π°ΠΆΠ° ΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, ΡΡΠΈΠ΄ΠΈΡΠ΅ΡΠΊΠΎΠ΅ ΡΠΎΠΏΡΠΎΠ²ΠΎΠΆΠ΄Π΅Π½ΠΈΠ΅ ΡΠ΄Π΅Π»ΠΊΠΈ.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅ Π½ΡΠ°Π½ΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ Π²Π΅ΡΠ½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΠΎΡΡΡΠ΅ΡΡΠ²ΠΈΡΡ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΊΡ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ. ΠΠ°ΡΠΈ ΡΡΠ°ΡΡΠΈ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΡ ΡΡΠ΅Π½Π΄ΠΎΠ² ΠΈ Π·Π°ΠΊΠΎΠ½ΠΎΠ² ΠΆΠΈΠ»ΠΈΡΠ½ΠΎΠ³ΠΎ ΡΡΠ½ΠΊΠ°, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ ΠΎΡΠΈΠ±ΠΎΠΊ.
http://domzenit.ru
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅ Π½ΡΠ°Π½ΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ Π²Π΅ΡΠ½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΠΎΡΡΡΠ΅ΡΡΠ²ΠΈΡΡ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΊΡ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ. ΠΠ°ΡΠΈ ΡΡΠ°ΡΡΠΈ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΡ ΡΡΠ΅Π½Π΄ΠΎΠ² ΠΈ Π·Π°ΠΊΠΎΠ½ΠΎΠ² ΠΆΠΈΠ»ΠΈΡΠ½ΠΎΠ³ΠΎ ΡΡΠ½ΠΊΠ°, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ ΠΎΡΠΈΠ±ΠΎΠΊ.
http://domzenit.ru
Erstellt am 06/08/24 um 07:49:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JamesCycle schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΠΎΠΊΡΠΏΠΊΠΎΠΉ ΠΆΠΈΠ»ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ ΠΏΡΠΈΠ΅ΠΌΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΈΠ»ΠΈ ΡΡΠΎΠΈΠΌΠΎΡΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² ΠΠΎΡΠΊΠ²Π΅.
Π‘Π°ΠΉΡ: http://ooo-trotuar.ru
Π‘Π°ΠΉΡ: http://ooo-trotuar.ru
Erstellt am 06/09/24 um 00:09:11
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Coltonwek schrieb:
Π₯ΠΎΡΠ΅Π»ΠΈ Π±Ρ ΡΠ·Π½Π°ΡΡ Π²ΡΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ <a href=http://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ</a>?
ΠΠ°Ρ ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ-ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=http://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦</a>, <a href=http://potolokperm59.ru>ΠΈΠΏΠΎΡΠ΅ΡΠ½ΠΎΠ΅ ΠΊΡΠ΅Π΄ΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²Π°ΡΠΈ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΡ ΠΆΠΈΠ»ΡΡ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ.
ΠΠ°Ρ ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ-ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=http://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦</a>, <a href=http://potolokperm59.ru>ΠΈΠΏΠΎΡΠ΅ΡΠ½ΠΎΠ΅ ΠΊΡΠ΅Π΄ΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²Π°ΡΠΈ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΡ ΠΆΠΈΠ»ΡΡ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ.
Erstellt am 06/09/24 um 16:57:20
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://inter-garage.ru
Erstellt am 06/10/24 um 08:19:29
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
EdwardProld schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://savvys-rus.ru
Erstellt am 06/10/24 um 12:58:18
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
KelvinDen schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://optorgsib.ru
Erstellt am 06/10/24 um 18:55:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RonaldLiani schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://kadprof.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΆΠΈΠ»ΡΡ</a> ΠΈ <a href=https://kadprof.ru/>Π½Π°Π»ΠΎΠ³ΠΈ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ ΠΎΡΠΎΠ·Π½Π°Π½Π½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈΠ»ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΏΡΠ΅Π΄ΠΎΡΡΠ°Π²ΠΈΠΌ Π²Π°ΠΆΠ½ΡΠ΅ Π½ΠΎΠ²ΠΎΡΡΠΈ ΠΎ ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
Π£Π΄ΠΎΠ±Π½ΡΠΉ ΠΏΠΎΠΈΡΠΊ, ΡΠ²Π΅ΠΆΠΈΠ΅ ΠΎΠ±ΡΡΠ²Π»Π΅Π½ΠΈΡ ΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ - Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Π½Π° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅!
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://kadprof.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΆΠΈΠ»ΡΡ</a> ΠΈ <a href=https://kadprof.ru/>Π½Π°Π»ΠΎΠ³ΠΈ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ ΠΎΡΠΎΠ·Π½Π°Π½Π½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈΠ»ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΏΡΠ΅Π΄ΠΎΡΡΠ°Π²ΠΈΠΌ Π²Π°ΠΆΠ½ΡΠ΅ Π½ΠΎΠ²ΠΎΡΡΠΈ ΠΎ ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
Π£Π΄ΠΎΠ±Π½ΡΠΉ ΠΏΠΎΠΈΡΠΊ, ΡΠ²Π΅ΠΆΠΈΠ΅ ΠΎΠ±ΡΡΠ²Π»Π΅Π½ΠΈΡ ΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ - Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Π½Π° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅!
Erstellt am 06/10/24 um 21:26:18
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Gregorysoosy schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
Π²Π°ΠΆΠ½ΡΡ
ΡΠ΅ΠΌ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ?
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠ³ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅, ΡΡΠΎ Π²Π°ΠΌ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ Π΄Π»Ρ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΎΠΊ ΠΈ ΠΏΡΠΈΠ½ΡΡΠΈΡ Π²Π°ΠΆΠ½ΡΡ ΡΠ΅ΡΠ΅Π½ΠΈΠΉ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
https://prestizh-stroi.ru
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠ³ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ ΠΆΠΈΠ»ΡΡ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅, ΡΡΠΎ Π²Π°ΠΌ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ Π΄Π»Ρ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΎΠΊ ΠΈ ΠΏΡΠΈΠ½ΡΡΠΈΡ Π²Π°ΠΆΠ½ΡΡ ΡΠ΅ΡΠ΅Π½ΠΈΠΉ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
https://prestizh-stroi.ru
Erstellt am 06/11/24 um 02:05:59
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
KevinLax schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ Π²ΡΡ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ - ΠΎΡ Π±ΡΠΎΠ½ΠΈΡΠΎΠ²Π°Π½ΠΈΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ Π΄ΠΎ ΠΏΡΠΈΠΎΠ±ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ Π²ΡΠ±ΡΠ°ΡΡ Π»ΡΡΡΡΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅, ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ Π½Π΅ ΠΏΠΎΠΏΠ°ΡΡΡ Π² Π»ΠΎΠ²ΡΡΠΊΡ ΠΏΡΠΈ Π²ΡΠ±ΠΎΡΠ΅ ΠΆΠΈΠ»ΡΡ ΠΈ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ Π²ΡΠ΅ΠΌΡ ΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
ΠΠ΄ΡΠΌ Π² Π³ΠΎΡΡΠΈ: https://quartz-rsk.ru
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ Π²ΡΠ±ΡΠ°ΡΡ Π»ΡΡΡΡΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅, ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ Π½Π΅ ΠΏΠΎΠΏΠ°ΡΡΡ Π² Π»ΠΎΠ²ΡΡΠΊΡ ΠΏΡΠΈ Π²ΡΠ±ΠΎΡΠ΅ ΠΆΠΈΠ»ΡΡ ΠΈ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ Π²ΡΠ΅ΠΌΡ ΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
ΠΠ΄ΡΠΌ Π² Π³ΠΎΡΡΠΈ: https://quartz-rsk.ru
Erstellt am 06/11/24 um 06:58:31
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stephentoods schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://jkstolitsa.ru
Erstellt am 06/11/24 um 11:40:51
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Michaelreula schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΡΠ·Π½Π°ΡΡ Π²ΡΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ?
ΠΠ°Ρ ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ²Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ΅ΠΌΡ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ.
https://krovlistroy.ru/
ΠΠ°Ρ ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ²Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ΅ΠΌΡ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΈ ΠΏΡΠΎΠ΄Π°ΠΆΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ.
https://krovlistroy.ru/
Erstellt am 06/11/24 um 17:16:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Thomasgap schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π²ΠΎ Π²ΡΠ΅Ρ
Π½ΡΠ°Π½ΡΠ°Ρ
ΠΏΠΎΠΊΡΠΏΠΊΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ°Ρ ΠΆΠ΄ΡΡ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://ograda-market.ru/>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>, <a href=https://ograda-market.ru/>ΡΡΠΎΠΈΠΌΠΎΡΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄ΡΡΠ³ΠΈΠ΅!
ΠΠ°Ρ ΠΆΠ΄ΡΡ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://ograda-market.ru/>Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>, <a href=https://ograda-market.ru/>ΡΡΠΎΠΈΠΌΠΎΡΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄ΡΡΠ³ΠΈΠ΅!
Erstellt am 06/11/24 um 22:33:19
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JeremyGreaf schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ Π»ΡΠ±ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ - ΠΎΡ <a href=https://st-potolki.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΆΠΈΠ»ΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a> Π΄ΠΎ <a href=https://st-potolki.ru/>Π±ΡΠΎΠ½ΠΈΡΠΎΠ²Π°Π½ΠΈΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΠ</a>.
ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΎΠ½Π°Π»Π°ΠΌ ΠΈ ΡΠ΄Π΅Π»Π°ΠΉΡΠ΅ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ Ρ Π½Π°ΠΌΠΈ!
ΠΠΎΠ²Π΅ΡΡΡΠ΅ΡΡ ΠΏΡΠΎΡΠ΅ΡΡΠΈΠΎΠ½Π°Π»Π°ΠΌ ΠΈ ΡΠ΄Π΅Π»Π°ΠΉΡΠ΅ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΉ Π²ΡΠ±ΠΎΡ Ρ Π½Π°ΠΌΠΈ!
Erstellt am 06/12/24 um 03:25:16
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DerickBoP schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ΠΉ ΠΆΠΈΠ»ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://thouse-company.ru/>ΠΊΡΠ΅Π΄ΠΈΡ ΠΏΠΎΠ΄ Π·Π°Π»ΠΎΠ³ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://thouse-company.ru/>Π°ΡΠ΅Π½Π΄Π° ΠΆΠΈΠ»ΠΎΠΉ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 06/12/24 um 08:32:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DavidalonE schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ-ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ <a href=https://zel29.ru/>Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://zel29.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΆΠΈΠ»ΡΡ</a> ΠΈ <a href=https://zel29.ru/>Π°ΡΠ΅Π½Π΄Π° Π·Π°Π³ΠΎΡΠΎΠ΄Π½ΠΎΠΉ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΈ Π»ΡΠ±ΡΡ ΡΠ΄Π΅Π»ΠΊΠ°Ρ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ!
ΠΠ·Π½Π°ΠΊΠΎΠΌΡΡΠ΅ΡΡ Ρ ΡΠ°ΠΊΠΈΠΌΠΈ ΡΠ΅ΠΌΠ°ΠΌΠΈ, ΠΊΠ°ΠΊ <a href=https://zel29.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΆΠΈΠ»ΡΡ</a> ΠΈ <a href=https://zel29.ru/>Π°ΡΠ΅Π½Π΄Π° Π·Π°Π³ΠΎΡΠΎΠ΄Π½ΠΎΠΉ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΈ Π»ΡΠ±ΡΡ ΡΠ΄Π΅Π»ΠΊΠ°Ρ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ!
Erstellt am 06/12/24 um 13:16:23
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
KelvinDen schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://master-architector.ru
Erstellt am 06/13/24 um 09:11:02
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Milantow schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ <a href=https://asta58.ru/>ΡΡΠΎΠΈΠΌΠΎΡΡΠΈ ΠΊΠ²Π°ΡΡΠΈΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://asta58.ru/>Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ°Ρ
</a>.
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΡΠΎΡ ΡΠ°Π½ΠΈΡΡ Π²Π°Ρ Π±ΡΠ΄ΠΆΠ΅Ρ!
ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΡΠΎΠ²Π΅ΡΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΈ ΡΠΎΡ ΡΠ°Π½ΠΈΡΡ Π²Π°Ρ Π±ΡΠ΄ΠΆΠ΅Ρ!
Erstellt am 06/13/24 um 12:12:48
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Gilbertkip schrieb:
ΠΠΎΠ±ΡΠΎ ΠΏΠΎΠΆΠ°Π»ΠΎΠ²Π°ΡΡ Π½Π° Π½Π°Ρ ΠΏΠΎΡΡΠ°Π», Π³Π΄Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://findombani.ru/>ΠΏΡΠΈΠ΅ΠΌΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>, ΠΈ Π½Π° ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄ΡΡΠ³ΠΈΠ΅.
Π£Π·Π½Π°ΠΉΡΠ΅ Π±ΠΎΠ»ΡΡΠ΅ ΠΎ ΡΠΎΠΌ, ΠΊΠ°ΠΊ <a href=https://findombani.ru/>ΠΊΡΠΏΠΈΡΡ Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΡ Ρ ΡΠ΅ΡΠ½ΠΎΠ²ΠΎΠΉ ΠΎΡΠ΄Π΅Π»ΠΊΠΎΠΉ</a>. ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΡΡΠ°ΡΡ ΠΏΠΎΠ΄ΠΊΠΎΠ²Π°Π½Π½ΡΠΌ ΠΏΠΎΠΊΡΠΏΠ°ΡΠ΅Π»Π΅ΠΌ, ΠΈ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ ΡΠ°Π·Π»ΠΈΡΠ½ΡΡ ΠΏΡΠΎΠ±Π»Π΅ΠΌ Π² Π±ΡΠ΄ΡΡΠ΅ΠΌ!
Π£Π·Π½Π°ΠΉΡΠ΅ Π±ΠΎΠ»ΡΡΠ΅ ΠΎ ΡΠΎΠΌ, ΠΊΠ°ΠΊ <a href=https://findombani.ru/>ΠΊΡΠΏΠΈΡΡ Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΡ Ρ ΡΠ΅ΡΠ½ΠΎΠ²ΠΎΠΉ ΠΎΡΠ΄Π΅Π»ΠΊΠΎΠΉ</a>. ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ ΡΡΠ°ΡΡ ΠΏΠΎΠ΄ΠΊΠΎΠ²Π°Π½Π½ΡΠΌ ΠΏΠΎΠΊΡΠΏΠ°ΡΠ΅Π»Π΅ΠΌ, ΠΈ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ ΡΠ°Π·Π»ΠΈΡΠ½ΡΡ ΠΏΡΠΎΠ±Π»Π΅ΠΌ Π² Π±ΡΠ΄ΡΡΠ΅ΠΌ!
Erstellt am 06/13/24 um 16:52:49
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JeffreyCrype schrieb:
ΠΠ½ΡΠ΅ΡΠ΅ΡΡΠ΅ΡΠ΅ΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ? ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» - Π²Π°Ρ Π½Π°Π΄Π΅ΠΆΠ½ΡΠΉ ΠΏΡΠΎΠ²ΠΎΠ΄Π½ΠΈΠΊ Π² ΡΡΠΎΠΉ ΡΡΠ΅ΡΠ΅. Π£ Π½Π°Ρ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://abraziv-pferd.ru>ΠΊΠ²Π°ΡΡΠΈΡΡ Π±Π΅Π· ΠΎΡΠ΄Π΅Π»ΠΊΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://abraziv-pferd.ru>ΠΎΡΠ΅Π½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠΎΠ΄ΡΠΎΠ±Π½ΡΠ΅ Π°Π½Π°Π»ΠΈΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΠΌΠ½Π΅Π½ΠΈΡ ΠΈ Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΠΈ β Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Ρ Π½Π°Ρ!
ΠΠΎΠ΄ΡΠΎΠ±Π½ΡΠ΅ Π°Π½Π°Π»ΠΈΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΠΌΠ½Π΅Π½ΠΈΡ ΠΈ Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΠΈ β Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Ρ Π½Π°Ρ!
Erstellt am 06/14/24 um 00:36:53
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
RobertEnups schrieb:
Π£Π·Π½Π°ΠΉ Π²ΡΠ΅ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π½Π° ΠΎΠ΄Π½ΠΎΠΌ ΡΠ΅ΡΡΡΡΠ΅! ΠΠ°ΡΠΈ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ <a href=https://arbolityug.ru>ΠΊΠ²Π°ΡΡΠΈΡΠ°Ρ
ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a> ΠΈ ΠΎ <a href=https://arbolityug.ru>Π°Π³Π΅Π½ΡΡΡΠ²Π°Ρ
Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a> ΠΏΠΎΠΌΠΎΠ³ΡΡ ΡΠ΅Π±Π΅ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π²ΠΎ Π²ΡΠ΅Ρ
Π½ΡΠ°Π½ΡΠ°Ρ
ΡΡΠΎΠΉ ΡΠ»ΠΎΠΆΠ½ΠΎΠΉ ΠΎΠ±Π»Π°ΡΡΠΈ.
ΠΠ΅ ΡΠΏΡΡΡΠΈ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ ΠΈ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ! ΠΠΎΡΠ΅ΡΠΈ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ ΡΡΠ°Π½Ρ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠΌ Π² ΠΎΠ±Π»Π°ΡΡΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
ΠΠ΅ ΡΠΏΡΡΡΠΈ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ ΠΈ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ! ΠΠΎΡΠ΅ΡΠΈ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ ΡΡΠ°Π½Ρ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠΌ Π² ΠΎΠ±Π»Π°ΡΡΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
Erstellt am 06/14/24 um 03:24:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
PatrickAquag schrieb:
ΠΡΠΊΡΠΎΠΉΡΠ΅ Π΄Π²Π΅ΡΡ Π² ΠΌΠΈΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Ρ Π½Π°ΡΠΈΠΌ ΡΠ°ΠΉΡΠΎΠΌ! Π£ Π½Π°Ρ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΌΡΠ΅ ΠΏΠΎΠΏΡΠ»ΡΡΠ½ΡΠ΅ ΡΠ΅ΠΌΡ: <a href=https://ecolife2.ru>Π°ΡΠ΅Π½Π΄Π° ΠΆΠΈΠ»ΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://ecolife2.ru>ΠΊΠΎΠΌΠΌΠ΅ΡΡΠ΅ΡΠΊΠ°Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>. Π‘ΡΠ°Π½ΡΡΠ΅ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠΌ Π² ΡΡΠΎΠΉ ΡΡΠ΅ΡΠ΅, Π±Π»Π°Π³ΠΎΠ΄Π°ΡΡ Π½Π°ΡΠΈΠΌ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ²Π½ΡΠΌ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°ΠΌ!
Erstellt am 06/14/24 um 05:45:09
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Michaelvorry schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ. ΠΡΠ΅Π½Π΄Π°, ΠΊΡΠΏΠ»Ρ/ΠΏΡΠΎΠ΄Π°ΠΆΠ°, Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΠΊΠ°ΠΊ Π±ΠΈΠ·Π½Π΅Ρ. ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅ http://sma-repair.ru
Erstellt am 06/14/24 um 08:41:19
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JamesCycle schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΠΎΠΊΡΠΏΠΊΠΎΠΉ ΠΆΠΈΠ»ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ ΠΏΡΠΈΠ΅ΠΌΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΈΠ»ΠΈ Π½Π°Π»ΠΎΠ³ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ.
Π‘Π°ΠΉΡ: https://ooo-trotuar.ru
Π‘Π°ΠΉΡ: https://ooo-trotuar.ru
Erstellt am 06/14/24 um 10:42:58
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DouglasBup schrieb:
ΠΠ΅Π»Π°Π΅ΡΠ΅ ΡΡΠ°ΡΡ ΠΏΡΠΎΡΠΈ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠ°Ρ ΡΠ°ΠΉΡ - ΡΡΠΎ Π²Π°Ρ Π³Π»Π°Π²Π½ΡΠΉ ΠΏΠΎΠΌΠΎΡΠ½ΠΈΠΊ! ΠΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅ΠΌ ΠΎΠ³ΡΠΎΠΌΠ½ΠΎΠ΅ ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://opk-ekb.ru>ΠΎΡΠ΄Π΅Π»ΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://opk-ekb.ru>ΠΏΡΠΎΠ΄Π°ΠΆΠ° ΠΆΠΈΠ»ΡΡ</a>. ΠΠ°ΡΠΈ ΡΠΊΡΠΏΠ΅ΡΡΡ ΠΏΠΎΠ΄Π΅Π»ΡΡΡΡ Ρ Π²Π°ΠΌΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠΌΠΈ ΡΠΎΠ²Π΅ΡΠ°ΠΌΠΈ, ΡΡΠΎΠ±Ρ ΠΏΠΎΠΌΠΎΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΠΈΠΌΠ°ΡΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ!
Erstellt am 06/14/24 um 13:47:17
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Coltonwek schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΡΠ·Π½Π°ΡΡ Π²ΡΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ <a href=https://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>?
ΠΠ°Ρ ΡΠ°ΠΉΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=https://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦</a>, <a href=https://potolokperm59.ru>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²Π°ΡΠΈ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ.
ΠΠ°Ρ ΡΠ°ΠΉΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=https://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦</a>, <a href=https://potolokperm59.ru>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ Π²Π°ΡΠΈ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ.
Erstellt am 06/14/24 um 18:28:35
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alfredcrini schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
Π²Π°ΠΆΠ½ΡΡ
ΡΠ΅ΠΌ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ?
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ <a href=https://starextorg.ru>Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://starextorg.ru>ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ</a>.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅, ΡΡΠΎ Π²Π°ΠΌ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ Π΄Π»Ρ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΎΠΊ ΠΈ ΠΏΡΠΈΠ½ΡΡΠΈΡ Π²Π°ΠΆΠ½ΡΡ ΡΠ΅ΡΠ΅Π½ΠΈΠΉ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ <a href=https://starextorg.ru>Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://starextorg.ru>ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ</a>.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅, ΡΡΠΎ Π²Π°ΠΌ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ Π΄Π»Ρ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΎΠΊ ΠΈ ΠΏΡΠΈΠ½ΡΡΠΈΡ Π²Π°ΠΆΠ½ΡΡ ΡΠ΅ΡΠ΅Π½ΠΈΠΉ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
Erstellt am 06/14/24 um 21:20:27
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
online pharmacy medications schrieb:
<a href="https://canadianpharmaciesc...">list of legitimate canadian pharmacies</a>
https://canadianpharmaciesc...
<a href=https://canadianpharmaciesc...>canada drugs online</a>
https://canadianpharmaciesc...
<a href=https://canadianpharmaciesc...>canada drugs online</a>
Erstellt am 06/16/24 um 23:50:53
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DonaldDor schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΡΠ°Π·ΠΎΠ±ΡΠ°ΡΡΡΡ Π²ΠΎ Π²ΡΠ΅Ρ
Π²ΠΎΠΏΡΠΎΡΠ°Ρ
ΠΏΠΎΠΊΡΠΏΠΊΠΈ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ°Ρ ΠΆΠ΄ΡΡ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://afonya31.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://afonya31.ru/>ΡΠ΅Π½Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄ΡΡΠ³ΠΈΠ΅!
ΠΠ°Ρ ΠΆΠ΄ΡΡ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://afonya31.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://afonya31.ru/>ΡΠ΅Π½Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, ΠΈ ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄ΡΡΠ³ΠΈΠ΅!
Erstellt am 06/18/24 um 19:17:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
HarleyHeing schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΡΡΠ°ΡΡ ΡΡΠ°ΡΡΠ»ΠΈΠ²ΡΠΌ ΠΎΠ±Π»Π°Π΄Π°ΡΠ΅Π»Π΅ΠΌ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠΉ ΠΊΠ²Π°ΡΡΠΈΡΡ, Π½ΠΎ Π½Π΅ ΠΏΠΎΠ½ΡΡΠ½ΠΎ, Ρ ΡΠ΅Π³ΠΎ Π½Π°ΡΠ°ΡΡ?
ΠΠ°Ρ ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://domstroiservis.ru>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈΠ»ΠΈ <a href=https://domstroiservis.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΈΠΏΠΎΡΠ΅ΠΊΡ</a>.
ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ Π½ΠΎΠ²ΠΎΠΌΡ ΠΆΠΈΠ»ΡΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
ΠΠ°Ρ ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://domstroiservis.ru>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈΠ»ΠΈ <a href=https://domstroiservis.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² ΠΈΠΏΠΎΡΠ΅ΠΊΡ</a>.
ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ Π½ΠΎΠ²ΠΎΠΌΡ ΠΆΠΈΠ»ΡΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
Erstellt am 06/18/24 um 23:30:24
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Kennethkip schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΡΠΎΠ΄Π°ΠΆΠ΅ΠΉ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://servistermo.ru/>ΠΊΠ²Π°ΡΡΠΈΡΠ° ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a> ΠΈΠ»ΠΈ <a href=https://servistermo.ru/>ΠΊΠΎΠΌΠΌΠ΅ΡΡΠ΅ΡΠΊΠ°Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>.
Erstellt am 06/19/24 um 03:38:17
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stephentoods schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://ak-3.ru
Erstellt am 06/19/24 um 10:56:51
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Calvin schrieb:
I got this web site from my friend who shared with me concerning this website and at
the moment this time I am browsing this website and reading very informative articles or reviews at this time.
the moment this time I am browsing this website and reading very informative articles or reviews at this time.
Erstellt am 06/19/24 um 12:21:56
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Richardsnors schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://abstein.ru/>ΠΏΠΎΠΊΡΠΏΠΊΠ° ΡΠ°ΡΡΠ½ΠΎΠ³ΠΎ Π΄ΠΎΠΌΠ°</a> ΠΈΠ»ΠΈ <a href=https://abstein.ru/>ΠΏΡΠΎΠ΄Π°ΠΆΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 06/19/24 um 12:49:32
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://417-017.ru
Erstellt am 06/19/24 um 14:08:09
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JeffreyCrype schrieb:
ΠΠ½ΡΠ΅ΡΠ΅ΡΡΠ΅ΡΠ΅ΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ? ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» - Π²Π°Ρ Π²Π΅ΡΠ½ΡΠΉ ΠΏΡΠΎΠ²ΠΎΠ΄Π½ΠΈΠΊ Π² ΡΡΠΎΠΉ ΡΡΠ΅ΡΠ΅. ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://auraclimate.ru/>ΠΊΠ²Π°ΡΡΠΈΡΠ° Π±Π΅Π· ΠΎΡΠ΄Π΅Π»ΠΊΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://auraclimate.ru/>Π°Π³Π΅Π½ΡΡΡΠ²ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠ»ΡΠ±ΠΎΠΊΠΈΠ΅ Π°Π½Π°Π»ΠΈΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΠΌΠ½Π΅Π½ΠΈΡ ΠΈ Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΠΈ β Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Ρ Π½Π°Ρ!
ΠΠ»ΡΠ±ΠΎΠΊΠΈΠ΅ Π°Π½Π°Π»ΠΈΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΠΌΠ½Π΅Π½ΠΈΡ ΠΈ Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΠΈ β Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Ρ Π½Π°Ρ!
Erstellt am 06/19/24 um 17:14:43
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://aquatopnn.ru
Erstellt am 06/19/24 um 17:19:13
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://artem-dvery.ru
Erstellt am 06/19/24 um 20:32:20
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Coreyabumn schrieb:
Π₯ΠΎΡΠΈΡΠ΅ ΡΡΠ°ΡΡ ΡΡΠ°ΡΡΠ»ΠΈΠ²ΡΠΌ ΠΎΠ±Π»Π°Π΄Π°ΡΠ΅Π»Π΅ΠΌ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠΉ ΠΊΠ²Π°ΡΡΠΈΡΡ, Π½ΠΎ Π½Π΅ Π·Π½Π°Π΅ΡΠ΅, Ρ ΡΠ΅Π³ΠΎ Π½Π°ΡΠ°ΡΡ?
ΠΠ°Ρ ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://aviator-krd.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈΠ»ΠΈ <a href=https://aviator-krd.ru/>ΠΈΠΏΠΎΡΠ΅ΠΊΠ° ΠΏΠΎΠ΄ Π·Π°Π»ΠΎΠ³ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠ°Ρ ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://aviator-krd.ru/>ΡΠ΅ΠΌΠΎΠ½Ρ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a> ΠΈΠ»ΠΈ <a href=https://aviator-krd.ru/>ΠΈΠΏΠΎΡΠ΅ΠΊΠ° ΠΏΠΎΠ΄ Π·Π°Π»ΠΎΠ³ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
Erstellt am 06/19/24 um 21:51:19
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://asiatreid.ru
Erstellt am 06/19/24 um 23:34:43
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DarinSoisp schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
Π½ΠΎΠ²ΡΡ
ΡΠ΅Π½Π΄Π΅Π½ΡΠΈΠΉ Π½Π° ΡΡΠ½ΠΊΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ?
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://bd-rielt.ru/>ΠΊΠΎΠΌΠΌΠ΅ΡΡΠ΅ΡΠΊΠ°Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://bd-rielt.ru/>ΠΏΡΠΎΠΏΠΈΡΠΊΠ° Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
Π£Π·Π½Π°Π²Π°ΠΉΡΠ΅ ΠΏΠ΅ΡΠ²ΡΠΌΠΈ ΠΎ ΡΠ°ΠΌΡΡ Π²ΡΠ³ΠΎΠ΄Π½ΡΡ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΡΡ ΠΈ Π²Π°ΠΆΠ½ΡΡ ΡΠΎΠ²Π΅ΡΠ°Ρ ΠΎΡ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠ²!
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΠΏΠΎΡΡΠ°Π»Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://bd-rielt.ru/>ΠΊΠΎΠΌΠΌΠ΅ΡΡΠ΅ΡΠΊΠ°Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://bd-rielt.ru/>ΠΏΡΠΎΠΏΠΈΡΠΊΠ° Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
Π£Π·Π½Π°Π²Π°ΠΉΡΠ΅ ΠΏΠ΅ΡΠ²ΡΠΌΠΈ ΠΎ ΡΠ°ΠΌΡΡ Π²ΡΠ³ΠΎΠ΄Π½ΡΡ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΡΡ ΠΈ Π²Π°ΠΆΠ½ΡΡ ΡΠΎΠ²Π΅ΡΠ°Ρ ΠΎΡ ΡΠΊΡΠΏΠ΅ΡΡΠΎΠ²!
Erstellt am 06/20/24 um 02:10:01
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://dilerskiy-tsentr-ba...
Erstellt am 06/20/24 um 02:31:10
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://dompodkluch33.ru
Erstellt am 06/20/24 um 05:29:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JamesGab schrieb:
ΠΠ°Ρ ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://bitarel.ru/>ΠΊΠ°Π΄Π°ΡΡΡΠΎΠ²ΡΠΉ ΡΡΠ΅Ρ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://bitarel.ru/>Π΄ΠΎΠ³ΠΎΠ²ΠΎΡ Π°ΡΠ΅Π½Π΄Ρ ΠΊΠ²Π°ΡΡΠΈΡΡ</a>.
Erstellt am 06/20/24 um 06:30:40
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://eniseyburvod.ru
Erstellt am 06/20/24 um 08:29:15
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://etalon-voda.ru
Erstellt am 06/20/24 um 12:25:38
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stevetip schrieb:
ΠΠ·ΡΡΠΈΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://dom-techno161.ru/>Π½Π°Π»ΠΎΠ³ΠΎΠ²ΡΠΉ Π²ΡΡΠ΅Ρ Π·Π° ΠΈΠΏΠΎΡΠ΅ΠΊΡ</a> ΠΈΠ»ΠΈ <a href=https://dom-techno161.ru/>ΠΎΠΏΠΈΡΡ ΠΈΠΌΡΡΠ΅ΡΡΠ²Π°</a>.
Erstellt am 06/20/24 um 13:04:34
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://floor-ashton.ru
Erstellt am 06/20/24 um 15:47:10
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
mexican border pharmacies schrieb:
<a href="https://canadianpharmacypoi...">legal canadian pharmacy online</a>
https://canadianpharmacypoi...
<a href=https://canadianpharmacypoi...>best online pharmacies no prescription</a>
https://canadianpharmacypoi...
<a href=https://canadianpharmacypoi...>best online pharmacies no prescription</a>
Erstellt am 06/20/24 um 16:24:47
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JasonTiG schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΠΎΠΊΡΠΏΠΊΠΎΠΉ ΠΆΠΈΠ»ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://kolodets-klin.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://kolodets-klin.ru/>ΠΈΠ½Π²Π΅ΡΡΠΈΡΠΈΠΈ Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>.
Erstellt am 06/20/24 um 17:40:17
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://gismt72.ru
Erstellt am 06/20/24 um 19:08:13
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Stevetog schrieb:
ΠΠ·ΡΡΠΈΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://mdorm.ru/>ΠΈΠΏΠΎΡΠ΅ΡΠ½ΡΠ΅ ΠΊΡΠ΅Π΄ΠΈΡΡ</a> ΠΈΠ»ΠΈ <a href=https://mdorm.ru/>Π½Π°Π»ΠΎΠ³ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>.
Erstellt am 06/20/24 um 22:17:16
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kait-volga.ru
Erstellt am 06/20/24 um 22:34:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://kaluga-elite.ru
Erstellt am 06/21/24 um 02:03:16
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Georgefrift schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ Π½ΡΠΆΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ <a href=https://tsereteli-art.ru/>ΠΏΠ°ΡΠ΅Π½ΡΠ΅ Π½Π° ΡΠ΄Π°ΡΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π°ΡΠ΅Π½Π΄Ρ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://tsereteli-art.ru/>ΠΆΠΈΠ»ΠΈΡΠ½ΠΎΠΌ ΠΏΡΠ°Π²Π΅</a>.
Erstellt am 06/21/24 um 02:50:23
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://kamenolomnya43.ru
Erstellt am 06/21/24 um 05:18:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kmzperm.ru
Erstellt am 06/21/24 um 08:42:32
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://kovry159.ru
Erstellt am 06/21/24 um 11:41:57
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Andrewreuth schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ <a href=https://3855154.ru/>ΡΠ΄Π΅Π»ΠΊΠΈ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ</a> ΠΈΠ»ΠΈ <a href=https://3855154.ru/>ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅</a>.
Erstellt am 06/21/24 um 12:27:36
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://krepegmaster.ru
Erstellt am 06/21/24 um 14:32:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ArnulfoScoro schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΡ
ΡΠ΅ΠΌ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ?
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠ³ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://cmy33.ru/>ΠΈΠ½Π²Π΅ΡΡΠΈΡΠΈΠΈ Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a> Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://cmy33.ru/>ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ Π΄ΠΎΠ»ΠΈ Π² Π ΠΎΡΡΠ΅Π΅ΡΡΡΠ΅</a>.
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠ³ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://cmy33.ru/>ΠΈΠ½Π²Π΅ΡΡΠΈΡΠΈΠΈ Π² Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a> Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://cmy33.ru/>ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ Π΄ΠΎΠ»ΠΈ Π² Π ΠΎΡΡΠ΅Π΅ΡΡΡΠ΅</a>.
Erstellt am 06/21/24 um 16:55:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kuler-tsentr.ru
Erstellt am 06/21/24 um 17:20:38
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://liem-com.ru
Erstellt am 06/21/24 um 20:06:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
NormanGus schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΡΠ°ΠΌΡΡ Π²Π°ΠΆΠ½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π½Π° ΡΠ»Π΅Π΄ΡΡΡΠΈΠ΅ ΡΠ΅ΠΌΡ: <a href=https://glass161.ru/>ΠΊΡΠΏΠ»Ρ-ΠΏΡΠΎΠ΄Π°ΠΆΠ° ΠΆΠΈΠ»ΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://glass161.ru/>ΠΏΠ΅ΡΠ΅ΠΏΠ»Π°Π½ΠΈΡΠΎΠ²ΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ</a>.
Erstellt am 06/21/24 um 21:29:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://oscltd.ru
Erstellt am 06/21/24 um 22:54:32
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://ppu-odk.ru
Erstellt am 06/22/24 um 01:49:31
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Armandolox schrieb:
ΠΠ°Ρ ΠΏΠΎΡΡΠ°Π» ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΠΏΠΎΠ»Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://u-bereg.ru/>Π°ΡΠ΅Π½Π΄Π° Π·Π΅ΠΌΠ»ΠΈ</a> ΠΈΠ»ΠΈ <a href=https://u-bereg.ru/>Π½ΠΎΡΠ°ΡΠΈΠ°Π»ΡΠ½ΡΠ΅ ΡΡΠ»ΡΠ³ΠΈ</a>.
ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠΌΡ Π΄ΠΎΠΌΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
ΠΠΎΡΠ΅ΡΠΈΡΠ΅ Π½Π°Ρ ΡΠ°ΠΉΡ ΠΈ Π½Π°ΡΠ½ΠΈΡΠ΅ ΡΠ²ΠΎΠΉ ΠΏΡΡΡ ΠΊ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠΌΡ Π΄ΠΎΠΌΡ ΡΠΆΠ΅ ΡΠ΅Π³ΠΎΠ΄Π½Ρ!
Erstellt am 06/22/24 um 02:12:59
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://redglade-nn.ru
Erstellt am 06/22/24 um 04:37:34
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://santam1.ru
Erstellt am 06/22/24 um 07:34:54
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://sibarit54.ru
Erstellt am 06/22/24 um 10:33:48
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://stroyproektm.ru
Erstellt am 06/22/24 um 13:39:07
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://tent44.ru
Erstellt am 06/22/24 um 16:38:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://universal37.ru
Erstellt am 06/22/24 um 19:30:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://velikaya-stena.ru
Erstellt am 06/22/24 um 22:26:32
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://zmk-54.ru
Erstellt am 06/23/24 um 01:22:44
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
mexican pharmacy online schrieb:
<a href="https://canadianpharmaciess...">drug stores canada</a>
https://canadianpharmaciess...
<a href=https://canadianpharmaciess...>canada drugs online</a>
https://canadianpharmaciess...
<a href=https://canadianpharmaciess...>canada drugs online</a>
Erstellt am 06/23/24 um 09:31:15
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Ima schrieb:
I don't even understand how I ended up here, but I thought this publish was good.
I do not recognize who you are however definitely
you're going to a famous blogger when you are not already.
Cheers!
I do not recognize who you are however definitely
you're going to a famous blogger when you are not already.
Cheers!
Erstellt am 06/24/24 um 20:14:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://417-017.ru
Erstellt am 06/25/24 um 13:59:06
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://aquatopnn.ru
Erstellt am 06/25/24 um 19:43:10
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://artem-dvery.ru
Erstellt am 06/26/24 um 01:23:49
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://asiatreid.ru
Erstellt am 06/26/24 um 07:04:52
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
online pharmacies legitimate schrieb:
<a href="https://canadianpharmaceuti...">canada drugs without perscription</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>safe canadian online pharmacies</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>safe canadian online pharmacies</a>
Erstellt am 06/26/24 um 08:43:06
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://dilerskiy-tsentr-ba...
Erstellt am 06/26/24 um 12:46:00
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JeffreyCrype schrieb:
ΠΠ½ΡΠ΅ΡΠ΅ΡΡΠ΅ΡΠ΅ΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ? ΠΠ°Ρ ΡΠ°ΠΉΡ - Π²Π°Ρ Π½Π°Π΄Π΅ΠΆΠ½ΡΠΉ ΠΏΡΠΎΠ²ΠΎΠ΄Π½ΠΈΠΊ Π² ΡΡΠΎΠΉ ΠΎΠ±Π»Π°ΡΡΠΈ. ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ <a href=https://abraziv-pferd.ru>ΠΊΠ²Π°ΡΡΠΈΡΡ Π±Π΅Π· ΠΎΡΠ΄Π΅Π»ΠΊΠΈ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ <a href=https://abraziv-pferd.ru>ΠΎΡΠ΅Π½ΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ</a>.
ΠΠΎΠ΄ΡΠΎΠ±Π½ΡΠ΅ Π°Π½Π°Π»ΠΈΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΠΌΠ½Π΅Π½ΠΈΡ ΠΈ Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΠΈ β Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Ρ Π½Π°Ρ!
ΠΠΎΠ΄ΡΠΎΠ±Π½ΡΠ΅ Π°Π½Π°Π»ΠΈΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ, ΡΠΊΡΠΏΠ΅ΡΡΠ½ΡΠ΅ ΠΌΠ½Π΅Π½ΠΈΡ ΠΈ Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°ΡΠΈΠΈ β Π²ΡΠ΅ ΡΡΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΠΎ Ρ Π½Π°Ρ!
Erstellt am 06/26/24 um 13:30:30
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Jamesprill schrieb:
ΠΠ°Ρ
ΠΎΠ΄ΠΈΡΠ΅ Π½Π° Π½Π°Ρ ΡΠ΅ΡΡΡΡ, Π³Π΄Π΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ Π±ΠΎΠ»ΡΡΠΎΠ΅ ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ
ΡΡΠ°ΡΠ΅ΠΉ Π½Π° ΡΠ΅ΠΌΡ ΠΏΡΠΈΠ΅ΠΌΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΈΠ»ΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ Π±Π΅Π· ΠΎΡΠ΄Π΅Π»ΠΊΠΈ. Π£Π·Π½Π°ΠΉΡΠ΅, ΠΊΠ°ΠΊ Π·Π°ΡΠΈΡΠΈΡΡ ΡΠ΅Π±Ρ ΠΎΡ Π½Π΅Π΄ΠΎΠ±ΡΠΎΡΠΎΠ²Π΅ΡΡΠ½ΡΡ
Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠΎΠ², ΠΊΠ°ΠΊΠΈΠ΅ ΠΏΡΠΎΠ²Π΅ΡΠΊΠΈ ΠΏΡΠΎΠ²Π΅ΡΡΠΈ ΠΏΠ΅ΡΠ΅Π΄ ΠΏΠΎΠΊΡΠΏΠΊΠΎΠΉ ΠΆΠΈΠ»ΡΡ, ΠΈ ΠΎ ΠΌΠ½ΠΎΠ³ΠΎΠΌ Π΄ΡΡΠ³ΠΎΠΌ!
https://citadel-ca.ru
https://citadel-ca.ru
Erstellt am 06/26/24 um 18:19:25
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Richardrer schrieb:
Π£ Π½Π°Ρ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ΅ΠΌΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ, ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅, ΠΏΡΠΎΠ΄Π°ΠΆΠ° ΠΈ ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ, ΡΡΠΈΠ΄ΠΈΡΠ΅ΡΠΊΠΎΠ΅ ΡΠΎΠΏΡΠΎΠ²ΠΎΠΆΠ΄Π΅Π½ΠΈΠ΅ ΡΠ΄Π΅Π»ΠΊΠΈ.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅ ΡΠΎΠ½ΠΊΠΎΡΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΠΏΡΠΎΠ²Π΅ΡΡΠΈ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΊΡ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ. ΠΠ°ΡΠΈ ΡΡΠ°ΡΡΠΈ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΡ Π½ΠΎΠ²ΠΎΡΡΠ΅ΠΉ ΠΈ Π·Π°ΠΊΠΎΠ½ΠΎΠ² ΠΆΠΈΠ»ΠΈΡΠ½ΠΎΠ³ΠΎ ΡΡΠ½ΠΊΠ°, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ Π½Π΅Π΄ΠΎΡΠ°Π·ΡΠΌΠ΅Π½ΠΈΠΉ.
http://domzenit.ru
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅ ΡΠΎΠ½ΠΊΠΎΡΡΠΈ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ ΠΏΡΠΈΠ½ΡΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΠΏΡΠΎΠ²Π΅ΡΡΠΈ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΊΡ Ρ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡΡ. ΠΠ°ΡΠΈ ΡΡΠ°ΡΡΠΈ ΠΏΠΎΠΌΠΎΠ³ΡΡ Π²Π°ΠΌ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΡ Π½ΠΎΠ²ΠΎΡΡΠ΅ΠΉ ΠΈ Π·Π°ΠΊΠΎΠ½ΠΎΠ² ΠΆΠΈΠ»ΠΈΡΠ½ΠΎΠ³ΠΎ ΡΡΠ½ΠΊΠ°, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΈΠ·Π±Π΅ΠΆΠ°ΡΡ Π½Π΅Π΄ΠΎΡΠ°Π·ΡΠΌΠ΅Π½ΠΈΠΉ.
http://domzenit.ru
Erstellt am 06/26/24 um 22:54:33
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://eniseyburvod.ru
Erstellt am 06/27/24 um 00:25:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JamesCycle schrieb:
Π§ΠΈΡΠ°ΠΉΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° Π²Π°ΠΆΠ½ΡΠ΅ ΡΠ΅ΠΌΡ, ΡΠ²ΡΠ·Π°Π½Π½ΡΠ΅ Ρ ΠΏΠΎΠΊΡΠΏΠΊΠΎΠΉ ΠΆΠΈΠ»ΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ ΠΏΠΎΠΊΡΠΏΠΊΠ° ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ ΠΈΠ»ΠΈ Π»ΠΈΠΊΠ²ΠΈΠ΄Π°ΡΠΈΠΎΠ½Π½Π°Ρ ΡΡΠΎΠΈΠΌΠΎΡΡΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
Π‘Π°ΠΉΡ: https://ooo-trotuar.ru
Π‘Π°ΠΉΡ: https://ooo-trotuar.ru
Erstellt am 06/27/24 um 03:21:43
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://etalon-voda.ru
Erstellt am 06/27/24 um 05:54:03
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://floor-ashton.ru
Erstellt am 06/27/24 um 11:21:19
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Coltonwek schrieb:
Π₯ΠΎΡΠ΅Π»ΠΈ Π±Ρ ΡΠ·Π½Π°ΡΡ Π²ΡΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ <a href=https://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΡ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ</a>?
ΠΠ°Ρ ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ-ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=https://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦</a>, <a href=https://potolokperm59.ru>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΡΡΡΠΈΠ΅ Π²Π°Ρ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ.
ΠΠ°Ρ ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ-ΡΠ΅ΡΡΡΡ ΠΏΡΠ΅Π΄Π»Π°Π³Π°Π΅Ρ Π²Π°ΠΌ ΡΠ°ΠΌΡΠ΅ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ Π½Π° ΡΠ°ΠΊΠΈΠ΅ ΡΠ΅ΠΌΡ, ΠΊΠ°ΠΊ: <a href=https://potolokperm59.ru>ΠΎΡΠΎΡΠΌΠ»Π΅Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ ΡΠ΅ΡΠ΅Π· ΠΠ€Π¦</a>, <a href=https://potolokperm59.ru>ΠΏΠΎΠΊΡΠΏΠΊΠ° Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠΈ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°</a>.
ΠΠ΄Π΅ΡΡ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΎΡΠ²Π΅ΡΡ Π½Π° Π²ΡΠ΅ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΡΡΡΠΈΠ΅ Π²Π°Ρ Π²ΠΎΠΏΡΠΎΡΡ ΠΈ ΠΏΠΎΠ»ΡΡΠΈΡΠ΅ ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΎΡΠ΅ΡΡΠ΅ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΆΠΈΠ»ΡΡ Π² ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΡΡΡ.
Erstellt am 06/27/24 um 12:26:35
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://gismt72.ru
Erstellt am 06/27/24 um 16:59:31
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kait-volga.ru
Erstellt am 06/27/24 um 23:13:32
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
KevinLax schrieb:
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ°ΠΉΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ Π²ΡΠ΅ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΡΠ΅ ΡΠ²Π΅Π΄Π΅Π½ΠΈΡ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ - ΠΎΡ Π±ΡΠΎΠ½ΠΈΡΠΎΠ²Π°Π½ΠΈΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅ Π΄ΠΎ ΠΏΠΎΠΊΡΠΏΠΊΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ ΠΎΡ Π·Π°ΡΡΡΠΎΠΉΡΠΈΠΊΠ°.
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ Π²ΡΠ±ΡΠ°ΡΡ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΡΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅, ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ Π½Π΅ ΠΎΡΠΈΠ±ΠΈΡΡΡΡ ΠΏΡΠΈ Π²ΡΠ±ΠΎΡΠ΅ ΠΆΠΈΠ»ΡΡ ΠΈ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ Π²ΡΠ΅ΠΌΡ ΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
ΠΠ°Ρ ΠΎΠ΄ΠΈΡΠ΅: https://quartz-rsk.ru
ΠΡ ΠΏΠΎΠΌΠΎΠΆΠ΅ΠΌ Π²Π°ΠΌ Π²ΡΠ±ΡΠ°ΡΡ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΡΡ ΠΊΠ²Π°ΡΡΠΈΡΡ Π² Π½ΠΎΠ²ΠΎΡΡΡΠΎΠΉΠΊΠ΅, ΡΠ°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ Π½Π΅ ΠΎΡΠΈΠ±ΠΈΡΡΡΡ ΠΏΡΠΈ Π²ΡΠ±ΠΎΡΠ΅ ΠΆΠΈΠ»ΡΡ ΠΈ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ ΡΡΠΊΠΎΠ½ΠΎΠΌΠΈΡΡ Π²ΡΠ΅ΠΌΡ ΠΈ Π΄Π΅Π½ΡΠ³ΠΈ.
ΠΠ°Ρ ΠΎΠ΄ΠΈΡΠ΅: https://quartz-rsk.ru
Erstellt am 06/28/24 um 00:06:13
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kaluga-elite.ru
Erstellt am 06/28/24 um 04:43:49
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Alfredcrini schrieb:
Π₯ΠΎΡΠΈΡΠ΅ Π±ΡΡΡ Π² ΠΊΡΡΡΠ΅ Π²ΡΠ΅Ρ
Π²Π°ΠΆΠ½ΡΡ
ΡΠ΅ΠΌ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ?
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ <a href=https://starextorg.ru>Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://starextorg.ru>ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ</a>.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅, ΡΡΠΎ Π²Π°ΠΌ Π½ΡΠΆΠ½ΠΎ Π΄Π»Ρ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΎΠΊ ΠΈ ΠΏΡΠΈΠ½ΡΡΠΈΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΡΡ ΡΠ΅ΡΠ΅Π½ΠΈΠΉ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
ΠΠ° Π½Π°ΡΠ΅ΠΌ ΡΠ΅ΡΡΡΡΠ΅ Π²Ρ Π½Π°ΠΉΠ΄Π΅ΡΠ΅ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²ΠΎ ΠΏΠΎΠ»Π΅Π·Π½ΡΡ ΡΡΠ°ΡΠ΅ΠΉ ΠΎ <a href=https://starextorg.ru>Π½Π°Π»ΠΎΠ³Π°Ρ Π½Π° Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΡ</a>, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΎ <a href=https://starextorg.ru>ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ ΠΊΠ²Π°ΡΡΠΈΡΡ</a>.
Π£Π·Π½Π°ΠΉΡΠ΅ Π²ΡΠ΅, ΡΡΠΎ Π²Π°ΠΌ Π½ΡΠΆΠ½ΠΎ Π΄Π»Ρ ΡΡΠΏΠ΅ΡΠ½ΡΡ ΡΠ΄Π΅Π»ΠΎΠΊ ΠΈ ΠΏΡΠΈΠ½ΡΡΠΈΡ Π²Π·Π²Π΅ΡΠ΅Π½Π½ΡΡ ΡΠ΅ΡΠ΅Π½ΠΈΠΉ Π² ΡΡΠ΅ΡΠ΅ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ.
Erstellt am 06/28/24 um 06:37:20
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
canadian online pharmacy reviews schrieb:
<a href="https://canadianpharmaceuti...">cheapest drug prices</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>prescription price comparison</a>
https://canadianpharmaceuti...
<a href=https://canadianpharmaceuti...>prescription price comparison</a>
Erstellt am 06/28/24 um 09:09:55
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kamenolomnya43.ru
Erstellt am 06/28/24 um 09:58:22
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kmzperm.ru
Erstellt am 06/28/24 um 15:10:51
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kovry159.ru
Erstellt am 06/28/24 um 20:30:59
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://krepegmaster.ru
Erstellt am 06/29/24 um 01:51:28
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://kuler-tsentr.ru
Erstellt am 06/29/24 um 06:54:42
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://liem-com.ru
Erstellt am 06/29/24 um 12:01:08
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://oscltd.ru
Erstellt am 06/29/24 um 17:09:06
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://ppu-odk.ru
Erstellt am 06/29/24 um 22:21:27
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://redglade-nn.ru
Erstellt am 06/30/24 um 03:35:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://santam1.ru
Erstellt am 06/30/24 um 08:30:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://sibarit54.ru
Erstellt am 06/30/24 um 13:29:27
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://stroyproektm.ru
Erstellt am 06/30/24 um 18:30:46
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://tent44.ru
Erstellt am 06/30/24 um 23:34:36
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Danielerofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://universal37.ru
Erstellt am 07/01/24 um 04:46:18
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
ZacharyDarie schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://1eve1.ru
Erstellt am 07/02/24 um 09:00:48
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
erofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://an72.ru
Erstellt am 07/02/24 um 13:22:02
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
erofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://armid44.ru
Erstellt am 07/02/24 um 17:48:52
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
erofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://azimut-irkutsk.ru
Erstellt am 07/02/24 um 22:13:48
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
SamuelBop schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://ecn-novodom.ru
Erstellt am 07/03/24 um 02:30:11
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
JohnnyCal schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡ ΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://germes-alania.ru
Erstellt am 07/03/24 um 06:53:41
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Justinsence schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://ilinka2.ru
Erstellt am 07/03/24 um 18:11:21
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
GeraldEmoto schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://kolontaevo-club.ru
Erstellt am 07/04/24 um 15:28:39
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
MichaelFiz schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://mcsspb.ru
Erstellt am 07/05/24 um 14:27:50
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Antonioswoks schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://officesaratov.ru
Erstellt am 07/06/24 um 11:20:48
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
BillyOxype schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈ ΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://sintes21.ru
Erstellt am 07/07/24 um 10:27:27
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
DavidMax schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡ ΡΠ°Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://ste96.ru
Erstellt am 07/08/24 um 06:59:09
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Nedvizhimosterofe schrieb:
ΠΡΠ΅ΠΌ ΠΏΡΠΈΠ²Π΅Ρ! ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ Π½Π°ΠΉΡΠΈΠΏΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΠ°ΡΡΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? Π‘Π΅ΠΉΡΠ°Ρ ΡΠΈΡΠ°Ρ https://art-salon-hudojnik.ru
Erstellt am 07/08/24 um 08:36:21
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text);
}
else {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
}
if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text);
}
return $_text;
}
function event_PreItem($_data) {
$_data[item]->body = $this->Treatment($_data[item]->body);
$_data[item]->more = $this->Treatment($_data[item]->more);
}
function event_PreComment($_data) {
$_data['comment']['body'] = $this->Treatment($_data['comment']['body']);
}
function supportsFeature ($what)
{
switch ($what)
{
case 'SqlTablePrefix':
return 1;
default:
return 0;
}
}
}
?>
Nedvizhimosterofe schrieb:
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ. ΠΠΎΠΆΠ΅Ρ ΠΊΡΠΎ Π·Π½Π°Π΅Ρ, Π³Π΄Π΅ ΠΏΠΎΡΠΈΡΠ°ΡΡΡΠ°Π·Π½ΡΠ΅ Π±Π»ΠΎΠ³ΠΈ ΠΎ Π½Π΅Π΄Π²ΠΈΠΆΠΈΠΌΠΎΡΡΠΈ? ΠΠΎΠΊΠ° Π½Π°ΡΠ΅Π» https://avakan74.ru
Erstellt am 07/08/24 um 10:03:05
/*
0.1 - initial release
0.2 - new option: rewrite mail addresses with [at] and [dot]
0.3 - userdefined placeholders for [at] and [dot]
0.4 - new option: links can be open in new window (default: off)
0.5 - support for SqlTablePrefix
*/
class NP_AutoLink extends NucleusPlugin {
function getName() { return 'AutoLink'; }
function getAuthor() { return 'Kai Greve'; }
function getURL() { return 'http://kgblog.de/'; }
function getVersion() { return '0.5'; }
function getDescription() {
return 'Automatically creates links for internet and mail addresses';
}
function install() {
$this->createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes');
$this->createOption('NewWindow','Open links in a new window?','yesno','no');
$this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes');
$this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes');
$this->createOption('at','Placeholder for @','text','[at]');
$this->createOption('dot','Placeholder for .','text','[dot]');
}
function getEventList() {
return array('PreItem', 'PreComment');
}
function Treatment($_text) {
global $CONF, $blog;
if ($this->getOption('NewWindow') == 'yes') {
$nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\"";
}
if ($this->getOption('InternetAddress') == 'yes') {
$_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
$_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text);
}
$at = $this->getOption('at');
$dot = $this->getOption('dot');
if ($this->getOption('MailAddress') == 'yes') {
if ($this->getOption('RewriteMailAddress') == 'no') {
$_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]