* Copyright (c) 2022 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.1'); // 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('mysqli')) ? 'MySQL/MariaDB' : ' | MySQL/MariaDB'; $html .= ' |
Functions: | '; $html .= (extension_loaded('pcre')) ? 'pcre' : ' | pcre'; $html .= (function_exists('get_magic_quotes_gpc')) ? ' - get_magic_quotes_gpc' : ' - get_magic_quotes_gpc'; $html .= (function_exists('session_start')) ? ' - session_start | ' : ' - session_start'; $html .= '