<?php global $user_ID, $user_identity, $user_level ?>
<?php if ( $user_ID ) : ?>
<div id="details">
<h2>Control panel</h2>
Identified as <strong><?php echo $user_identity ?></strong>.
</div>
<div id="details1">
<a href="<?php bloginfo('url') ?>/wp-login.php?action=logout&redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Log out</a>
</div>
<?php elseif ( get_option('users_can_register') ) : ?>
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post" class="post">
<label for="log"><input type="text" class="username" name="log" id="log" value="Username <?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" onfocus="if
(this.value==this.defaultValue) this.value='';"/></label><br />
<label for="pwd"><input type="password" class="password" name="pwd" id="pwd" value="Password" size="22" onfocus="if
(this.value==this.defaultValue) this.value='';"/></label><br />
<input type="submit" class="press" name="" value="" />
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
</form>
<div id="login_wrap">
<a href="<?php bloginfo('url') ?>/wp-register.php">Register</a>
</div>
<div id="login_wrap1">
<a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword">Recover password</a>
</div>
<?php endif // get_option('users_can_register') ?>
Statistics: Posted by lufc4life — December 11th, 2010, 9:20 am