<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — How To Manually Add Users]]></title>
		<link>https://punbb.informer.com/forums/topic/20443/how-to-manually-add-users/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/20443/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How To Manually Add Users.]]></description>
		<lastBuildDate>Thu, 04 Dec 2008 20:46:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How To Manually Add Users]]></title>
			<link>https://punbb.informer.com/forums/post/120392/#p120392</link>
			<description><![CDATA[<p>This is the function used by PunBB to generate it.<br /></p><div class="codebox"><pre><code>function random_key($len, $readable = false, $hash = false)
{
    $key = &#039;&#039;;

    if ($hash)
        $key = substr(sha1(uniqid(rand(), true)), 0, $len);
    else if ($readable)
    {
        $chars = &#039;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&#039;;

        for ($i = 0; $i &lt; $len; ++$i)
            $key .= substr($chars, (mt_rand() % strlen($chars)), 1);
    }
    else
        for ($i = 0; $i &lt; $len; ++$i)
            $key .= chr(mt_rand(33, 126));

    return $key;
}</code></pre></div><p>Just do something like<br /></p><div class="codebox"><pre><code>echo random_key(12);</code></pre></div><p>and use that.</p>]]></description>
			<author><![CDATA[null@example.com (User33)]]></author>
			<pubDate>Thu, 04 Dec 2008 20:46:46 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/120392/#p120392</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Manually Add Users]]></title>
			<link>https://punbb.informer.com/forums/post/120387/#p120387</link>
			<description><![CDATA[<p>So, I have found out. What about the Salt? Should I create a random 12 character entry here? or is NULL ok?</p>]]></description>
			<author><![CDATA[null@example.com (xw00t)]]></author>
			<pubDate>Thu, 04 Dec 2008 19:08:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/120387/#p120387</guid>
		</item>
		<item>
			<title><![CDATA[Re: How To Manually Add Users]]></title>
			<link>https://punbb.informer.com/forums/post/120356/#p120356</link>
			<description><![CDATA[<p>Yes, you can add a user directly to the DB.</p>]]></description>
			<author><![CDATA[null@example.com (User33)]]></author>
			<pubDate>Wed, 03 Dec 2008 22:19:32 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/120356/#p120356</guid>
		</item>
		<item>
			<title><![CDATA[How To Manually Add Users]]></title>
			<link>https://punbb.informer.com/forums/post/120352/#p120352</link>
			<description><![CDATA[<p>I want to keep our registration closed and manually add users. I saw that ver.1.2 had an extension called User Management that could help do this, however ver.1.3 does not have this ability. Can anyone give me a clue on how to add these users? I am proficient at PHP and MySQL data manipulation, perhaps I can add user directly to the DB?</p>]]></description>
			<author><![CDATA[null@example.com (xw00t)]]></author>
			<pubDate>Wed, 03 Dec 2008 20:21:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/120352/#p120352</guid>
		</item>
	</channel>
</rss>
