Skip to content

Instantly share code, notes, and snippets.

@elinw
Created August 26, 2011 04:51
Show Gist options
  • Save elinw/1172723 to your computer and use it in GitHub Desktop.
Save elinw/1172723 to your computer and use it in GitHub Desktop.
CLI App that gives an infinite loop
<?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