vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Password protect database backup (https://vborg.vbsupport.ru/showthread.php?t=41621)

roxics 07-28-2002 09:54 AM

Password protect database backup
 
Can someone write a hack that will password protect the database backup. I'd hate to have anotehr admin backup the database on their machine and then buy a VB and have all my members and their posts to start with.

Granted I trust my admins but still. People can turn strange.

Admin 07-28-2002 12:15 PM

Open /admin/backup.php, and ADD this code:
PHP Code:

if ($HTTP_SERVER_VARS['PHP_AUTH_USER'] != 'username' or $HTTP_SERVER_VARS['PHP_AUTH_PW'] != 'password') {
    
header('WWW-Authenticate: Basic realm="vBulletin Protected Area"');
    
header('HTTP/1.0 401 Unauthorized');


Right after this:
PHP Code:

if (function_exists("set_time_limit")==and get_cfg_var("safe_mode")==0) {
  @
set_time_limit(0);


Now change in the code you added the values of 'username' and 'password'. This is what you will use to login to that page.

(Note that if your other admins have access to the files (via FTP), this won't really help if they really want to steal your database.)

roxics 07-28-2002 06:12 PM

Hey thanks a ton that will take that worry off my mind. Is there any way to also do that for 'Emailing all the members"? That way I don't have to worry about them using my board as a mailing list for their board.

Barto 01-29-2004 09:38 PM

GReat !!!!!!!!


All times are GMT. The time now is 05:07 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.01105 seconds
  • Memory Usage 1,712KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete