diff --git a/sc.php b/sc.php index 9d81344..1146b5a 100644 --- a/sc.php +++ b/sc.php @@ -1136,7 +1136,6 @@ $versions = array( array("PyroCMS", "/system/cms/config/constants.php", "define('CMS_VERSION',="), array("Contao", "/system/config/localconfig.php", "\$GLOBALS\['TL_CONFIG'\]\['latestVersion'\] ="), array("Geeklog", "/siteconfig.php", "define('VERSION',"), - array("Silverstripe", "/cms/silverstripe_version", "*"), //needs review array("sNews", "/snews.php", "sNews Version:"), array("jCore", "/config.inc.php", "@define('JCORE_VERSION',"), array("ImpressPages", "/Ip/Application.php", "; //CHANGE_ON_VERSION_UPDATE"), @@ -1151,7 +1150,6 @@ $versions = array( array("Jamroom", "/modules/jrCore/include.php", "'version' =>"), array("Bolt", "/src/Application.php", "\$values\['bolt_version'\] ="), array("Pluck", "/data/inc/security.php", "define('PLUCK_VERSION',"), - array("Croogo", "/Vendor/croogo/croogo/VERSION.txt", "*"), // needs further review array("Kirby", "/kirby/kirby.php", "static public \$version ="), array("Zenario", "/zenario/admin/db_updates/latest_revision_no.inc.php", "define('ZENARIO_CMS_VERSION',"), array("Cotonti", "/system/functions.php", "\$cfg\['version'\] ="), @@ -1161,7 +1159,6 @@ $versions = array( array("AEF", "/globals.php", "// AEF : Advanced Electron Forum"), array("Vanilla", "/conf/config.php", "\$Configuration\['Vanilla'\]\['Version'\] ="), array("PunBB", "/include/constants.php", "define('FORUM_VERSION',"), - array("XMB", "/db/mysql.php", "* eXtreme Message Board"), // needs 2nd line too array("FluxBB", "/include/common.php", "define('FORUM_VERSION',"), array("Phorum", "/common.php", "define( \"PHORUM\","), array("MiniBB", "/bb_functions.php", "\$version="), @@ -1169,7 +1166,6 @@ $versions = array( array("TinyWebGallery", "/config.php", "TWG version:"), array("phpAlbum", "/main.php", "\$phpalbum_version="), array("iGalerie", "/includes/classes/system.class.php", "public static \$galleryVersion ="), - array("Dolphin", "/modules/boonex/news/install/config.php", "'compatible_with' => array("), // needs 2nd line too array("Oxwall", "/ow_version.xml", ""), array("Etano", "/includes/defines.inc.php", "define('_INTERNAL_VERSION_',"), array("PeoplePods", "/peoplepods/lib/etc/options.php", "\$this->setLibOptions('last_database_update','"), @@ -1179,13 +1175,49 @@ $versions = array( array("WebCalendar", "/includes/config.php", "\$PROGRAM_VERSION ="), array("Booked", "/lib/Config/Configuration.php", "const VERSION ="), array("PHP iCalendar", "/default_config.php", "\$this->phpicalendar_version ="), - array("WebMail Lite", "/adminpanel/VERSION", "*"), // needs further review array("Piwik", "/core/Version.php", "const VERSION ="), array("Little Poll", "/lp_admin.php", "Little Poll Admin Center v"), array("Sphider", "/settings/conf.php", "\$version_nr"), array("BigTree CMS", "/core/version.php", "define(\"BIGTREE_VERSION\",\""), array("Quick Cart", "/database/config/general.php", "\$config\['version'\] ="), array("gpEasy", "/include/common.php", "define('gpversion','"), + array("Elxis", "/includes/version.php", "\$elxis_version = array("), + array("CMSimple", "/cmsimple/cms.php", "define('CMSIMPLE_VERSION', '"), + array("CRE Loaded", "/includes/version.php", "define('PROJECT_VERSION', '\[CRE Loaded v"), + array("Expression Engine", "/config/config.php", "\$config\['app_version'\] ="), + array("Pydio", "/conf/VERSION.php", "define(\"AJXP_VERSION\", \""), + array("Aardvark Topsites", "/index.php", "\$TMPL\['version'\] ="), + array("Open Web Analytics", "/owa_env.php", "define('OWA_VERSION', '"), + array("CJ Dynamic Poll", "/poll_config.php", "\$version = \""), + array("Logaholic", "/includes/version.php", "define(\"LOGAHOLIC_VERSION_NUMBER\", \""), + array("Little Software Stats", "/inc/version.php", "define( 'VERSION'"), + array("qdPM", "/core/apps/qdPM/templates/_footer.php", "target=\"_blank\">qdPM"), + array("eyeOS", "/settings.php", "define('EYE_VERSION', '"), + array("Collabtive", "/init.php", "\$template->assign(\"myversion\""), + array("ProjectPier", "/version.php", "return '"), + array("PHProjekt", "/VERSION", "PHProjekt"), + array("TaskFreak", "/include/config.php", "define('FRK_VERSION','"), + array("todoyu", "/core/inc/version.php", "define('TODOYU_VERSION', '"), + array("FlySpray", "/includes/class.flyspray.php", "public \$version ="), + array("Traq", "/vendor/traq/version.php", "define(\"TRAQ_VER\","), + array("Eventum", "/init.php", "define('APP_VERSION',"), + array("Burden", "/config.php", "define('VERSION',"), /* could produce too many false positives but there's no other way */ + array("Livezilla", "/_definitions/definitions.inc.php", "define(\"VERSION\","), + array("Perch", "/admin/core/lib/Perch.class.php", "public \$version ="), + array("Elefant CMS", "/conf/version.php", "ELEFANT_VERSION"), + array("Wolf CMS", "/index.php", "define('CMS_VERSION\', '"), + array("Anchor CMS", "/index.php", "define('VERSION', '"), + array("CodeIgniter", "/CodeIgniter.php", "define('CI_VERSION', '"), + array("GotCMS", "/library/Gc/Version.php", "const VERSION ="), + array("Frog CMS", "/admin/index.php", "define('FROG_VERSION', '"), + array("Pulse CMS", "/admin/index.php", "class=\"ver\">Pulse CMS"), + array("Couch CMS", "/header.php", "define( 'K_COUCH_VERSION', '"), + array("Kanboard", "/app/constants.php", "define('APP_VERSION', '"), + array("XpressEngine", "/config/config.inc.php", "define('__XE_VERSION__',"), + array("Hesk", "/hesk_settings.inc.php", "\$hesk_settings['hesk_version']="), + array("PHPWiki", "/lib/config.php", "define('PHPWIKI_VERSION',"), + array("PixelPost", "/includes/pixelpost.php", "Pixelpost version "), + array("PrestaShop", "/config/settings.inc.php", "define('_PS_VERSION_',"), array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), @@ -1193,24 +1225,22 @@ $versions = array( array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), - array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="), + array("Silverstripe", "/cms/silverstripe_version", "*"), //needs review + array("Croogo", "/Vendor/croogo/croogo/VERSION.txt", "*"), // needs further review + array("XMB", "/db/mysql.php", "* eXtreme Message Board"), // needs 2nd line too + array("Dolphin", "/modules/boonex/news/install/config.php", "'compatible_with' => array("), // needs 2nd line too + array("WebMail Lite", "/adminpanel/VERSION", "*"), // needs further review + array("DotProj", "/includes/version.php", "\$dp_version_major"), // needs two more lines + array("PHPCollab", "/includes/settings.php", "# PhpCollab version"), // needs second line as well + array("Admidio", "/adm_program/system/constants.php", "define('ADMIDIO_VERSION_MAIN',"), // needs two more lines + array("Get Simple CMS", "/admin/inc/configuration.php", "\$site_full_name"), // needs one more line + array("SquirrelCart", "/squirrelcart/functions/base/sc_version.func.php", "function sc_version() {"), //needs one more line + array("ELGG", "/version.php", "release ="), // false positives with Moodle -< needs one more line + array("CMS Made Simple", "/version.php", "CMS_VERSION ="), // needs 3 lines more + array("DataLife Engine", "/index.php", "dle_version ="), //needs one more line + array("phpCoin", "/version.php", "ThisVersion"), //needs one more line + array("Avactis", "/version.php", "PRODUCT_VERSION_NUMBER"), // needs one more line + ); @@ -1230,156 +1260,6 @@ foreach(glob("./{**/*,*}".$row[1], GLOB_BRACE) as $versionfile){ } } -echo $GLOBALS["red"] . $GLOBALS["br"] . "Joomla

"; -system ("find ../ -type f -path '*/includes/version.php' -exec grep -H '\$RELEASE\|\$DEV_LEVEL' {} \; "); -system ("find ../ -type f -path '*/libraries/joomla/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; "); -system ("find ../ -type f -path '*/libraries/cms/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; "); -system ("find ../ -type f -path '*/libraries/cms/version/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; "); -system ("find ../ -type f -path '*/libraries/cms/version/version.php' -exec grep -H 'const\ RELEASE\ =\|const\ DEV_LEVEL\ =' {} \; "); -//echo $GLOBALS["red"] . $GLOBALS["br"] . "Timthumb

"; -//system("find ../ type f -name '*.php' - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Elxis

"; -system("find ../ type f -path '*/includes/version.php' -exec grep -HA4 '\$elxis_version = array(' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "CMSimple

"; -system("find ../ type f -path '*/cmsimple/cms.php' -exec grep -H \"define('CMSIMPLE_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "CRE Loaded

"; -system("find ../ type f -path '*/includes/version.php' -exec grep -H \"define('PROJECT_VERSION', '\[CRE Loaded v\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Expression Engine

"; -system("find ../ type f -path '*/config/config.php' -exec grep -H \"\$config\['app_version'\] = \" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Pydio

"; -system("find ../ type f -path '*/conf/VERSION.php' -exec grep -H 'define(\"AJXP_VERSION\", \"' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Aardvark Topsites

"; -system("find ../ type f -path '*/index.php' -exec grep -H \"\$TMPL\['version'\] =\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Open Web Analytics

"; -system("find ../ type f -path '*/owa_env.php' -exec grep -H \"define('OWA_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "CJ Dynamic Poll

"; -system("find ../ type f -path '*/poll_config.php' -exec grep -H '\$version = \"' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Logaholic

"; -system("find ../ type f -path '*/includes/version.php' -exec grep -H 'define(\"LOGAHOLIC_VERSION_NUMBER\", \"' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Little Software Stats

"; -system("find ../ type f -path '*/inc/version.php' -exec grep -H \"define( 'VERSION'\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "qdPM

"; -system("find ../ type f -path '*/core/apps/qdPM/templates/_footer.php' -exec grep -H 'target=\"_blank\">qdPM' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "eyeOS

"; -system("find ../ type f -path '*/settings.php' -exec grep -H \"define('EYE_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Collabtive

"; -system("find ../ type f -path '*/init.php' -exec grep -H '\$template->assign(\"myversion\"' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "DotProj

"; -system("find ../ type f -path '*/includes/version.php' -exec grep -HA2 '\$dp_version_major' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "ProjectPier

"; -system("find ../ type f -path '*/version.php' -exec grep -H \"return '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "PHProjekt

"; -system("find ../ type f -path '*/VERSION' -exec grep -H 'PHProjekt ' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "TaskFreak

"; -system("find ../ type f -path '*/include/config.php' -exec grep -H \"define('FRK_VERSION','\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "todoyu

"; -system("find ../ type f -path '*/core/inc/version.php' -exec grep -H \"define('TODOYU_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "FlySpray

"; -system("find ../ type f -path '*/includes/class.flyspray.php' -exec grep -H 'public \$version =' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "PHPCollab

"; -system("find ../ type f -path '*/includes/settings.php' -exec grep -HA1 '# PhpCollab version' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Traq

"; -system("find ../ type f -path '*/vendor/traq/version.php' -exec grep -H 'define(\"TRAQ_VER\",' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Admidio

"; -system("find ../ type f -path '*/adm_program/system/constants.php' -exec grep -HA2 \"define('ADMIDIO_VERSION_MAIN',\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Eventum

"; -system("find ../ type f -path '*/init.php' -exec grep -H \"define('APP_VERSION',\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Burden

"; -system("find ../ type f -path '*/config.php' -exec grep -H \"define('VERSION',\" {} \;"); /* could produce too many false positives but there's no other way */ - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Livezilla

