Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (function_exists('set_time_limit') AND get_cfg_var('safe_mode')==0)
- {
- @set_time_limit(0);
- }
- ignore_user_abort(true);
- error_reporting(E_ALL & ~E_NOTICE);
- /*
- * @package ImpEx.tools
- * @version $Revision: 1826 $
- * @author Jerry Hutchings <jerry.hutchings@vbulletin.com>
- * @checkedout $Name$
- * @date $Date: 2007-08-21 14:03:19 -0700 (Tue, 21 Aug 2007) $
- * @copyright http://www.vbulletin.com/license.html
- *
- */
- // BACK UP YOUR DATABASE
- // Cleaner
- // Swaps X for Y in the database handy for smilies that have been wrongly parsed
- // BACK UP YOUR DATABASE
- //
- ########################################
- #
- # Set to true / false
- # $do_posts = ALL POSTS
- # $do_sigs = ALL SIGNATURES
- # $do_thread_titles = ALL THREAD TITLES
- # $do_pm_text = ALL PM TEXTS;
- # $do_pm_text_title = ALL PM TITLES;
- ########################################
- // BACK UP YOUR DATABASE
- // Set to true to run, and false when done, or remove this script (and all of impex when finished).
- $active = true;
- // Set true or false as to the data you want to clean
- $do_posts = true;
- $do_sigs = true;
- $do_thread_titles = false;
- $do_pm_text = false;
- $do_pm_text_title = false;
- ########################################
- # Replace 'Find me' and "Replace with me" with the strings you want replaced i.e
- # "<b>" => "[b]"
- # "<blockquote>" => "[quote]"
- # add as many elements to the array as needed
- // BACK UP YOUR DATABASE
- $replacer = array(
- " size=\d+" => "",
- ">" => ">",
- "" => "",
- "" => "",
- "" => ""
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement