<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - Help with Login]]></title>
		<link>http://punbb.informer.com/forums/topic/21602/help-with-login/</link>
		<description><![CDATA[The most recent posts in Help with Login.]]></description>
		<lastBuildDate>Thu, 14 May 2009 08:58:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Help with Login]]></title>
			<link>http://punbb.informer.com/forums/post/127679/#p127679</link>
			<description><![CDATA[<p>I also have the same problem. Login does not work, the Pun shows the confirm-page. Logout does work!</p><div class="quotebox"><blockquote><p>/**<br />&nbsp; &nbsp; &nbsp;*&nbsp; @brief&nbsp; returns the login formular<br />&nbsp; &nbsp; &nbsp;*&nbsp; @return [string] form HTML<br />&nbsp; &nbsp; &nbsp;*/<br />&nbsp; &nbsp; public static function getFormLogin()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; global $dict;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $register_url = forum_link(&#039;register.php&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $redirect_url = $_SERVER[&#039;REQUEST_URI&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $post_url&nbsp; &nbsp; &nbsp;= forum_link(&#039;login.php&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $csrf_token&nbsp; &nbsp;= generate_form_token($post_url);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $form = &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;&#039;.$post_url.&#039;&quot; accept-charset=&quot;utf-8&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&#039;.$redirect_url.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot;&nbsp; &nbsp;value=&quot;&#039;.$csrf_token.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;req_username&quot;&gt;&#039;.$dict-&gt;getDict( &#039;username&#039;, &#039;login&#039;).&#039;: &lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;req_password&quot;&gt;&#039;.$dict-&gt;getDict( &#039;password&#039;, &#039;login&#039;).&#039;: &lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&#039;.$dict-&gt;getDict( &#039;login&#039;, &#039;login&#039;).&#039;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false;&quot;&gt;&#039;.$dict-&gt;getDict( &#039;login&#039;, &#039;login&#039;).&#039;&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp; | &amp;nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;&#039;.$register_url.&#039;&quot;&gt;&#039;.$dict-&gt;getDict( &#039;register&#039;, &#039;login&#039;).&#039;&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;&#039;;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return $form;<br />&nbsp; &nbsp; }</p></blockquote></div><div class="quotebox"><blockquote><p>/**<br />&nbsp; &nbsp; &nbsp;*&nbsp; @brief&nbsp; returns the logout formular<br />&nbsp; &nbsp; &nbsp;*&nbsp; @return [string] form HTML<br />&nbsp; &nbsp; &nbsp;*/<br />&nbsp; &nbsp; public static function getFormLogout()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; global $dict, $currentuser;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $redirect_url = $_SERVER[&#039;REQUEST_URI&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $post_url&nbsp; &nbsp; &nbsp;= forum_link(&#039;login.php&#039;).&#039;?action=out&amp;amp;id=&#039;.$currentuser-&gt;getID();<br />&nbsp; &nbsp; &nbsp; &nbsp; $csrf_token&nbsp; &nbsp;= generate_form_token($post_url);<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $form = &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;&#039;.$post_url.&#039;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&#039;.$redirect_url.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot;&nbsp; &nbsp;value=&quot;&#039;.$csrf_token.&#039;&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&#039;.$dict-&gt;getDict( &#039;logout&#039;, &#039;login&#039;).&#039;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;&#039;;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return $form;<br />&nbsp; &nbsp; }</p></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (Nigg)]]></author>
			<pubDate>Thu, 14 May 2009 08:58:22 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/127679/#p127679</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with Login]]></title>
			<link>http://punbb.informer.com/forums/post/127486/#p127486</link>
			<description><![CDATA[<div class="quotebox"><cite>Slavok wrote:</cite><blockquote><p>Ok, I have modified your code:<br /></p><div class="codebox"><pre><code>&lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;login.php&quot; onsubmit=&quot;return process_form(this)&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot; value=&quot;&lt;?php echo generate_form_token(forum_link($forum_url[&#039;login&#039;])) ?&gt;&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&lt;?php echo $redirect_url ?&gt;&quot; /&gt;
    Username
                    
    &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;
    &amp;nbsp; Password
 
     &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;
     &amp;nbsp;&lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false&quot;&gt; Login&lt;/form&gt;&#039;;</code></pre></div></blockquote></div><p>same problem again</p>]]></description>
			<author><![CDATA[dummy@example.com (Developer)]]></author>
			<pubDate>Thu, 07 May 2009 19:18:20 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/127486/#p127486</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with Login]]></title>
			<link>http://punbb.informer.com/forums/post/127471/#p127471</link>
			<description><![CDATA[<p>Ok, I have modified your code:<br /></p><div class="codebox"><pre><code>&lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;login.php&quot; onsubmit=&quot;return process_form(this)&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot; value=&quot;&lt;?php echo generate_form_token(forum_link($forum_url[&#039;login&#039;])) ?&gt;&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&lt;?php echo $redirect_url ?&gt;&quot; /&gt;
    Username
                    
    &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;
    &amp;nbsp; Password
 
     &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;
     &amp;nbsp;&lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false&quot;&gt; Login&lt;/form&gt;&#039;;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Thu, 07 May 2009 07:54:07 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/127471/#p127471</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with Login]]></title>
			<link>http://punbb.informer.com/forums/post/127468/#p127468</link>
			<description><![CDATA[<p>??<br />there is no function process_form ....<br />and the error is with Confirm action :<br />Unable to confirm security token. A likely cause for this is that some time passed between when you first entered the page and when you submitted a form or clicked a link. If that is the case and you would like to continue with your action, please click the Confirm button. Otherwise, you should click the Cancel button to return to where you were.<br />but if i disable it when i try to login it just redirect me to login page and fill up the form...<br />i tryed with this mod to <a href="http://punbb.informer.com/forums/topic/20948/mod-style-login-box-on-frontpage/">http://punbb.informer.com/forums/topic/ &#133; frontpage/</a><br />but it not work</p>]]></description>
			<author><![CDATA[dummy@example.com (Developer)]]></author>
			<pubDate>Thu, 07 May 2009 07:14:22 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/127468/#p127468</guid>
		</item>
		<item>
			<title><![CDATA[Re: Help with Login]]></title>
			<link>http://punbb.informer.com/forums/post/127465/#p127465</link>
			<description><![CDATA[<p>Please, post here the code of JS-function &quot;process_form&quot;. Maybe there is an error in this function.</p>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Thu, 07 May 2009 06:18:28 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/127465/#p127465</guid>
		</item>
		<item>
			<title><![CDATA[Help with Login]]></title>
			<link>http://punbb.informer.com/forums/post/127461/#p127461</link>
			<description><![CDATA[<p>Hello</p><p>I maded a form for login on my index.html page<br /></p><div class="codebox"><pre><code>&lt;form id=&quot;login&quot; name=&quot;login&quot; method=&quot;post&quot; action=&quot;login.php?action=in&quot; onsubmit=&quot;return process_form(this)&quot;&gt;
            
                    &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
                    &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&lt;?php echo $redirect_url ?&gt;&quot; /&gt;
                    Username
                    
                    &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;16&quot; maxlength=&quot;25&quot; /&gt;
                    &amp;nbsp; Password
 
                    &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;
                    &amp;nbsp;&lt;a href=&quot;#&quot; onclick=&quot;document.login.submit(); return false&quot;&gt; Login&lt;/form&gt;&#039;;</code></pre></div><p>but when i enter the username and password it redirect me to login page and then <br />say me to confirm the username and pass<br />how can i made that he not ask me that?</p>]]></description>
			<author><![CDATA[dummy@example.com (Developer)]]></author>
			<pubDate>Wed, 06 May 2009 21:02:26 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/127461/#p127461</guid>
		</item>
	</channel>
</rss>
