This commit is contained in:
Palma Solutions LTD
2018-05-09 14:12:57 +02:00
parent f7a68d60e1
commit 39d1b08c6b

View File

@@ -23,7 +23,7 @@
$versions = array( $versions = array(
array("Wordpress", "/wp-includes/version.php", "\$wp_version =", "Maintained"), 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("Drupal 8", "/core/modules/system/system.info.yml", "version: '", "Maintained"),
array("osCommerce", "/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant", "Maintained"), array("osCommerce", "/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant", "Maintained"),
array("phpBB", "/includes/constants.php", "define('PHPBB_VERSION',", "Maintained"), array("phpBB", "/includes/constants.php", "define('PHPBB_VERSION',", "Maintained"),
@@ -223,6 +223,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$row[1], GLOB_BRACE) as $
$location = $versionfile; $location = $versionfile;
$trim = str_replace($row[1], '', $location); $trim = str_replace($row[1], '', $location);
print_r ("location:".$trim)."\n"; print_r ("location:".$trim)."\n";
echo "\n";
} }
} }
@@ -241,6 +242,7 @@ foreach(glob("/home/".$argv[1]."/public_html/".$row[1], GLOB_BRACE) as $versionf
$location = $versionfile; $location = $versionfile;
$trim = str_replace($row[1], '', $location); $trim = str_replace($row[1], '', $location);
print_r ("location:".$trim)."\n"; print_r ("location:".$trim)."\n";
echo "\n";
} }
} }
@@ -275,6 +277,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$raw[1], GLOB_BRACE) as $
$location = $versionfiles; $location = $versionfiles;
$trim = str_replace($raw[1], '', $location); $trim = str_replace($raw[1], '', $location);
print_r ("location:".$trim)."\n"; print_r ("location:".$trim)."\n";
echo "\n";
} }
} }
@@ -294,6 +297,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$raw[1], GLOB_BRACE) as $
$location = $versionfiles; $location = $versionfiles;
$trim = str_replace($raw[1], '', $location); $trim = str_replace($raw[1], '', $location);
print_r ("location:".$trim."\n"); print_r ("location:".$trim."\n");
echo "\n";
} }
} }
@@ -328,6 +332,7 @@ foreach(glob("/home/".$argv[1]."/public_html/{**/*,*}".$rxw[1], GLOB_BRACE) as $
$location = $versionfilex; $location = $versionfilex;
$trim = str_replace($rxw[1], '', $location); $trim = str_replace($rxw[1], '', $location);
print_r ("location:".$trim."\n"); 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; $location = $versionfilex;
$trim = str_replace($rxw[1], '', $location); $trim = str_replace($rxw[1], '', $location);
print_r ("location:".$trim."\n"); print_r ("location:".$trim."\n");
echo "\n";
} }
} }
echo "\n\n";
} }