new version scanner

This commit is contained in:
Palma Solutions LTD
2017-05-12 06:00:51 +02:00
parent dceee7a49b
commit 1a82c6aaf4

22
sc.php
View File

@@ -1104,8 +1104,28 @@ echo '<br><pre>';
function version() {
/* batch #1 */
/* new script
$versions = array(
array("Wordpress", "\*\/wp-includes/version.php", "\$wp_version ="),
array("osCommerce", "\*\/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant"),
array("ZenCart", "\*\/includes/version.php", "define('PROJECT_VERSION_NAME', 'Zen Cart');"),
array("Drupal", "\*\/modules/system/system.info", "version = "),
)
if (file_exists($versions[0][1]))
{
echo $versions[0][0] . "\n"
preg_grep ($versions[0][2], $versions[0][1])
elseif (file_exists($versions[1][1]))
echo $versions[1][0] . "\n"
preg_grep ($versions[1][2], $versions[0][1])
}
*/
echo $GLOBALS["red"] . $GLOBALS["br"] . "<h3><b>Scanning account for the installed scripts & their versions...</h3><br /></span>";
echo "<span style='color: #666666';><br /><h4><b>Batch #1 - Most used scripts:</h4><br /></span>";