Created
August 26, 2011 04:51
-
-
Save elinw/1172723 to your computer and use it in GitHub Desktop.
CLI App that gives an infinite loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define( '_JEXEC', 1 ); | |
define('JPATH_BASE', dirname(__FILE__)); | |
require_once ( JPATH_BASE.'/libraries/import.php' ); | |
jimport( 'joomla.application.cli' ); | |
class JoomlaRocks extends JCli | |
{ | |
public function execute( ) | |
{ | |
$this->out( ' . . .__ | | ' ); | |
$this->out( ' | _ _ ._ _ | _. [__) _ _.|_/ __ | ' ); | |
$this->out( '\__|(_)(_)[ | )|(_] | \(_)(_.| \_) * ' ); | |
$error = JError::raiseError(500, JText::sprintf('JLIB_APPLICATION_ERROR_APPLICATION_LOAD', $client)); | |
return $error; | |
} | |
} | |
JCli::getInstance( 'JoomlaRocks' )->execute( ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment