* Copyright (c) 2022-2023 LAYLO */ // Check whether the configuration file exists - bail if that is the case if (file_exists(realpath("./conf.php"))) { print 'It seems that conf.php is already configured. Please delete setup.php to continue.'; die(); } // Define the app specifics DEFINE('APP_NAME', 'OpenSMTPD Admin Setup Checker'); DEFINE('VERSION', '1.2'); // Start generating the HTML output $html = ''; $html .= '
'; $html .= 'It seems that you are running this version of OpenSMTPD Admin for the first time.
'; $html .= 'PHP version: | '; $html .= (version_compare(PHP_VERSION, '7.4.0') >= 0) ? '' . phpversion() . ' | ' : '' . phpversion() . ' | '; $html .= '
SQL support: | '; $html .= (extension_loaded('PDO')) ? 'PDO - MySQL/MariaDB' : ' | PDO - MySQL/MariaDB'; $html .= ' |
Functions: | '; $html .= (extension_loaded('pcre')) ? 'pcre' : ' | pcre'; $html .= (function_exists('session_start')) ? ' - session_start | ' : ' - session_start'; $html .= '
cp or mv conf.php-sample to conf.php and change it to reflect your setup.
'; $html .= ''; $html .= ''; print $html; die(); ?>