From 1a82c6aaf412c08d1dfe443a69792f3413873730 Mon Sep 17 00:00:00 2001 From: Palma Solutions LTD Date: Fri, 12 May 2017 06:00:51 +0200 Subject: [PATCH] new version scanner --- sc.php | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sc.php b/sc.php index b92a799..63b7efb 100644 --- a/sc.php +++ b/sc.php @@ -1104,8 +1104,28 @@ echo '
';
 
 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"] . "

Scanning account for the installed scripts & their versions...


"; echo "

Batch #1 - Most used scripts:


";