[TASK] Remove unreachable cli code in typo3/init.php
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 7 May 2012 21:06:48 +0000 (23:06 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 7 May 2012 21:14:28 +0000 (23:14 +0200)
This cli process code at the end of typo3/init.php could never be
reached since valid keys are already checked before and 'status' is
not registered as valid key. This code snipped is dead for a long time
now and did not work for ages. The information was semi useful and
undocumented. It is removed without substitution.

Change-Id: I97db67b18e414ca2b75ae9fcac2a1e892fad2a26
Resolves: #36936
Releases: 6.0
Reviewed-on: http://review.typo3.org/11061
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/init.php

index a576308..e01cdb1 100644 (file)
@@ -330,22 +330,6 @@ $FILEMOUNTS = $BE_USER->returnFilemounts();
 $GLOBALS['LANG'] = t3lib_div::makeInstance('language');
 $GLOBALS['LANG']->init($BE_USER->uc['lang']);
 
-
-// ****************
-// CLI processing
-// ****************
-if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) {
-               // Status output:
-       if (!strcmp($_SERVER['argv'][1],'status'))      {
-               $message = "Status of TYPO3 CLI script:\n\n";
-               $message .= "Username [uid]: " . $BE_USER->user['username'] . " [" . $BE_USER->user['uid'] . "]\n";
-               $message .= "Database: " . TYPO3_db . LF;
-               $message .= "PATH_site: " . PATH_site . LF;
-               fwrite(STDOUT, $message . LF);
-               exit(0);
-       }
-}
-
 // ****************
 // compression
 // ****************