diff --git a/functions.inc.php b/functions.inc.php index 1ca24183..6f6aa06c 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -564,7 +564,7 @@ function create_page_browser($idxfield, $querypart, $sql_params = []) { # afterwards: DROP SEQUENCE foo $result = db_query_all($query, $sql_params); - for($k = 0; $k < count($result); $k+=2) { + for ($k = 0; $k < count($result); $k+=2) { if (isset($result[$k + 1])) { $label = substr($result[$k]['label'], 0, $label_len) . '-' . substr($result[$k+1]['label'], 0, $label_len); } else { @@ -1402,9 +1402,9 @@ function smtp_mail($to, $from, $data, $password = "", $body = "") { fputs($fh, "STARTTLS\r\n"); smtp_get_response($fh); - stream_set_blocking ($fh, true); + stream_set_blocking($fh, true); stream_socket_enable_crypto($fh, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT); - stream_set_blocking ($fh, true); + stream_set_blocking($fh, true); } fputs($fh, "EHLO $smtp_server\r\n"); diff --git a/public/setup.php b/public/setup.php index 0f6c18d3..22751871 100644 --- a/public/setup.php +++ b/public/setup.php @@ -337,9 +337,7 @@ require(dirname(__FILE__) . '/../templates/header.php'); if (!isset($_SERVER['HTTPS'])) { echo "
You can use the form below, or run something like
php -r 'echo "somesalt:" . sha1("somesalt:" . "password");'in a shell, after changing the salt.
EOF; $change = "Generate"; - } - ?> + } ?>