Rebuild All Blogs

With MT 2.6x there was a really useful script called mt-rebuild-all.cgi that would rebuild all blogs. Unfortunately, this script didn't mix well with the MT 3.x interface.

So, I re-styled the script to fit in better with MT 3.x, the credit goes to the author (-lc- on the forums). This is only compatible with MT 3.x and does not work in Opera (if you manage to figure this out drop me a line)

There is a major security risk with this script, as it doesn't use MT authentication, anyone can just execute the rebuild script.

rebuilt.png
rebuild_confirm.png

rebuilding.png

Download mt-rebuild-all.zip or mt-rebuild-all.tar.gz

You can dump this file into your mt directory (the same location as mt.cgi) and it will extract the necessary files. The zip archive also contains two tmpl files (header and rebuild_confirm) that are hacked for this script. If you do not want to overwrite your current tmpl files (in case for example, you have already applied a hack to these files) you can manually hack them as described in the following steps

Upload mt-rebuild-all.cgi to the same place as mt.cgi

Open tmpl/cms/header.tmpl and search for

'rebuild', 'width=400,height=300,resizable=yes'

and replace it with

'rebuild', 'width=400,height=300,resizable=yes,scrollbars=yes'

Next open tmpl/cms/rebuild_confirm.tmpl and find the following

<TMPL_LOOP NAME=REBUILD_OPTION_LOOP>
<option value="<TMPL_VAR NAME=KEY>"><TMPL_VAR NAME=NAME></option>
</TMPL_LOOP>

Add right after it

<option value="rebuildall">Rebuild All Blogs</option>

Finally find

<input type="submit" value="<MT_TRANS phrase="Rebuild">" />

and replace it with

<input class="button" type="button" value="<MT_TRANS phrase="Rebuild">" onClick="if (document.forms[0].type.value=='rebuildall') {temp='<TMPL_VAR NAME=SCRIPT_URL>'.split('.cgi').join('-rebuild-all.cgi'); document.location=temp;} else {document.forms[0].submit()}">

8 Comments

Chris4d said:
on Nov 22, 2004 2:49 AM | Reply

Why can't it use MT's authentication?

-lc- said:
on Jan 27, 2005 2:15 PM | Reply

Thanks for continuing this for the 3.x users. I've yet to upgrade from MT 2.661 !

I never added authentication because I was a novice at Perl (and still am). The easiest defense right now is to rename the script to something obscure that only you will will know. The script calls itself for each blog but it looks up it's own name (not hard-coded) so there should be nothing else to change.

juvmrlno kcuozhrg said:
on Sep 27, 2008 12:05 PM | Reply

lurhxd pfznyd mxfz prxdozj oynhm sabwr gndai

juvmrlno kcuozhrg said:
on Sep 27, 2008 12:06 PM | Reply

lurhxd pfznyd mxfz prxdozj oynhm sabwr gndai

juvmrlno kcuozhrg said:
on Sep 27, 2008 12:07 PM | Reply

lurhxd pfznyd mxfz prxdozj oynhm sabwr gndai

Lemssteap said:
on Nov 14, 2008 3:48 AM | Reply

Has anyone heard about something called a [url=http://www.yolanjon.info/fix-credit-score.html]cpn number[/url], it's supposed to repair your credit in 30 days.

Lemssteap said:
on Nov 14, 2008 5:29 AM | Reply

Has anyone heard about something called a [url=http://www.yolanjon.info/fix-credit-score.html]cpn number[/url], it's supposed to repair your credit in 30 days.

carluew said:
on Nov 19, 2008 1:44 AM | Reply

I found something called a cpn number that will give you a new credit profile within 30 days. the website is

http://www.creditmenow.info

Leave a comment

Preview