diff --git a/cms-vss.php b/cms-vss.php index 9b5b4a7..2bb4688 100644 --- a/cms-vss.php +++ b/cms-vss.php @@ -23,7 +23,7 @@ $versions = array( array("Wordpress", "/wp-includes/version.php", "\$wp_version =", "Maintained"), - array("Drupal 6", "/modules/system/system.info", "version = ", "EOL"), + array("Drupal 6/7", "/modules/system/system.info", "version = ", "EOL"), array("Drupal 8", "/core/modules/system/system.info.yml", "version: '", "Maintained"), array("osCommerce", "/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant", "Maintained"), array("phpBB", "/includes/constants.php", "define('PHPBB_VERSION',", "Maintained"), @@ -223,7 +223,8 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$row[1], GLOB_BRACE) as $ $location = $versionfile; $trim = str_replace($row[1], '', $location); print_r ("location:".$trim)."\n"; - + echo "\n"; + } } @@ -241,7 +242,8 @@ foreach(glob("/home/".$argv[1]."/public_html/".$row[1], GLOB_BRACE) as $versionf $location = $versionfile; $trim = str_replace($row[1], '', $location); print_r ("location:".$trim)."\n"; - + echo "\n"; + } } } @@ -275,7 +277,8 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$raw[1], GLOB_BRACE) as $ $location = $versionfiles; $trim = str_replace($raw[1], '', $location); print_r ("location:".$trim)."\n"; - + echo "\n"; + } } @@ -294,7 +297,8 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$raw[1], GLOB_BRACE) as $ $location = $versionfiles; $trim = str_replace($raw[1], '', $location); print_r ("location:".$trim."\n"); - + echo "\n"; + } } @@ -328,7 +332,8 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$rxw[1], GLOB_BRACE) as $ $location = $versionfilex; $trim = str_replace($rxw[1], '', $location); print_r ("location:".$trim."\n"); - + echo "\n"; + } } @@ -348,9 +353,9 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$rxw[1], GLOB_BRACE) as $ $location = $versionfilex; $trim = str_replace($rxw[1], '', $location); print_r ("location:".$trim."\n"); - + echo "\n"; + } } - echo "\n\n"; }