PDA

View Full Version : Remotely Detecting Forum's Status


unitedbreaks
Wed 20th Dec '06, 10:24pm
Hello All!

Wondering if someone could kindly guide me to the right direction ;)

I have a "remote" php file that I display latest forum threads, remote user login, etc.

When I turn the forums off for upgrading purposes, The whole site goes down due to this "remote" integration.

Does anyone know the code to determine the forums status?

What I have calling global.php file remotely:

<?php
chdir('forums');
require_once('forums/global.php');
chdir('../');
?>

Thanks!
Daniel

Colin F
Wed 27th Dec '06, 5:03am
If you're calling global.php, then you can check the
$vbulletin->options['bbactive']
variable.