#! /usr/bin/php -q init('de'/*$BE_USER->uc['lang']*/); if (in_array('-h',$_SERVER["argv"])) { echo " Options: -d = show development updates of extensions -s = show updates of shy extensions -n = show updates of not loaded extensions -h = This help screen.\n"; exit; } $dev = in_array('-d',$_SERVER["argv"]); $shy = in_array('-s',$_SERVER["argv"]); $not = in_array('-n',$_SERVER["argv"]); $emObj = t3lib_div::makeInstance('SC_mod_tools_em_index'); $emObj->init(); $emObj->MOD_SETTINGS['rep_url'] = 'http://typo3.org/fileadmin/ter/'; echo "Updating extension information...\n"; echo strip_tags($emObj->fetchMetaData('extensions')); echo "\n\n"; $cli = 0; if(t3lib_div::int_from_ver(TYPO3_version) >= 4000000) { $cli =& t3lib_div::makeInstance('tx_terupdatecheck2_cli'); if(t3lib_div::int_from_ver(TYPO3_version) >= 4001000) { $cli =& t3lib_div::makeInstance('tx_terupdatecheck41_cli'); } else { } $cli->pObj = $emObj; $cli->main($dev, $shy, $not); } else { print "Your Typo3 Version is not supported by this CLI script."; } ?>