Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* Setup CLI Script Overrider
|
||||
* Last Updated: $LastChangedDate: 2011-09-22 09:37:11 -0400 (Thu, 22 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: mark $
|
||||
* @copyright © 2011 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9537 $
|
||||
*
|
||||
*/
|
||||
|
||||
class CLIOutput extends output
|
||||
{
|
||||
public $currentStep = 1;
|
||||
|
||||
public function __construct( $steps, $controller )
|
||||
{
|
||||
$this->steps = $steps;
|
||||
$this->controller = $controller;
|
||||
|
||||
parent::__construct( ipsRegistry::instance(), FALSE );
|
||||
}
|
||||
|
||||
public function setNextAction( $next )
|
||||
{
|
||||
$next = str_replace( '&', '&', $next );
|
||||
if ( substr( $next, 0, 8 ) == 'install&' )
|
||||
{
|
||||
$next = substr( $next, 8 );
|
||||
}
|
||||
|
||||
$this->next = $next;
|
||||
}
|
||||
|
||||
public function sendOutput( $saveData=TRUE )
|
||||
{
|
||||
if ( $this->next != 'done' )
|
||||
{
|
||||
parse_str( $this->next, $vars );
|
||||
$_REQUEST = $vars;
|
||||
$this->controller->request = $vars;
|
||||
$this->controller->doExecute( ipsRegistry::instance() );
|
||||
}
|
||||
}
|
||||
|
||||
public function template()
|
||||
{
|
||||
return new CLIOutputTemplate();
|
||||
}
|
||||
}
|
||||
|
||||
class CLIOutputTemplate
|
||||
{
|
||||
public function __call( $name, $arguments )
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user