vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   URGENT! Major template problems - not loading modified ones, some disappearing! (https://vborg.vbsupport.ru/showthread.php?t=57808)

Erwin 10-13-2003 12:30 AM

Are you sure your database has not been changed? The name? The mysql username and password?

How did the hacker hack your site?

Erwin 10-13-2003 12:30 AM

And what version vB are you using? the latest?

X-Fan 10-13-2003 12:37 AM

Quote:

Are you sure your database has not been changed? The name? The mysql username and password?
Nope, the hacker didn't get into the database so its name/login/password are the same.

Quote:

How did the hacker hack your site?
They got one of my admins accounts and got into the admin CP on site wherein they deleted the default templateset.

Quote:

And what version vB are you using? the latest?
Running 2.3.0 RC, but even tried upgrading to a fresh 2.3.2 and that didn't work.

Erwin 10-13-2003 01:12 AM

If it was just deleting a templateset, all you need to do is upload another templateset or style by overriding the default templateset with an import.

Are you sure he or she didn't do anything else? Do you have a database backup? If so, just restore you database, which will fix this.

X-Fan 10-13-2003 01:15 AM

Quote:

Originally Posted by Erwin
If it was just deleting a templateset, all you need to do is upload another templateset or style by overriding the default templateset with an import.

I've tried that, but I got an error because the system isn't recognizing what version of vB is installed, even though it's set as 2.3.0 in the database's settings table. No variables are being loaded from the database, and I don't know why.

Look at the front page of my site:

http://www.comixfan.com/xfan/index.php?s=

See how it's got "Powered by: vbHome (lite) v4.2 and vBulletin v" - no mversion number for vB.

That, and I've modified the default templates but none of the modifications are showing - the default footer template with the HTML check is still loading even though I removed that in my modified footer template.

Quote:

Are you sure he or she didn't do anything else? Do you have a database backup? If so, just restore you database, which will fix this.
Most recent backup is a week old, so I'd lose all threads/posts/users since then. And being a news site that is updated daily, that's a lot of content to lose.

I did do a backup after the hack to save the latest posts/threads etc, but is there a way to combine them to get the templates back from the old update and content from the most recent?

Erwin 10-13-2003 01:17 AM

Import ONLY the template table into your current database from your backup. You can do this. That may solve your problem.

Erwin 10-13-2003 01:18 AM

Before you do this, backup your current database just in case.

Erwin 10-13-2003 01:19 AM

And may I suggest, backing up your database AT LEAST DAILY. :) That's the least you can do in case your database gets corrupted or someone comes along like this and drops all your tables.

X-Fan 10-13-2003 01:19 AM

Quote:

Originally Posted by Erwin
Import ONLY the template table into your current database from your backup. You can do this. That may solve your problem.

How do I do that, Erwin? I've never actually done a database restore before, let alone restoring a single table from a backup.

Erwin 10-13-2003 01:26 AM

Did you backup to an SQL file?

If so, you can import specific tables in SSH using the command line.

The way I do it is using phpmyadmin, and importing the whole backup database into a NEW database, the exporting the TEMPLATES table as an SQL file, then importing that into the OLD database.


All times are GMT. The time now is 02:19 AM.

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.01568 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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