[geeklog-cvs] geeklog-1.3/public_html usersettings.php,1.111,1.112

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sun Feb 20 04:55:54 EST 2005


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv19394/public_html

Modified Files:
	usersettings.php 
Log Message:
Check the user's profile data for spam, in case that becomes the next fad ...


Index: usersettings.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.111
retrieving revision 1.112
diff -C2 -d -r1.111 -r1.112
*** usersettings.php	5 Feb 2005 10:57:33 -0000	1.111
--- usersettings.php	20 Feb 2005 09:55:52 -0000	1.112
***************
*** 9,18 ****
  // | Geeklog user settings page.                                               |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2004 by the following authors:                         |
  // |                                                                           |
! // | Authors: Tony Bibbs        - tony at tonybibbs.com                           |
! // |          Mark Limburg      - mlimburg at users.sourceforge.net               |
! // |          Jason Whittenburg - jwhitten at securitygeeks.com                   |
! // |          Dirk Haun         - dirk at haun-online.de                          |
  // +---------------------------------------------------------------------------+
  // |                                                                           |
--- 9,18 ----
  // | Geeklog user settings page.                                               |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2005 by the following authors:                         |
  // |                                                                           |
! // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
! // |          Mark Limburg      - mlimburg AT users DOT sourceforge DOT net    |
! // |          Jason Whittenburg - jwhitten AT securitygeeks DOT com            |
! // |          Dirk Haun         - dirk AT haun-online DOT de                   |
  // +---------------------------------------------------------------------------+
  // |                                                                           |
***************
*** 848,851 ****
--- 848,862 ----
      }
  
+     // a quick spam check with the unfiltered field contents
+     $profile = '<h1>' . $LANG04[1] . ' ' . $_USER['username'] . '</h1>'
+              . '<p><a href="' . $A['homepage'] . '">' . $A['homepage']
+              . '</a><br>' . $A['location'] . '<br>' . $A['sig'] . '<br>'
+              . $A['about'] . '<br>' . $A['pgpkey'] . '</p>';
+     $result = PLG_checkforSpam ($profile, $_CONF['spamx']);
+     if ($result > 0) {
+         return COM_refresh ($_CONF['site_url'] . '/index.php?msg=' . $result
+                             . '&plugin=spamx');
+     }
+ 
      $A['email'] = COM_applyFilter ($A['email']);
      $A['homepage'] = COM_applyFilter ($A['homepage']);




More information about the geeklog-cvs mailing list