vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Fix-it: Template Edition (https://vborg.vbsupport.ru/showthread.php?t=281080)

GeekyDesigns 04-02-2012 10:00 PM

Fix-it: Template Edition
 
1 Attachment(s)
A common method of defacing vBulletin sites is to edit the parsed template html directly via the database. It makes it harder for administrators to find the issue, and can be a pain in the ass to cleanup if you're not familiar with working with the database.

This tool will make it easier to clean your defaced site.

What it does:
Checks all of the templates in the database:
- Makes a new compiled version from the uncompiled template.
- Compares the current compiled template to the new compiled template
- If they differ, it updates the template, then rebuilds all of the styles.

How do you use it?
- Upload to your admincp, modcp, install, or root forums folder
- Browse to it
- Let it run
- Delete tool_recompiler.php after you are done using it.

This tool now works on vB3 and vB4.

vB3 Thread

ptceuro 04-03-2012 09:27 PM

thank you GeekyDesigns

Krusty1231 04-03-2012 10:02 PM

So, just to be clear - I only need this AFTER something bad happens? So if I install it right now while everything is good - and say a few months from now my forum gets hacked, I just have to run it?

Or, I do not install it now - my forum gets hacked in a few months - then come back here and install it?

I'm not entirely clear on that part.

Zachery 04-03-2012 10:05 PM

There is no reason to have the file on your server, unless something bad has happened.

It will only fix the template system, if they only modified the parsed templates.

It they replaced everything, I don't believe it will get fixed.
If they messed with the plugin system, it will also not be fixed.

Link14716 04-03-2012 10:10 PM

Quote:

Originally Posted by Krusty1231 (Post 2316534)
So, just to be clear - I only need this AFTER something bad happens? So if I install it right now while everything is good - and say a few months from now my forum gets hacked, I just have to run it?

Or, I do not install it now - my forum gets hacked in a few months - then come back here and install it?

I'm not entirely clear on that part.

Yeah, don't install it now. Download it, or bookmark this page if you want, but you shouldn't leave it on your server when you aren't using it (it's not a security risk, but you don't really want a file that fetches all the templates and re-compiles them just laying around - if someone happened to find it and hammered it, it could impact your server load).

It's a tool that can help clean up defaced forums if the templates are hacked a certain way, so it can be very useful if that happens. Just remember that that is all it does, it won't magically fix everything else or prevent you from being compromised again - it's a tool, not a cure.

BirdOPrey5 04-23-2012 05:27 PM

Any additional info on what these errors may mean?

Quote:

Uncompiled template could not be compiled due to error: blog_sidebar_user_block_visitors (id: 4187, styleid: -10)
Uncompiled template could not be compiled due to error: vbcms_widget_recentarticle_page (id: 4301, styleid: -10)
Uncompiled template could not be compiled due to error: vbcms_widget_recentcontent_page (id: 4312, styleid: -10)
Besides the obvious that an error occurred?

Zachery 04-24-2012 08:07 PM

Templates with a styleid of -10 i dont think should be in the database at all.

BirdOPrey5 04-24-2012 08:54 PM

I have 956 templates in the database with a styleid of -10. It looks like it is the MASTER style.

There were a number of other templates with id of -10 that were rebuilt just fine.

Zachery 04-24-2012 10:56 PM

Weird styleid -1 always used to be the master style (must be all the new stuff).

Check those styles and make sure they're okay?

BirdOPrey5 04-26-2012 11:03 AM

I looked at them in the database, I didn't see anything obviously wrong with them. Everything seems to be working so I'm not going to worry about it, just wasn't sure if you knew off-hand if that error was common or meant something other than what is said.

Still a great tool. :up:


All times are GMT. The time now is 11:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01079 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete