fixed a new line bug

This commit is contained in:
Palma Solutions LTD
2018-05-07 10:42:32 +02:00
parent 85eca32e16
commit 25b5e09400

View File

@@ -12,7 +12,6 @@
* - Add the rest of the scripts from Softaculous - work in progress * - Add the rest of the scripts from Softaculous - work in progress
* - Add scripts from outside Softaculous - work in progress * - Add scripts from outside Softaculous - work in progress
* - Add "Current Status" - work in progress * - Add "Current Status" - work in progress
* - Fix Drupal 7 not working correctly
*/ */
if ($_SERVER['argc'] >= 2) { 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){ foreach(glob("/home/".$argv[1]."/public_html/".$raw[1], GLOB_BRACE) as $versionfiles){
$file = file_get_contents($versionfiles); $file = file_get_contents($versionfiles);
@@ -291,7 +291,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$raw[1], GLOB_BRACE) as $
echo "\n"; echo "\n";
$location = $versionfiles; $location = $versionfiles;
$trim = str_replace($raw[1], '', $location); $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"; echo "\n";
$location = $versionfilex; $location = $versionfilex;
$trim = str_replace($rxw[1], '', $location); $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){ foreach(glob("/home/".$argv[1]."/public_html/".$rxw[1], GLOB_BRACE) as $versionfilex){
$file = file_get_contents($versionfilex); $file = file_get_contents($versionfilex);
@@ -344,7 +345,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$rxw[1], GLOB_BRACE) as $
echo "\n"; echo "\n";
$location = $versionfilex; $location = $versionfilex;
$trim = str_replace($rxw[1], '', $location); $trim = str_replace($rxw[1], '', $location);
print_r ("location:".$trim); print_r ("location:".$trim."\n");
} }
} }