<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — FORUM_ROOT?? :s]]></title>
		<link>https://punbb.informer.com/forums/topic/20584/forumroot-s/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/20584/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in FORUM_ROOT?? :s.]]></description>
		<lastBuildDate>Wed, 17 Dec 2008 15:58:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121209/#p121209</link>
			<description><![CDATA[<p>No, it&#039;s not. There is no special tools to change code from 1.2 to 1.3</p>]]></description>
			<author><![CDATA[null@example.com (Slavok)]]></author>
			<pubDate>Wed, 17 Dec 2008 15:58:55 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121209/#p121209</guid>
		</item>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121207/#p121207</link>
			<description><![CDATA[<p>Hah..</p><p>This is alot of work.</p><p>Is there any tools that can do this for me? <img src="https://punbb.informer.com/forums/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>I&#039;d be editing alot of files, is it erally worth it from 1.2.17 to 1.3?</p>]]></description>
			<author><![CDATA[null@example.com (Sirenic)]]></author>
			<pubDate>Wed, 17 Dec 2008 15:07:48 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121207/#p121207</guid>
		</item>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121205/#p121205</link>
			<description><![CDATA[<p>forum_htmlspecialchars -&gt; forum_htmlencode. Look at forum pages which functions is used now</p>]]></description>
			<author><![CDATA[null@example.com (Slavok)]]></author>
			<pubDate>Wed, 17 Dec 2008 14:50:09 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121205/#p121205</guid>
		</item>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121204/#p121204</link>
			<description><![CDATA[<p>forum_htmlencode, I think.</p>]]></description>
			<author><![CDATA[null@example.com (User33)]]></author>
			<pubDate>Wed, 17 Dec 2008 14:49:12 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121204/#p121204</guid>
		</item>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121201/#p121201</link>
			<description><![CDATA[<p>Alright.</p><p>What about this one? D:</p><p>pun_htmlspecialchars</p><p>I tryed forum_htmlspecialchars but that didn&#039;t work lol</p><p>It just gave me this error.</p><div class="codebox"><pre><code>Fatal error: Call to undefined function forum_htmlspecialchars() in (file here) line 112</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Sirenic)]]></author>
			<pubDate>Wed, 17 Dec 2008 14:44:46 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121201/#p121201</guid>
		</item>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121199/#p121199</link>
			<description><![CDATA[<p>In vars and function prefix &quot;pun_&quot; should be replaced with &quot;forum_&quot;</p>]]></description>
			<author><![CDATA[null@example.com (Slavok)]]></author>
			<pubDate>Wed, 17 Dec 2008 14:42:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121199/#p121199</guid>
		</item>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121196/#p121196</link>
			<description><![CDATA[<p>Alright.</p><p>Is there like a huge list I can look at so I can change most of these.</p><p>It&#039;s only a few files I have created my self, so I won&#039;t be editing much.</p>]]></description>
			<author><![CDATA[null@example.com (Sirenic)]]></author>
			<pubDate>Wed, 17 Dec 2008 14:38:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121196/#p121196</guid>
		</item>
		<item>
			<title><![CDATA[Re: FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121194/#p121194</link>
			<description><![CDATA[<p>You should modify your code. For example<br /></p><ul><li><p>Replace PUN_ROOT constant with FORUM_ROOT</p></li><li><p>$pun_user should be $forum_user</p></li><li><p>$db it&#039;s $forum_db now</p></li><li><p>PUN_ADMIN should be FORUM_ADMIN</p></li></ul><p>And some others vars and functions should be replace.</p>]]></description>
			<author><![CDATA[null@example.com (Slavok)]]></author>
			<pubDate>Wed, 17 Dec 2008 14:33:38 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121194/#p121194</guid>
		</item>
		<item>
			<title><![CDATA[FORUM_ROOT?? :s]]></title>
			<link>https://punbb.informer.com/forums/post/121193/#p121193</link>
			<description><![CDATA[<div class="codebox"><pre><code>The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory.</code></pre></div><p>I have a secondary &quot;Register&quot; link on my forums.</p><p>I host a game, and when they Register it makes a game account.</p><p>I am not sure what that error means.</p><p>I can&#039;t even access my /highscores.php file either, says the same thing.</p><p>D;</p><p>Everything I&#039;ve added from my old forums (1.2.17) then I move to 1.3.2 and it&#039;s all blah.</p><p>-- EDIT -- Been looking into it and my guess is...</p><p>(Here&#039;s some of my profile addon file)</p><div class="codebox"><pre><code>&lt;?php

define(&#039;PUN_ROOT&#039;, &#039;./&#039;);
require PUN_ROOT.&#039;include/common.php&#039;;

if($pun_user[&#039;is_guest&#039;])
    message($lang_common[&#039;No permission&#039;]);

// Load the register.php language file
require PUN_ROOT.&#039;lang/&#039;.$pun_user[&#039;language&#039;].&#039;/register.php&#039;;

// Load the register.php/profile.php language file
require PUN_ROOT.&#039;lang/&#039;.$pun_user[&#039;language&#039;].&#039;/prof_reg.php&#039;;

$action = isset($_GET[&#039;action&#039;]) ? $_GET[&#039;action&#039;] : null;

if ($action == &#039;delete&#039;) {
    $id = trim($_GET[&#039;user&#039;]);
    if (!ctype_digit($id)) {
      message($lang_common[&#039;Bad request&#039;]);
      }
    $result = $db-&gt;query(&#039;SELECT * FROM &#039;.$db-&gt;prefix.&#039;rscd_players WHERE `user`=&#039;.$id) or error(&#039;Unable to fetch player info&#039;, __FILE__, __LINE__, $db-&gt;error());
    if(!$db-&gt;num_rows($result))
        message($lang_common[&#039;Bad request&#039;]);
    
    $user = $db-&gt;fetch_assoc($result);
    
    if($pun_user[&#039;g_id&#039;] != PUN_ADMIN)
        message($lang_common[&#039;No permission&#039;]);
    
    if(isset($_POST[&#039;form_sent&#039;])) {
              $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;rscd_curstats WHERE `user`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039;&#039;) or error(&#039;Unable to delete rscd_curstats&#039;, __FILE__, __LINE__, $db-&gt;error());
              $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;rscd_experience WHERE `user`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039;&#039;) or error(&#039;Unable to delete rscd_experience&#039;, __FILE__, __LINE__, $db-&gt;error());
              $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;rscd_friends WHERE `user`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039; OR `friend`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039;&#039;) or error(&#039;Unable to delete rscd_friends&#039;, __FILE__, __LINE__, $db-&gt;error());
              $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;rscd_ignores WHERE `user`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039; OR `ignore`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039;&#039;) or error(&#039;Unable to delete rscd_ignores&#039;, __FILE__, __LINE__, $db-&gt;error());
              $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;rscd_invitems WHERE `user`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039;&#039;) or error(&#039;Unable to delete rscd_invitems&#039;, __FILE__, __LINE__, $db-&gt;error());
              $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;rscd_players WHERE `user`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039;&#039;) or error(&#039;Unable to delete rscd_players&#039;, __FILE__, __LINE__, $db-&gt;error());
              $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;rscd_reports WHERE `from`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039; OR `about`=\&#039;&#039;.$db-&gt;escape($id).&#039;\&#039;&#039;) or error(&#039;Unable to delete rscd_reports&#039;, __FILE__, __LINE__, $db-&gt;error());
              
              logoutuser($id);
              
              redirect(&#039;profile.php?section=rscd&amp;id=&#039;.$user[&#039;owner&#039;], &#039;Player deleted&#039;);
          }
          
    $page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / Confirm Delete&#039;;
    require PUN_ROOT.&#039;header.php&#039;;
?&gt;
&lt;div class=&quot;blockform&quot;&gt;
    &lt;h2&gt;&lt;span&gt;Confirm Delete&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;form action=&quot;rscd.php?action=delete&amp;user=&lt;?php echo pun_htmlspecialchars($id); ?&gt;&quot; method=&quot;POST&quot;&gt;
            &lt;div class=&quot;inform&quot;&gt;
                &lt;fieldset&gt;
                    &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
                    &lt;legend&gt;Delete Player&lt;/legend&gt;
                    &lt;div class=&quot;infldset&quot; style=&quot;text-align:center&quot;&gt;
                        &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;delete&quot; value=&quot;Confirm Delete&quot; style=&quot;width:200px&quot; /&gt;&lt;/p&gt;
                            &lt;p&gt;Please confirm you wish to delete the player &quot;&lt;?php echo pun_htmlspecialchars($user[&#039;username&#039;]); ?&gt;&quot;. &lt;b&gt;This action is not reversible!&lt;/b&gt;&lt;/p&gt;
                    &lt;/div&gt;
                &lt;/fieldset&gt;
            &lt;/div&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;?php
    require PUN_ROOT.&#039;footer.php&#039;;
          
}
else if ($action == &#039;change_pass&#039;) {
    $id = trim($_GET[&#039;user&#039;]);
     if (!ctype_digit($id)) {
    message($lang_common[&#039;Bad request&#039;]);
    }
    
    $result = $db-&gt;query(&#039;SELECT * FROM &#039;.$db-&gt;prefix.&#039;rscd_players WHERE `user`=&#039;.$id) or error(&#039;Unable to fetch player info&#039;, __FILE__, __LINE__, $db-&gt;error());
    if(!$db-&gt;num_rows($result))
        message($lang_common[&#039;Bad request&#039;]);
    
    $user = $db-&gt;fetch_assoc($result);
    
    if($user[&#039;owner&#039;] != $pun_user[&#039;id&#039;] &amp;&amp; $pun_user[&#039;g_id&#039;] != PUN_ADMIN)
        message($lang_common[&#039;No permission&#039;]);
    
    if(isset($_POST[&#039;form_sent&#039;])) {
        $password1 = trim($_POST[&#039;req_password1&#039;]);
        $password2 = trim($_POST[&#039;req_password2&#039;]);
        
        if (strlen($password1) &lt; 4)
            message($lang_prof_reg[&#039;Pass too short&#039;]);
        else if ($password1 != $password2)
            message($lang_prof_reg[&#039;Pass not match&#039;]);
        
        if($pun_user[&#039;g_id&#039;] != PUN_ADMIN) {
            $old_password = md5(pun_trim($_POST[&#039;old_password&#039;]));
            
            $result = $db-&gt;query(&#039;SELECT 1 FROM &#039;.$db-&gt;prefix.&#039;rscd_players WHERE `user`=\&#039;&#039;.$id.&#039;\&#039; AND `pass`=\&#039;&#039;.$old_password.&#039;\&#039;&#039;) or error(&#039;Unable to fetch player info&#039;, __FILE__, __LINE__, $db-&gt;error());
            if(!$db-&gt;num_rows($result)) {
                message(&#039;The provided password does not match!&#039;);
            }
        }
        
        $db-&gt;query(&#039;UPDATE &#039;.$db-&gt;prefix.&#039;rscd_players SET pass=\&#039;&#039;.md5($password1).&#039;\&#039; WHERE user=\&#039;&#039;.$id.&#039;\&#039;&#039;) or error(&#039;Unable to update players password&#039;, __FILE__, __LINE__, $db-&gt;error());
        
        redirect(&#039;profile.php?section=rscd&amp;id=&#039;.$user[&#039;owner&#039;], &#039;Password updated&#039;);
    }
    
    $page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / Change Password&#039;;
    $required_fields = array(&#039;req_password1&#039; =&gt; $lang_common[&#039;Password&#039;], &#039;req_password2&#039; =&gt; $lang_prof_reg[&#039;Confirm pass&#039;]);
    $focus_element = array(&#039;register&#039;, &#039;req_password1&#039;);
    require PUN_ROOT.&#039;header.php&#039;;

?&gt;
&lt;div class=&quot;blockform&quot;&gt;
    &lt;h2&gt;&lt;span&gt;Change Password&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;form id=&quot;register&quot; method=&quot;post&quot; action=&quot;rscd.php?action=change_pass&amp;amp;user=&lt;?php echo $id; ?&gt;&quot; onsubmit=&quot;this.register.disabled=true;if(process_form(this)){return true;}else{this.register.disabled=false;return false;}&quot;&gt;
            &lt;div class=&quot;inform&quot;&gt;
                &lt;fieldset&gt;
                    &lt;legend&gt;Please enter and confirm your new password&lt;/legend&gt;
                    &lt;div class=&quot;infldset&quot;&gt;
                        &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
&lt;?php if($pun_user[&#039;g_id&#039;] != PUN_ADMIN): ?&gt;                        &lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;Old Password&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;password&quot; name=&quot;old_password&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
&lt;?php endif; ?&gt;                        &lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;New Password&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;password&quot; name=&quot;req_password1&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
                        &lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;&lt;?php echo $lang_prof_reg[&#039;Confirm pass&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;password&quot; name=&quot;req_password2&quot; size=&quot;16&quot; maxlength=&quot;16&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
                        &lt;p class=&quot;clearb&quot;&gt;Passwords can be between 4 and 16 characters long. Passwords are case sensitive.&lt;/p&gt;
                    &lt;/div&gt;
                &lt;/fieldset&gt;
            &lt;/div&gt;
            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;change_pass&quot; value=&quot;Change Password&quot; /&gt;&lt;/p&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;?php

    require PUN_ROOT.&#039;footer.php&#039;;
    
}
else if ($action == &#039;register&#039;) {
    // Load the register.php language file
    require PUN_ROOT.&#039;lang/&#039;.$pun_user[&#039;language&#039;].&#039;/register.php&#039;;
    
    if(isset($_GET[&#039;cancel&#039;]))
        redirect(&#039;index.php&#039;, $lang_register[&#039;Reg cancel redirect&#039;]);
    else if($pun_config[&#039;o_rscd_rules&#039;] == &#039;1&#039; &amp;&amp; !isset($_GET[&#039;agree&#039;]) &amp;&amp; !isset($_POST[&#039;form_sent&#039;])) {
        
        $page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / &#039;.$lang_common[&#039;Register&#039;];
        require PUN_ROOT.&#039;header.php&#039;;
        
    
?&gt;
&lt;div class=&quot;blockform&quot;&gt;
    &lt;h2&gt;&lt;span&gt;Project F2P Rules&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;form method=&quot;get&quot; action=&quot;rscd.php&quot;&gt;
            &lt;div class=&quot;inform&quot;&gt;
                &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;register&quot; /&gt;
                &lt;fieldset&gt;
                    &lt;legend&gt;&lt;?php echo $lang_register[&#039;Rules legend&#039;] ?&gt;&lt;/legend&gt;
                    &lt;div class=&quot;infldset&quot;&gt;
                        &lt;p&gt;&lt;?php echo $pun_config[&#039;o_rscd_rules_message&#039;] ?&gt;&lt;/p&gt;
                    &lt;/div&gt;
                &lt;/fieldset&gt;
            &lt;/div&gt;
            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;agree&quot; value=&quot;&lt;?php echo $lang_register[&#039;Agree&#039;] ?&gt;&quot; /&gt;&lt;input type=&quot;submit&quot; name=&quot;cancel&quot; value=&quot;&lt;?php echo $lang_register[&#039;Cancel&#039;] ?&gt;&quot; /&gt;&lt;/p&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;?php

        require PUN_ROOT.&#039;footer.php&#039;;
    }
    else if (isset($_POST[&#039;form_sent&#039;])) {
        $username = pun_trim($_POST[&#039;req_username&#039;]);
        $password1 = trim($_POST[&#039;req_password1&#039;]);
        $password2 = trim($_POST[&#039;req_password2&#039;]);
        
        $username_hash = encode_username($username);
        $username = decode_username($username_hash);
        
        // Validate username and passwords
        if (!$username_hash)
            message(&#039;Invalid username&#039;);
        else if (strlen($username) &lt; 2)
            message($lang_prof_reg[&#039;Username too short&#039;]);
        else if (pun_strlen($username) &gt; 12)    // This usually doesn&#039;t happen since the form element only accepts 12 characters
            message($lang_common[&#039;Bad request&#039;]);
        else if (strlen($password1) &lt; 4)
            message($lang_prof_reg[&#039;Pass too short&#039;]);
        else if (pun_strlen($password1) &gt; 16)    // This usually doesn&#039;t happen since the form element only accepts 16 characters
            message($lang_common[&#039;Bad request&#039;]);
        else if ($password1 != $password2)
            message($lang_prof_reg[&#039;Pass not match&#039;]);
        else if (preg_match(&#039;/^Mod\s+/i&#039;, $username) || preg_match(&#039;/^Admin\s+/i&#039;, $username))
            message(&#039;Usernames may not start with &quot;Mod &quot; or &quot;Admin &quot;. Please choose another username.&#039;);
        
        // Check that the username (or a too similar username) is not already registered
        $result = $db-&gt;query(&#039;SELECT username FROM &#039;.$db-&gt;prefix.&#039;rscd_players WHERE UPPER(username)=UPPER(\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;) OR UPPER(username)=UPPER(\&#039;&#039;.$db-&gt;escape(preg_replace(&#039;/[^\w]/&#039;, &#039;&#039;, $username)).&#039;\&#039;) OR UPPER(username)=UPPER(\&#039;&#039;.$db-&gt;escape(preg_replace(&#039;/\s\s+/&#039;, &#039; &#039;, $username)).&#039;\&#039;)&#039;) or error(&#039;Unable to fetch user info&#039;, __FILE__, __LINE__, $db-&gt;error());
    
        if ($db-&gt;num_rows($result))
        {
            $busy = $db-&gt;result($result);
            message($lang_register[&#039;Username dupe 1&#039;].&#039; &#039;.pun_htmlspecialchars($busy).&#039;. &#039;.$lang_register[&#039;Username dupe 2&#039;]);
        }
        
        $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;rscd_curstats(`user`) VALUES(\&#039;&#039;.$db-&gt;escape($username_hash).&#039;\&#039;)&#039;) or error(&#039;Unable to fill curstats&#039;, __FILE__, __LINE__, $db-&gt;error());
        $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;rscd_experience(`user`) VALUES(\&#039;&#039;.$db-&gt;escape($username_hash).&#039;\&#039;)&#039;) or error(&#039;Unable to fill experience&#039;, __FILE__, __LINE__, $db-&gt;error());
        $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;rscd_players(`user`, `username`, `owner`, `pass`, `creation_date`, `creation_ip`) VALUES(\&#039;&#039;.$db-&gt;escape($username_hash).&#039;\&#039;, \&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;, \&#039;&#039;.intval($pun_user[&#039;id&#039;]).&#039;\&#039;, \&#039;&#039;.md5($password1).&#039;\&#039;, \&#039;&#039;.time().&#039;\&#039;, \&#039;&#039;.get_remote_address().&#039;\&#039;)&#039;) or error(&#039;Unable to fill players&#039;, __FILE__, __LINE__, $db-&gt;error());
        $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&quot;rscd_invitems(`user`, `id`, `amount`, `wielded`, `slot`) VALUES
            (&#039;&quot;.$db-&gt;escape($username_hash).&quot;&#039;, &#039;10&#039;, &#039;50&#039;, &#039;0&#039;, &#039;0&#039;),
            (&#039;&quot;.$db-&gt;escape($username_hash).&quot;&#039;, &#039;1263&#039;, &#039;1&#039;, &#039;0&#039;, &#039;1&#039;),
            (&#039;&quot;.$db-&gt;escape($username_hash).&quot;&#039;, &#039;77&#039;, &#039;1&#039;, &#039;0&#039;, &#039;2&#039;)
            &quot;) or error(&#039;Unable to fill curstats&#039;, __FILE__, __LINE__, $db-&gt;error());
        
        redirect(&#039;profile.php?section=rscd&amp;id=&#039;.$pun_user[&#039;id&#039;], &#039;Your Project F2P account has been created.&#039;);
    }
    
    $page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / &#039;.$lang_register[&#039;Register&#039;];
    $required_fields = array(&#039;req_username&#039; =&gt; $lang_common[&#039;Username&#039;], &#039;req_password1&#039; =&gt; $lang_common[&#039;Password&#039;], &#039;req_password2&#039; =&gt; $lang_prof_reg[&#039;Confirm pass&#039;]);
    $focus_element = array(&#039;register&#039;, &#039;req_username&#039;);
    require PUN_ROOT.&#039;header.php&#039;;

?&gt;
&lt;div class=&quot;blockform&quot;&gt;
    &lt;h2&gt;&lt;span&gt;&lt;?php echo $lang_register[&#039;Register&#039;] ?&gt;&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;form id=&quot;register&quot; method=&quot;post&quot; action=&quot;rscd.php?action=register&quot; onsubmit=&quot;return process_form(this);&quot;&gt;
            &lt;div class=&quot;inform&quot;&gt;
                &lt;fieldset&gt;
                    &lt;legend&gt;Please enter a username between 2 and 12 characters long&lt;/legend&gt;
                    &lt;div class=&quot;infldset&quot;&gt;
                        &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
                        &lt;label&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Username&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;req_username&quot; size=&quot;20&quot; maxlength=&quot;12&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
                    &lt;/div&gt;
                &lt;/fieldset&gt;
            &lt;/div&gt;
            &lt;div class=&quot;inform&quot;&gt;
                &lt;fieldset&gt;
                    &lt;legend&gt;Please enter and confirm your chosen password&lt;/legend&gt;
                    &lt;div class=&quot;infldset&quot;&gt;
                        &lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Password&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;password&quot; name=&quot;req_password1&quot; size=&quot;20&quot; maxlength=&quot;16&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
                        &lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;&lt;?php echo $lang_prof_reg[&#039;Confirm pass&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;password&quot; name=&quot;req_password2&quot; size=&quot;20&quot; maxlength=&quot;16&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
                        &lt;p class=&quot;clearb&quot;&gt;Passwords can be between 4 and 16 characters long. Passwords are case sensitive.&lt;/p&gt;
                    &lt;/div&gt;
                &lt;/fieldset&gt;
            &lt;/div&gt;
            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;register&quot; value=&quot;&lt;?php echo $lang_register[&#039;Register&#039;] ?&gt;&quot; /&gt;&lt;/p&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;?php

    require PUN_ROOT.&#039;footer.php&#039;;
    
}
else
    message($lang_common[&#039;Bad request&#039;]);</code></pre></div><br /><br /><br /><br /><br /><p>I noticed everything is pun_root and pun_user</p><p>Shouldn&#039;t I be changing these to something else?</p>]]></description>
			<author><![CDATA[null@example.com (Sirenic)]]></author>
			<pubDate>Wed, 17 Dec 2008 13:16:57 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/121193/#p121193</guid>
		</item>
	</channel>
</rss>
