SHARE
TWEET

Untitled

a guest Dec 19th, 2012 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if (function_exists('set_time_limit') AND get_cfg_var('safe_mode')==0)
  3. {
  4.         @set_time_limit(0);
  5. }
  6.  
  7. ignore_user_abort(true);
  8. error_reporting(E_ALL  & ~E_NOTICE);
  9. /*
  10. * @package              ImpEx.tools
  11. * @version              $Revision: 1826 $
  12. * @author               Jerry Hutchings <jerry.hutchings@vbulletin.com>
  13. * @checkedout   $Name$
  14. * @date                 $Date: 2007-08-21 14:03:19 -0700 (Tue, 21 Aug 2007) $
  15. * @copyright    http://www.vbulletin.com/license.html
  16. *
  17. */
  18. // BACK UP YOUR DATABASE
  19. // Cleaner
  20. // Swaps X for Y in the database handy for smilies that have been wrongly parsed
  21. // BACK UP YOUR DATABASE
  22. //
  23. ########################################
  24. #
  25. #       Set to true / false
  26. # $do_posts             = ALL POSTS
  27. # $do_sigs                      = ALL SIGNATURES
  28. # $do_thread_titles = ALL THREAD TITLES
  29. # $do_pm_text           = ALL PM TEXTS;
  30. # $do_pm_text_title     = ALL PM TITLES;
  31. ########################################
  32. // BACK UP YOUR DATABASE
  33. // Set to true to run, and false when done, or remove this script (and all of impex when finished).
  34. $active                         = true;
  35.  
  36. // Set true or false as to the data you want to clean
  37. $do_posts                       = true;
  38. $do_sigs                        = true;
  39. $do_thread_titles       = false;
  40. $do_pm_text                     = false;
  41. $do_pm_text_title       = false;
  42. ########################################
  43.  
  44. # Replace 'Find me' and "Replace with me" with the strings  you want replaced i.e
  45. # "<b>"                 => "[b]"
  46. # "<blockquote>"        => "[quote]"
  47. # add as many elements to the array as needed
  48.  
  49. // BACK UP YOUR DATABASE
  50. $replacer = array(
  51.                         " size=\d+"     => "",
  52.                         "&gt;"  => ">",
  53.                         ""      => "",
  54.                         ""      => "",
  55.                         ""      => ""
  56. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top