<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wordpress plugin: Login Logger</title>
	<atom:link href="http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/</link>
	<description>blog designer</description>
	<lastBuildDate>Wed, 17 Mar 2010 14:26:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Simo Savonen</title>
		<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/comment-page-2/#comment-6480</link>
		<dc:creator>Simo Savonen</dc:creator>
		<pubDate>Sun, 03 Jan 2010 21:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.cre8d-design.com/blog/2007/07/04/wordpress-plugin-login-logger/#comment-6480</guid>
		<description>oops, small bug, should be:

if($empty == 0 &amp;&amp; is_user_logged_in() )</description>
		<content:encoded><![CDATA[<p>oops, small bug, should be:</p>
<p>if($empty == 0 &amp;&amp; is_user_logged_in() )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simo Savonen</title>
		<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/comment-page-2/#comment-6479</link>
		<dc:creator>Simo Savonen</dc:creator>
		<pubDate>Sun, 03 Jan 2010 21:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.cre8d-design.com/blog/2007/07/04/wordpress-plugin-login-logger/#comment-6479</guid>
		<description>Love the plugin, but noticed a design flaw:
if your members never log out, and choose to use the cookie login instead, the plugin never shows their initial log ins.

I modified the code a bit, made the function loging_active() check if the database has any mention of the user (otherwise the update statement doesn&#039;t do anything):

function loginlog_active() {
	global $user_login, $wpdb;
	$table_name = $wpdb-&gt;prefix.&quot;loginlog&quot;;
	$check = $wpdb-&gt;prepare( &quot;SELECT * FROM &quot;.$table_name.&quot; WHERE username= %s AND success=&#039;1&#039;&quot;,$user_login);
	$empty = $wpdb-&gt;query($check);
	if($empty == 0) { loginlog_loginsuccess($user_login); }
	else {
		$update = $wpdb-&gt;prepare(&quot;UPDATE &quot;.$table_name.&quot; SET active = %s WHERE username=%s&quot;,current_time(&#039;mysql&#039;),$user_login);
		$wpdb-&gt;query($update);
	}
}</description>
		<content:encoded><![CDATA[<p>Love the plugin, but noticed a design flaw:<br />
if your members never log out, and choose to use the cookie login instead, the plugin never shows their initial log ins.</p>
<p>I modified the code a bit, made the function loging_active() check if the database has any mention of the user (otherwise the update statement doesn&#8217;t do anything):</p>
<p>function loginlog_active() {<br />
	global $user_login, $wpdb;<br />
	$table_name = $wpdb-&gt;prefix.&#8221;loginlog&#8221;;<br />
	$check = $wpdb-&gt;prepare( &#8220;SELECT * FROM &#8220;.$table_name.&#8221; WHERE username= %s AND success=&#8217;1&#8242;&#8221;,$user_login);<br />
	$empty = $wpdb-&gt;query($check);<br />
	if($empty == 0) { loginlog_loginsuccess($user_login); }<br />
	else {<br />
		$update = $wpdb-&gt;prepare(&#8220;UPDATE &#8220;.$table_name.&#8221; SET active = %s WHERE username=%s&#8221;,current_time(&#8216;mysql&#8217;),$user_login);<br />
		$wpdb-&gt;query($update);<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Barned</title>
		<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/comment-page-2/#comment-6368</link>
		<dc:creator>Doug Barned</dc:creator>
		<pubDate>Mon, 14 Sep 2009 20:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cre8d-design.com/blog/2007/07/04/wordpress-plugin-login-logger/#comment-6368</guid>
		<description>Perfect :) Thanks!

/Doug</description>
		<content:encoded><![CDATA[<p>Perfect <img src='http://www.cre8d-design.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks!</p>
<p>/Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dakiri Blog &#187; Blog Archive &#187; Wordpress &#8211; Les plugins et la sécurisation</title>
		<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/comment-page-2/#comment-6339</link>
		<dc:creator>Dakiri Blog &#187; Blog Archive &#187; Wordpress &#8211; Les plugins et la sécurisation</dc:creator>
		<pubDate>Sat, 05 Sep 2009 16:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.cre8d-design.com/blog/2007/07/04/wordpress-plugin-login-logger/#comment-6339</guid>
		<description>[...] plugin Wordpress login logger vous permet d’enregistrer les tentatives de connexion, et permet donc de retracer les [...]</description>
		<content:encoded><![CDATA[<p>[...] plugin Wordpress login logger vous permet d’enregistrer les tentatives de connexion, et permet donc de retracer les [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Feechen</title>
		<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/comment-page-2/#comment-6335</link>
		<dc:creator>Feechen</dc:creator>
		<pubDate>Wed, 02 Sep 2009 17:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.cre8d-design.com/blog/2007/07/04/wordpress-plugin-login-logger/#comment-6335</guid>
		<description>Hallo,
finde das Plugin auch genial, kann man das irgentwie hinbekommen, das die geköschten User nicht mehr in der Liste angezeigt werden.

Wäre toll

Grüße Feechen</description>
		<content:encoded><![CDATA[<p>Hallo,<br />
finde das Plugin auch genial, kann man das irgentwie hinbekommen, das die geköschten User nicht mehr in der Liste angezeigt werden.</p>
<p>Wäre toll</p>
<p>Grüße Feechen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter moore</title>
		<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/comment-page-2/#comment-6334</link>
		<dc:creator>peter moore</dc:creator>
		<pubDate>Wed, 02 Sep 2009 09:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cre8d-design.com/blog/2007/07/04/wordpress-plugin-login-logger/#comment-6334</guid>
		<description>would be good if this plugin logged the number of times a user has logged in</description>
		<content:encoded><![CDATA[<p>would be good if this plugin logged the number of times a user has logged in</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.cre8d-design.com/2007/07/wordpress-plugin-login-logger/comment-page-2/#comment-6325</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 27 Aug 2009 23:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.cre8d-design.com/blog/2007/07/04/wordpress-plugin-login-logger/#comment-6325</guid>
		<description>Thanks allot for the design update!!</description>
		<content:encoded><![CDATA[<p>Thanks allot for the design update!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
