$schedid = intval($schedid); if ($schedid > 0) { system("sudo /usr/share/ossim/scripts/vulnmeter/cancel_scan.pl {$schedid}"); } break; case "play_task": $omp = new OMP(); $omp->play_task($job_id); break; case "pause_task": $omp = new OMP(); $omp->pause_task($job_id); break; case "stop_task": $omp = new OMP(); $omp->stop_task($job_id); break; case "resume_task": $omp = new OMP(); $omp->resume_task($job_id); break; case "delete_task": $omp = new OMP(); $omp->delete_task($job_id); break; case "delete": delete_sched($schedid); break; case "setstatus": set_status($schedid, $enabled); break;