. */ if(!defined("SECURECHECK")) {die($lang['error_file_alone']);} $showOutput=''; $getOutput=''; if(isset($_POST['command'])) { $data=strtr($_POST['command'], array("\n\n" => '\n', "\r\n" => '\n', "\r" => '\n', "\n" => '\n')); $commands=explode('\n', $data); $use_error=0; if($hoststatus===false) { foreach($commands AS $key=>$value) { if(substr($value, 0, 3)=='use') { $use_error++; } } } if(empty($use_error)) { foreach($commands AS $key=>$value) { if(!empty($value)) { $getOutput=$ts3->execOwnCommand(3, $value); if(!empty($getOutput['errors'])) { $get_errorid=explode('ErrorID: ', $getOutput['errors'][0]); $get_errorid=explode(' | Message: ', $get_errorid[1]); $errormsg="error id=".$get_errorid[0]." msg=".$get_errorid[1]."\n"; } else { $errormsg="error id=0 msg=ok\n"; } $showOutput.=$getOutput['data'].$errormsg; } } } else { $showOutput .= $lang['nouse']; } } $smarty->assign("showOutput", str_replace('
', "\n", $showOutput)); ?>