Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!function_exists('pcntl_exec'))
- {
- function pcntl_exec($path,$args=array())
- {
- if(is_string($args)) $args = array($args);
- if(count($args)) $path = sprintf('"%s"', $path);
- $shell = new COM('WScript.Shell');
- $shell->run($path.(count($args) ? ' '.implode(' ',$args) : ''),0,true);
- }
- }
- switch ($_POST['Center'])
- {
- case "Ligar":
- pcntl_exec('D:\Servidor\Center\Gerenciador\ligar.bat');
- echo "<script>alert('Emulador Center Ativado!'); location.href='http://127.0.0.1/pt/?page=manager';</script>";
- break;
- }
Add Comment
Please, Sign In to add comment