From ccc709e010d1cba6146674fd5f844ee079d4bd8e Mon Sep 17 00:00:00 2001 From: Brian Lycett Date: Mon, 27 Mar 2023 10:29:07 +0100 Subject: [PATCH] Fix deprecated variable interpolations --- www/request_account/index.php | 2 +- www/setup/run_checks.php | 50 +++++++++++++++++------------------ www/setup/setup_ldap.php | 28 ++++++++++---------- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/www/request_account/index.php b/www/request_account/index.php index 71b502a..bffd8ef 100644 --- a/www/request_account/index.php +++ b/www/request_account/index.php @@ -65,7 +65,7 @@ if($_POST) { $mail_subject = "$firstname $lastname has requested an account for $ORGANISATION_NAME."; -$link_url="${SITE_PROTOCOL}${SERVER_HOSTNAME}${SERVER_PATH}account_manager/new_user.php?account_request&first_name=$firstname&last_name=$lastname&email=$email"; +$link_url="{$SITE_PROTOCOL}{$SERVER_HOSTNAME}{$SERVER_PATH}account_manager/new_user.php?account_request&first_name=$firstname&last_name=$lastname&email=$email"; if (!isset($email)) { $email = "n/a"; } if (!isset($notes)) { $notes = "n/a"; } diff --git a/www/setup/run_checks.php b/www/setup/run_checks.php index 7787655..f38434a 100644 --- a/www/setup/run_checks.php +++ b/www/setup/run_checks.php @@ -35,14 +35,14 @@ $ldap_connection = open_ldap_connection(); \n"; +print "$li_good Connected to {$LDAP['uri']}\n"; #TLS? if ($LDAP['connection_type'] != "plain") { - print "$li_good Encrypted connection to ${LDAP['uri']} via ${LDAP['connection_type']}\n"; + print "$li_good Encrypted connection to {$LDAP['uri']} via {$LDAP['connection_type']}\n"; } else { - print "$li_warn Unable to connect to ${LDAP['uri']} via StartTLS. "; + print "$li_warn Unable to connect to {$LDAP['uri']} via StartTLS. "; print "What's this?\n"; @@ -98,14 +98,14 @@ else {