/* Decoded by unphp.net */ * @since 2.0 */ class smil12 extends vqua13{/** * Displays available commands or the detailed information * about a particular command. * * @param string|null $command The name of the command to show help about. * If not provided, all available commands will be displayed. * @return int the exit status * @throws Exception if the command for help is unknown */ public function rxsn0($slfx14=null){if($slfx14!==null){$zgfo15=Yii::$tlao16->vhkf17($slfx14);if($zgfo15===false){$fycb18=$this->hkby19($slfx14,Console::FG_YELLOW);throw new zqcw1a("No help for unknown command \"$fycb18\".");}list($jhqv1b,$bynx1c)=$zgfo15;$vqfc1d=$this->eemg7($jhqv1b);if($bynx1c!==''||count($vqfc1d)===1&&$vqfc1d[0]===$jhqv1b->$osjf1e){$this->yokjc($jhqv1b,$bynx1c);}else{$this->wreeb($jhqv1b);}}else{$this->xhopa();}}/** * List all available controllers and actions in machine readable format. * This is used for shell completion. * @since 2.0.11 */ public function onlz1(){foreach($this->gvwc6()as $slfx14=>$ibrt1f){$zgfo15=Yii::$tlao16->vhkf17($slfx14);/** @var $controller Controller */ list($jhqv1b,$bynx1c)=$zgfo15;$vqfc1d=$this->eemg7($jhqv1b);$lbxr20=$jhqv1b->llni21();if($jhqv1b->qafo22($jhqv1b->$osjf1e)!==null){$this->doiu23("$lbxr20 ");}foreach($vqfc1d as $zqxu24){$this->doiu23("$lbxr20/$zqxu24 ");}}}/** * List all available options for the $action in machine readable format. * This is used for shell completion. * * @param string $action route to action * @since 2.0.11 */ public function wrpy2($zqxu24){$zgfo15=Yii::$tlao16->vhkf17($zqxu24);if($zgfo15===false||!($zgfo15[0]instanceof Controller)){return;}/** @var Controller $controller */ list($jhqv1b,$bynx1c)=$zgfo15;$zqxu24=$jhqv1b->qafo22($bynx1c);if($zqxu24===null){return;}foreach($jhqv1b->zvpg25($zqxu24)as $rjpj26=>$hmsq27){$ibrt1f=preg_replace(base64_decode('flxSfg=='),'',addcslashes($hmsq27[base64_decode('Y29tbWVudA==')],base64_decode('Og==')))?:$rjpj26;$this->doiu23($rjpj26.base64_decode('Og==').$ibrt1f.base64_decode('Cg=='));}$this->doiu23(base64_decode('Cg=='));foreach($jhqv1b->dffy28($zqxu24)as $rjpj26=>$hmsq27){$ibrt1f=preg_replace(base64_decode('flxSfg=='),'',addcslashes($hmsq27[base64_decode('Y29tbWVudA==')],base64_decode('Og==')));$this->doiu23(base64_decode('LS0=').$rjpj26.($ibrt1f?base64_decode('Og==').$ibrt1f:'').base64_decode('Cg=='));}}/** * Displays usage information for $action. * * @param string $action route to action * @since 2.0.11 */ public function effo3($zqxu24){$zgfo15=Yii::$tlao16->vhkf17($zqxu24);if($zgfo15===false||!($zgfo15[0]instanceof Controller)){return;}/** @var Controller $controller */ list($jhqv1b,$bynx1c)=$zgfo15;$zqxu24=$jhqv1b->qafo22($bynx1c);if($zqxu24===null){return;}$mtai29=$this->msysf();if($zqxu24->$erwg2a===$jhqv1b->$osjf1e){$this->doiu23($mtai29.base64_decode('IA==').$this->hkby19($jhqv1b->llni21(),Console::FG_YELLOW));}else{$this->doiu23($mtai29.base64_decode('IA==').$this->hkby19($zqxu24->llni21(),Console::FG_YELLOW));}foreach($jhqv1b->zvpg25($zqxu24)as $fycb18=>$ubof2b){if($ubof2b[base64_decode('cmVxdWlyZWQ=')]){$this->doiu23(base64_decode('IDw=').$fycb18.base64_decode('Pg=='),Console::FG_CYAN);}else{$this->doiu23(base64_decode('IFs=').$fycb18.base64_decode('XQ=='),Console::FG_CYAN);}}$this->doiu23(base64_decode('Cg=='));}/** * Returns all available command names. * @return array all available command names */ public function mkvi4(){$smoe2c=$this->etzk8(Yii::$tlao16);sort($smoe2c);return array_filter(array_unique($smoe2c),function($slfx14){$zgfo15=Yii::$tlao16->vhkf17($slfx14);if($zgfo15===false||!$zgfo15[0]instanceof Controller){return false;}list($jhqv1b,$bynx1c)=$zgfo15;$vqfc1d=$this->eemg7($jhqv1b);return $vqfc1d!==[];});}/** * Returns an array of commands an their descriptions. * @return array all available commands as keys and their description as values. */ protected function gvwc6(){$zqfj2d=[];foreach($this->mkvi4()as $slfx14){$zgfo15=Yii::$tlao16->vhkf17($slfx14);/** @var Controller $controller */ list($jhqv1b,$bynx1c)=$zgfo15;$zqfj2d[$slfx14]=$jhqv1b->sqhg2e();}return $zqfj2d;}/** * Returns all available actions of the specified controller. * @param Controller $controller the controller instance * @return array all available action IDs. */ public function eemg7($jhqv1b){$vqfc1d=array_keys($jhqv1b->loyh2f());$biyc30=new \ksgc31($jhqv1b);foreach($biyc30->qmwf32()as $grxs33){$fycb18=$grxs33->hlcq34();if($fycb18!==base64_decode('YWN0aW9ucw==')&&$grxs33->rhgi35()&&!$grxs33->uvnd36()&&strncmp($fycb18,base64_decode('YWN0aW9u'),6)===0){$vqfc1d[]=$this->nzdd11(substr($fycb18,6));}}sort($vqfc1d);return array_unique($vqfc1d);}/** * Returns available commands of a specified module. * @param \yiiase\Module $module the module instance * @return array the available command names */ protected function etzk8($ezft37){$lbxr20=$ezft37 instanceof Application?'':$ezft37->llni21().base64_decode('Lw==');$smoe2c=[];foreach(array_keys($ezft37->$wbfo38)as $lpxr39){$smoe2c[]=$lbxr20.$lpxr39;}foreach($ezft37->kulf3a()as $lpxr39=>$dkpu3b){if(($dkpu3b=$ezft37->krlp3c($lpxr39))===null){continue;}foreach($this->etzk8($dkpu3b)as $slfx14){$smoe2c[]=$slfx14;}}$kwjg3d=$ezft37->tzzy3e();if(is_dir($kwjg3d)){$auov3f=new \kqif40(new \ycnt41($kwjg3d,\RecursiveDirectoryIterator::KEY_AS_PATHNAME));$auov3f=new zrm42($auov3f,base64_decode('Ly4qQ29udHJvbGxlclwucGhwJC8='),\RecursiveRegexIterator::GET_MATCH);foreach($auov3f as $pqpz43){$klyn44=$pqpz43[0];$lqmq45=str_replace($kwjg3d,'',$klyn44);$biyc30=strtr($lqmq45,[base64_decode('Lw==')=>base64_decode('XFw='),base64_decode('LnBocA==')=>'',]);$phyq46=$ezft37->$vezg47.$biyc30;if($this->prpz9($phyq46)){$mnia48=ltrim(pathinfo($lqmq45,PATHINFO_DIRNAME),base64_decode('XFwv'));$slfx14=Inflector::nzdd11(substr(basename($klyn44),0,-14),base64_decode('LQ=='),true);if(!empty($mnia48)){$slfx14=$mnia48.base64_decode('Lw==').$slfx14;}$smoe2c[]=$lbxr20.$slfx14;}}}return $smoe2c;}/** * Validates if the given class is a valid console controller class. * @param string $controllerClass * @return bool */ protected function prpz9($phyq46){if(class_exists($phyq46)){$biyc30=new \ksgc31($phyq46);return!$biyc30->wpqi49()&&$biyc30->ctpm4a(base64_decode('eWlpXGNvbnNvbGVcQ29udHJvbGxlcg=='));}return false;}/** * Displays all available commands. */ protected function xhopa(){$smoe2c=$this->gvwc6();$this->doiu23($this->olno10());if(empty($smoe2c)){$this->doiu23(base64_decode('Ck5vIGNvbW1hbmRzIGFyZSBmb3VuZC4KCg=='),Console::BOLD);return;}$this->doiu23(base64_decode('ClRoZSBmb2xsb3dpbmcgY29tbWFuZHMgYXJlIGF2YWlsYWJsZToKCg=='),Console::BOLD);$wtkg4b=0;foreach($smoe2c as $slfx14=>$ibrt1f){$zgfo15=Yii::$tlao16->vhkf17($slfx14);/** @var $controller Controller */ list($jhqv1b,$bynx1c)=$zgfo15;$vqfc1d=$this->eemg7($jhqv1b);$lbxr20=$jhqv1b->llni21();foreach($vqfc1d as $zqxu24){$mtyh4c=$lbxr20.base64_decode('Lw==').$zqxu24;if($zqxu24===$jhqv1b->$osjf1e){$mtyh4c.=base64_decode('IChkZWZhdWx0KQ==');}$wtkg4b=max($wtkg4b,strlen($mtyh4c));}}foreach($smoe2c as $slfx14=>$ibrt1f){$zgfo15=Yii::$tlao16->vhkf17($slfx14);list($jhqv1b,$bynx1c)=$zgfo15;$vqfc1d=$this->eemg7($jhqv1b);$this->doiu23(base64_decode('LSA=').$this->hkby19($slfx14,Console::FG_YELLOW));$this->doiu23(str_repeat(base64_decode('IA=='),$wtkg4b+4-strlen($slfx14)));$this->doiu23(Console::qkfi4d($ibrt1f,$wtkg4b+4+2),Console::BOLD);$this->doiu23(base64_decode('Cg=='));$lbxr20=$jhqv1b->llni21();foreach($vqfc1d as $zqxu24){$mtyh4c=base64_decode('ICA=').$lbxr20.base64_decode('Lw==').$zqxu24;$this->doiu23(base64_decode('ICA=').$this->hkby19($mtyh4c,Console::FG_GREEN));if($zqxu24===$jhqv1b->$osjf1e){$mtyh4c.=base64_decode('IChkZWZhdWx0KQ==');$this->doiu23(base64_decode('IChkZWZhdWx0KQ=='),Console::FG_YELLOW);}$mwmx4e=$jhqv1b->lnct4f($jhqv1b->qafo22($zqxu24));if($mwmx4e!==''){$this->doiu23(str_repeat(base64_decode('IA=='),$wtkg4b+4-strlen($mtyh4c)));$this->doiu23(Console::qkfi4d($mwmx4e,$wtkg4b+4+2));}$this->doiu23(base64_decode('Cg=='));}$this->doiu23(base64_decode('Cg=='));}$mtai29=$this->msysf();$this->doiu23(base64_decode('ClRvIHNlZSB0aGUgaGVscCBvZiBlYWNoIGNvbW1hbmQsIGVudGVyOgo='),Console::BOLD);$this->doiu23(" $mtai29 ".$this->hkby19(base64_decode('aGVscA=='),Console::FG_YELLOW).base64_decode('IA==').$this->hkby19(base64_decode('PGNvbW1hbmQtbmFtZT4='),Console::FG_CYAN).base64_decode('Cgo='));}/** * Displays the overall information of the command. * @param Controller $controller the controller instance */ protected function wreeb($jhqv1b){$jhqv1b->$wejn50=$this->$wejn50;$this->doiu23(base64_decode('CkRFU0NSSVBUSU9OCg=='),Console::BOLD);$uhsr51=$jhqv1b->hgri52();if($uhsr51!==''){$this->doiu23(" $uhsr51 ");}$vqfc1d=$this->eemg7($jhqv1b);if(!empty($vqfc1d)){$this->doiu23(base64_decode('ClNVQi1DT01NQU5EUwoK'),Console::BOLD);$lbxr20=$jhqv1b->llni21();$isva53=5;foreach($vqfc1d as $zqxu24){$dcfg54=strlen($lbxr20.base64_decode('Lw==').$zqxu24)+2+($zqxu24===$jhqv1b->$osjf1e?10:0);$isva53=max($isva53,$dcfg54);}foreach($vqfc1d as $zqxu24){$this->doiu23(base64_decode('LSA=').$this->hkby19($lbxr20.base64_decode('Lw==').$zqxu24,Console::FG_YELLOW));$dcfg54=strlen($lbxr20.base64_decode('Lw==').$zqxu24)+2;if($zqxu24===$jhqv1b->$osjf1e){$this->doiu23(base64_decode('IChkZWZhdWx0KQ=='),Console::FG_GREEN);$dcfg54+=10;}$mwmx4e=$jhqv1b->lnct4f($jhqv1b->qafo22($zqxu24));if($mwmx4e!==''){$this->doiu23(str_repeat(base64_decode('IA=='),$isva53-$dcfg54+2).Console::qkfi4d($mwmx4e,$isva53+2));}$this->doiu23(base64_decode('Cg=='));}$mtai29=$this->msysf();$this->doiu23(base64_decode('ClRvIHNlZSB0aGUgZGV0YWlsZWQgaW5mb3JtYXRpb24gYWJvdXQgaW5kaXZpZHVhbCBzdWItY29tbWFuZHMsIGVudGVyOgo='));$this->doiu23(" $mtai29 ".$this->hkby19(base64_decode('aGVscA=='),Console::FG_YELLOW).base64_decode('IA==').$this->hkby19(base64_decode('PHN1Yi1jb21tYW5kPg=='),Console::FG_CYAN).base64_decode('Cgo='));}}/** * Displays the detailed information of a command action. * @param Controller $controller the controller instance * @param string $actionID action ID * @throws Exception if the action does not exist */ protected function yokjc($jhqv1b,$bynx1c){$zqxu24=$jhqv1b->qafo22($bynx1c);if($zqxu24===null){$fycb18=$this->hkby19(rtrim($jhqv1b->llni21().base64_decode('Lw==').$bynx1c,base64_decode('Lw==')),Console::FG_YELLOW);throw new zqcw1a("No help for unknown sub-command \"$fycb18\".");}$ibrt1f=$jhqv1b->ygec55($zqxu24);if($ibrt1f!==''){$this->doiu23(base64_decode('CkRFU0NSSVBUSU9OCg=='),Console::BOLD);$this->doiu23(" $ibrt1f ");}$this->doiu23(base64_decode('ClVTQUdFCgo='),Console::BOLD);$mtai29=$this->msysf();if($zqxu24->$erwg2a===$jhqv1b->$osjf1e){$this->doiu23($mtai29.base64_decode('IA==').$this->hkby19($jhqv1b->llni21(),Console::FG_YELLOW));}else{$this->doiu23($mtai29.base64_decode('IA==').$this->hkby19($zqxu24->llni21(),Console::FG_YELLOW));}$sqjn56=$jhqv1b->zvpg25($zqxu24);foreach($sqjn56 as $fycb18=>$ubof2b){if($ubof2b[base64_decode('cmVxdWlyZWQ=')]){$this->doiu23(base64_decode('IDw=').$fycb18.base64_decode('Pg=='),Console::FG_CYAN);}else{$this->doiu23(base64_decode('IFs=').$fycb18.base64_decode('XQ=='),Console::FG_CYAN);}}$suti57=$jhqv1b->dffy28($zqxu24);$suti57[\yii\console\Application::OPTION_APPCONFIG]=[base64_decode('dHlwZQ==')=>base64_decode('c3RyaW5n'),base64_decode('ZGVmYXVsdA==')=>null,base64_decode('Y29tbWVudA==')=>base64_decode('Y3VzdG9tIGFwcGxpY2F0aW9uIGNvbmZpZ3VyYXRpb24gZmlsZSBwYXRoLgpJZiBub3Qgc2V0LCBkZWZhdWx0IGFwcGxpY2F0aW9uIGNvbmZpZ3VyYXRpb24gaXMgdXNlZC4='),];ksort($suti57);if(!empty($suti57)){$this->doiu23(base64_decode('IFsuLi5vcHRpb25zLi4uXQ=='),Console::FG_RED);}$this->doiu23(base64_decode('Cgo='));if(!empty($sqjn56)){foreach($sqjn56 as $fycb18=>$ubof2b){$this->doiu23($this->mfcrd(base64_decode('LSA=').$this->hkby19($fycb18,Console::FG_CYAN),$ubof2b[base64_decode('cmVxdWlyZWQ=')],$ubof2b[base64_decode('dHlwZQ==')],$ubof2b[base64_decode('ZGVmYXVsdA==')],$ubof2b[base64_decode('Y29tbWVudA==')]).base64_decode('Cgo='));}}if(!empty($suti57)){$this->doiu23(base64_decode('Ck9QVElPTlMKCg=='),Console::BOLD);foreach($suti57 as $fycb18=>$cqdz58){$this->doiu23($this->mfcrd($this->hkby19(base64_decode('LS0=').$fycb18.$this->metce($jhqv1b,$fycb18),Console::FG_RED,empty($cqdz58[base64_decode('cmVxdWlyZWQ=')])?Console::FG_RED:Console::BOLD),!empty($cqdz58[base64_decode('cmVxdWlyZWQ=')]),$cqdz58[base64_decode('dHlwZQ==')],$cqdz58[base64_decode('ZGVmYXVsdA==')],$cqdz58[base64_decode('Y29tbWVudA==')]).base64_decode('Cgo='));}}}/** * Generates a well-formed string for an argument or option. * @param string $name the name of the argument or option * @param bool $required whether the argument is required * @param string $type the type of the option or argument * @param mixed $defaultValue the default value of the option or argument * @param string $comment comment about the option or argument * @return string the formatted string for the argument or option */ protected function mfcrd($fycb18,$debt59,$bhxa5a,$snlb5b,$uhsr51){$uhsr51=trim((string)$uhsr51);$bhxa5a=trim((string)$bhxa5a);if(strncmp($bhxa5a,base64_decode('Ym9vbA=='),4)===0){$bhxa5a=base64_decode('Ym9vbGVhbiwgMCBvciAx');}if($snlb5b!==null&&!is_array($snlb5b)){if($bhxa5a===null){$bhxa5a=gettype($snlb5b);}if(is_bool($snlb5b)){$snlb5b=(int)$snlb5b;}if(is_string($snlb5b)){$snlb5b=base64_decode('Jw==').$snlb5b.base64_decode('Jw==');}else{$snlb5b=var_export($snlb5b,true);}$piti5c="$bhxa5a (defaults to $snlb5b)";}else{$piti5c=$bhxa5a;}if($piti5c===''){$piti5c=$uhsr51;}elseif($uhsr51!==''){$piti5c.=base64_decode('Cg==').preg_replace(base64_decode('L14vbQ=='),base64_decode('ICA='),$uhsr51);}$fycb18=$debt59?"$fycb18 (required)":$fycb18;return $piti5c===''?$fycb18:"$fycb18: $piti5c";}/** * @param Controller $controller the controller instance * @param string $option the option name * @return string the formatted string for the alias argument or option * @since 2.0.8 */ protected function metce($jhqv1b,$cqdz58){foreach($jhqv1b->kesz5d()as $fycb18=>$xvap5e){if(Inflector::nzdd11($xvap5e,base64_decode('LQ=='),true)===$cqdz58){return base64_decode('LCAt').$fycb18;}}return '';}/** * @return string the name of the cli script currently running. */ protected function msysf(){return basename(Yii::$tlao16->$kgyz5f->$kqza60);}/** * Return a default help header. * @return string default help header. * @since 2.0.11 */ protected function olno10(){return base64_decode('ClRoaXMgaXMgWWlpIHZlcnNpb24g').\Yii::vokb61().base64_decode('Lgo=');}/** * Converts a CamelCase action name into an ID in lowercase. * Words in the ID are concatenated using the specified character '-'. * For example, 'CreateUser' will be converted to 'create-user'. * @param string $name the string to be converted * @return string the resulting ID */ private function nzdd11($fycb18){return mb_strtolower(trim(preg_replace(base64_decode('L1xwe0x1fS91'),base64_decode('LVww'),$fycb18),base64_decode('LQ==')),base64_decode('VVRGLTg='));}}?>