* 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 .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '

' . APP_NAME . ' v' . VERSION . '

'; $html .= '

It seems that you are running this version of OpenSMTPD Admin for the first time.

'; $html .= ''; $html .= ''; $html .= ''; $html .= (version_compare(PHP_VERSION, '7.4.0') >= 0) ? '' : ''; $html .= ''; $html .= ''; $html .= (extension_loaded('PDO')) ? ''; $html .= ''; $html .= (extension_loaded('pcre')) ? '' : ' - session_start'; $html .= ''; $html .= '
PHP version:' . phpversion() . '' . phpversion() . '
SQL support:PDO - MySQL/MariaDB' : 'PDO - MySQL/MariaDB'; $html .= '
Functions:pcre' : 'pcre'; $html .= (function_exists('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(); ?>