"; -system("find ../ type f -path '*/_definitions/definitions.inc.php' -exec grep -H 'define(\"VERSION\",' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Perch

"; -system("find ../ type f -path '*/admin/core/lib/Perch.class.php' -exec grep -H 'public \$version =' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Elefant CMS

"; -system("find ../ type f -path '*/conf/version.php' -exec grep -H 'ELEFANT_VERSION' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Wolf CMS

"; -system("find ../ type f -path '*/index.php' -exec grep -H \"define('CMS_VERSION\', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Get Simple CMS

"; -system("find ../ type f -path '*/admin/inc/configuration.php' -exec grep -HA1 '\$site_full_name' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Anchor CMS

"; -system("find ../ type f -path '*/index.php' -exec grep -H \"define('VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "CodeIgniter

"; -system("find ../ type f -path '*/CodeIgniter.php' -exec grep -H \"define('CI_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "GotCMS

"; -system("find ../ type f -path '*/library/Gc/Version.php' -exec grep -H 'const VERSION =' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Frog CMS

"; -system("find ../ type f -path '*/admin/index.php' -exec grep -H \"define('FROG_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Pulse CMS

"; -system("find ../ type f -path '*/admin/index.php' -exec grep -H 'class=\"ver\">Pulse CMS' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Couch CMS

