Posted by wwwherewithmefr - amo on Thu 1 May 10:16
report abuse | download | new post
- <?php
- get_currentuserinfo();
- if (!$user_ID): // Non connecte
- ?>
- <form method="post" id="loginform" class="user_box" action="<?php bloginfo('home'); ?>/wp-login.php">
- <div>
- <input type="text" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" name="log" id="login" />
- <input type="password" value="" name="pwd" id="password" />
- <input class="hidden" type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
- <input class="hidden" type="hidden" name="rememberme" value="forever" />
- <input type="submit" id="loginsubmit" value="OK" />
- </div>
- </form>
- <?php else : // Connecte ?>
- <div class="user_box" id="user_connected">
- <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout&redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']); ?>" title="Deconnexion" class="logout">Déconnexion</a>
- </div>
- <?php endif; ?>
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.