pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP pastebin - collaborative debugging tool View Help


Posted by wwwherewithmefr - amo on Thu 1 May 10:16
report abuse | View followups from Clad | download | new post

  1. <?php
  2. global $user_ID, $user_identity, $user_login;
  3. get_currentuserinfo();
  4. if (!$user_ID): // Non connecte
  5. ?>
  6.         <form method="post" id="loginform" class="user_box" action="<?php bloginfo('home'); ?>/wp-login.php">
  7.                 <div>
  8.                         <input type="text" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" name="log" id="login" />
  9.                         <input type="password" value="" name="pwd" id="password" />
  10.                         <input class="hidden" type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
  11.                         <input class="hidden" type="hidden" name="rememberme" value="forever" />
  12.                         <input type="submit" id="loginsubmit" value="OK" />                                            
  13.                 </div>
  14.         </form>                
  15. <?php else : // Connecte ?>
  16.         <div class="user_box" id="user_connected">
  17.                 <span><?php echo wp_specialchars(stripslashes($user_identity), 1); ?></span>
  18.                 <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>
  19.         </div>
  20. <?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.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post