"; -system("find ../ type f -path '*/header.php' -exec grep -H \"define( 'K_COUCH_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Kanboard

"; -system("find ../ type f -path '*/app/constants.php' -exec grep -H \"define('APP_VERSION', '\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "XpressEngine

"; -system("find ../ type f -path '*/config/config.inc.php' -exec grep -H \"define('__XE_VERSION__',\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Hesk

"; -system("find ../ type f -path '*/hesk_settings.inc.php' -exec grep -H \"\$hesk_settings['hesk_version']=\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "PHPWiki

"; -system("find ../ type f -path '*/lib/config.php' -exec grep -H \"define('PHPWIKI_VERSION',\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "PixelPost

"; -system("find ../ type f -path '*/includes/pixelpost.php' -exec grep -H 'Pixelpost version ' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "SquirrelCart

"; -system("find ../ type f -path '*/squirrelcart/functions/base/sc_version.func.php' -exec grep -HA1 'function sc_version() {' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "PrestaShop

"; -system("find ../ type f -path '*/config/settings.inc.php' -exec grep -H \"define('_PS_VERSION_',\" {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "ELGG

"; -system ("find ../ -name version.php -exec grep -HA1 'release = ' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "CMS Made Simple

"; -system ("find ../ -name version.php -exec grep -HA3 'CMS_VERSION =' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "DataLife Engine

