}
    echo '>' . $username . '</option>';
}
echo '</select>';
?>
			    <!-- SUBMITS -->
			    <input name="submitPreview" type="submit" value="PREVIEW" />
			    <?php 
if (empty($_GET['idPost'])) {
    ?>
				<input name="submitAdd" type="submit" value="ADD POST!" />
			    <?php 
} else {
    ?>
				<input name="idPost" type="hidden" value="<?php 
    canput($idPost);
    ?>
" />
				<input class="submit" name="submitEdit" type="submit" value="SAVE CHANGES!" onclick="return confirm('Confirm save');"/>
			    <?php 
}
?>
			</form>                
			<!-- /ADD&EDIT FORM -->

		    </div><!-- /main -->

		</div><!-- /content-->
		
		<div id="footer"></div> <!-- /footer -->
    if (!empty($error['comm'])) {
        ?>
									<div class="error" id="error"><p><?php 
        echo $error['comm'];
        ?>
</p></div>
								<?php 
    }
    ?>
								<label for="comment_body">Leave a comment</label>
								<textarea name="comment_body" rows="3" style="background: url('<?php 
    echo get_user_pic($arrUser['idUser'], 48);
    ?>
') no-repeat scroll 5px 5px; background-color: #e0e0e0;" onkeydown="if(this.value.length >= 1452){this.value = this.value.substring(0,1450); alert('Ups! Too much text for a comment.'); return false; }"><?php 
    if (!empty($comm_content)) {
        canput($comm_content);
    }
    ?>
</textarea>
								<input type="submit" name="submitComm" value="SEND!"/>
							</form>
						</div>                        
                        <?php 
} elseif (!$edition) {
    ?>
                        <p style="text-align: center;"><br/>Only registered users and NC members can comment.<br/>
                        <a href="<?php 
    echo rurl();
    ?>
/register.php">Register here.</a><br/></p>
                        <?php 
    canput($cEmail);
    ?>
" />
							</div>
							
							<div style="clear: both;">
								<label for="cSubject">Subject</label><br/>
								<input name="cSubject" style="width: 616px;" type="text" value="<?php 
    canput($cSubject);
    ?>
" />
							</div>
							
							<label for="body">Message</label><br/>
							<textarea name="cBody" style="width: 616px;" rows="8"><?php 
    canput($cBody);
    ?>
</textarea><br/>
							
							<div style="width: 285px; clear: both;">
								<img id="captcha" src="captcha/securimage_show.php" alt="CAPTCHA Image" style="border: solid 1px #600000; margin: 6px 2px;"/>
								<br/>
								<label for="captcha_code">Enter the captcha code <span style="color: red">*</span><a style="float: right;" href="#" onclick="document.getElementById('captcha').src ='captcha/securimage_show.php?' + Math.random(); return false"> (reload)</a></label><br/>
								<input type="text" style="width: 12em;" name="captcha_code" maxlength="10"/><br/>
							</div>
							<input type="submit" name="submitContact" value="&nbsp;SEND!&nbsp;" />
						</form>
						
						<p style="font-style: italic; color: #153040;" >
							1. You need a valid email to contact us.<br/>
							2. The information sent using this webform won't be stored at any database nor be published.<br/>
		    <!-- /errors -->
			
		    <!-- sidepanel include -->
		    <div><?php 
include 'includes/sidepanel.inc.php';
?>
</div></div><!-- /"sidepanel" -->
		    

		    <div id="main">
			
			<?php 
if (!empty($get_info)) {
    ?>
				<div class="get_info"><p><?php 
    canput($get_info);
    ?>
</p></div>
			<?php 
}
?>
			<div style="float: right;"><a href="post-manager.php" title="Create a new post"><button style="font-weight: bold; margin:0;">NEW POST</button></a></div>
			<h1><?php 
echo $arrUser['username'];
?>
's posts</h1>
			<h2>Working on...</h2>
			<table style="width:100%;">
			    <tr>
				<th>Title</th>
				<th>State</th>
							<input name="newPass" type="password" autocomplete="off" style="width: 180px;"/><br/>
						</div>
						<div>
							<label for="newRePass">Repeat new password:</label><br/>
							<input name="newRePass" type="password" autocomplete="off" style="width: 180px;"/><br/>
						</div>
						<!-- /Change password -->
						
						<?php 
    if ($arrUser['type'] == 'member' || $arrUser['type'] == 'admin') {
        ?>
						<!-- PICASA SETTINGS -->
						<h2>Picasa Account</h2>
						<label for="picasaUser">Your user at <a target="_blank" href="https://picasaweb.google.com">picasa</a></label><br/>
						<input name="picasaUser" type="text" style="width: 10em; text-align: right; padding-right: 3px;" value="<?php 
        canput($picasaUser, '');
        ?>
"/><em>@google.com</em><br/>
						<p><em>If you have a picasa account you can add a <strong>public album</strong>
						named as <strong>NC</strong>. All pictures on that album will be automagically
						displayed at the NC Gallery.</em></p>
						<!-- /PICASA SETTINGS -->
						<?php 
    }
    ?>
						
						<input type="submit" name="submitUserdata" value="Update my info!"/>			
					</form>
					
				<?php 
} else {
</a></h1>
                        <img style="float: left; margin-right: 0.5em; margin-top: 12px;" src="<?php 
echo get_user_pic($p_userId, 32);
?>
"/><p class="info">by <a class="fancy" href="<?php 
echo rurl();
?>
/user/show_userinfo.php?id=<?php 
echo $p_userId;
?>
"><?php 
echo $p_username;
?>
</a><br/>on <?php 
echo date("M j, Y", strtotime($p_date_pub));
?>

                        </p>                       
                        <div class="content"><?php 
canput($p_body, 'no body');
?>
</div>
                    </div>
                    <!-- /ARTICLE -->
				</div><!-- /main -->
			</div><!-- /content-->
		</div><!-- /container -->
	</div><!-- /wrapper -->
</body>
</html>
    canput($reg_first_name);
    ?>
" />
							</div>
							
							<div style="float: right;">
								<label for="reg_last_name">Lastname</label><br/>
								<input name="reg_last_name" type="text" value="<?php 
    canput($reg_last_name);
    ?>
" />
							</div>
							<div style="clear: both;">
								<label for="reg_homepage">Homepage</label><br/>
								<input name="reg_homepage" style="width: 616px;" type="text" value="<?php 
    canput($reg_homepage);
    ?>
" />
							</div>
							<br>
							<p style="font-style: italic; color: #153040;" >
								<strong>
								We noticed some problems with the captcha and the country selection and did some fixes. If you still cannot get it to work, please tell us in the game.
								</strong><br/><br/>
								
								1. Inputs with the <span style="color: red">*</span> mark are required. <br/>
								2. You need a valid email to complete registration process.<br/>
								3. By sending this info, you agree with the <a target="_blank" href="license-and-terms.php" title="License agreement and Terms of use">license agreement.</a><br/>
								4. <strong>Registration at our site does not mean you are a clan member or that you may use -NC- tag to play.</strong>
							</p>