'); $db_last_error = 0; } if (file_exists(dirname(__FILE__) . '/install.php')) { header('Location: http' . (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 's' : '') . '://' . (empty($_SERVER['HTTP_HOST']) ? $_SERVER['SERVER_NAME'] . (empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']) : $_SERVER['HTTP_HOST']) . (strtr(dirname($_SERVER['PHP_SELF']), '\\', '/') == '/' ? '' : strtr(dirname($_SERVER['PHP_SELF']), '\\', '/')) . '/install.php'); exit; } # Make sure the paths are correct... at least try to fix them. if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt')) $boarddir = dirname(__FILE__); if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources')) $sourcedir = $boarddir . '/Sources'; if (!file_exists($cachedir) && file_exists($boarddir . '/cache')) $cachedir = $boarddir . '/cache'; ?>