Author |
Message |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 19/08/2004 16:05:34
|
patron
Beginner
Joined: 18/08/2004 17:13:44
Messages: 6
Offline
|
Does anyone still have to mod to convert Email addresses to raw ASCII for protection against spam?
Thanks
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 21/08/2004 04:07:08
|
patron
Beginner
Joined: 18/08/2004 17:13:44
Messages: 6
Offline
|
bummer.
I have searched the forum and google... and I still have no clue how to do this.
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 21/08/2004 10:33:11
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
OK not the original mod but something I just threw together. Due to the way webbrowsers work I have had to put in &| to stop it rendering the code wrong. Please replace all instances of &| with just & in the following codes.
Open up templates/email.php and replace the mailto: with - &|#109;&|#97;&|#105;&|#108;&|#116;&|#111;&|#58;
so you end up with - <a href="&|#109;&|#97;&|#105;&|#108;&|#116;&|#111;&|#58;$row[email]"><img src="$GB_PG[base_url]/img/email.gif" width="15" height="15" alt="$LANG[AltEmail]" /></a>
Save this.
Then open up lib/add.class.php and find - $this->comment = addslashes($this->comment);
- }
- $host = @gethostbyaddr($this->ip);
- $agent = getenv("HTTP_USER_AGENT");
- $the_time = time();
and replace it with - $this->comment = addslashes($this->comment);
- }
- $this->email = str_replace('@','&|#64;', $this->email);
- $host = @gethostbyaddr($this->ip);
- $agent = getenv("HTTP_USER_AGENT");
- $the_time = time();
Save this file.
This is a basic encryption method but seems to work.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|