echo "The database connection failed. Please check your database configuration in include/db/config.php. If the configuration is okay, check if the database server is running.";
echo "The database connection failed. Please check your database configuration in include/db/config.php. If the configuration is okay, check if the database server is running.";
echo "<html><head><title>Phorum error</title></head><body>No Phorum settings were found. Either this is a brand new installation of Phorum or there is a problem with your database server. If this is a new install, please <a href=\"admin.php\">go to the admin page</a> to complete the installation. If not, check your database server.</body></html>";
echo "<html><head><title>Phorum error</title></head><body>No Phorum settings were found. Either this is a brand new installation of Phorum or there is a problem with your database server. If this is a new install, please <a href=\"admin.php\">go to the admin page</a> to complete the installation. If not, check your database server.</body></html>";
echo "<html><head><title>Upgrade notification</title></head><body>It looks like you have installed a new version of Phorum.<br/>Please visit the admin page to complete the upgrade!</body></html>";
echo "<html><head><title>Upgrade notification</title></head><body>It looks like you have installed a new version of Phorum.<br/>Please visit the admin page to complete the upgrade!</body></html>";
exit();
exit();
}
}
}
}
// For command line scripts, disable caching.
// For command line scripts, disable caching.
// The command line user is often different from the web server
// The command line user is often different from the web server
// user, possibly causing permission problems on the cache.
// user, possibly causing permission problems on the cache.
if (defined('PHORUM_SCRIPT'))
if (defined('PHORUM_SCRIPT'))
{
{
$PHORUM['cache_banlists'] = 0;
$PHORUM['cache_banlists'] = 0;
$PHORUM['cache_css'] = 0;
$PHORUM['cache_css'] = 0;
$PHORUM['cache_javascript'] = 0;
$PHORUM['cache_javascript'] = 0;
$PHORUM['cache_layer'] = 0;
$PHORUM['cache_layer'] = 0;
$PHORUM['cache_messages'] = 0;
$PHORUM['cache_messages'] = 0;
$PHORUM['cache_newflags'] = 0;
$PHORUM['cache_newflags'] = 0;
$PHORUM['cache_rss'] = 0;
$PHORUM['cache_rss'] = 0;
$PHORUM['cache_users'] = 0;
$PHORUM['cache_users'] = 0;
}
}
// If we have no private key for signing data, generate one now,
// If we have no private key for signing data, generate one now,