Created
May 5, 2010 10:49
-
-
Save sudhanshuraheja/390626 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( !(current_user_can('level_0')) ) { ?> | |
<h2>Login</h2> | |
<form action="<?php echo get_option('home'); ?>/wp-login.php" method="post"> | |
<input | |
type="text" | |
name="log" | |
id="log" | |
value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" | |
size="20" /> | |
<input type="password" name="pwd" id="pwd" size="20" /> | |
<input type="submit" name="submit" value="Send" /> | |
<p> | |
<label for="rememberme"> | |
<input | |
name="rememberme" | |
id="rememberme" | |
type="checkbox" | |
checked="checked" | |
value="forever" /> | |
Remember me | |
</label> | |
<input type="hidden" | |
name="redirect_to" | |
value="<?php echo $_SERVER['REQUEST_URI']; ?>" /> | |
</p> | |
</form> | |
<a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword"> | |
Recover password | |
</a> | |
<?php } else { ?> | |
<h2>Logout</h2> | |
<a href="<?php echo wp_logout_url(urlencode($_SERVER['REQUEST_URI'])); ?>"> | |
logout | |
</a> | |
<br /> | |
<a href="<?php echo get_option('home'); ?>/wp-admin">admin</a> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment