'TFS 1.1 - 1.4.2', 'TFS_16' => 'TFS 1.6', 'CANARY' => 'Canary / OTServBR-Global', 'TFS_03' => 'TFS 0.3.6+ / 0.4 / OTX', 'TFS_02' => 'TFS 0.2.13+', 'OTHIRE' => 'OTHire', ); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $engine = (string)($_POST['ServerEngine'] ?? ''); $title = trim((string)($_POST['site_title'] ?? '')); $url = rtrim(trim((string)($_POST['site_url'] ?? '')), '/'); if (!isset($engines[$engine])) { install_error('Pick a server engine.'); } elseif ($title === '') { install_error('The site needs a name.'); } else { install_state(array( 'ServerEngine' => $engine, 'site_title' => $title, 'site_url' => $url, 'server_path' => rtrim(trim((string)($_POST['server_path'] ?? '')), '/\\'), )); install_max_step(4); header('Location: ' . install_url(4)); exit; } } // A sensible default URL, from the request itself. $guessUrl = install_get('site_url'); if ($guessUrl === '') { $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http'; $host = (string)($_SERVER['HTTP_HOST'] ?? 'localhost'); $base = rtrim(dirname((string)($_SERVER['SCRIPT_NAME'] ?? '')), '/\\'); $base = preg_replace('#/install$#', '', $base); $guessUrl = $scheme . '://' . $host . $base; } ?>
Which engine you run, and how the site introduces itself.