Guest
Public paste!

Logan Kriete

By: a guest | Jul 30th, 2009 | Syntax: PHP | Size: 0.62 KB | Hits: 261 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. <?php
  2.  
  3. # Character un-obfuscator
  4. # really, really simple
  5. # Just put the text that's all weird in between the two EODs, and run the script
  6. # replaces http://pastebin.com/m7079017c
  7. # Add 0-9 into the preg_replace first argument (right before a-z) to keep numbers
  8. # working example at http://logansrunonline.com/dezalgo.php
  9.  
  10. ?>
  11. <form action="dezalgo.php" method="post">
  12.         <textarea name="badString" cols=100 rows=30></textarea><br />
  13.         <input type="submit" name="submit" value="Un-obfuscate!" />
  14. </form>
  15. <?php
  16.  
  17. if (isset($_POST['submit'])) {
  18.         echo preg_replace('/[^a-zA-Z.,!() ]+/i', '', $_POST['badString']);
  19. }
  20.  
  21. ?>