1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Notice removal

This commit is contained in:
e107steved
2007-04-18 21:08:40 +00:00
parent 91bf98e81f
commit f92d94c2e9

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/linkwords.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/linkwords.php,v $
| $Revision: 1.7 $ | $Revision: 1.8 $
| $Date: 2007-03-04 21:55:15 $ | $Date: 2007-04-18 21:08:27 $
| $Author: mrpete $ | $Author: e107steved $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -42,14 +42,17 @@ class e_linkwords
$this->block_list = explode("|",substr($pref['lw_page_visibility'],2)); // Knock off the 'show/hide' flag $this->block_list = explode("|",substr($pref['lw_page_visibility'],2)); // Knock off the 'show/hide' flag
foreach ($this->block_list as $p) foreach ($this->block_list as $p)
{ {
if(substr($p, -1) == '!') if ($p=trim($p))
{ {
$p = substr($p, 0, -1); if(substr($p, -1) == '!')
if(substr($check_url, strlen($p)*-1) == $p) return; {
} $p = substr($p, 0, -1);
else if(substr($check_url, strlen($p)*-1) == $p) return;
{ }
if(strlen($p) && strpos($check_url, $p) !== FALSE) return; else
{
if(strpos($check_url, $p) !== FALSE) return;
}
} }
} }