rendered paste body<?php
global $user_ID, $user_identity;
get_currentuserinfo();
if (!$user_ID):
echo('<h2>Welcome Guest</h2>');
?>
<br>
<?php wp_register('', ''); ?>
<br>
or
<br>
<a href="http://mywebsite.com/wp-login.php?action=lostpassword">lost password</a>
<li id="Members Area">
<h2><?php _e('Members Login'); ?></h2>
<form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
<div><label><?php _e('Login') ?>:<input type="text" name="log" id="log" value="" size="20" tabindex="7" /></label>
<label><?php _e('Password') ?>: <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="8" /></label>
<label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="9" checked="checked" /> <?php _e("Remember me"); ?></label>
<input type="submit" name="submit" value="<?php _e('Login'); ?> �" tabindex="10" />
<br>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></div>
</form>
<?php
else:
?>
<?php global $user_identity,$user_level; get_currentuserinfo(); if ($user_identity) {
echo '<h2>Control Panel</h2>
<ul>';
echo '<p align=center><img src="/forum/avatars/' . strtolower($user_identity) . '.jpg" alt="avatar" />
';
echo "\n\t
<li>".__('Hello ','cp')." <strong>"."<a>".$user_identity."</a></strong>, ["; wp_loginout(); echo "]</li>
";
echo "\n\t
<li><a><strong>".__('My Profile','cp')." »</strong></a></li>
";
if ($user_level >= 1) {
echo '
<li><a href="'.get_settings('siteurl').'/wp-admin/post-new.php">'.__('New Post','cp').'</a></li>
';
echo '
<li><a href="'.get_settings('siteurl').'/wp-admin/page-new.php">'.__('New Page','cp').'</a></li>
';
echo '
<li><a href="http://mywebsite.com/forum/">Forum</a></li>
';
echo '
<li><a href="http://mywebsite.com/forum/profile.php">Forum Profile</a></li>
';
}
if ($user_level >= 7) {
echo "\n\t
<li><a><strong>".__('Dashboard','cp')." »</strong></a></li>
";
}
echo '</ul>
';
} ?>
<?php
endif;
?>
</li>