From 25b5e09400ad6869f58fd0f90b797db2221c3455 Mon Sep 17 00:00:00 2001 From: Palma Solutions LTD Date: Mon, 7 May 2018 10:42:32 +0200 Subject: [PATCH] fixed a new line bug --- cms-vss.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cms-vss.php b/cms-vss.php index 30a743d..f827b47 100644 --- a/cms-vss.php +++ b/cms-vss.php @@ -12,7 +12,6 @@ * - Add the rest of the scripts from Softaculous - work in progress * - Add scripts from outside Softaculous - work in progress * - Add "Current Status" - work in progress - * - Fix Drupal 7 not working correctly */ if ($_SERVER['argc'] >= 2) { @@ -278,6 +277,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$raw[1], GLOB_BRACE) as $ } } + // scripts installed in docroot foreach(glob("/home/".$argv[1]."/public_html/".$raw[1], GLOB_BRACE) as $versionfiles){ $file = file_get_contents($versionfiles); @@ -291,7 +291,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$raw[1], GLOB_BRACE) as $ echo "\n"; $location = $versionfiles; $trim = str_replace($raw[1], '', $location); - print_r ("location:".$trim); + print_r ("location:".$trim."\n"); } } @@ -325,11 +325,12 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$rxw[1], GLOB_BRACE) as $ echo "\n"; $location = $versionfilex; $trim = str_replace($rxw[1], '', $location); - print_r ("location:".$trim); + print_r ("location:".$trim."\n"); } } + // scripts installed in docroot foreach(glob("/home/".$argv[1]."/public_html/".$rxw[1], GLOB_BRACE) as $versionfilex){ $file = file_get_contents($versionfilex); @@ -344,7 +345,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$rxw[1], GLOB_BRACE) as $ echo "\n"; $location = $versionfilex; $trim = str_replace($rxw[1], '', $location); - print_r ("location:".$trim); + print_r ("location:".$trim."\n"); } }