[Netpass-devel] NetPass/www/components CookieDetect,1.4,1.5
Brought to you by:
jeffmurphy
From: jeff m. <jef...@us...> - 2005-08-31 20:09:27
|
Update of /cvsroot/netpass/NetPass/www/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15191/www/components Modified Files: CookieDetect Log Message: bug fixes, see CHANGES file, see message on netpass-users before deploying these changes Index: CookieDetect =================================================================== RCS file: /cvsroot/netpass/NetPass/www/components/CookieDetect,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- CookieDetect 24 Apr 2005 03:42:02 -0000 1.4 +++ CookieDetect 31 Aug 2005 20:09:17 -0000 1.5 @@ -11,9 +11,10 @@ </%once> <%args> - $url => "" - $test => "" - $ip => "" + $url => "" + $test => "" + $ip => "" + $mac => "" </%args> <%perl> @@ -25,7 +26,10 @@ my %c = Apache::Cookie->fetch; return 1 if (exists $c{$cn}); - my $ncfu = $np->db->getPage('msg:no_cookies', 1); + _log("DEBUG", "$mac $ip has cookies disabled\n"); + $m->comp('/Audit', msg => [ "$mac $ip has cookies disabled" ] ); + + my $ncfu = $np->db->getPage(-name => 'msg:no_cookies', -nohtml => 1, -npcfg => $np->cfg, -ip => $ip); if (defined($ncfu) && ($ncfu ne "")) { print $ncfu; } else { |