From 283e6b2ed00e73201fe526a2fb6e125935eff28f Mon Sep 17 00:00:00 2001 From: jeroen Date: Tue, 23 Aug 2022 09:45:05 +0200 Subject: [PATCH] Update setup.php: Remove phpversion() dependency and fix unterminated line --- setup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.php b/setup.php index 01b9b1e..fa41e3f 100644 --- a/setup.php +++ b/setup.php @@ -27,8 +27,8 @@ $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 .= (version_compare(PHP_VERSION, '7.4.0') >= 0) ? '' : ''; $html .= ''; $html .= ''; $html .= (extension_loaded('mysqli')) ? '' : ' - session_start'; $html .= ''; $html .= '
PHP version:' . phpversion() . '' . phpversion() . 'PHP:At least 7.4Unsupported version (=< 7.3)
SQL support:MySQL/MariaDB' : 'MySQL/MariaDB'; @@ -40,7 +40,7 @@ $html .= (function_exists('get_magic_quotes_gpc')) ? ' - session_start
'; -$html .= '

Copy the

config.inc.php.sample
to
config.inc.php
, edit it to your environment and delete
setup.php
' +$html .= '

Copy the

config.inc.php.sample
to
config.inc.php
and edit it to your environment and delete setup.php'; $html .= ''; $html .= '';