// EntheoBlog

Archive for September 2005

18 September

createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes'); $this->createOption('NewWindow','Open links in a new window?','yesno','no'); $this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes'); $this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes'); $this->createOption('at','Placeholder for @','text','[at]'); $this->createOption('dot','Placeholder for .','text','[dot]'); } function getEventList() { return array('PreItem', 'PreComment'); } function Treatment($_text) { global $CONF, $blog; if ($this->getOption('NewWindow') == 'yes') { $nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\""; } if ($this->getOption('InternetAddress') == 'yes') { $_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text); $_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text); } $at = $this->getOption('at'); $dot = $this->getOption('dot'); if ($this->getOption('MailAddress') == 'yes') { if ($this->getOption('RewriteMailAddress') == 'no') { $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text); } else { $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text); } } if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){ $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text); } return $_text; } function event_PreItem($_data) { $_data[item]->body = $this->Treatment($_data[item]->body); $_data[item]->more = $this->Treatment($_data[item]->more); } function event_PreComment($_data) { $_data['comment']['body'] = $this->Treatment($_data['comment']['body']); } function supportsFeature ($what) { switch ($what) { case 'SqlTablePrefix': return 1; default: return 0; } } } ?>

"Too much" - das Büchlein muss bearbeitet werden ... Hilfe gewünscht

Gestern kam da eine Mail vom Werner Pieper, der ein reichlich altes Büchlein überarbeiten möchte, dessen Autor kürzlich verstarb. "Too Much - Erste Hilfe bei Drogennotfällen" war eine kleine Biebel für jeden, der sich möglicherweise in einer Situation wiederfinden könnte, in der das Wissen um die richtige Handlungsweise vielleicht lebensrettend ist. Seit der Erstauflage dieses Büchleins ist nun etwas mehr als ein Jahrzehnt vergangen und ein Teil des Inhaltes hat sich als gefährlich weit weg von sinnvollen Handlungsanweisungen herausgestellt.

[Den ganzen Text lesen] -  Karma: 98 [+/-]
Geschrieben von harko um 17:36:25 Uhr - mySQL error with query SELECT COUNT(*) FROM entheogenenucleus_comment as c WHERE c.citem=85: Table './blog/entheogenenucleus_comment' is marked as crashed and last (automatic?) repair failed

Keine Kommentare vorhanden - Keine Trackbacks
Abgelegt unter Publikationen

Einfach Flattrn wenn es gefällt - Danke.