PDA

View Full Version : How to disable the forum from SQl query.


QSTR
03-23-2013, 11:19 PM
Hello,

I have a simple sh script for making nightly db dumps, but db is still growing and it takes some time.
So i would like to disable the forum before backup and enable it after, how can make it from sql?
Or which .php file in vb4 dir i need to check for more information.

Thank you.

QSTR
03-25-2013, 12:17 PM
Okey, im using .htaccess file to make whole site 503 for the backup time, its even better than soft lock from the panel.
thanks

RafeZetter
03-25-2013, 04:21 PM
i would use htaccess redirect.

put this in your .htaccess file
Redirect 301 / http://www.your.com/somepage.html

McGyver
03-25-2013, 05:22 PM
Turn off:

UPDATE datastore SET data = REPLACE(data, '"bbactive";i:1;', '"bbactive";i:0;') WHERE title = 'options';
UPDATE setting SET value=0 WHERE varname='bbactive';


Turn on:

UPDATE datastore SET data = REPLACE(data, '"bbactive";i:0;', '"bbactive";i:1;') WHERE title = 'options';
UPDATE setting SET value=1 WHERE varname='bbactive';