komendy wywołujące
- include('blockchain.php');
- $run = new shell_exec;
- $string=$run->ini_set('blocks',0,0,'chain');
- $block=$run->ini_set('string',0,1,'chain');
- $block=$run->ini_set('string',1,1,'chain');
- $block=$run->ini_set('string',2,1,'chain');
kod
class shell_exec
{
private $string;
private $type;
private $action;
private $net;
private $position;
private $output;
public function ini_set($string, $type, $action, $net)
{
if((isset($string))&&(isset($type))&&(isset($action))&&(isset($net)))
{
$this->string = $string;
$this->type = $type;
$this->action = $action;
$this->net = $net;
$this->position = NULL;
if(self::catch())
{
$output = self::catch();
$this->output = $output;
return $this->output;
}
else
{
return false;
}
}
else
{
return false;
}
}
private function catch()
{
if( $this->action == 1 )
{
$STRLEN=STRLEN($this->string);
FOREACH(STR_SPLIT($this->string) as $BIT)
{
FOREACH(STR_SPLIT($this->net) as $_NO => $_BIT)
{
IF($_BIT==$BIT)
{
$POSITION[]=$_NO;
$FBIT[]=strlen($_NO);
}
}
}
if((ISSET($POSITION))&&(ISSET($FBIT)))
{
$pos_impl=implode('',$POSITION);
$this->position = $pos_impl;
$fbit_impl=implode('',$FBIT);
$this->fbit = $fbit_impl;
if($this->type == 0)
{
$output=$this->position.'.'.$this->fbit;
}
elseif($this->type == 1)
{
$output=$this->position;
}
elseif($this->type == 2)
{
$output=$this->fbit;
}
}
ELSE
{
$output=false;
}
}
elseif(( $this->action == 0 )&&($this->type == 0))
{
$_SIEC =$this->net;
$_strlen_liczb=stristr($this->string,'.');
$_sliczby=str_replace('.','',$_strlen_liczb);
$xxx='.'.$_strlen_liczb;
$_liczby=str_replace($xxx,'',$this->string);
$_CHARACTERS=NULL;
$noxe=null;
$_liczbyxv=null;
$_splxx1=str_split($_sliczby);
foreach($_splxx1 as $noxs)
{
if(is_numeric($noxs))
{
$noxe+=$noxs;
$noxy=$noxe-$noxs;
$_liczbyxv= substr($_liczby, $noxy, $noxs);
if((isset($_SIEC[intval($_liczbyxv)]))&&($_SIEC[intval($_liczbyxv)]!==false))
{
$_CHARACTERS[]=$_SIEC[intval($_liczbyxv)];
}
else
{
$_CHARACTERS=false;
}
}
else
{
$output = false;
}
}
if(is_array($_CHARACTERS))
{
$char_impl=implode('',$_CHARACTERS);
$output= $char_impl;
}
else
{
$output = false;
}
}
else
{
$output = false;
}
return $output;
}
}
© created by Damian Pacanowski
Komentarze
Prześlij komentarz