public function IPMIcommand($ip, $user, $password, $cmd) { if (!(ereg('^[[:alnum:] ]+', $cmd))) ...