new version scanner
This commit is contained in:
22
sc.php
22
sc.php
@@ -1104,8 +1104,28 @@ echo '<br><pre>';
|
|||||||
|
|
||||||
function version() {
|
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 $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>";
|
echo "<span style='color: #666666';><br /><h4><b>Batch #1 - Most used scripts:</h4><br /></span>";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user