"; -system("find ../ -name index.php -exec grep -HA1 'dle_version = ' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "phpCoin

"; -system ("find ../ -name version.php -exec grep -HA1 'ThisVersion' {} \;"); - -echo $GLOBALS["red"] . $GLOBALS["br"] . "Avactis

"; -system ("find ../ -name version.php -exec grep -HA1 'PRODUCT_VERSION_NUMBER' {} \;"); - echo $GLOBALS["red"] . $GLOBALS["br"] . "AccountLab Plus

"; system ("find ../ -name version.php -exec grep -HA1 'ALPversion=' {} \;"); @@ -1442,6 +1322,15 @@ system("find ../ -name version -exec head -n 2 {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Anova Pro
"; system("find ../ -name version.txt -exec grep -HA1 'Anova Pro :' {} \;"); +echo $GLOBALS["red"] . $GLOBALS["br"] . "Joomla

"; +system ("find ../ -type f -path '*/includes/version.php' -exec grep -H '\$RELEASE\|\$DEV_LEVEL' {} \; "); +system ("find ../ -type f -path '*/libraries/joomla/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; "); +system ("find ../ -type f -path '*/libraries/cms/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; "); +system ("find ../ -type f -path '*/libraries/cms/version/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; "); +system ("find ../ -type f -path '*/libraries/cms/version/version.php' -exec grep -H 'const\ RELEASE\ =\|const\ DEV_LEVEL\ =' {} \; "); +//echo $GLOBALS["red"] . $GLOBALS["br"] . "Timthumb

"; +//system("find ../ type f -name '*.php' + /* echo $GLOBALS["red"] . $GLOBALS["br"] . "Question2Answer
"; system("find ../ -name VERSION.txt -exec head -n 1 {} \;"); - this causes too many false positives */