<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — XtraCAD]]></title>
		<link>https://punbb.informer.com/forums/topic/3236/xtracad/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/3236/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in XtraCAD.]]></description>
		<lastBuildDate>Wed, 31 Mar 2004 13:07:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/11700/#p11700</link>
			<description><![CDATA[<div class="quotebox"><cite>Paul Marsland wrote:</cite><blockquote><p>You can get the current URL using javascript, the code below has been included at <a href="http://langworthy.bpweb.net/index1.php">http://langworthy.bpweb.net/index1.php</a> This works with the action=in function as do the others methods which return a valid URL you only need action=qout (part of the modded login.php) to return you back to your current page when logging out.</p></blockquote></div><p>i do not agree, never worked for me..</p>]]></description>
			<author><![CDATA[null@example.com (apan)]]></author>
			<pubDate>Wed, 31 Mar 2004 13:07:37 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/11700/#p11700</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10319/#p10319</link>
			<description><![CDATA[<p>You can get the current URL using javascript, the code below has been included at <a href="http://langworthy.bpweb.net/index1.php">http://langworthy.bpweb.net/index1.php</a> This works with the action=in function as do the others methods which return a valid URL you only need action=qout (part of the modded login.php) to return you back to your current page when logging out.</p><p>&lt;form method=&quot;post&quot; action=&quot;forum/login.php?action=in&quot;&gt;<br />&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot;&gt;<br />&lt;script language=&quot;javascript&quot;&gt;<br />&nbsp; var href = location.href;<br />&nbsp; document.write(&#039;&lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&#039;);<br />&nbsp; document.write(href);<br />&nbsp; document.write(&#039;&quot;&gt;&#039;);<br />&lt;/script&gt;<br />&nbsp; &nbsp; Username3:  &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;25&quot; maxlength=&quot;25&quot;&gt;&lt;br&gt;<br />&nbsp; &nbsp; Password3:  &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot;&gt;&lt;br&gt;<br />&nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;login&quot; value=&quot;Login&quot;&gt;<br />&lt;/form&gt;</p><p>Paul M</p>]]></description>
			<author><![CDATA[null@example.com (Paul Marsland)]]></author>
			<pubDate>Fri, 20 Feb 2004 08:06:18 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10319/#p10319</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10290/#p10290</link>
			<description><![CDATA[<div class="quotebox"><cite>Paul Marsland wrote:</cite><blockquote><p>Actually the code on the Mod Discussions forum does not work, it refers you to the forum homepage.</p></blockquote></div><p>That was one of the problems I was having which is what prompted me to ask you for your code in the first place. I am putting together a front page something like PunBB&#039;s main page but incorporating your login which I will put up as a demo.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Thu, 19 Feb 2004 14:17:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10290/#p10290</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10280/#p10280</link>
			<description><![CDATA[<p>Actually the code on the Mod Discussions forum does not work, it refers you to the forum homepage.</p><p>I have set up a test page at <a href="http://langworthy.bpweb.net/index1.php">http://langworthy.bpweb.net/index1.php</a> where you can see each bit of code in action. The username and password is test</p><p>I have ammended the code in login.txt to:</p><p>&lt;form method=&quot;post&quot; action=&quot;forum/login.php?action=in&quot;&gt;<br />&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot;&gt;<br />&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;redirect_url&quot; value=&quot;&lt;?php echo &quot;http://&quot; . $_SERVER[&#039;HTTP_HOST&#039;] . $_SERVER[&#039;REQUEST_URI&#039;] . &quot;\&quot;&gt;&quot;;?&gt;</p><p>&nbsp; &nbsp; Username1:  &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;25&quot; maxlength=&quot;25&quot;&gt;&lt;br&gt;<br />&nbsp; &nbsp; Password1:  &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot;&gt;&lt;br&gt;<br />&nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;login&quot; value=&quot;Login&quot;&gt;<br />&lt;/form&gt;</p><p>PM</p>]]></description>
			<author><![CDATA[null@example.com (Paul Marsland)]]></author>
			<pubDate>Thu, 19 Feb 2004 08:32:57 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10280/#p10280</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10279/#p10279</link>
			<description><![CDATA[<p>qlogin is no longer required, The revised code above uses PunBB functions, but there is a neater solution with explanation on the Mod Discussions/Login Box forum.</p>]]></description>
			<author><![CDATA[null@example.com (Paul Marsland)]]></author>
			<pubDate>Thu, 19 Feb 2004 07:30:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10279/#p10279</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10251/#p10251</link>
			<description><![CDATA[<p>Qlogin required cgi-bin ?</p>]]></description>
			<author><![CDATA[null@example.com (MaxiJazz)]]></author>
			<pubDate>Wed, 18 Feb 2004 13:35:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10251/#p10251</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10090/#p10090</link>
			<description><![CDATA[<p>Files can be obtained here</p><p><a href="http://www.post21.co.uk/punlogin/MainSiteLogin.zip">http://www.post21.co.uk/punlogin/MainSiteLogin.zip</a></p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Mon, 16 Feb 2004 12:50:20 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10090/#p10090</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10072/#p10072</link>
			<description><![CDATA[<div class="quotebox"><cite>Paul wrote:</cite><blockquote><p>Great Work. I have acres of webspace lying around on a commercial host. If you want me to up the files just email them to me and I will post the link back here.</p></blockquote></div><p>To login to your PunBB forum from a main page from your site you can do so by:</p><p>1. replacing login.php with the modified version (see quote, you may have to wait a few hours for the link to appear) The mods will not alter the functionality of the script in any way.</p><p>Note, If PunBB is part of your main website you may as well use the cookie it creates to control access to any web pages that are for your site members only. For this reason the code below will allow logging in and control.</p><p>2. Add the following code at the top of each webpage you wish to either protect or login from. fail.php can be changed to point to your own failed login page. $member &lt; 0 is used to restrict access, this example would allow anyone to view the page changing the 0 to 1 would change the access to members and admin, changing 0 to 2 would allow admin only.</p><p>&lt;?php<br />&nbsp; include(&quot;auth.php&quot;);<br />&nbsp; if($member &lt; 0){<br />&nbsp; &nbsp; header (&quot;Location: fail.php&quot;);<br />&nbsp; }<br />?&gt;</p><p>3. Add the following code where you wish the login boxes to appear (this is the minimum code, styles and formatting would be applied to suit your site). The body &#039;onLoad&#039; tag is added only if you wish your login username field to have focus.</p><p>&lt;body onLoad=&quot;document.getElementById(&#039;login&#039;).req_username.focus()&quot;&gt;<br />&lt;?php<br />&nbsp; if ($member == 0)<br />&nbsp; &nbsp; include(&quot;login.txt&quot;);<br />&nbsp; else<br />&nbsp; &nbsp; echo &#039;&lt;a href=&quot;forum/login.php?action=qout&quot;&gt;Logout?&lt;/a&gt;&#039;;<br />?&gt;</p><p>4. Copy auth.php and login.txt to the same directory as your webpages.</p><p>auth.php contains the following code. $member = 0 if no cookie exists or a cookie for a Guest user has been set. $member = 1 if a member has logged in, $member = 2 if an administrator (with a username of admin) has logged in:</p><br /><p>&lt;?php<br />&nbsp; function un_escape($str){<br />&nbsp; &nbsp; return (get_magic_quotes_gpc() == 1) ? stripslashes($str) : $str;<br />&nbsp; }<br />&nbsp; if(isset($punbb_cookie)){<br />&nbsp; &nbsp; list($str) = unserialize(un_escape($punbb_cookie));<br />&nbsp; &nbsp; if ($str == &quot;Guest&quot;)<br />&nbsp; &nbsp; &nbsp; $member = 0;<br />&nbsp; &nbsp; else if ($str == &quot;admin&quot;)<br />&nbsp; &nbsp; &nbsp; $member = 2;<br />&nbsp; &nbsp; else <br />&nbsp; &nbsp; &nbsp; $member = 1;<br />&nbsp; } else<br />&nbsp; &nbsp; &nbsp; $member = 0;<br />?&gt;</p><br /><p>login.txt contains the following code (this is the minimum code, styles and formatting would be applied to suit your site). The &#039;action&#039; path may need to be ammended to point to where you have login.php.</p><br /><p>&lt;form method=&quot;post&quot; action=&quot;forum/login.php?action=qin&quot; id=&quot;login&quot; onsubmit=&quot;return process_form(this)&quot;&gt;<br />&nbsp; &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot;&gt;<br />&nbsp; &lt;input type=&quot;hidden&quot; name=&quot;MainSiteLogin&quot; value=&quot;&lt;?php $text = &quot;http://&quot; . $_SERVER[&#039;HTTP_HOST&#039;] . $_SERVER[&#039;PATH_INFO&#039;];echo &quot;$text\&quot;&gt;&quot;;?&gt;<br />&nbsp; &nbsp; &lt;table cellspacing=&quot;1&quot; cellpadding=&quot;4&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;td nowrap&quot;&gt;&lt;b&gt;Username&lt;/b&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt; &lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;25&quot; maxlength=&quot;25&quot;&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;td nowrap&quot;&gt;&lt;b&gt;Password&lt;/b&gt;  &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;td &gt; &lt;input type=&quot;password&quot; name=&quot;req_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot;&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;login&quot; value=&quot;Login&quot;&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &lt;/table&gt;<br />&lt;/form&gt;</p><p>I hope this has been explained OK</p><p>Paul M</p>]]></description>
			<author><![CDATA[null@example.com (Paul Marsland)]]></author>
			<pubDate>Mon, 16 Feb 2004 08:12:01 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10072/#p10072</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10061/#p10061</link>
			<description><![CDATA[<p>Great Work. I have acres of webspace lying around on a commercial host. If you want me to up the files just email them to me and I will post the link back here.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Sun, 15 Feb 2004 21:32:02 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10061/#p10061</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/10060/#p10060</link>
			<description><![CDATA[<p>I have completed the ammendment of the site login scripts calling PunBB&#039;s functions and made it simple so that a non programmers can set it up. I cannot upload the files to PunnBB so I will put them on a website and post the URL soon.</p><p>Paul M</p>]]></description>
			<author><![CDATA[null@example.com (Paul Marsland)]]></author>
			<pubDate>Sun, 15 Feb 2004 21:21:52 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/10060/#p10060</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/9720/#p9720</link>
			<description><![CDATA[<p>John, try using @include with the full url.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Mon, 09 Feb 2004 21:44:32 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/9720/#p9720</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/9716/#p9716</link>
			<description><![CDATA[<div class="quotebox"><cite>Paul wrote:</cite><blockquote><p>I think I will start a new topic &quot;Need help with extern.php&quot; because I am interested in getting some answers as well.</p></blockquote></div><p>Good idea - this topic is getting rather long now and deviating from its original!</p><p>BTW: I&#039;ve tried full url, absolute path and relative path but all with errors.</p><p>Come on Rickard - it works on your site - give us a clue&nbsp; <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (JohnS)]]></author>
			<pubDate>Mon, 09 Feb 2004 20:52:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/9716/#p9716</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/9715/#p9715</link>
			<description><![CDATA[<div class="quotebox"><cite>JohnS wrote:</cite><blockquote><div class="quotebox"><cite>Paul wrote:</cite><blockquote><p>I always use the full url which invariably puts things right.</p></blockquote></div><p>I&#039;ve tried the full url but still get same error&nbsp; <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p></blockquote></div><p>I think I will start a new topic &quot;Need help with extern.php&quot; because I am interested in getting some answers as well.</p><p>EDIT</p><p>New topic started Extern Problems in Troubleshooting Forum</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Mon, 09 Feb 2004 20:47:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/9715/#p9715</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/9714/#p9714</link>
			<description><![CDATA[<div class="quotebox"><cite>Paul wrote:</cite><blockquote><p>I always use the full url which invariably puts things right.</p></blockquote></div><p>I&#039;ve tried the full url but still get same error&nbsp; <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (JohnS)]]></author>
			<pubDate>Mon, 09 Feb 2004 19:51:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/9714/#p9714</guid>
		</item>
		<item>
			<title><![CDATA[Re: XtraCAD]]></title>
			<link>https://punbb.informer.com/forums/post/9713/#p9713</link>
			<description><![CDATA[<p>I have have also had difficulties getting a relative path to work so I always use the full url which invariably puts things right.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Mon, 09 Feb 2004 19:48:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/9713/#p9713</guid>
		</item>
	</channel>
</rss>
