[TYPO3-core] Making use of the cli dispatcher script

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Thu Dec 14 14:22:18 CET 2006


Hi!

In the Core and in extensions there are a few CLIs. Now they are called 
*.phpsh. I think the intention was to make them callable via the dispatcher.

I suggest that they are renamed to *.t3exe or *.t3cli. And instead of the 
old initialization code we have this:

<?php

// *****************************************
// Standard initialization of a CLI module:
// *****************************************

if ((!defined('TYPO3_cliMode') || !TYPO3_cliMode) &&
   (!defined('TYPO3_cliKey')) {
   die('Not called from the TYPO3 CLI dispatcher!');
}

if (TYPO3_cliKey != 'foobar') {
   die('Unexpected CLI key!);
}

...

?>

Masi


More information about the TYPO3-team-core mailing list